arm64: dts: imx8mp-somdevices.dtsi: Add support for ethernet phys.
authorJosep Orga <jorga@somdevices.com>
Fri, 27 Oct 2023 10:54:23 +0000 (12:54 +0200)
committerJosep Orga <jorga@somdevices.com>
Fri, 27 Oct 2023 10:54:23 +0000 (12:54 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mp-somdevices.dtsi

index e7ab5f6..35c28f1 100644 (file)
        pinctrl-0 = <&pinctrl_eqos>;
        phy-mode = "rgmii-id";
        phy-handle = <&ethphy0>;
+       phy-reset-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
+       phy-reset-post-delay = <150>;
+       phy-reset-duration = <10>;
+       phy-reset-in-suspend;
+       fsl,magic-packet;
        status = "okay";
 
        mdio {
                #address-cells = <1>;
                #size-cells = <0>;
 
-               ethphy0: ethernet-phy@1 {
+               ethphy0: ethernet-phy@4 {
                        compatible = "ethernet-phy-ieee802.3-c22";
-                       reg = <1>;
-                       eee-broken-1000t;
-                       rtl821x,aldps-disable;
-                       rtl821x,clkout-disable;
+                       reg = <4>;
                };
        };
 };
        pinctrl-0 = <&pinctrl_fec>;
        phy-mode = "rgmii-id";
        phy-handle = <&ethphy1>;
+       phy-reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
+       phy-reset-post-delay = <150>;
+       phy-reset-duration = <10>;
+       phy-reset-in-suspend;
        fsl,magic-packet;
        status = "okay";
 
                #address-cells = <1>;
                #size-cells = <0>;
 
-               ethphy1: ethernet-phy@1 {
+               ethphy1: ethernet-phy@4 {
                        compatible = "ethernet-phy-ieee802.3-c22";
-                       reg = <1>;
-                       eee-broken-1000t;
-                       rtl821x,clkout-disable;
+                       reg = <4>;
                };
        };
 };
                        MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3       0x1f
                        MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x1f
                        MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK       0x1f
-                       MX8MP_IOMUXC_SAI2_RXC__GPIO4_IO22               0x19
+                       MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01               0x19
                >;
        };