lantiq: BTHOMEHUBV5A: don't power off with restart button
authorAlan Swanson <reiver@improbability.net>
Wed, 29 May 2019 10:40:21 +0000 (11:40 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 30 May 2019 09:55:50 +0000 (11:55 +0200)
The restart button is currently assigned to KEY_POWER power script but
an easily accessible button immediately powering off the device is
undesirable. Switch to using new KEY_POWER2 reboot script with 5 second
seen delay.

Fixes: FS#1965
Signed-off-by: Alan Swanson <reiver@improbability.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [long line wrap]
target/linux/lantiq/files-4.14/arch/mips/boot/dts/BTHOMEHUBV5A.dts

index c251fc3fc7a1b77cbf678b06148eaf27181ededa..166eec3419b3a90577f446a61318f7ab0ce61adc 100644 (file)
@@ -48,7 +48,7 @@
                restart {
                        label = "restart";
                        gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_POWER>;
+                       linux,code = <KEY_POWER2>;
                };
        };