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.

AM625: Not able to set date and time using external RTC

Part Number: AM625
Other Parts Discussed in Thread: BQ32000

Tool/software:

Hello TI Team,

We are working on a custom board based on an AM62x processor and we have connected PMIC and RTC on I2C0. Currently, We cannot persist the time after reboot.

 I checked the reboot logs and found the below logs related to RTC. We are using PCA85073A external RTC.

5.845822] pinctrl-single f4000.pinctrl: pin PIN120 already requested by 20000000.i2c; cannot claim for 0-0051
[    5.856020] pinctrl-single f4000.pinctrl: pin-120 (0-0051) status -22
[    5.914547] pinctrl-single f4000.pinctrl: could not request pin 120 (PIN120) from group i2c0-default-pins  on device pinctrl-single
[  OK  ] Started Network Time Synchronizatio[    5.932126] rtc-pcf85063 0-0051: Error applying setting, reverse things back
n.
[  OK  ] Reached target System Initialization.
[    5.966368] mc: Linux media interface: v0.10
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target System Time Set.
[    6.003594] videodev: Linux video capture interface: v2.00
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timer Units.
[    6.030660] pinctrl-single f4000.pinctrl: pin PIN46 already requested by 601000.gpio; cannot claim for 30200000.dss
[    6.042757] pinctrl-single f4000.pinctrl: pin-46 (30200000.dss) status -22
[  OK  ] Listening on Avahi mDNS/DNS-SD Stac[    6.050149] pinctrl-single f4000.pinctrl: could not request pin 46 (PIN46) from group main-dsse
k Activation Socket.
[    6.073097] tidss 30200000.dss: Error applying setting, reverse things back
[    6.082255] rtc-ti-k3 2b1f0000.rtc: registered as rtc0
[    6.088114] rtc-ti-k3 2b1f0000.rtc: setting system clock to 1970-01-01T00:00:11 UTC (11)
[  OK  ] Listening on D-Bus System Message Bus Socket.
[    

Also please find the DTS configuration below.

&main_i2c0 {
        status = "okay";
        clock-frequency = <400000>;

        pca85073a:rtc@51{
               pinctrl-names = "default";
               pinctrl-0 = <&i2c0_pins_default>;
               compatible = "nxp,pcf85063a";
               reg = <0x51>;
               status = "okay";
        };

        tps65219: pmic@30 {
               compatible = "ti,tps65219";
               reg = <0x30>;
               buck1-supply = <&vcc_3v3_sys>;
               buck2-supply = <&vcc_3v3_sys>;
               buck3-supply = <&vcc_3v3_sys>;
               ldo1-supply = <&vcc_3v3_sys>;
               ldo2-supply = <&buck2_reg>;
               ldo3-supply = <&vcc_3v3_sys>;
               ldo4-supply = <&vcc_3v3_sys>;

               pinctrl-names = "default";
               pinctrl-0 = <&i2c0_pins_default>;

               interrupt-parent = <&gic500>;
               interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;

               regulators {
                       buck1_reg: buck1 {
                               regulator-name = "VDD_CORE";
                               regulator-min-microvolt = <750000>;
                               regulator-max-microvolt = <750000>;
                               regulator-boot-on;
                               regulator-always-on;
                       };

                       buck2_reg: buck2 {
                               regulator-name = "VCC1V8_SYS";
                               regulator-min-microvolt = <1800000>;
                               regulator-max-microvolt = <1800000>;
                               regulator-boot-on;
                               regulator-always-on;
                       };

                       buck3_reg: buck3 {
                               regulator-name = "VDD_LPDDR4";
                               regulator-min-microvolt = <1100000>;
                               regulator-max-microvolt = <1100000>;
                               regulator-boot-on;
                               regulator-always-on;
                       };

                       ldo1_reg: ldo1 {
                               regulator-name = "VDDSHV_SDIO";
                               regulator-min-microvolt = <3300000>;
                               regulator-max-microvolt = <3300000>;
                       };

                       ldo2_reg: ldo2 {
                               regulator-name = "VDDAR_CORE";
                               regulator-min-microvolt = <850000>;
                               regulator-max-microvolt = <850000>;
                               regulator-boot-on;
                               regulator-always-on;
                       };

                       ldo3_reg: ldo3 {
                               regulator-name = "VDDA_1V8";
                               regulator-min-microvolt = <1800000>;
                               regulator-max-microvolt = <1800000>;
                               regulator-boot-on;
                               regulator-always-on;
                       };

                       ldo4_reg: ldo4 {
                               regulator-name = "VDD_1V2";
                               regulator-min-microvolt = <1200000>;
                               regulator-max-microvolt = <1200000>;
                               regulator-boot-on;
                               regulator-always-on;
                       };
               };
       };
};

Let me know if any other configuration is needed. Also, How can we set the date and time.