Hi,
I am using custom board based on imx8mm with android 11.
When i use the Google desk clock application i dont see the RTC apis from drivers being called. Also the board doesnt come back from deep sleep(suspend) when the alarm triggered, even though the alarm is expected to bring the board to wakeup.
(Same application i have tried on my mobile phone and i am able to see the board coming out from suspend and showing the alarm notification)
We are using only the internal RTC.
DTS used is,
snvs_rtc
snvs_rtc: snvs-rtc-lp {
compatible = "fsl,sec-v4.0-mon-rtc-lp";
regmap = <&snvs>;
offset = <0x34>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
clock-names = "snvs-rtc";
};
Also tried using the following commands,
echo +15 > /sys/class/rtc/rtc0/wakealarm
echo mem > /sys/power/state
In this scenario board goes to suspend and wakes up after 15s and i am seeing the RTC driver prints.
Why is the application not able to use rtc driver and trigger the interrupt to wake up the board ?
Thanks,
Ashik