lantiq: BTHOMEHUBV5A - use the power event code for the restart button
authorMathias Kresin <dev@kresin.me>
Sun, 19 Jun 2016 14:34:47 +0000 (16:34 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 20 Jun 2016 09:45:44 +0000 (11:45 +0200)
The restart event code is used in LEDE to trigger a factory reset on
long press as well.

By using the power event code, the restart functionality can be used
without being prone to trigger a factory reset.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/dts/BTHOMEHUBV5A.dts

index e62a18d9dc4c930760ed70d9264d10caa4c40dd1..2013b31063836becbed41bcfd5ca783414d49898 100644 (file)
                restart {
                        label = "restart";
                        gpios = <&gpio 39 1>;
-                       linux,code = <0x198>;
+                       linux,code = <0x74>;
                };
        };