ath79: ag71xx: apply interface mode to MII0/1_CTRL on ar71xx/ar913x
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9132.dtsi
index 7a7a5f1b3d804e15bb862c1cf6bdfdd984d61f98..226499427980d1c07ea903055ab8d30a83aa438a 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <dt-bindings/clock/ath79-clk.h>
+#include "ath79.dtsi"
 
 / {
        compatible = "qca,ar9132";
@@ -7,6 +8,10 @@
        #address-cells = <1>;
        #size-cells = <1>;
 
+       chosen {
+               bootargs = "console=ttyS0,115200";
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
@@ -88,7 +93,7 @@
 
                        pll: pll-controller@18050000 {
                                compatible = "qca,ar9132-pll",
-                                               "qca,ar9130-pll";
+                                               "qca,ar9130-pll", "syscon";
                                reg = <0x18050000 0x20>;
 
                                clock-names = "ref";
                        #address-cells = <1>;
                        #size-cells = <0>;
                };
+
+               wmac: wmac@180c0000 {
+                       compatible = "qca,ar9130-wmac";
+                       reg = <0x180c0000 0x230000>;
+
+                       interrupts = <2>;
+
+                       status = "disabled";
+               };
        };
 
        usb_phy: usb-phy {
                status = "disabled";
        };
 };
+
+&eth0 {
+       compatible = "qca,ar9130-eth", "syscon";
+       reg = <0x19000000 0x200
+               0x18070000 0x4>;
+       pll-data = <0x1a000000 0x13000a44 0x00441099>;
+       pll-reg = <0x4 0x14 20>;
+       pll-handle = <&pll>;
+       resets = <&rst 9>;
+       reset-names = "mac";
+       qca,mac-idx = <0>;
+};