How to configure GPIO02 pin as wake up and Sleep/Wake up pin as sleep in Jetson TX2 NX

Hi ,
I configured sleep/wake and GPIO02 in device tree location : L4T_Sources/r32.6.1/Linux_for_Tegra/source/public/hardware/nvidia/platform/t18x/lanai/kernel-dts/common/tegra186-p3509-0000-cvb.dtsi

I will share the changes I made here …>

Here I configure GPIO(L ,0) as Wake up pin and GPIO(FF ,0) as sleep pin.

As per the use-case ,If I short the sleep pin terminal should be stuck ie,it is going through sleep mode. When I short wake up pin it should come from that sleep mode.
Wake up using GPIO02 can be done ,but sleep can be done only by using "sudo systemctl suspend " command not by using sleep /wake up pin.

ie ,I have to sleep Jetson TX2 NX using sleep/wake up pin and wake up using GPIO02 pin. Both are not happening at the same time

Can someone pls help on this .Should I need to change anything in device Tree?

hello Merry,

please check Jetson TX2 NX Product Design Guide, you may use the Optional Sleep/Wake Button.

Hi Jerry,
Our use case is to sleep Jetson TX2 NX using sleep/wake up pin (pin 240).We cant use another one.

Is there any way to configure sleep Jetson TX2 NX using sleep/wake up pin and wake up using GPIO02 pin ?

hello Merry,

GPIO02 is by default WiFi Module BT Wake AP.
please check Chipset Power States session, there’re some common wake sources available on Jetson platforms.

Hi @JerryChang ,
I checked this but we need to configure sleep Jetson TX2 NX using sleep/wake up pin and wake up using GPIO02 pin according to our Schematics. .

Is that possible?

hello Merry,

why don’t you use the same pin for sleep/wakeup?

Hi @JerryChang ,
Our requirement is to configure sleep Jetson TX2 NX using sleep/wake up pin and wake up using GPIO02 pin .We can’t change it.
Is there any option to configure like this

hello Merry,

it looks like follow-up, Topic 192744.

please also see [Figure 10-1. Audio Connections] in Jetson TX2 NX Product Design Guide,
there’s a note,

The Interrupt pin from the audio codec can connect to any available Jetson TX2 NX GPIO. If the pin must be wake-capable, choose one of the GPIOs that supports this function.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.