ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / ar934x.dtsi
index 831854b89bd0b48ff18f38918d3b6264a054bc07..0451960a60a4e69ab384f4a256c1c02445607f9d 100644 (file)
@@ -38,7 +38,7 @@
                };
        };
 
-       ahb {
+       ahb: ahb {
                compatible = "simple-bus";
                ranges;
 
                                #reset-cells = <1>;
                        };
 
-                       gmac: gmac@18070000 {
-                               compatible = "qca,ar9340-gmac";
-                               reg = <0x18070000 0x14>;
-                       };
+                       hs_uart: uart@18500000 {
+                               compatible = "qca,ar9330-uart";
+                               reg = <0x18500000 0x14>;
+
+                               interrupts = <6>;
+                               interrupt-parent = <&miscintc>;
 
-                       wmac: wmac@18100000 {
-                               compatible = "qca,ar9340-wmac";
-                               reg = <0x18100000 0x20000>;
+                               clocks = <&pll ATH79_CLK_UART1>;
+                               clock-names = "uart";
 
                                status = "disabled";
                        };
                };
 
+               nand: nand@1b000200 {
+                       compatible = "qca,ar934x-nand";
+                       reg = <0x1b000200 0xb8>;
+
+                       interrupts = <21>;
+                       interrupt-parent = <&miscintc>;
+
+                       resets = <&rst 14>;
+                       reset-names = "nand";
+
+                       nand-ecc-mode = "hw";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       status = "disabled";
+               };
+
+               gmac: gmac@18070000 {
+                       compatible = "qca,ar9340-gmac";
+                       reg = <0x18070000 0x14>;
+               };
+
+               wmac: wmac@18100000 {
+                       compatible = "qca,ar9340-wmac";
+                       reg = <0x18100000 0x20000>;
+
+                       status = "disabled";
+               };
+
                usb: usb@1b000000 {
                        compatible = "generic-ehci";
                        reg = <0x1b000000 0x1d8>;
                };
 
                spi: spi@1f000000 {
-                       compatible = "qca,ar9340-spi", "qca,ar7100-spi";
+                       compatible = "qca,ar934x-spi";
                        reg = <0x1f000000 0x1c>;
 
                        clocks = <&pll ATH79_CLK_AHB>;
-                       clock-names = "ahb";
 
                        #address-cells = <1>;
                        #size-cells = <0>;
        usb_phy: usb-phy {
                compatible = "qca,ar9340-usb-phy", "qca,ar7200-usb-phy";
 
-               reset-names = "usb-phy", "usb-suspend-override";
-               resets = <&rst 4>, <&rst 3>;
+               reset-names = "usb-phy-analog", "usb-phy", "usb-suspend-override";
+               resets = <&rst 11>, <&rst 4>, <&rst 3>;
 
                #phy-cells = <0>;
 
        pll-handle = <&pll>;
        resets = <&rst 9>, <&rst 22>;
        reset-names = "mac", "mdio";
+       clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
+       clock-names = "eth", "mdio";
 };
 
 &mdio1 {
 &eth1 {
        compatible = "qca,ar9340-eth", "syscon";
 
-       resets = <&rst 13>;
-       reset-names = "mac";
+       resets = <&rst 13>, <&rst 23>;
+       reset-names = "mac", "mdio";
+       clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
+       clock-names = "eth", "mdio";
        phy-mode = "gmii";
 
        fixed-link {