ath79: fix MAC address setup for TP-Link TL-WDR3600/TL-WDR4300
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9330.dtsi
index 65445de1f1618e8f97f9854ec18e5be40bd40a51..64c135405b978e3c06eae65a0b62e93b3a73907f 100644 (file)
@@ -74,8 +74,8 @@
                                        pinctrl-single,bits = <0x0 0x1 0x1>;
                                };
 
-                               switch_led_pins: pinmux_switch_led_pins {
-                                       pinctrl-single,bits = <0x0 0x1f 0xf8>;
+                               switch_led_disable_pins: pinmux_switch_led_disable_pins {
+                                       pinctrl-single,bits = <0x0 0x0 0xf8>;
                                };
                        };
 
                                #clock-cells = <1>;
                        };
 
+                       wdt: wdt@18060008 {
+                               compatible = "qca,ar7130-wdt";
+                               reg = <0x18060008 0x8>;
+
+                               interrupts = <4>;
+
+                               clocks = <&pll ATH79_CLK_AHB>;
+                               clock-names = "wdt";
+                       };
+
                        rst: reset-controller@1806001c {
                                compatible = "qca,ar7100-reset";
                                reg = <0x1806001c 0x4>;
 
        resets = <&rst 9>;
        reset-names = "mac";
-};
-
-&mdio0 {
-       regmap = <&eth1>;
-       builtin-switch;
-       resets = <&rst 23>;
-       reset-names = "mdio";
+       phy-mode = "mii";
+       phy-handle = <&swphy4>;
 };
 
 &mdio1 {
+       status = "okay";
+       compatible = "qca,ar9330-mdio";
+
        resets = <&rst 23>;
        reset-names = "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";
+                       };
+               };
+       };
 };
 
 &eth1 {
 
        resets = <&rst 13>;
        reset-names = "mac";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };