arm64: dts: imx8mq: Add RTC support
authorAbel Vesa <abel.vesa@nxp.com>
Thu, 31 Jan 2019 15:01:22 +0000 (15:01 +0000)
committerShawn Guo <shawnguo@kernel.org>
Mon, 11 Feb 2019 02:13:43 +0000 (10:13 +0800)
Add RTC support for i.MX8MQ.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Tested-by: Chris Spencer <christopher.spencer@sea.co.uk>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq.dtsi

index 8e98c66..1dc3f05 100644 (file)
                                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>;