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.

AM574x IDK lost RTC time after power off

Other Parts Discussed in Thread: TPS659037

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