This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Linux
Hi TI Team,
We are able to put the system in standby and wake-up with UART and USB interrupt sources.
Commands for enabling the wake sources:
echo enabled > /sys/devices/platform/ocp/44e09000.serial/tty/ttyO0/power/wakeup
echo enabled > /sys/devices/platform/ocp/47400000.usb/47401300.usb-phy/power/wakeup
echo 1 > /sys/power/pm_debug_messages
echo standby > /sys/power/state
with the above commands system is going to suspend & resuming (when we insert pendrive or any key press keyborad)
Same steps followed to put the system in deepsleep with the command
echo mem > /sys/power/state
System is going to suspend but it is not resuming from the deep sleep ,though configured UART & USB as a wake up resource
In TRM it is observed that wake up functionality is supported from deep sleep
But in one of the TI wiki it is mentioned wake up from deep sleep is not supported yet()
Could you please confirm whether the wake up from deep sleep is supported or not?
If it is supported what are the configuration/changes are required?
Note:- we used CM3 firmware version (am335x-pm-firmware.elf)0x192 & am335x-bone-scale-data.bin firmware.
Viswa,
I tested deepsleep0/mem mode on AM335x TI EVM TMDXEVM3358 with PSDK 5.02 (kernel 4.14.79, pre-built binaries) and UARt wakeup from deepsleep0 is working fine:
root@am335x-evm:~# echo mem > /sys/power/state
[ 125.447670] PM: suspend entry (deep)
[ 125.451321] PM: Syncing filesystems ... done.
[ 126.154674] Freezing user space processes ... (elapsed 0.004 seconds) done.
[ 126.165762] OOM killer disabled.
[ 126.169232] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 126.178417] Suspending console(s) (use no_console_suspend to debug)
[ 126.344738] pm33xx pm33xx: PM: Successfully put all powerdomains to target state
[ 126.344738] PM: Wakeup source UART
[ 126.369528] net eth0: initializing cpsw version 1.12 (0)
[ 126.467935] Atheros 8031 ethernet 4a101000.mdio:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
[ 126.649385] OOM killer enabled.
[ 126.652553] Restarting tasks ... done.
[ 126.696856] PM: suspend exit
root@am335x-evm:~#
I am attaching the full boot up log:
Check the boot up log and compare with yours, check for differences related to power management and CM3 firmware.
You can check what HW/SW differences you have between AM335x EVM and your custom board and check how these differences impact the wake-up procedure.
Check also if below wiki pages will be in help:
Check also the pdf file attached in below e2e post, it has some good debug hints:
Linux/AM3352: Wakeup events - Processors forum - Processors - TI E2E support forums
You can also put no_console_suspend in your boot args, thus you might have more debug messages that can point you to the root cause.
Regards,
Pavel