]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: paz00: fix wakeup gpio keycode
authorMarc Dietrich <marvin24@gmx.de>
Thu, 2 Aug 2018 08:45:40 +0000 (10:45 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 26 Sep 2018 15:29:41 +0000 (17:29 +0200)
The power key is controlled solely by the EC, which only tiggeres this
gpio after wakeup.
Fixes immediately return to suspend after wake from LP1.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra20-paz00.dts

index 7d8aef6ebd3a0af730ca31f2c7464685140a3b82..8861e0976e3759a0e5c437c086afa0664a1e3fa0 100644 (file)
@@ -524,10 +524,10 @@ clk32k_in: clock@0 {
        gpio-keys {
                compatible = "gpio-keys";
 
-               power {
-                       label = "Power";
+               wakeup {
+                       label = "Wakeup";
                        gpios = <&gpio TEGRA_GPIO(J, 7) GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_POWER>;
+                       linux,code = <KEY_WAKEUP>;
                        wakeup-source;
                };
        };