[PATCH 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support
From: Anson Huang <hidden>
Date: 2018-11-28 09:22:05
Also in:
linux-devicetree, linux-rtc, lkml
Best Regards! Anson Huang
-----Original Message----- From: Alexandre Belloni [mailto:alexandre.belloni at bootlin.com] Sent: 2018?11?28? 17:20 To: Anson Huang <redacted> Cc: Lothar Wa?mann <redacted>; a.zummo at towertech.it; robh+dt at kernel.org; mark.rutland at arm.com; catalin.marinas at arm.com; will.deacon at arm.com; Aisheng DONG [off-list ref]; Andy Gross [off-list ref]; arnd at arndb.de; horms+renesas at verge.net.au; heiko at sntech.de; bjorn.andersson at linaro.org; enric.balletbo at collabora.com; amit.kucheria at linaro.org; ezequiel at collabora.com; olof at lixom.net; shawnguo at kernel.org; linux-rtc at vger.kernel.org; devicetree at vger.kernel.org; linux-kernel at vger.kernel.org; linux-arm-kernel at lists.infradead.org; dl-linux-imx [off-list ref] Subject: Re: [PATCH 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support On 28/11/2018 09:06:27+0000, Anson Huang wrote:quoted
quoted
quoted
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsib/arch/arm64/boot/dts/freescale/imx8qxp.dtsiquoted
index 9155d45..ef57db6 100644--- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi@@ -433,4 +433,8 @@ #size-cells = <1>; ranges = <0x5f000000 0x0 0x5f000000 0x1000000>; }; + + rtc: rtc { + compatible = "nxp,imx8qxp-sc-rtc"; + }; };IMO this should be disabled by default.This module is NOT depending on any board design, should it be enabled bydefault in soc dtsi?quoted
Like wdog etc..I guess the point is that you may not want it enabled, even if it should always be working. enabling it by default would affect the RTC ordering for example.
i.MX SoCs ONLY have 1 RTC. And RTC are always enabled by default for all i.MX SoCs, so do we have to disable it here and enable it in board dts? Anson.
-- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbootl in.com&data=02%7C01%7Canson.huang%40nxp.com%7C0586fd10d6ff4 5d03f4308d65512a864%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0 %7C636789935951215703&sdata=Hs1AXXoZMMKl8inOXFs8xXNXQ9EJG gtphyTNhFvMiTE%3D&reserved=0