diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2019-05-31 16:30:18 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-06-02 11:08:37 +0200 |
commit | 9148cbcb7b00cb51df40b75cb8e134e4e615245b (patch) | |
tree | 5f31a5b7d35efedd8759ff1d2755efe76833efd8 /target/linux/apm821xx | |
parent | b8236e102c6453320000d433517328a2f9840714 (diff) | |
download | upstream-9148cbcb7b00cb51df40b75cb8e134e4e615245b.tar.gz upstream-9148cbcb7b00cb51df40b75cb8e134e4e615245b.tar.bz2 upstream-9148cbcb7b00cb51df40b75cb8e134e4e615245b.zip |
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 <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx')
-rw-r--r-- | target/linux/apm821xx/dts/netgear-wndap6x0.dtsi | 7 |
1 files 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 = <KEY_RESTART>; interrupt-parent = <&UIC1>; interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>; |