]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: am437x: sync cpsw/mdio/phy with latest linux - drop phy_id
authorGrygorii Strashko <grygorii.strashko@ti.com>
Sat, 31 Aug 2019 07:30:33 +0000 (10:30 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 3 Nov 2019 14:15:46 +0000 (09:15 -0500)
Synchronize CPSW/MDIO/PHY DT nodes with latest linux - replace deprecated
phy_id property with phy-handle.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/dts/am437x-gp-evm.dts
arch/arm/dts/am437x-idk-evm.dts
arch/arm/dts/am437x-sk-evm.dts
arch/arm/dts/am43x-epos-evm.dts

index 142bfc52a13ca38682f0be2544df78e26f4b27b0..3c500d52db5725e1fd78ceb04574a816ae84b146 100644 (file)
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
        status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
 };
 
 &cpsw_emac0 {
-       phy_id = <&davinci_mdio>, <0>;
+       phy-handle = <&ethphy0>;
        phy-mode = "rgmii";
 };
 
index 19d1462d15839be3ac8c41b6a5a44d4fed316662..8f6824c198f36b2bca5ce8659a71a11b208a63c7 100644 (file)
 };
 
 &mac {
+       slaves = <1>;
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&cpsw_default>;
        pinctrl-1 = <&cpsw_sleep>;
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
        status = "okay";
+
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
 };
 
 &cpsw_emac0 {
-       phy_id = <&davinci_mdio>, <0>;
+       phy-handle = <&ethphy0>;
        phy-mode = "rgmii";
 };
 
index dc8fcde4586f10dc8dbf970846bae06837074c14..66a3bd1dfa1bb75c10fa78ad6a2c4c4cb1d4b3c0 100644 (file)
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
        status = "okay";
+
+       ethphy0: ethernet-phy@4 {
+               reg = <4>;
+       };
+
+       ethphy1: ethernet-phy@5 {
+               reg = <5>;
+       };
 };
 
 &cpsw_emac0 {
-       phy_id = <&davinci_mdio>, <4>;
+       phy-handle = <&ethphy0>;
        phy-mode = "rgmii";
        dual_emac_res_vlan = <1>;
 };
 
 &cpsw_emac1 {
-       phy_id = <&davinci_mdio>, <5>;
+       phy-handle = <&ethphy1>;
        phy-mode = "rgmii";
        dual_emac_res_vlan = <2>;
 };
index fa4d1e3f320c77cdc296024983fe9b7e0b990d3f..65f157ed5994443344a5aa902d9fcb373ad22e10 100644 (file)
        pinctrl-0 = <&cpsw_default>;
        pinctrl-1 = <&cpsw_sleep>;
        status = "okay";
+       slaves = <1>;
 };
 
 &davinci_mdio {
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
        status = "okay";
-};
 
-&cpsw_emac0 {
-       phy_id = <&davinci_mdio>, <16>;
-       phy-mode = "rmii";
+       ethphy0: ethernet-phy@16 {
+               reg = <16>;
+       };
 };
 
-&cpsw_emac1 {
-       phy_id = <&davinci_mdio>, <1>;
+&cpsw_emac0 {
+       phy-handle = <&ethphy0>;
        phy-mode = "rmii";
 };