[PATCH 2/2] arm64: dts: renesas: gray-hawk-single: Add Ethernet support

Geert Uytterhoeven geert at linux-m68k.org
Wed Feb 14 05:24:29 PST 2024


On Sun, Feb 11, 2024 at 3:31 PM Geert Uytterhoeven
<geert+renesas at glider.be> wrote:
> From: Thanh Quan <thanh.quan.xn at renesas.com>
>
> Describe the wiring of the first Ethernet AVB instance to the Micrel
> KSZ9031RNXVB PHY.
>
> Signed-off-by: Thanh Quan <thanh.quan.xn at renesas.com>
> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
> ---
> 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 at 480000000 {
>         };
>  };
>
> +&avb0 {
> +       pinctrl-0 = <&avb0_pins>;
> +       pinctrl-names = "default";
> +       phy-handle = <&phy0>;
> +       tx-internal-delay-ps = <2000>;
> +       status = "okay";
> +
> +       phy0: ethernet-phy at 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 at linux-m68k.org

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



More information about the linux-arm-kernel mailing list