]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: free restore button of XS1930 switches
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 17 May 2026 22:07:52 +0000 (22:07 +0000)
committerRobert Marko <robimarko@gmail.com>
Thu, 21 May 2026 10:08:41 +0000 (12:08 +0200)
The support addition for those switches defined the restore button as a
button to trigger a restart. However, those switches also have a reset
button which is wired to the SoC's reset line, causing a reset upon
pressing. Thus, using the restore button for basically the same purpose
doesn't make sense. Change the 'linux,code' property to 'BTN_0' to
assign no real function to that button, allowing it to be used for
different purposes.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23428
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl9313_zyxel_xs1930.dtsi

index ef8c70f26d2bf40ebbe3948c394fd027a94e8175..2523740f632da44d927e5a3d63919e059c4afb48 100644 (file)
@@ -32,7 +32,7 @@
                key-restore {
                        label = "restore";
                        gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <BTN_0>;
                };
        };