I am using L4T 35.5
with Jetson Orin Nano.
We have designed a power button on the custom carrier board using GPIO3 PEE.04.
The power button worked well and I can see interrupts increased by pressing the power button as well as pop-up Power Off
window.
$ sudo cat /proc/interrupts | grep power-key
293: 2 2 0 0 0 0 gpio 27 Edge power-key
But after the system resumes from suspend when power button pressed I can’t get GPIO interrupt and Power Off
window anymore.
The GPIO PEE.04
setting in device tree is following (in Linux_for_Tegra/source/public/hardware/nvidia/platform/t23x/p3768/kernel-dts/cvb/tegra234-p3768-0000-a0.dtsi)
gpio-keys {
compatible = "gpio-keys";
gpio-keys,name = "gpio-keys";
status = "okay";
forcerecovery {
label = "force-recovery";
gpios = <&tegra_main_gpio TEGRA234_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
};
power_key {
label = "power-key";
gpios = <&tegra_aon_gpio TEGRA234_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>;
gpio-key,wakeup;
};
};
How to get the GPIO3 PEE.04 working after resume?
Thanks.