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.

DRA722: configure DCAN1 as wakeup resource

Part Number: DRA722

Hello,

We are using DRA72x in our custom board.

We are trying to test the power mode "idle" and "STR"

We tried making "DCAN1" as wakeup resource.

For this we are following below procedure to transition the system to idle mode

1. make the CAN link up.

ip link set can0 type can bitrate 500000
ip link set up can0

2. Set the register 0x4a003818 to 0x01020001 to enable wakeup and set DCAN1 as wakeup resource

3. Set the WUBA bit, devmem2 0x4ae3c000 w 0x0200000E

4. "echo freeze > /sys/power/state" to transition idle mode

After 4th step we see the system is transitioned to idle mode. Below is the log for the same.

sh-4.4# echo freeze > /sys/power/state
[ 531.622280] PM: suspend entry (s2idle)
[ 531.626053] PM: Syncing filesystems ... done.
[ 531.631150] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 531.639335] OOM killer disabled.
[ 531.642622] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 531.651209] Suspending console(s) (use no_console_suspend to debug)

But when we tried sending a CAN message from CAN analyzer we dont see that the system is not resuming.

Can you please help us know if we are missing anything?