Skip to content

Commit

Permalink
apm821xx: WNDAP6X0: convert to interrupt-driven gpio-key driver
Browse files Browse the repository at this point in the history
This patch converts the device to use the gpio-key
over gpio-key-polled driver.

Signed-off-by: Christian Lamparter <[email protected]>
  • Loading branch information
chunkeey committed Jun 2, 2019
1 parent b8236e1 commit 9148cbc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions target/linux/apm821xx/dts/netgear-wndap6x0.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down

0 comments on commit 9148cbc

Please sign in to comment.