Commit 81e96655 authored by Nishanth Menon's avatar Nishanth Menon Committed by Greg Kroah-Hartman

ARM: dts: DRA7: fix interrupt-cells for GPIO

commit e49d519c upstream.

GPIO modules are also interrupt sources. However, they require both the
GPIO number and IRQ type to function properly.

By declaring that GPIO uses interrupt-cells=<1>, we essentially do not
allow users of the nodes to use the interrupt property appropritely.

With this change, the following now works:

interrupt-parent = <&gpio6>;
interrupts = <5 IRQ_TYPE_LEVEL_LOW>;

Fixes: 6e58b8f1 ('ARM: dts: DRA7: Add the dts files for dra7 SoC and dra7-evm board')
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2f2b0f4d
...@@ -172,7 +172,7 @@ gpio1: gpio@4ae10000 { ...@@ -172,7 +172,7 @@ gpio1: gpio@4ae10000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
gpio2: gpio@48055000 { gpio2: gpio@48055000 {
...@@ -183,7 +183,7 @@ gpio2: gpio@48055000 { ...@@ -183,7 +183,7 @@ gpio2: gpio@48055000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
gpio3: gpio@48057000 { gpio3: gpio@48057000 {
...@@ -194,7 +194,7 @@ gpio3: gpio@48057000 { ...@@ -194,7 +194,7 @@ gpio3: gpio@48057000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
gpio4: gpio@48059000 { gpio4: gpio@48059000 {
...@@ -205,7 +205,7 @@ gpio4: gpio@48059000 { ...@@ -205,7 +205,7 @@ gpio4: gpio@48059000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
gpio5: gpio@4805b000 { gpio5: gpio@4805b000 {
...@@ -216,7 +216,7 @@ gpio5: gpio@4805b000 { ...@@ -216,7 +216,7 @@ gpio5: gpio@4805b000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
gpio6: gpio@4805d000 { gpio6: gpio@4805d000 {
...@@ -227,7 +227,7 @@ gpio6: gpio@4805d000 { ...@@ -227,7 +227,7 @@ gpio6: gpio@4805d000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
gpio7: gpio@48051000 { gpio7: gpio@48051000 {
...@@ -238,7 +238,7 @@ gpio7: gpio@48051000 { ...@@ -238,7 +238,7 @@ gpio7: gpio@48051000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
gpio8: gpio@48053000 { gpio8: gpio@48053000 {
...@@ -249,7 +249,7 @@ gpio8: gpio@48053000 { ...@@ -249,7 +249,7 @@ gpio8: gpio@48053000 {
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <2>;
}; };
uart1: serial@4806a000 { uart1: serial@4806a000 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment