]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: mt7622: add EINT support to pinctrl
authorSean Wang <sean.wang@mediatek.com>
Sun, 20 May 2018 17:01:53 +0000 (01:01 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 25 Jun 2018 15:01:51 +0000 (17:01 +0200)
Add EINT support to pinctrl and set those GPIO keys as interrupt-driven
keys.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
arch/arm64/boot/dts/mediatek/mt7622.dtsi

index b7837642c33a8b6aae187b8c6df2dc71c9994edb..1ff003ec29c8ea9eea50f26180f76fe174dd2d74 100644 (file)
@@ -34,7 +34,7 @@ cpu@1 {
        };
 
        gpio-keys {
-               compatible = "gpio-keys-polled";
+               compatible = "gpio-keys";
                poll-interval = <100>;
 
                factory {
index 9213c966c2242ee6c8a14d270ffeb4712533f54f..e2c5450f7c8707cac94acb185732ddf2fc48aa08 100644 (file)
@@ -286,9 +286,15 @@ rng: rng@1020f000 {
 
        pio: pinctrl@10211000 {
                compatible = "mediatek,mt7622-pinctrl";
-               reg = <0 0x10211000 0 0x1000>;
+               reg = <0 0x10211000 0 0x1000>,
+                     <0 0x10005000 0 0x1000>;
+               reg-names = "base", "eint";
                gpio-controller;
                #gpio-cells = <2>;
+               interrupt-controller;
+               interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-parent = <&gic>;
+               #interrupt-cells = <2>;
        };
 
        watchdog: watchdog@10212000 {