MYD-Y6ULX开发板
修改RTC芯片,使用rx_8025T
现象:
date -s "2022-1-2 3:4:5"
hwclock -w 能够写,
hwclock -r 能够读:2022-1-2 3:4:5
但是断电重启,date打印 1970-1-1
不断电重启,时间是对的。
查看系统输出信息为读写寄存器失败:
rx8025 will be probe
rx8025 will be init
rx8025 0-0032: Unable to read registers #14..#15
i2c i2c-0: probing for rx8025 failed
rx8025: probe of 0-0032 failed with error -110
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
i2c /dev entries driver
下面内容是我这里本机的配置内容:
硬件配置引脚为:
设备树配置是:
&i2c1 {
status = "okay";
rtc: rtc@32 {
// compatible = "espon,rx8025";
compatible = "rx8025";