]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ARM: dts: am335x-baltos: use phy-phandle declarations
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 23 Nov 2016 15:49:26 +0000 (16:49 +0100)
committerTony Lindgren <tony@atomide.com>
Wed, 23 Nov 2016 16:14:25 +0000 (08:14 -0800)
phy-phandle is now a preferred method to reference a PHY device.
Especially in regards to cpsw it enables PHY specific settings like
max-speed etc. being specified in DTS.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-baltos-ir2110.dts
arch/arm/boot/dts/am335x-baltos-ir3220.dts
arch/arm/boot/dts/am335x-baltos-ir5221.dts
arch/arm/boot/dts/am335x-baltos.dtsi

index a9a97307d66cadf5e5b5041ac1d411ed457ca42d..501c7527121b284d46883a3eab88e7085496745d 100644 (file)
        dr_mode = "host";
 };
 
+&davinci_mdio {
+       phy0: ethernet-phy@0 {
+               reg = <1>;
+       };
+};
+
 &cpsw_emac0 {
-       phy_id = <&davinci_mdio>, <1>;
        phy-mode = "rmii";
        dual_emac_res_vlan = <1>;
+       phy-handle = <&phy0>;
 };
 
 &cpsw_emac1 {
-       phy_id = <&davinci_mdio>, <7>;
        phy-mode = "rgmii-txid";
        dual_emac_res_vlan = <2>;
+       phy-handle = <&phy1>;
 };
 
 &phy_sel {
index fe002a17c04b5bfc8588301fc42ddfabf1708c63..19f53b8569e1c9411dc43b7639d61e080ec40438 100644 (file)
 };
 
 &cpsw_emac1 {
-       phy_id = <&davinci_mdio>, <7>;
        phy-mode = "rgmii-txid";
        dual_emac_res_vlan = <2>;
+       phy-handle = <&phy1>;
 };
 
 &phy_sel {
index f599350dd3052da41a686321d164b816408cf7f6..2b9d7f4db23f0fa44c14e867f197db5034ae9261 100644 (file)
 };
 
 &cpsw_emac1 {
-       phy_id = <&davinci_mdio>, <7>;
        phy-mode = "rgmii-txid";
        dual_emac_res_vlan = <2>;
+       phy-handle = <&phy1>;
 };
 
 &phy_sel {
index 09b954154e6bbdc54361a52deba1e2781da196cb..efb5eae290a8b7437b95206fa9f69ae4ccecab44 100644 (file)
 };
 
 &davinci_mdio {
+       status = "okay";
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
 
-       status = "okay";
+       phy1: ethernet-phy@1 {
+               reg = <7>;
+       };
 };
 
 &mmc1 {