generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7240.dtsi
index 6805d1a786ffeebf9d241cded07dd5b9d864eb19..5382a710f941e832f48b5db7ac172b844159ff80 100644 (file)
 };
 
 &mdio0 {
+       status = "okay";
+
+       compatible = "qca,ar7240-mdio";
        builtin-switch;
+
+       builtin_switch: switch0@1f {
+               compatible = "qca,ar7240sw";
+
+               reg = <0x1f>;
+               resets = <&rst 8>;
+               reset-names = "switch";
+               qca,mib-poll-interval = <500>;
+
+               mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       swphy4: ethernet-phy@4 {
+                               reg = <4>;
+                               phy-mode = "mii";
+                       };
+               };
+       };
 };
 
 &eth0 {
 
        pll-data = <0x00110000 0x00001099 0x00991099>;
 
-       resets = <&rst 8>, <&rst 9>;
-       reset-names = "phy", "mac";
-};
-
-&mdio1 {
-       builtin-switch;
+       resets = <&rst 9>;
+       reset-names = "mac";
+       phy-handle = <&swphy4>;
 };
 
 &eth1 {
@@ -54,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";