aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorThomas Schröder <tschroeder_github@outlook.com>2023-06-09 12:03:31 +0200
committerChristian Lamparter <chunkeey@gmail.com>2023-06-10 19:06:15 +0200
commitdf34f71be4aeb849461997f6de70124cfe778604 (patch)
tree283c01f93fa86c80afa6e69a23a853e04ab9b860 /target/linux/ramips
parentbc7362fbcefaf644d2abb131a4fdd25a51f0b421 (diff)
downloadupstream-df34f71be4aeb849461997f6de70124cfe778604.tar.gz
upstream-df34f71be4aeb849461997f6de70124cfe778604.tar.bz2
upstream-df34f71be4aeb849461997f6de70124cfe778604.zip
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@outlook.com> (cherry picked from commit b0120f7c8bb35088f298f00eb4a630f62fb4183f)
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621_zyxel_wsm20.dts4
1 files 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>;
};
};
};