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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux