I have a similar problem with our i.mx6ul based custom board.
Yocto image based on SUMO branch: imx_4.14.98_2.0.0_ga
During kernel boot (optee enabled) the kernel tries to probe the rtc driver (snvs-rtc.c). when it tries to enable the rtc it returns with timeout. -110
I modified the driver to print the LPLR and HPLR register to check if the SNVS is locked but there are both zero. but the snvs LPCR register does not enables the rtc.
Testing this a couple of times I noticed that sometimes it can enable the rtc (and working rtc) but later on (same image, same kernel etc.) after a cold reboot it can not enable the rtc.
So me and my colleagues discussed this, but can not figure it out.
- Is this a timing based issue (changing timeout counter in the enable function does not have any effect)
- Is this a problem related to in which order in the snvs module sub peripherals are enabled
- Is it a power related issue (battery backed)
Perhaps someone on the forum has some good advice where to look.
part log of kernel boot:
input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
input: fts_ts as /devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0038/input/input1
HPLR: 0h
LPLR: 0h
snvs_rtc 20cc000.snvs:snvs-rtc-lp: failed to enable rtc -110
snvs_rtc: probe of 20cc000.snvs:snvs-rtc-lp failed with error -110