arm: dts: sunxi: update H5 to new EMAC binding
authorAndre Przywara <andre.przywara@arm.com>
Wed, 4 Apr 2018 00:31:19 +0000 (01:31 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 4 Apr 2018 06:01:35 +0000 (11:31 +0530)
The U-Boot driver for the sun8i-emac was using some preliminary DT
binding. Now since Linux got its own driver in v4.15 and our driver
can now cope with both bindings, let's convert the DT nodes used by the
OrangePi PC2 over to the new bindings used by the kernel.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/dts/sun50i-h5-orangepi-pc2.dts

index 780d59a..d1c347d 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&emac_rgmii_pins>;
        phy-mode = "rgmii";
-       phy = <&phy1>;
+       phy-handle = <&ext_rgmii_phy>;
        status = "okay";
+};
 
-       phy1: ethernet-phy@1 {
+&external_mdio {
+       ext_rgmii_phy: ethernet-phy@1 {
+               compatible = "ethernet-phy-ieee802.3-c22";
                reg = <1>;
        };
 };