lantiq: update USB controller initialization
[openwrt/staging/florian.git] / target / linux / lantiq / dts / ar9.dtsi
index ba37f135df5fdfdf620ddcd9c827133a74162f74..2638a4b2683be32fe0c604fc614025a858e8a4f2 100644 (file)
@@ -1,14 +1,28 @@
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "lantiq,xway", "lantiq,ar9";
 
+       aliases {
+               serial0 = &asc1;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        cpus {
                cpu@0 {
                        compatible = "mips,mips34K";
                };
        };
 
+       memory@0 {
+               device_type = "memory";
+       };
+
        biu@1F800000 {
                #address-cells = <1>;
                #size-cells = <1>;
@@ -36,7 +50,7 @@
        sram@1F000000 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "lantiq,sram";
+               compatible = "lantiq,sram", "simple-bus";
                reg = <0x1F000000 0x800000>;
                ranges = <0x0 0x1F000000 0x7FFFFF>;
 
@@ -46,7 +60,7 @@
                        compatible = "lantiq,eiu-xway";
                        reg = <0x101000 0x1000>;
                        interrupt-parent = <&icu0>;
-                       interrupts = <166 135 66 40 41 42>;
+                       lantiq,eiu-irqs = <166 135 66 40 41 42>;
                };
 
                pmu0: pmu@102000 {
                        status = "disabled";
                };
 
+               spi: spi@E100800 {
+                       compatible = "lantiq,xrx100-spi";
+                       reg = <0xE100800 0x100>;
+                       interrupt-parent = <&icu0>;
+                       interrupts = <22 23 24>;
+                       interrupt-names = "spi_rx", "spi_tx", "spi_err",
+                                       "spi_frm";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       status = "disabled";
+               };
+
                gpio: pinmux@E100B10 {
-                       compatible = "lantiq,pinctrl-xr9";
+                       compatible = "lantiq,xrx100-pinctrl";
                        #gpio-cells = <2>;
                        gpio-controller;
                        reg = <0xE100B10 0xA0>;
                };
 
                ifxhcd@E101000 {
-                       compatible = "lantiq,ifxhcd-arx100";
+                       compatible = "lantiq,arx100-usb", "lantiq,ifxhcd-arx100";
                        reg = <0xE101000 0x1000
                                0xE120000 0x3f000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <62 91>;
+                       dr_mode = "host";
+                       status = "disabled";
+               };
+
+               ifxhcd@E106000 {
+                       compatible = "lantiq,arx100-usb";
+                       reg = <0xE106000 0x1000
+                               0xE1E0000 0x3f000>;
+                       interrupt-parent = <&icu0>;
+                       interrupts = <91>;
+                       dr_mode = "host";
                        status = "disabled";
                };