Hi Geert-san, > From: Geert Uytterhoeven, Sent: Tuesday, November 15, 2022 12:57 AM > > Hi Shimoda-san, > > On Thu, Nov 10, 2022 at 2:16 PM Yoshihiro Shimoda > <yoshihiro.shimoda.uh@xxxxxxxxxxx> wrote: > > Enable Ethernet Switch and SERDES for R-Car S4-8 (r8a779f0). > > > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx> > > Thanks for your patch! > > > --- a/arch/arm64/boot/dts/renesas/r8a779f0-spider-ethernet.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a779f0-spider-ethernet.dtsi > > @@ -13,3 +17,76 @@ eeprom@52 { > > pagesize = <8>; > > }; > > }; > > + > > +&pfc { > > + tsn0_pins: tsn0 { > > + groups = "tsn0_mdio_b", "tsn0_link_b"; > > + function = "tsn0"; > > + power-source = <1800>; > > + }; > > + > > + tsn1_pins: tsn1 { > > + groups = "tsn1_mdio_b", "tsn1_link_b"; > > + function = "tsn1"; > > + power-source = <1800>; > > + }; > > + > > + tsn2_pins: tsn2 { > > + groups = "tsn2_mdio_b", "tsn2_link_b"; > > + function = "tsn2"; > > + power-source = <1800>; > > + }; > > +}; > > + > > +&rswitch { > > + pinctrl-0 = <&tsn0_pins>, <&tsn1_pins>, <&tsn2_pins>; > > + pinctrl-names = "default"; > > + status = "okay"; > > + > > + ethernet-ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > Please insert a blank line between properties and subnodes (everywhere). I understood it. I'll fix this patch. > > + port@0 { > > + reg = <0>; > > + phy-handle = <&u101>; > > + phy-mode = "sgmii"; > > + phys = <ð_serdes 0>; > > + mdio { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + u101: ethernet-phy@1 { > > + reg = <1>; > > + compatible = "ethernet-phy-ieee802.3-c45"; > > Missing PHY interrupt: > > interrupt-parent = <&gpio3>; > interrupts = <10 IRQ_TYPE_LEVEL_LOW>; Oops. I'll add PHY interrupt properties. > > + }; > > + }; > > + }; > > + port@1 { > > + reg = <1>; > > + phy-handle = <&u201>; > > + phy-mode = "sgmii"; > > + phys = <ð_serdes 1>; > > + mdio { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + u201: ethernet-phy@2 { > > + reg = <2>; > > + compatible = "ethernet-phy-ieee802.3-c45"; > > interrupt-parent = <&gpio3>; > interrupts = <11 IRQ_TYPE_LEVEL_LOW>; > > > + }; > > + }; > > + }; > > + port@2 { > > + reg = <2>; > > + phy-handle = <&u301>; > > + phy-mode = "sgmii"; > > + phys = <ð_serdes 2>; > > + mdio { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + u301: ethernet-phy@3 { > > + reg = <3>; > > + compatible = "ethernet-phy-ieee802.3-c45"; > > interrupt-parent = <&gpio3>; > interrupts = <9 IRQ_TYPE_LEVEL_LOW>; > > > + }; > > + }; > > + }; > > + }; > > +}; > > The rest LGTM. Thanks! Best regards, Yoshihiro Shimoda > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds