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.cieslakiew...@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@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to