Part Number:AM3352
Tool/software: Linux
I'm trying to keep the watchdog enabled during deep sleep so that the reset is triggered when the timer is expired. The below changes were primarily made.
1. Removed the watchdog configurations from the kernel
2. Directly configured the watchdog registers using devmem2 to set the timer value and also choose on-chip ~32.768 KHz oscillator (CLK_RC32K) for the watchdog. With the default clock ( PER PLL generated 32.768 KHz clock (CLK_32KHZ)), the watchdog timer did not run in deep sleep.
After setting the device to deep sleep, I observe that the watchdog counter keeps running, but a reset is not triggered as and when it expires. It waits for the device to wake up to actually trigger the reboot. I would like to have the reset happen during deep sleep. Any leads would be appreciated.
Linux kernel : 4.9.69
Thanks in advance,
Jayadev