Hi,
We have NXP PCF8523 RTC sitting on i2c bus of AM335x.
And we are writing to RTC using 'RTC_SET_TIME' ioctl on RTC device(/dev/rtc0).
If we read back the data from RTC before reboot, it shows proper data, that we have written. But after reboot, the data is reset to old data that was present before we wrote.
But if we do a 'settimeofday' or 'hwclock --hctosys' before reboot in above scenario, after reboot, it shows proper data that we have written.
Please let us know, if we are missing anything.
Thanks