[openwrt/openwrt] ath79: fix button types for WZR-HP-AG300H and WZR-600DHP

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 16 11:43:33 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/947bfc62d003ea54c13470ee6bbc9f20827592b0

commit 947bfc62d003ea54c13470ee6bbc9f20827592b0
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Wed Sep 16 17:34:35 2020 +0200

    ath79: fix button types for WZR-HP-AG300H and WZR-600DHP
    
    Router and Movie "keys" are actually switches for both devices
    according to the manual. This has been properly implemented in ar71xx,
    but overlooked when porting to ath79.
    
    Fixes: 480bf2827392 ("ath79: add support for Buffalo WZR-HP-AG300H")
    
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi b/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi
index c0040b4bbe..d369a4d937 100644
--- a/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi
+++ b/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi
@@ -94,18 +94,21 @@
 
 		router_auto {
 			linux,code = <BTN_6>;
+			linux,input-type = <EV_SW>;
 			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
 			debounce-interval = <60>;
 		};
 
 		router_off {
 			linux,code = <BTN_5>;
+			linux,input-type = <EV_SW>;
 			gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
 			debounce-interval = <60>;
 		};
 
 		movie_engine {
 			linux,code = <BTN_7>;
+			linux,input-type = <EV_SW>;
 			gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
 			debounce-interval = <60>;
 		};



More information about the lede-commits mailing list