Hi,
we are using Jetson Xavier NX with JP 4.6.2 attached to Photon Carrier from ConnectTech and camera e-CAM21_CUNX - Sony STARVIS™ IMX327 from Econ Systems.
To put the device in sleep mode we usually use rtcwake -m mem --seconds 86400
. In this case after 24 hours the board is up and running again and in the kern.log we can see following lines.
Jun 5 16:02:13 nvidia-desktop kernel: [13585.672827] Resume caused by WAKE24, max77620-top
Jun 5 16:02:13 nvidia-desktop kernel: [13585.672827] Wake[64:32] status=0x0
Jun 5 16:02:13 nvidia-desktop kernel: [13585.672827] Wake[96:64] status=0x0
Jun 5 16:02:13 nvidia-desktop kernel: [13585.672827] Exited SC7
The reason is WAKE24.
Strange thing for me is that in some cases once the board was in sleep mode it wakes up earlier than expected with reason WAKE29.
Apr 11 13:50:29 tegra-ubuntu kernel: [ 565.783987] Resume caused by WAKE29, power-key
Apr 11 13:50:29 tegra-ubuntu kernel: [ 565.783987] Wake[64:32] status=0x0
Apr 11 13:50:29 tegra-ubuntu kernel: [ 565.783987] Wake[96:64] status=0x0
Apr 11 13:50:29 tegra-ubuntu kernel: [ 565.783987] Exited SC7
I tried to find what is the pin number of WAKE29 and what power-key means.
Pinmux table shows “Customer usage=GPIO3_PEE.04” and “Pin #240”.
I tried to calculate correct GPIO number with following formula
Linux GPIO number = (base + (8 * port) + pin)
Not sure about the base. Here I found it should be 320, but in other place I found it should be 240. Depending on the base value GPIO number should be 284 or 356.
At the same time in kern.log I can see gpio=36
Jun 5 09:28:04 nvidia-desktop kernel: [ 824.155923] gpio tegra-gpio-aon wake29 for gpio=36(EE:4)
Jun 5 09:28:04 nvidia-desktop kernel: [ 824.155925] Enabling wake29
On the carrier board there is no power button. There is only "Rear IO - Button Dual RESET + FLASH Enable Functionality "
I also tried to to wake up the board via usb, but then the reason was WAKE61 or WAKE81.
So my main question is how to reproduce wake up with WAKE29?
kern.log (247.7 KB)