ramips: mt7621: add IRQ for GPIO node
authorChuanhong Guo <gch981213@gmail.com>
Tue, 25 Jun 2019 15:19:41 +0000 (23:19 +0800)
committerPetr Štetiar <ynezz@true.cz>
Wed, 26 Jun 2019 05:41:54 +0000 (07:41 +0200)
This makes interrupt-based gpio-keys working.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ramips/dts/mt7621.dtsi

index 77841a61d297cf2ccb32429d6bc6d4f7994bce86..4f69e0902e451ba73973583539724cbab895c364 100644 (file)
@@ -76,6 +76,9 @@
                        compatible = "mtk,mt7621-gpio";
                        reg = <0x600 0x100>;
 
+                       interrupt-parent = <&gic>;
+                       interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
+
                        gpio0: bank@0 {
                                reg = <0>;
                                compatible = "mtk,mt7621-gpio-bank";