generic: ar8216: fix unknown packet flooding for ar8229/ar8236
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7242.dtsi
index a5909a9b31500fa6fa7b926aa1a9b2c9d4a99cf1..be28ae783859981080281fc1e2ba14af08ee22cf 100644 (file)
        pll-reg = <0x4 0x2c 17>;
        pll-handle = <&pll>;
 
-       resets = <&rst 8>, <&rst 9>;
-       reset-names = "mac", "phy";
+       resets = <&rst 9>;
+       reset-names = "mac";
 };
 
 &mdio1 {
        resets = <&rst 23>;
        reset-names = "mdio";
        builtin-switch;
+
+       builtin_switch: switch0@1f {
+               compatible = "qca,ar7240sw";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x1f>;
+               resets = <&rst 8>;
+               reset-names = "switch";
+               qca,mib-poll-interval = <500>;
+       };
 };
 
 &eth1 {
        compatible = "qca,ar7242-eth", "syscon";
 
-       resets = <&rst 12>, <&rst 13>;
-       reset-names = "mac", "phy";
+       resets = <&rst 13>;
+       reset-names = "mac";
+
+       phy-mode = "gmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };