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>
openwrt-19.07
Christian Lamparter 2019-05-31 16:30:18 +02:00
parent b8236e102c
commit 9148cbcb7b
1 changed files with 2 additions and 5 deletions

View File

@ -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>;