linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mq: Add RTC support
@ 2019-01-31 15:01 Abel Vesa
  2019-02-05 13:48 ` Chris Spencer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Abel Vesa @ 2019-01-31 15:01 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Lucas Stach, Baruch Siach
  Cc: devicetree, Abel Vesa, Linux Kernel Mailing List, Abel Vesa,
	dl-linux-imx, linux-arm-kernel

Add RTC support for i.MX8MQ.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 892063a..49b14af 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -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>;
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: imx8mq: Add RTC support
  2019-01-31 15:01 [PATCH] arm64: dts: imx8mq: Add RTC support Abel Vesa
@ 2019-02-05 13:48 ` Chris Spencer
  2019-02-05 15:08 ` Fabio Estevam
  2019-02-11  2:19 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Chris Spencer @ 2019-02-05 13:48 UTC (permalink / raw)
  To: Abel Vesa
  Cc: Mark Rutland, Rob Herring, Baruch Siach, devicetree,
	Linux Kernel Mailing List, Abel Vesa, dl-linux-imx, Sascha Hauer,
	Fabio Estevam, Shawn Guo, linux-arm-kernel, Lucas Stach

On Thu, 31 Jan 2019 at 15:03, Abel Vesa <abel.vesa@nxp.com> wrote:
> Add RTC support for i.MX8MQ.
>
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>

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 <christopher.spencer@sea.co.uk>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: imx8mq: Add RTC support
  2019-01-31 15:01 [PATCH] arm64: dts: imx8mq: Add RTC support Abel Vesa
  2019-02-05 13:48 ` Chris Spencer
@ 2019-02-05 15:08 ` Fabio Estevam
  2019-02-11  2:19 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2019-02-05 15:08 UTC (permalink / raw)
  To: Abel Vesa
  Cc: Mark Rutland, Rob Herring, Baruch Siach, devicetree,
	Linux Kernel Mailing List, Abel Vesa, dl-linux-imx, Sascha Hauer,
	Fabio Estevam, Shawn Guo, linux-arm-kernel, Lucas Stach

On Thu, Jan 31, 2019 at 1:03 PM Abel Vesa <abel.vesa@nxp.com> wrote:
>
> Add RTC support for i.MX8MQ.
>
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: imx8mq: Add RTC support
  2019-01-31 15:01 [PATCH] arm64: dts: imx8mq: Add RTC support Abel Vesa
  2019-02-05 13:48 ` Chris Spencer
  2019-02-05 15:08 ` Fabio Estevam
@ 2019-02-11  2:19 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2019-02-11  2:19 UTC (permalink / raw)
  To: Abel Vesa
  Cc: Mark Rutland, Rob Herring, Baruch Siach, devicetree,
	Linux Kernel Mailing List, Abel Vesa, dl-linux-imx, Sascha Hauer,
	Fabio Estevam, linux-arm-kernel, Lucas Stach

On Thu, Jan 31, 2019 at 03:01:22PM +0000, Abel Vesa wrote:
> Add RTC support for i.MX8MQ.
> 
> Signed-off-by: Abel Vesa <abel.vesa@nxp.com>

Applied, thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-11  2:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-31 15:01 [PATCH] arm64: dts: imx8mq: Add RTC support Abel Vesa
2019-02-05 13:48 ` Chris Spencer
2019-02-05 15:08 ` Fabio Estevam
2019-02-11  2:19 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).