apm821xx: MX60: convert to interrupt-driven gpio-key driver
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 31 May 2019 14:29:32 +0000 (16:29 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 2 Jun 2019 09:08:37 +0000 (11:08 +0200)
This patch converts the device to use the gpio-key
over gpio-key-polled driver.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/dts/meraki-mx60.dts

index 638bfe5c16d67d807edb8b20102f3d8a03ecadda..2550d259ab4c29dc1d5f42b75499290392a8823f 100644 (file)
        };
 
        keys {
-               compatible = "gpio-keys-polled";
-               poll-interval = <60>;   /* 3 * 20 = 60ms */
-               autorepeat;
+               compatible = "gpio-keys";
 
                reset {
                        label = "Reset button";
                        linux,code = <KEY_RESTART>;
                        gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
+                       interrupt-parent = <&UIC1>;
+                       interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
                };
        };
 };