apm821xx: WNDAP6X0: convert to interrupt-driven gpio-key driver
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 31 May 2019 14:30:18 +0000 (16:30 +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/netgear-wndap6x0.dtsi

index d591070368b5a235a1bdc2dbd3389e6723cc389e..c39f4ad83b0aeb713815a5276c2697431e2aaa86 100644 (file)
 
 &POB0 {
        keys {
-               compatible = "gpio-keys-polled";
-               #interrupt-cells = <2>;
-               poll-interval = <60>;   /* 3 * 20 = 60ms */
-               autorepeat;
+               compatible = "gpio-keys";
 
                reset {
                        label = "Reset Button";
-                       gpios = <&GPIO0 16 GPIO_ACTIVE_HIGH>;
+                       gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                        interrupt-parent = <&UIC1>;
                        interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;