ARM: dts: imx6_apalis: introduce fec node
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Mon, 4 Nov 2019 10:12:01 +0000 (11:12 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 7 Jan 2020 09:26:56 +0000 (10:26 +0100)
Sync DTS with the mainline Linux and introduce fec node.

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
arch/arm/dts/imx6-apalis.dts

index b2fdfa1af427d94c0151d7367dd6ecf10427b7f3..72f7439aed2e9840fcf83f1a282ec09d3e92f9ca 100644 (file)
@@ -22,6 +22,7 @@
                mmc1 = &usdhc1;
                mmc2 = &usdhc2;
                usb0 = &usbotg; /* required for ums */
+               ethernet0 = &fec;
        };
 
        chosen {
        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@7 {
+                       interrupt-parent = <&gpio1>;
+                       interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
+                       reg = <7>;
+               };
+       };
+};
+
 /* Apalis Serial ATA */
 &sata {
        status = "okay";