ARM: dts: am4372: switch to use phy-gmii-sel
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 20 Feb 2019 15:25:16 +0000 (17:25 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 20 Feb 2019 16:14:03 +0000 (08:14 -0800)
Switch to use phy-gmii-sel PHY instead of cpsw-phy-sel.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am437x-l4.dtsi
arch/arm/boot/dts/am43x-epos-evm.dts

index ca0896f..85c6f4f 100644 (file)
                                #size-cells = <1>;
                                ranges = <0 0 0x4000>;
 
-                               phy_sel: cpsw-phy-sel@650 {
-                                       compatible = "ti,am43xx-cpsw-phy-sel";
-                                       reg= <0x650 0x4>;
-                                       reg-names = "gmii-sel";
-                               };
-
                                am43xx_pinmux: pinmux@800 {
                                        compatible = "ti,am437-padconf",
                                                     "pinctrl-single";
                                };
 
                                scm_conf: scm_conf@0 {
-                                       compatible = "syscon";
+                                       compatible = "syscon", "simple-bus";
                                        reg = <0x0 0x800>;
                                        #address-cells = <1>;
                                        #size-cells = <1>;
 
+                                       phy_gmii_sel: phy-gmii-sel {
+                                               compatible = "ti,am43xx-phy-gmii-sel";
+                                               reg = <0x650 0x4>;
+                                               #phy-cells = <2>;
+                                       };
+
                                        scm_clocks: clocks {
                                                #address-cells = <1>;
                                                #size-cells = <0>;
                                cpts_clock_shift = <29>;
                                ranges = <0 0 0x8000>;
                                syscon = <&scm_conf>;
-                               cpsw-phy-sel = <&phy_sel>;
 
                                davinci_mdio: mdio@1000 {
                                        compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio";
                                cpsw_emac0: slave@200 {
                                        /* Filled in by U-Boot */
                                        mac-address = [ 00 00 00 00 00 00 ];
+                                       phys = <&phy_gmii_sel 1 0>;
                                };
 
                                cpsw_emac1: slave@300 {
                                        /* Filled in by U-Boot */
                                        mac-address = [ 00 00 00 00 00 00 ];
+                                       phys = <&phy_gmii_sel 2 0>;
                                };
                        };
                };
index 4ea753b..9dfd80e 100644 (file)
 &cpsw_emac0 {
        phy-handle = <&ethphy0>;
        phy-mode = "rmii";
-};
-
-&phy_sel {
-       rmii-clock-ext;
+       phys = <&phy_gmii_sel 1 1>;
 };
 
 &i2c0 {