ath79: ar7242: Update dts for current ag71xx driver
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7241.dtsi
index 91ebea54e0edb78d77bddf371ea88d6a370752dd..baf34e28a661e6a9d181745e305cbc237f90594d 100644 (file)
        };
 };
 
-&mdio0 {
-       regmap = <&eth1>;
-       builtin-switch;
-       resets = <&rst 22>;
-       reset-names = "mdio";
-};
-
 &eth0 {
        compatible = "qca,ar7241-eth", "syscon";
 
 
        resets = <&rst 8>, <&rst 9>;
        reset-names = "mac", "phy";
+       phy-mode = "mii";
+       phy-handle = <&swphy4>;
 };
 
 &mdio1 {
+       status = "okay";
+
        resets = <&rst 23>;
        reset-names = "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";
+                       };
+               };
+       };
 };
 
 &eth1 {
-       compatible = "qca,ar7241-eth", "syscon";
+       compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
 
        pll-data = <0x00110000 0x00001099 0x00991099>;