UCM-iMX95 Yocto Linux: RTC
There two RTC devices:
- SoC integrated rtc0 that can be used as wake-up source
- On board rtc1 - a low current battery powered time keeper
External - rtc1
- System information:
udevadm info -p /sys/class/rtc/rtc1
- Set the date and write to the RTC:
date -s "12 SEP 2019 10:00:00" Thu Sep 12 10:00:00 UTC 2019 hwclock --systohc --rtc /dev/rtc1
- Read the RTC time and date:
hwclock --show --rtc /dev/rtc1 2023-06-16 12:01:37.935876+00:00