ath79: ag71xx: replace ag71xx_get_phy_if_mode_name() with phy_modes()
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7240.dtsi
index f662b4b44588605e9aa315a743c4eaa9ca3a563d..d32960a49867eba6cdd7227409b1d21d4eeec65d 100644 (file)
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8216-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reg = <0x1f>;
+               resets = <&rst 8>;
+               reset-names = "switch";
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy4: ethernet-phy@4 {
                                reg = <4>;
                                phy-mode = "mii";
@@ -59,8 +62,8 @@
 
        pll-data = <0x00110000 0x00001099 0x00991099>;
 
-       resets = <&rst 8>, <&rst 9>;
-       reset-names = "phy", "mac";
+       resets = <&rst 9>;
+       reset-names = "mac";
        phy-mode = "mii";
        phy-handle = <&swphy4>;
 };
@@ -70,8 +73,8 @@
 
        pll-data = <0x00110000 0x00001099 0x00991099>;
 
-       resets = <&rst 12>, <&rst 13>;
-       reset-names = "phy", "mac";
+       resets = <&rst 13>;
+       reset-names = "mac";
 
        phy-mode = "gmii";