[PATCH 3/6] arm64: dts: imx8mq-librem5: Enable SNVS RTC

Sebastian Krzyszkowiak via B4 Relay posted 6 patches 1 month ago
[PATCH 3/6] arm64: dts: imx8mq-librem5: Enable SNVS RTC
Posted by Sebastian Krzyszkowiak via B4 Relay 1 month ago
From: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>

It has been disabled because it was being used for system clock instead
of the discrete RTC. However, SNVS has some features that the discrete
RTC does not, such as being able to turn the device on. Solve that issue
with aliases instead and reenable SNVS RTC.

Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
---
 arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
index b92b5f7b2bd7..8c37b1293699 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
@@ -17,6 +17,11 @@ / {
 	compatible = "purism,librem5", "fsl,imx8mq";
 	chassis-type = "handset";
 
+	aliases {
+		rtc0 = &rtc;
+		rtc1 = &snvs_rtc;
+	};
+
 	backlight_dsi: backlight-dsi {
 		compatible = "led-backlight";
 		leds = <&led_backlight>;
@@ -1001,7 +1006,7 @@ ldo7_reg: LDO7 {
 		};
 	};
 
-	rtc@68 {
+	rtc: rtc@68 {
 		compatible = "microcrystal,rv4162";
 		reg = <0x68>;
 		pinctrl-names = "default";
@@ -1316,10 +1321,6 @@ &snvs_pwrkey {
 	status = "okay";
 };
 
-&snvs_rtc {
-	status = "disabled";
-};
-
 &uart1 { /* console */
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart1>;

-- 
2.52.0
Re: [PATCH 3/6] arm64: dts: imx8mq-librem5: Enable SNVS RTC
Posted by Peng Fan 1 month ago
On Mon, Jan 05, 2026 at 09:39:40PM +0100, Sebastian Krzyszkowiak via B4 Relay wrote:
>From: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
>
>It has been disabled because it was being used for system clock instead
>of the discrete RTC. However, SNVS has some features that the discrete
>RTC does not, such as being able to turn the device on. Solve that issue
>with aliases instead and reenable SNVS RTC.
>
>Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>

Reviewed-by: Peng Fan <peng.fan@nxp.com>