arm64: dts: imx8mq: Add RTC support
Subsystems (2)
PATCH 1/1 arm64: dts: imx8mq: Add RTC support
Add RTC support for i.MX8MQ.
Signed-off-by Abel Vesa <[email protected]>
--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +14 -0
@@ -240,6 +240,20 @@ interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; }; + snvs: snvs@30370000 { + compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd"; + reg = <0x30370000 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>; + }; + + }; + clk: clock-controller@30380000 { compatible = "fsl,imx8mq-ccm"; reg = <0x30380000 0x10000>;
Signature · 1 line
2.7.4
Quoted 3 lines · Abel Vesa
Add RTC support for i.MX8MQ.
Signed-off-by Abel Vesa <[email protected]>
Tested on my i.MX8MQ-EVK. The system time is now retained between reboots, but not if the system is fully powered down. Judging by the absence of coin battery on the board I'm guessing the SNVS is simply not powered when the main supply is turned off, in which case this isn't a problem.
Tested-by Chris Spencer <[email protected]>
Quoted 4 lines · Abel Vesa
Add RTC support for i.MX8MQ.
Signed-off-by Abel Vesa <[email protected]>
Reviewed-by Fabio Estevam <[email protected]>
Shawn Guo
AppliedQuoted 3 lines · Abel Vesa
Add RTC support for i.MX8MQ.
Signed-off-by Abel Vesa <[email protected]>
Applied, thanks.