Hi Patel
Thanks for you help.
Just recording to the dmesg Info. , I found two RTC devices:
# dmesg |grep rtc
[ 0.924372] s32gen1-rtc 40060000.rtc: registered as rtc0
[ 0.929816] s32gen1-rtc 40060000.rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[ 1.150208] rtc-pcf85063 0-0051: registered as rtc1
The rtc0 is default RTC and rtc1 is external RTC, when I was synchronized time to rtc1,
No matter how long it takes, the time of both soft and hard has always been consistent.
# date -s "2023-03-08 10:52:10" & hwclock -f /dev/rtc1 -w
# date && hwclock -f /dev/rtc1
Wed Mar 8 10:52:30 UTC 2023
2023-03-08 10:52:31.201735+00:00
。。。
# date && hwclock -f /dev/rtc1
Wed Mar 8 11:00:39 UTC 2023
2023-03-08 11:00:40.426119+00:00
if considering the FIRC running at 48 MHz
By default, it seems that the frequency is 48 MHz
(linux-bsp33.0-5.10.109-rt/linux/arch/arm64/boot/dts/freescale/s32cc.dtsi )
