Hello,
There are 2 RTCs on lx2160ardb: rtc0 and rtc1. We can see rtc1 support wakealarm, but rtc0 doesn't. Can rtc0 support wakeup by adding attribute 'wakeup-source' in rtc@51 node of the dts? Full log see attachment.
root@lx2160ardb:~# ls /sys/class/rtc -l
total 0
lrwxrwxrwx 1 root root 0 Nov 29 08:58 rtc0 -> ../../devices/platform/soc/2040000.i2c/i2c-1/1-0051/rtc/rtc0
lrwxrwxrwx 1 root root 0 Nov 29 08:58 rtc1 -> ../../devices/platform/soc/2800000.timer/rtc/rtc1
root@lx2160ardb:~# ls /sys/class/rtc/rtc0
date dev device hctosys max_user_freq name power range since_epoch subsystem time timestamp0 uevent
root@lx2160ardb:~# ls /sys/class/rtc/rtc1
alarmtimer.2.auto date dev device hctosys max_user_freq name power since_epoch subsystem time uevent wakealarm
Thanks,
MinWang@WindRiver
Solved! Go to Solution.
rtc0 doesn't support wakeup.
rtc0 is used to set the system time.
rtc1 is FlexTimer (FTM), can support wake-up source and PWM.
rtc0 doesn't support wakeup.
rtc0 is used to set the system time.
rtc1 is FlexTimer (FTM), can support wake-up source and PWM.
rtc0 is not a FlexTimer (FTM). Only FlexTimer can support wakeup source.