From: Christian Lamparter Date: Fri, 31 May 2019 14:30:18 +0000 (+0200) Subject: apm821xx: WNDAP6X0: convert to interrupt-driven gpio-key driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9148cbcb7b00cb51df40b75cb8e134e4e615245b;p=openwrt%2Fstaging%2Fneocturne.git 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 --- 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>;