Hi,
I am using a customised imx6sl board with pmic tps65910. I am able to register all the drivers of tps65910. Now I am working on RTC wakeup.
I am able to set the alarm time for wake up but not able to wakeup the board from the sleep.
This is the procedure:
root@imx6sltixu:~# date -s "2016-06-23 11:00:09"
Thu Jun 23 11:00:09 UTC 2016
root@imx6sltixu:~# hwclock --systohc
root@imx6sltixu:~# hwclock
Thu Jun 23 11:00:49 2016 0.000000 seconds
root@imx6sltixu:~# cat /proc/driver/rtc
rtc_time : 11:01:34
rtc_date : 2016-06-23
alrm_time : 00:00:00
alrm_date : 1999-12-01
alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ frequency : 1
max user IRQ frequency : 64
24hr : yes
root@imx6sltixu:~# cat /proc/interrupts
326: 0 tps65910 6 tps65910-rtc
root@imx6sltixu:~# echo +120 > /sys/class/rtc/rtc0/wakealarm
root@imx6sltixu:~# cat /proc/driver/rtc
rtc_time : 11:04:16
rtc_date : 2016-06-23
alrm_time : 11:05:22
alrm_date : 2016-06-23
alarm_IRQ : yes
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ frequency : 1
max user IRQ frequency : 64
24hr : yes
root@imx6sltixu:~# echo mem > /sys/power/state
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.010 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.007 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
After this is gone into sleep mode and does not wake up.