]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: timecloud: fix eject button
authorDavid Yang <mmyangfl@gmail.com>
Fri, 1 May 2026 15:26:19 +0000 (23:26 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 29 Jun 2026 07:36:34 +0000 (09:36 +0200)
The 'BTN_0' is actually for safe hard drive removal and activated high.
Fix it.

Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23182
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/ramips/dts/mt7621_thunder_timecloud.dts

index c244612061b89d538531632071dca623e613c328..e8527dd049eedcf19ff79a514892ccf3a41136fe 100644 (file)
                        linux,code = <KEY_RESTART>;
                };
 
-               BTN_0 {
-                       label = "BTN_0";
-                       gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
-                       linux,code = <BTN_0>;
+               eject {
+                       label = "eject";
+                       gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
+                       linux,code = <KEY_EJECTCD>;
                };
        };
 };