Hi Team
We are integrating RTC module (max31341b ) with IMX8MM on Android 11 code base.
We are successfully able to integrate and It is working sometimes.
When I reboot device using adb reboot that time RTC is restoring proper time. But when I turn OFF entire system for some time, that time we are not getting expected time.( Checked RTC cell and 32Khz freq is proper when system TURN OFF).
Could you please review the same and let us know if any other changes required.
DTSI ENTRI:
--- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
pinctrl-0 = <&pinctrl_i2c2>;
status = "okay";
+ max31341b: max31341b@69 {
+ compatible = "maxim,max31341b";
+ reg = <0x69>;
+ trickle-resistor-ohms=<6000>;
+ backup-threshold=<3>;
+ power-management=<1>;
+ trickle-diode-enable="OK";
+ status ="okay";
+ };
+
diff --git a/arch/arm64/configs/imx_v8_android_defconfig b/arch/arm64/configs/imx_v8_android_defconfig
--- a/arch/arm64/configs/imx_v8_android_defconfig
+++ b/arch/arm64/configs/imx_v8_android_defconfig
+CONFIG_RTC_DRV_MAX31341B=y
NOTE:
RTC probe is invoking properly. Please check patch and review. Suggest changes if i missed anything
FAIL LOG:
Thanks
Divyesh.