Hi, All:
I found AM574x_IDK comes with 2 RTC.
ls /dev/rtc*
/dev/rtc /dev/rtc0 /dev/rtc1
The RTC is work fine and it is able to wake up system.
echo +100 > /sys/class/rtc/rtc0/wakealarm
echo mem > /sys/power/state
RTC is able to set time.
date -s "2020-10-28 16:55"
Wed Oct 28 16:55:00 UTC 2020
date
Wed Oct 28 16:55:01 UTC 2020
hwclock -w
hwclock
Wed Oct 28 16:55:09 2020 0.000000 seconds
But, the RTC time lost after power off.
How to add a coins battery to keep time ?
Note:
Linux version:
uname -a
Linux am57xx-evm 4.19.94-gbe5389fd85 #3 SMP PREEMPT Fri Oct 16 14:25:31 CST 2020 armv7l GNU/Linux