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.

AM3352: RTC was not worked

Part Number: AM3352
Other Parts Discussed in Thread: TPS65910

Dear Champs,

My customer failed to run RTC and the time was not increased from 2000-01-01 as below.

They confirmed rtc_osc and rtc reset pin. Could you please let me know what should be checked?

Their HW is custom board and their SW is Linux PSDK v6.3, and their dts is as below.

Thanks and Best Regards,

SI.

  • Looks like there are two(?) instances of RTC being probed?

    First, can you confirm the operation of the device-internal RTC by directly accessing its device node via sysfw as follows, to see if the time keeps incrementing:

    root@am335x-evm:/sys/devices/platform/ocp/44e3e000.rtc/rtc/rtc0# ls -al
    drwxr-xr-x    3 root     root             0 Jun 22 22:50 .
    drwxr-xr-x    3 root     root             0 Jun 22 22:50 ..
    -r--r--r--    1 root     root          4096 Jun 22 22:51 date
    -r--r--r--    1 root     root          4096 Jun 22 22:51 dev
    lrwxrwxrwx    1 root     root             0 Jun 22 22:51 device -> ../../../44e3e000.rtc
    -r--r--r--    1 root     root          4096 Jun 22 22:50 hctosys
    -rw-r--r--    1 root     root          4096 Jun 22 22:51 max_user_freq
    -r--r--r--    1 root     root          4096 Jun 22 22:51 name
    drwxr-xr-x    2 root     root             0 Jun 22 22:51 power
    -r--r--r--    1 root     root          4096 Jun 22 22:51 since_epoch
    lrwxrwxrwx    1 root     root             0 Jun 22 22:51 subsystem -> ../../../../../../class/rtc
    -r--r--r--    1 root     root          4096 Jun 22 22:51 time
    -rw-r--r--    1 root     root          4096 Jun 22 22:50 uevent
    -rw-r--r--    1 root     root          4096 Jun 22 22:51 wakealarm
    root@am335x-evm:/sys/devices/platform/ocp/44e3e000.rtc/rtc/rtc0# cat time
    22:52:35
    root@am335x-evm:/sys/devices/platform/ocp/44e3e000.rtc/rtc/rtc0# cat time
    22:52:37
    root@am335x-evm:/sys/devices/platform/ocp/44e3e000.rtc/rtc/rtc0# cat time
    22:52:38
    root@am335x-evm:/sys/devices/platform/ocp/44e3e000.rtc/rtc/rtc0#
    

    Then, can you try disabling CONFIG_RTC_DRV_TPS65910 to see if this prevents the probing of the RTC built into the TPS65910 device, assuming that is not the one you want to be using?

    Regards, Andreas