ath79: qca953x: 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:34 +0000 (10:43 +0200)
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/dts/qca9533.dtsi
target/linux/ath79/dts/qca9533_glinet_ar300m.dtsi

index 0bcd00687859973729ae017e696cb8fef4f8c04b..b64813a7a4315fe4e504bbddd5d94240d6ae2f5d 100644 (file)
                                                <&ddr_ctrl 1>;
 };
 
-&mdio0 {
-       resets = <&rst 22>;
-       reset-names = "mdio";
-};
-
 &eth0 {
        compatible = "qca,qca9530-eth", "syscon";
        pll-data = <0x82000101 0x80000101 0x80001313>;
 
        reset-names = "mac";
        resets = <&rst 9>;
+
+       phy-mode = "mii";
 };
 
 
 &mdio1 {
+       status = "okay";
        resets = <&rst 23>;
        reset-names = "mdio";
        builtin-switch;
+
+       builtin_switch: switch0@1f {
+               compatible = "qca,ar8229-builtin";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg = <0x1f>;
+               phy-mode = "gmii";
+               phy4-mii-enable;
+
+               mdio-bus {
+                       swphy0: ethernet-phy@0 {
+                               reg = <0>;
+                               phy-mode = "mii";
+                       };
+
+                       swphy4: ethernet-phy@4 {
+                               reg = <4>;
+                               phy-mode = "mii";
+                       };
+               };
+       };
 };
 
 &eth1 {
-       compatible = "qca,qca9530-eth", "syscon";
+       status = "okay";
+
+       compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
        resets = <&rst 13>;
        reset-names = "mac";
+
+       phy-mode = "gmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };
index 870da3c042c2c0b889170564853584a2410425f9..9d8dc7829ebffaa286f0b913fd1f1ed04c95d980 100644 (file)
        status = "okay";
 };
 
-&mdio0 {
-       status = "okay";
-
-       phy4: ethernet-phy@4 {
-               reg = <4>;
-               phy-mode = "mii";
-       };
-};
-
-&mdio1 {
-       status = "okay";
-};
-
 &eth0 {
        status = "okay";
-
        mtd-mac-address = <&art 0x0>;
-       phy-handle = <&phy4>;
-       phy-mode = "mii";
+       phy-handle = <&swphy4>;
 };
 
 &eth1 {
-       status = "okay";
-
        mtd-mac-address = <&art 0x6>;
-       phy-mode = "gmii";
-
-       fixed-link {
-               speed = <1000>;
-               full-duplex;
-       };
 };
 
 &wmac {