brcm63xx: register SPI controllers through DT
[openwrt/staging/noltari.git] / target / linux / brcm63xx / dts / bcm6362.dtsi
index a6a5c1f1d02f08f666a02c422997724406298a78..2085fd53bf6b9d87a808f3f8aaa8637d3ae21713 100644 (file)
@@ -6,6 +6,8 @@
        aliases {
                gpio0 = &gpio0;
                gpio1 = &gpio1;
+               spi0 = &lsspi;
+               spi1 = &hsspi;
        };
 
        cpus {
@@ -40,6 +42,7 @@
                #size-cells = <1>;
                ranges;
                compatible = "simple-bus";
+               interrupt-parent = <&periph_intc>;
 
                ext_intc: interrupt-controller@10000018 {
                        compatible = "brcm,bcm6345-ext-intc";
@@ -48,7 +51,6 @@
                        interrupt-controller;
                        #interrupt-cells = <2>;
 
-                       interrupt-parent = <&periph_intc>;
                        interrupts = <40>, <41>, <42>, <43>;
                };
 
                        interrupt-names = "gpio24", "gpio25",
                                          "gpio26", "gpio27";
                };
+
+               lsspi: spi@10000800 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "brcm,bcm6358-spi";
+                       reg = <0x10000800 0x70c>;
+                       interrupts = <2>;
+                       /* clocks = <&clkctl 15>; */
+               };
+
+               hsspi: spi@10001000 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "brcm,bcm6328-hsspi";
+                       reg = <0x10001000 0x600>;
+                       interrupts = <5>;
+                       /* clocks = <&clkctl 16>; */
+               };
        };
 };