Hi
When I initialize my board I see the following message:
[ 1.207327] snvs_rtc 30370000.snvs:snvs-rtc-lp: failed to enable rtc -110
[ 1.214143] snvs_rtc: probe of 30370000.snvs:snvs-rtc-lp failed with error -110
I have already seen similar reports and tried the options found herein - without any luck:
I have changed my uboot imx8mm_evk.c with the following lines
/* IMX8M SNVS registers needed for the bootcount functionality */
#define SNVS_BASE_ADDR 0x30370000
#define SNVS_LPPGDR_INIT 0x41736166
#define snvs_hpcomr *((u32*)(SNVS_BASE_ADDR + 0x04))
#define snvs_lpsr *((u32*)(SNVS_BASE_ADDR + 0x4C))
#define snvs_lppgdr *((u32*)(SNVS_BASE_ADDR + 0x64))
static void setup_snvs(void)
{
snvs_hpcomr |= 0x80000000;
snvs_lppgdr = SNVS_LPPGDR_INIT;
snvs_lpsr = 0xffffffff;
}
int board_init(void)
{
...
setup_snvs();
return 0;
}
Also my uboot fsl-imx8mm.dtsi looks like this
snvs: snvs@30370000 {
compatible = "fsl,sec-v4.0-mon","syscon", "simple-mfd";
reg = <0x0 0x30370000 0x0 0x10000>;
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>;
};
snvs_pwrkey: snvs-powerkey {
compatible = "fsl,sec-v4.0-pwrkey";
regmap = <&snvs>;
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
linux,keycode = <KEY_POWER>;
wakeup-source;
};
};
The board is following imx8mm-evk designs and the software components are:
Do you know if this is a known bug in the versions of kernel/uboot I'm using, or do you have any idea why the rtc is not loading?