ath79: ar7242: 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/ar7242.dtsi

index a5909a9b31500fa6fa7b926aa1a9b2c9d4a99cf1..189e768e9f254cf441bc4a6bdb6ff476fcb9e39b 100644 (file)
@@ -45,7 +45,7 @@
 };
 
 &eth0 {
-       compatible = "qca,ar7242-eth", "syscon";
+       compatible = "qca,ar7242-eth", "syscon", "simple-mfd";
 
        pll-data = <0x16000000 0x00000101 0x00001616>;
        pll-reg = <0x4 0x2c 17>;
        resets = <&rst 23>;
        reset-names = "mdio";
        builtin-switch;
+
+       builtin_switch: switch0@1f {
+               compatible = "qca,ar8216-builtin";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x1f>;
+       };
 };
 
 &eth1 {
-       compatible = "qca,ar7242-eth", "syscon";
+       compatible = "qca,ar7242-eth", "syscon", "simple-mfd";
 
        resets = <&rst 12>, <&rst 13>;
        reset-names = "mac", "phy";
+
+       phy-mode = "gmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };