[OpenWrt-Devel] [PATCH 7/7] ath79: WNR2000v3: change WPS button to interrupt-driven GPIO key
Michal Cieslakiewicz
michal.cieslakiewicz at wp.pl
Tue Aug 6 07:02:34 EDT 2019
WNR2000v3 has one button (WPS) connected to AR7241 GPIO directly.
This patch changes its servicing method from polling to IRQ.
All other buttons, connected to wireless chip GPIO pins, remain polled.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz at wp.pl>
---
target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts b/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
index 57260ffd1e..6ab32d3188 100644
--- a/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
+++ b/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
@@ -22,8 +22,7 @@
};
keys {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
+ compatible = "gpio-keys";
wps {
label = "wps";
@@ -31,6 +30,11 @@
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
+ };
+
+ ath9k-keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <20>;
reset {
label = "reset";
--
2.22.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list