Part Number: AM3352
Tool/software: Linux
Hello,
We have our own HW design using am3352 and we got linux 4.4.19 from TI SDK.
We need that our system is able to enter stand-by mode to save power, and we configured our .dts file to allow system to wake up with gpio0_3. Then, we call "echo standby > /sys/power/state" when we need the system to enter stand-bye mode.
System works fine most of the times, enter/resume stand-by mode as expected with gpio0_3. But sometimes we see that system resumes immediatly from stand-by, and we have checked that gpio0_3 is not changing its value.
The kernel log is the same when the system works fine and when it does not:
[ 1903.641236] PM: Syncing filesystems ... done.
[ 1903.651957] PM: Preparing system for sleep (standby)
[ 1903.653121] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 1903.655212] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 1903.656729] PM: Suspending system (standby)
[ 1903.656771] Suspending console(s) (use no_console_suspend to debug)
[ 1904.869578] PM: suspend of devices complete after 1210.777 msecs
[ 1904.871908] PM: late suspend of devices complete after 2.293 msecs
[ 1904.874375] PM: noirq suspend of devices complete after 2.437 msecs
[ 1904.874383] PM: Successfully put all powerdomains to target state
[ 1904.890296] PM: noirq resume of devices complete after 15.794 msecs
[ 1904.892387] PM: early resume of devices complete after 1.942 msecs
[ 1904.894941] net can1: c_can_hw_raminit_wait_syscon: time out
[ 1904.895001] c_can_platform 481cc000.can can1: setting BTR=1c05 BRPE=0000
[ 1904.895163] net eth0: initializing cpsw version 1.12 (0)
[ 1904.895171] net eth0: initialized cpsw ale version 1.4
[ 1904.895178] net eth0: ALE Table size 1024
[ 1904.896866] libphy: PHY not found
[ 1904.896873] net eth0: phy "" not found on slave 0, err -19
[ 1904.897660] net eth0: phy found : id is : 0x7c0f1
[ 1905.009357] PM: resume of devices complete after 116.880 msecs
[ 1905.010830] PM: Finishing wakeup.
[ 1905.010842] Restarting tasks ... done.
How coulkd we know why the system is waking up if gpio0_3 did not change?
Is it possible to know the wake-up reason?
Thank you for your help
Best regards
Angel