[U-Boot] [PATCH v1 3/6] ARM: dts: imx6_apalis: introduce fec node

Oleksandr Suvorov oleksandr.suvorov at toradex.com
Tue Dec 3 15:42:25 CET 2019


On Mon, Nov 4, 2019 at 12:16 PM Igor Opaniuk <igor.opaniuk at gmail.com> wrote:
>
> From: Igor Opaniuk <igor.opaniuk at toradex.com>
>
> Sync DTS with the mainline Linux and introduce fec node.
>
> Signed-off-by: Igor Opaniuk <igor.opaniuk at toradex.com>

Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov at toradex.com>

> ---
>
>  arch/arm/dts/imx6-apalis.dts | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
>
> diff --git a/arch/arm/dts/imx6-apalis.dts b/arch/arm/dts/imx6-apalis.dts
> index b2fdfa1af4..72f7439aed 100644
> --- a/arch/arm/dts/imx6-apalis.dts
> +++ b/arch/arm/dts/imx6-apalis.dts
> @@ -22,6 +22,7 @@
>                 mmc1 = &usdhc1;
>                 mmc2 = &usdhc2;
>                 usb0 = &usbotg; /* required for ums */
> +               ethernet0 = &fec;
>         };
>
>         chosen {
> @@ -197,6 +198,27 @@
>         status = "okay";
>  };
>
> +&fec {
> +       pinctrl-names = "default";
> +       pinctrl-0 = <&pinctrl_enet>;
> +       phy-mode = "rgmii";
> +       phy-handle = <&ethphy>;
> +       phy-reset-duration = <10>;
> +       phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
> +       status = "okay";
> +
> +       mdio {
> +               #address-cells = <1>;
> +               #size-cells = <0>;
> +
> +               ethphy: ethernet-phy at 7 {
> +                       interrupt-parent = <&gpio1>;
> +                       interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
> +                       reg = <7>;
> +               };
> +       };
> +};
> +
>  /* Apalis Serial ATA */
>  &sata {
>         status = "okay";
> --
> 2.17.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot



-- 
Best regards
Oleksandr Suvorov

Toradex AG
Altsagenstrasse 5 | 6048 Horw/Luzern | Switzerland | T: +41 41 500
4800 (main line)


More information about the U-Boot mailing list