Hello Team,
We are trying to implement Sleep and Wakeup on our custom board, we are trying to use MCU GPIO for waking up the device from Sleep (Suspend-to-RAM (Deep Sleep)).
We have connected MCU_GPIO0_16 to an external switch on our board and we are using this to generate interrupt on device while in Deep Sleep. When we press the switch we get high to low signal on the MCU_GPIO but we observe that the device is not waking up from sleep.
- We tried keeping the status of mcu_gpio0 node as both 'okay' and 'reserved' in device tree. but we did not get any success in waking the device from sleep
- And also not getting signal low on Deep Sleep on pin PMIC_LPM_EN0 (B7). It's staying high only.
- Also devmem2 0x04084040 b 0x28254007 not setting-up the value. (logs given below)
while we check on EVM, with same steps, device waking up and getting low signal on PMIC_LPM_EN0 pin also.
referring this link : https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1261500/am623-gpio-wake-up-time-from-linux-suspend-to-ram
Logs given below.
root@sm2s-am6254:~# devmem2 0x04084040 b 0x28254007 /dev/mem opened. Memory mapped at address 0xffffa82a6000. Read at address 0x04084040 (0xffffa82a6010): 0x07 Write at address 0x04084040 (0xffffa82a6010): 0x28254007, readback 0x07 root@sm2s-am6254:~# root@sm2s-am6254:~# root@sm2s-am6254:~# root@sm2s-am6254:~# devmem2 0x04084040 /dev/mem opened. Memory mapped at address 0xffffa6745000. Read at address 0x04084040 (0xffffa6745010): 0x08214007 root@sm2s-am6254:~# root@sm2s-am6254:~# devmem2 0x43018080 b 0x15 /dev/mem opened. Memory mapped at address 0xffffaae96000. Read at address 0x43018080 (0xffffaae96080): 0x10 Write at address 0x43018080 (0xffffaae96080): 0x15, readback 0x15 root@sm2s-am6254:~# echo mem > /sys/power/state [ 531.994747] PM: suspend entry (deep) [ 532.001363] Filesystems sync: 0.002 seconds [ 532.025424] remoteproc remoteproc0: stopped remote processor 5000000.m4fss [ 532.032817] Freezing user space processes [ 532.038867] Freezing user space processes completed (elapsed 0.001 seconds) [ 532.045903] OOM killer disabled. [ 532.049123] Freezing remaining freezable tasks [ 532.055045] Freezing remaining freezable tasks completed (elapsed 0.001 seconds) [ 532.062456] printk: Suspending console(s) (use no_console_suspend to debug)
Can you guide us how to wake up the device and let us know if any other changes need to be done for same.
Thanks and regards,
Ishan