ramips: fix button definitions for Zyxel WSM20
authorThomas Schröder <tschroeder_github@outlook.com>
Fri, 9 Jun 2023 10:03:31 +0000 (12:03 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 9 Jun 2023 20:28:45 +0000 (22:28 +0200)
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>
target/linux/ramips/dts/mt7621_zyxel_wsm20.dts

index 315e2e1d79709c4240e9cb8c782cf0eb8b22fe71..299d982dc1179550407521a98f489a5c0d757e56 100644 (file)
@@ -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>;
                };
        };
 };