ARM: dts: aspeed: Add #interrupt-cells property to gpio controllers

Message ID 20181214120423.3363-1-mark.walton@serialtek.com
State Accepted, archived
Headers show
Series
  • ARM: dts: aspeed: Add #interrupt-cells property to gpio controllers
Related show

Commit Message

Mark Walton Dec. 14, 2018, 12:07 p.m.
Allows the GPIO controller to be used as an interrupt parent.

of_irq_find_parent() skips interrupt controller nodes that do
not have the #interrupt-cells property.

Signed-off-by: Mark Walton <mark.walton@serialtek.com>
---
 arch/arm/boot/dts/aspeed-g4.dtsi | 1 +
 arch/arm/boot/dts/aspeed-g5.dtsi | 1 +
 2 files changed, 2 insertions(+)

Comments

Joel Stanley Jan. 17, 2019, 2:16 a.m. | #1
On Fri, 14 Dec 2018 at 23:07, Mark Walton <mark.walton@serialtek.com> wrote:
>
> Allows the GPIO controller to be used as an interrupt parent.
>
> of_irq_find_parent() skips interrupt controller nodes that do
> not have the #interrupt-cells property.
>
> Signed-off-by: Mark Walton <mark.walton@serialtek.com>

Thanks, applied to the aspeed tree for 5.1.

Cheers,

Joel

Patch

diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi
index 69f6b9d2e7e7..9549f867aa1e 100644
--- a/arch/arm/boot/dts/aspeed-g4.dtsi
+++ b/arch/arm/boot/dts/aspeed-g4.dtsi
@@ -197,6 +197,7 @@ 
 				gpio-ranges = <&pinctrl 0 0 220>;
 				clocks = <&syscon ASPEED_CLK_APB>;
 				interrupt-controller;
+				#interrupt-cells = <2>;
 			};
 
 			timer: timer@1e782000 {
diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi
index d107459fc0f8..a1999f3fe330 100644
--- a/arch/arm/boot/dts/aspeed-g5.dtsi
+++ b/arch/arm/boot/dts/aspeed-g5.dtsi
@@ -250,6 +250,7 @@ 
 				gpio-ranges = <&pinctrl 0 0 220>;
 				clocks = <&syscon ASPEED_CLK_APB>;
 				interrupt-controller;
+				#interrupt-cells = <2>;
 			};
 
 			timer: timer@1e782000 {