GPIO wake up nano issues

Hello,
I am trying wake up nano from “mem” suspend.
I use GPIO X5 to wake up it.
So I amend dts as flallow:
{
gpio-keys {
compatible = “gpio-keys”;
gpio-keys,name = “gpio-keys”;
status = “okay”;
disable-on-recovery-kernel;

	power {
		label = "Power";
		gpios = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_LOW>;
		linux,code = <KEY_POWER>;
		gpio-key,wakeup;
		debounce-interval = <30>;
		nvidia,pmc-wakeup = <&tegra_pmc
			PMC_WAKE_TYPE_GPIO 24 PMC_TRIGGER_TYPE_NONE>;
	};

	forcerecovery {
		label = "Forcerecovery";
		gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_LOW>;
		linux,code = <KEY_POWER>;
		gpio-key,wakeup;
		debounce-interval = <30>;
	};
};

I can see the key value reported by evtest tool
the key can’t wake up nano .But USB can wake nano.

hello albert008,

may I know which Jetpack release you’re working with, did issue only happened with s/w shutdown?
please also check documentation, Power Management for Jetson Nano and Jetson TX1 Devices for reference.
thanks

The same issue happen on Pin S5.How can I fix the bug?

hello albert008,

you should use GPIO3_PX.05, since it’s by default for power-on usage.
please check the description in pinmux spreadsheets, you may configured as GPIO for optional use to indicate the system should enter or exit sleep mode.
thanks