staging: mt7621-dts: add interrupt device tree nodes for the gpio controller
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 20 May 2018 13:00:22 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:49:32 +0000 (18:49 +0200)
The GPIO controller of mt7621 can receive interrupts on any
of the GPIOs, either edge or level. It then interrupts the CPU using
GIC INT12. Update device tree accordly.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-dts/mt7621.dtsi

index 115eb04e6a98eab64ca7041b5c6cb9b04baae269..240d396bbb8995fc2fdc2bf1aed33ab559c92ce7 100644 (file)
@@ -67,6 +67,9 @@
                        compatible = "mediatek,mt7621-gpio";
                        reg = <0x600 0x100>;
 
+                       interrupt-parent = <&gic>;
+                       interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
+
                        gpio0: bank@0 {
                                reg = <0>;
                                compatible = "mediatek,mt7621-gpio-bank";