On Sun, Feb 11, 2024 at 3:31 PM Geert Uytterhoeven <geert+renesas@xxxxxxxxx> wrote: > From: Thanh Quan <thanh.quan.xn@xxxxxxxxxxx> > > Describe the wiring of the first Ethernet AVB instance to the Micrel > KSZ9031RNXVB PHY. > > Signed-off-by: Thanh Quan <thanh.quan.xn@xxxxxxxxxxx> > Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> > --- > Changes compared to the BSP: > - Split in separate commits for SoC and board support, > - Apply to r8a779h0-gray-hawk-single.dts. > --- a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts > +++ b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts This lacks the addition of #include <dt-bindings/gpio/gpio.h>, which is needed for the use of GPIO_* flags below. > @@ -34,6 +35,24 @@ memory@480000000 { > }; > }; > > +&avb0 { > + pinctrl-0 = <&avb0_pins>; > + pinctrl-names = "default"; > + phy-handle = <&phy0>; > + tx-internal-delay-ps = <2000>; > + status = "okay"; > + > + phy0: ethernet-phy@0 { > + compatible = "ethernet-phy-id0022.1622", > + "ethernet-phy-ieee802.3-c22"; > + rxc-skew-ps = <1500>; > + reg = <0>; > + interrupt-parent = <&gpio7>; > + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&gpio7 10 GPIO_ACTIVE_LOW>; > + }; > +}; > + 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