From 9148cbcb7b00cb51df40b75cb8e134e4e615245b Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Fri, 31 May 2019 16:30:18 +0200 Subject: [PATCH] apm821xx: WNDAP6X0: convert to interrupt-driven gpio-key driver This patch converts the device to use the gpio-key over gpio-key-polled driver. Signed-off-by: Christian Lamparter --- target/linux/apm821xx/dts/netgear-wndap6x0.dtsi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi b/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi index d591070368..c39f4ad83b 100644 --- a/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi +++ b/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi @@ -123,14 +123,11 @@ &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 = ; interrupt-parent = <&UIC1>; interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;