]> git.itanic.dy.fi Git - linux-stable/commitdiff
ARM: dts: ixp4xx: Use right restart keycode
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 8 Sep 2023 10:49:49 +0000 (12:49 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Oct 2023 20:29:42 +0000 (22:29 +0200)
The "reset" key on a few IXP4xx routers were sending KEY_ESC
but what we want to send is KEY_RESTART which will make
OpenWrt and similar userspace do a controlled reboot.

Link: https://lore.kernel.org/r/20230908-ixp4xx-dts-v1-2-98d36264ed6d@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/intel/ixp/intel-ixp42x-dlink-dsm-g600.dts
arch/arm/boot/dts/intel/ixp/intel-ixp42x-freecom-fsg-3.dts
arch/arm/boot/dts/intel/ixp/intel-ixp42x-iomega-nas100d.dts
arch/arm/boot/dts/intel/ixp/intel-ixp42x-linksys-nslu2.dts

index b9d46eb065078936c1deb43cc6fab0217b526e81..fa133c913606c43ad2e0fa223d1cd77abf2263b8 100644 (file)
@@ -57,7 +57,7 @@ gpio_keys {
 
                button-reset {
                        wakeup-source;
-                       linux,code = <KEY_ESC>;
+                       linux,code = <KEY_RESTART>;
                        label = "reset";
                        gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
                };
index 5a5e16cc7335efa595980d51581cd634385345c8..73d3c11dd0d4c238a52b367bd82b1898494a590c 100644 (file)
@@ -44,7 +44,7 @@ button-sync {
                };
                button-reset {
                        wakeup-source;
-                       linux,code = <KEY_ESC>;
+                       linux,code = <KEY_RESTART>;
                        label = "reset";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 8da6823e1dbe677df2289ff8774d2d06f8f52192..26f02dad6a54e15ed1ed23d28ae89c1b99a2b16f 100644 (file)
@@ -63,7 +63,7 @@ button-power {
                };
                button-reset {
                        wakeup-source;
-                       linux,code = <KEY_ESC>;
+                       linux,code = <KEY_RESTART>;
                        label = "reset";
                        gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
                };
index 706ba531faf0c59519479043966df1601a1e7196..2eec5f63d3995d1af2f24bde3fffc0b248d99c4b 100644 (file)
@@ -65,7 +65,7 @@ button-power {
                };
                button-reset {
                        wakeup-source;
-                       linux,code = <KEY_ESC>;
+                       linux,code = <KEY_RESTART>;
                        label = "reset";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };