ramips: yuncore_g720: fix buttons
authorDaniel Golle <daniel@makrotopia.org>
Tue, 25 Jun 2024 19:40:59 +0000 (20:40 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 25 Jun 2024 19:42:54 +0000 (20:42 +0100)
Turns out the device got two buttons, while the currently listed on is
actually WPS, and the other (will hidden) button is intended as RESET.
Update DT accordingly.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/ramips/dts/mt7621_yuncore_g720.dts

index 2170bc83ec17e35be20dcfe6b50f6676fbf2392c..e5a484d469e3bf70a36d07e44304079b408e177e 100644 (file)
        keys {
                compatible = "gpio-keys";
 
+               wps {
+                       label = "wps";
+                       gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
+               };
+
                reset {
                        label = "reset";
-                       gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };