ARM: dts: paz00: fix wakeup gpio keycode
authorMarc Dietrich <marvin24@gmx.de>
Thu, 2 Aug 2018 08:45:40 +0000 (10:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:47:38 +0000 (18:47 +0100)
[ Upstream commit ebea2a43fdafdbce918bd7e200b709d6c33b9f3b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/tegra20-paz00.dts

index ef245291924f076d73aec01d5ad0f68db0e92589..4f9b4a889febe80ae8e9a1a5becd253f9caeefc4 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;
                };
        };