]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: tegra: Remove the Orin NX/Nano suspend key
authorNinad Malwade <nmalwade@nvidia.com>
Thu, 6 Feb 2025 22:40:34 +0000 (22:40 +0000)
committerThierry Reding <treding@nvidia.com>
Fri, 7 Mar 2025 17:38:28 +0000 (18:38 +0100)
As per the Orin Nano Dev Kit schematic, GPIO_G.02 is not available
on this device family. It should not be used at all on Orin NX/Nano.
Having this unused pin mapped as the suspend key can lead to
unpredictable behavior for low power modes.

Orin NX/Nano uses GPIO_EE.04 as both a "power" button and a "suspend"
button. However, we cannot have two gpio-keys mapped to the same
GPIO. Therefore remove the "suspend" key.

Cc: stable@vger.kernel.org
Fixes: e63472eda5ea ("arm64: tegra: Support Jetson Orin NX reference platform")
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Signed-off-by: Ivy Huang <yijuh@nvidia.com>
Link: https://lore.kernel.org/r/20250206224034.3691397-1-yijuh@nvidia.com
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi

index 19340d13f789f07ed98d32a7b5683a2ee98b6fce..41821354bbdae6dcc26faa42c3b13281927a7ed9 100644 (file)
                        wakeup-event-action = <EV_ACT_ASSERTED>;
                        wakeup-source;
                };
-
-               key-suspend {
-                       label = "Suspend";
-                       gpios = <&gpio TEGRA234_MAIN_GPIO(G, 2) GPIO_ACTIVE_LOW>;
-                       linux,input-type = <EV_KEY>;
-                       linux,code = <KEY_SLEEP>;
-               };
        };
 
        fan: pwm-fan {