aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/dts
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2019-05-26 16:36:10 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-05-31 10:30:03 +0200
commitbd83592fc489cf5cd2bebe735e97abda43de23f0 (patch)
treed34bd6d0b36d949ac9237516736331ec05cd9b6f /target/linux/apm821xx/dts
parentafc056d7dc833bbd714386007db1bfcf48188954 (diff)
downloadupstream-bd83592fc489cf5cd2bebe735e97abda43de23f0.tar.gz
upstream-bd83592fc489cf5cd2bebe735e97abda43de23f0.tar.bz2
upstream-bd83592fc489cf5cd2bebe735e97abda43de23f0.zip
apm821xx: wndr4700: interrupt-driven gpio-keys
This patch fixes the active_low setting and converts all of the physical keys on the wndr4700 to utilize the interrupt-driven gpio-keys driver over the polled version. The sdcard-insertion hack has been removed since the block-subsystem will now be polling the device instead. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/dts')
-rw-r--r--target/linux/apm821xx/dts/netgear-wndr4700.dts20
1 files changed, 6 insertions, 14 deletions
diff --git a/target/linux/apm821xx/dts/netgear-wndr4700.dts b/target/linux/apm821xx/dts/netgear-wndr4700.dts
index 0f1e97a921..24d5c33f90 100644
--- a/target/linux/apm821xx/dts/netgear-wndr4700.dts
+++ b/target/linux/apm821xx/dts/netgear-wndr4700.dts
@@ -307,23 +307,21 @@
};
&POB0 {
+
keys {
- compatible = "gpio-keys-polled";
- #interrupt-cells = <2>;
- autorepeat;
- poll-interval = <60>; /* 3 * 20 = 60ms */
+ compatible = "gpio-keys";
reset {
label = "Reset button";
+ gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
- gpios = <&GPIO0 15 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&UIC1>;
interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
};
backup_hd {
label = "Backup HD button";
- gpios = <&GPIO0 19 GPIO_ACTIVE_HIGH>;
+ gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
interrupt-parent = <&UIC1>;
interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
@@ -331,7 +329,7 @@
rfkill {
label = "RFKILL button";
- gpios = <&GPIO0 20 GPIO_ACTIVE_HIGH>;
+ gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
interrupt-parent = <&UIC1>;
interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
@@ -339,17 +337,11 @@
wps {
label = "WPS button";
- gpios = <&GPIO0 23 GPIO_ACTIVE_HIGH>;
+ gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
interrupt-parent = <&UIC2>;
interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
};
-
- sdcard {
- label = "SDCard inserted";
- gpios = <&GPIO0 7 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_1>;
- };
};
leds {