Hi
Thanks for your reply . In my case battery health is good Vbat 3.05V.
when i set the date and try to write to hwclock i get the below message
root@imx6q-dms-ba16:~# hwclock -w
rtc-pcf2127-spi spi4.1: low voltage detected, check/replace RTC battery.
rtc-pcf2127-spi spi4.1: oscillator stop detected, date/time is not reliable
root@imx6q-dms-ba16:~# hwclock -r
rtc-pcf2127-spi spi4.1: low voltage detected, check/replace RTC battery.
rtc-pcf2127-spi spi4.1: oscillator stop detected, date/time is not reliable
hwclock: RTC_RD_TIME: Invalid argument
I'm using SPI communication is there any issue in my dts file
&ecspi5 {
fsl,spi-num-chipselects = <2>;
cs-gpios = <&gpio1 17 0>,
<&gpio2 0 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi5>;
status = "okay";
m25_eeprom: m25p80@0 {
compatible = "atmel,at25";
spi-max-frequency = <20000000>;
size = <0x8000>;
pagesize = <64>;
reg = <0>;
address-width = <16>;
};
rtc:pcf2127@0{
#address-cells = <1>;
#size-cells = <1>;
compatible = "nxp,pcf2127";
spi-max-frequency = <5000000>;
interrupt-parent = <&gpio2>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
reg = <1>;
};
};
do i go wrong in above?
Thanks
sandy