ath79: ar7240: Update dts for current ag71xx driver
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7240.dtsi
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 {