[openwrt/openwrt] ramips: fix button definitions for Zyxel WSM20

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 10 10:09:25 PDT 2023


chunkeey pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/df34f71be4aeb849461997f6de70124cfe778604

commit df34f71be4aeb849461997f6de70124cfe778604
Author: Thomas Schröder <tschroeder_github at outlook.com>
AuthorDate: Fri Jun 9 12:03:31 2023 +0200

    ramips: fix button definitions for Zyxel WSM20
    
    Setting the events of the WPS and LED buttons to
    the best matching values based from the documentation:
    <https://openwrt.org/docs/guide-user/hardware/hardware.button#procd_buttons>
    
    Signed-off-by: Thomas Schröder <tschroeder_github at outlook.com>
    (cherry picked from commit b0120f7c8bb35088f298f00eb4a630f62fb4183f)
---
 target/linux/ramips/dts/mt7621_zyxel_wsm20.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts b/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts
index 315e2e1d79..299d982dc1 100644
--- a/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts
+++ b/target/linux/ramips/dts/mt7621_zyxel_wsm20.dts
@@ -66,7 +66,7 @@
 		led {
 			label = "led";
 			gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
-			linux,code = <BTN_0>;
+			linux,code = <KEY_LIGHTS_TOGGLE>;
 		};
 
 		reset {
@@ -78,7 +78,7 @@
 		wps {
 			label = "wps";
 			gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
-			linux,code = <KEY_WLAN>;
+			linux,code = <KEY_WPS_BUTTON>;
 		};
 	};
 };




More information about the lede-commits mailing list