aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-11-12 14:27:23 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-02-05 13:53:50 +0100
commit36be6003c59bea12864fd0eb31a9571ae8c06dff (patch)
tree125d595982e04c8f427a60738d929f68ed7e5fe7
parenteff03d24104d5d75e24effa9f192b13f48f30f35 (diff)
downloadlinux-stericsson-36be6003c59bea12864fd0eb31a9571ae8c06dff.tar.gz
ARM: ux500: assign IRQs for AB8500 GPIO in the DTabx500-spawn-gpio-irqchip
The device tree passes interrupts to the sub-functions of the MFD device. Do this also for the GPIO parts. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/boot/dts/ste-dbx5x0.dtsi51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi
index 50f5e9d09203..a91eaf4d6014 100644
--- a/arch/arm/boot/dts/ste-dbx5x0.dtsi
+++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi
@@ -621,8 +621,59 @@
#interrupt-cells = <2>;
ab8500_gpio: ab8500-gpio {
+ compatible = "stericsson,ab8500-gpio";
gpio-controller;
#gpio-cells = <2>;
+ /*
+ * The AB8500 has 16 GPIOs on randomly named/numbered GPIO pins
+ * 6 thru 13, 24, 25, 36 thru 41 totalling 16 pins, then one
+ * bit is used for rising and one for falling edge so we end
+ * up with 32 interrupts.
+ */
+ interrupts = <40 IRQ_TYPE_LEVEL_HIGH
+ 41 IRQ_TYPE_LEVEL_HIGH
+ 42 IRQ_TYPE_LEVEL_HIGH
+ 43 IRQ_TYPE_LEVEL_HIGH
+ 44 IRQ_TYPE_LEVEL_HIGH
+ 45 IRQ_TYPE_LEVEL_HIGH
+ 46 IRQ_TYPE_LEVEL_HIGH
+ 47 IRQ_TYPE_LEVEL_HIGH
+ 48 IRQ_TYPE_LEVEL_HIGH
+ 49 IRQ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