ARC: [TB10x] Updates for irqchip driver
authorChristian Ruppert <christian.ruppert@abilis.com>
Wed, 26 Jun 2013 14:01:28 +0000 (16:01 +0200)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 28 Jun 2013 09:37:42 +0000 (15:07 +0530)
Device tree and Kconfig updates for irqchip driver.

Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/abilis_tb100.dtsi
arch/arc/boot/dts/abilis_tb101.dtsi
arch/arc/boot/dts/abilis_tb10x.dtsi
arch/arc/plat-tb10x/Kconfig

index 941ad118a7e748773fa707379f32bb287ee5102f..d9f8249aa66e0033fa95c5c66b04d6e5f8ef641b 100644 (file)
 
 /include/ "abilis_tb10x.dtsi"
 
-/* interrupt specifiers
- * --------------------
- * 0: rising, 1: low, 2: high, 3: falling,
- */
 
 / {
        clock-frequency         = <500000000>;  /* 500 MHZ */
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF140000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF141000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF142000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF143000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF144000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF145000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF146000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF147000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF148000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF149000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14A000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14B000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14C000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14D000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
index fd25c212049ffe90bb8525ca9c522ca63f93a5e4..da8ca7941e6741493dcfa0a71d62961d754571ef 100644 (file)
 
 /include/ "abilis_tb10x.dtsi"
 
-/* interrupt specifiers
- * --------------------
- * 0: rising, 1: low, 2: high, 3: falling,
- */
 
 / {
        clock-frequency         = <500000000>;  /* 500 MHZ */
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF140000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF141000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF142000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF143000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF144000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF145000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF146000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF147000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF148000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF149000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14A000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14B000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14C000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
                        interrupt-controller;
                        #interrupt-cells = <1>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <27 1>;
+                       interrupts = <27 2>;
                        reg = <0xFF14D000 0x1000>;
                        gpio-controller;
                        #gpio-cells = <1>;
index b97e3051ba4bfcd43db2bd66c00df1815a87090b..edf56f4749e13420dcdad51fe25ba58a2ee18ab3 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-/* interrupt specifiers
- * --------------------
- * 0: rising, 1: low, 2: high, 3: falling,
- */
 
 / {
        compatible              = "abilis,arc-tb10x";
@@ -78,7 +74,7 @@
                        #interrupt-cells = <1>;
                };
                tb10x_ictl: pic@fe002000 {
-                       compatible = "abilis,tb10x_ictl";
+                       compatible = "abilis,tb10x-ictl";
                        reg = <0xFE002000 0x20>;
                        interrupt-controller;
                        #interrupt-cells = <2>;
@@ -91,7 +87,7 @@
                        compatible = "snps,dw-apb-uart";
                        reg = <0xFF100000 0x100>;
                        clock-frequency = <166666666>;
-                       interrupts = <25 1>;
+                       interrupts = <25 8>;
                        reg-shift = <2>;
                        reg-io-width = <4>;
                        interrupt-parent = <&tb10x_ictl>;
                        compatible = "snps,dwmac-3.70a","snps,dwmac";
                        reg = <0xFE100000 0x1058>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <6 1>;
+                       interrupts = <6 8>;
                        interrupt-names = "macirq";
                        clocks = <&ahb_clk>;
                        clock-names = "stmmaceth";
                        compatible = "snps,dma-spear1340";
                        reg = <0xFE000000 0x400>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <14 1>;
+                       interrupts = <14 8>;
                        dma-channels = <6>;
                        dma-requests = <0>;
                        dma-masters = <1>;
                        compatible = "snps,designware-i2c";
                        reg = <0xFF120000 0x1000>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <12 1>;
+                       interrupts = <12 8>;
                        clocks = <&ahb_clk>;
                };
                i2c1: i2c@FF121000 {
                        compatible = "snps,designware-i2c";
                        reg = <0xFF121000 0x1000>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <12 1>;
+                       interrupts = <12 8>;
                        clocks = <&ahb_clk>;
                };
                i2c2: i2c@FF122000 {
                        compatible = "snps,designware-i2c";
                        reg = <0xFF122000 0x1000>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <12 1>;
+                       interrupts = <12 8>;
                        clocks = <&ahb_clk>;
                };
                i2c3: i2c@FF123000 {
                        compatible = "snps,designware-i2c";
                        reg = <0xFF123000 0x1000>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <12 1>;
+                       interrupts = <12 8>;
                        clocks = <&ahb_clk>;
                };
                i2c4: i2c@FF124000 {
                        compatible = "snps,designware-i2c";
                        reg = <0xFF124000 0x1000>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <12 1>;
+                       interrupts = <12 8>;
                        clocks = <&ahb_clk>;
                };
 
                        num-cs = <1>;
                        reg = <0xFE010000 0x20>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <26 1>;
+                       interrupts = <26 8>;
                        clocks = <&ahb_clk>;
                };
                spi1: spi@0xFE011000 {
                        num-cs = <2>;
                        reg = <0xFE011000 0x20>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <10 1>;
+                       interrupts = <10 8>;
                        clocks = <&ahb_clk>;
                };
 
                        compatible = "abilis,tb100-tsm";
                        reg = <0xff316000 0x400>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <17 1>;
+                       interrupts = <17 8>;
                        output-clkdiv = <4>;
                        global-packet-delay = <0x21>;
                        port-packet-delay = <0>;
                                        "cpuctrl",
                                        "a6it_int_force";
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <20 1>, <19 1>;
+                       interrupts = <20 2>, <19 2>;
                        interrupt-names = "cmd_irq", "event_irq";
                };
                tb10x_mdsc0: tb10x-mdscr@FF300000 {
                        compatible = "abilis,tb100-wfb";
                        reg = <0xff319000 0x1000>;
                        interrupt-parent = <&tb10x_ictl>;
-                       interrupts = <16 1>;
+                       interrupts = <16 8>;
                };
        };
 };
index 1d3452100f1ff448cd4ed493e7ddf85fde0d9f35..1ab386bb5da895bd4e876b1d78977e684c83f3fe 100644 (file)
@@ -22,6 +22,7 @@ menuconfig ARC_PLAT_TB10X
        select PINCTRL
        select PINMUX
        select ARCH_REQUIRE_GPIOLIB
+       select TB10X_IRQC
        help
          Support for platforms based on the TB10x home media gateway SOC by
          Abilis Systems. TB10x is based on the ARC700 CPU architecture.