ath79: qca956x: 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)
enable mdio1 by default because mdio1 node is a subnode of eth1
and eth1 node is a "simple-mfd", which makes mdio1 disabled when
eth1 isn't enabled.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/dts/qca9563_tl-wr1043n.dtsi
target/linux/ath79/dts/qca956x.dtsi

index 3134eb94837c42a64d4b459edabcb641132588e6..6c56306ad5218ef9413cd37ae5f06ea7823a179e 100644 (file)
        status = "okay";
 
        mtd-mac-address = <&info 0x8>;
+       phy-mode = "sgmii";
        phy-handle = <&phy0>;
 };
 
index 1b8733a5851d8c9ec83e78b4fad8fb175ae0a195..3c4c04b1695b49b4dc5f5933b704d18c8addb332 100644 (file)
 };
 
 &eth0 {
-       compatible = "qca,qca9560-eth", "syscon";
+       compatible = "qca,qca9560-eth", "syscon", "simple-mfd";
 
        pll-data = <0x03000000 0x00000101 0x00001919>;
        pll-reg = <0 0x48 0>;
        pll-handle = <&pll>;
 
-       phy-mode = "sgmii";
-
        resets = <&rst 9>;
        reset-names = "mac";
 };
 
 &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,qca9560-eth", "syscon";
+       compatible = "qca,qca9560-eth", "syscon", "simple-mfd";
 
        phy-mode = "gmii";
 
        reset-names = "mac";
 
        status = "disabled";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };