ath79: ar7240: Update dts for current ag71xx driver
authorChuanhong Guo <gch981213@gmail.com>
Tue, 17 Jul 2018 09:09:14 +0000 (17:09 +0800)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 08:43:35 +0000 (10:43 +0200)
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/dts/ar7240.dtsi
target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts

index 6805d1a786ffeebf9d241cded07dd5b9d864eb19..f662b4b44588605e9aa315a743c4eaa9ca3a563d 100644 (file)
 };
 
 &mdio0 {
+       status = "okay";
+
+       compatible = "qca,ar7240-mdio";
        builtin-switch;
+
+       builtin_switch: switch0@1f {
+               compatible = "qca,ar8216-builtin";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg = <0x1f>;
+
+               mdio-bus {
+                       swphy4: ethernet-phy@4 {
+                               reg = <4>;
+                               phy-mode = "mii";
+                       };
+               };
+       };
 };
 
 &eth0 {
 
        resets = <&rst 8>, <&rst 9>;
        reset-names = "phy", "mac";
-};
-
-&mdio1 {
-       builtin-switch;
+       phy-mode = "mii";
+       phy-handle = <&swphy4>;
 };
 
 &eth1 {
index 1ae9896aa42c59bec422b9af430d97105c66fed8..edf209053e473bb7deeb67807fefa9c8db2b47fc 100644 (file)
 &eth0 {
        status = "okay";
 
-       phy-handle = <&phy4>;
-
        mtd-mac-address = <&uboot 0x1fc00>;
        mtd-mac-address-increment = <(-1)>;
 };
        mtd-mac-address-increment = <1>;
 };
 
-&mdio0 {
-       status = "okay";
-
-       phy4: ethernet-phy@4 {
-               reg = <4>;
-               phy-mode = "mii";
-       };
-};
-
 &pcie {
        status = "okay";
 
index 5bc78d7eeff94d2a054fe9ee7ad960fecd967a66..8754537754d0b36099bebf6879054a14ec410cbe 100644 (file)
 &eth0 {
        status = "okay";
 
-       phy-handle = <&phy4>;
-
        mtd-mac-address = <&uboot 0x1fc00>;
        mtd-mac-address-increment = <(-1)>;
 };
        mtd-mac-address-increment = <1>;
 };
 
-&mdio0 {
-       status = "okay";
-
-       phy4: ethernet-phy@4 {
-               reg = <4>;
-               phy-mode = "mii";
-       };
-};
-
 &pcie {
        status = "okay";