]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8mq-librem5: Enable SNVS RTC
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Mon, 5 Jan 2026 20:39:40 +0000 (21:39 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sun, 18 Jan 2026 01:55:06 +0000 (09:55 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

index bc3e103b2d6a6cc1ac8dcac8f4a8d0147ab88ea0..5e0bf127e7e5be8846c277ea1b041398d9407e02 100644 (file)
        compatible = "purism,librem5", "fsl,imx8mq";
        chassis-type = "handset";
 
+       aliases {
+               rtc0 = &rtc;
+               rtc1 = &snvs_rtc;
+       };
+
        backlight_dsi: backlight-dsi {
                compatible = "led-backlight";
                leds = <&led_backlight>;
                };
        };
 
-       rtc@68 {
+       rtc: rtc@68 {
                compatible = "microcrystal,rv4162";
                reg = <0x68>;
                pinctrl-names = "default";
        status = "okay";
 };
 
-&snvs_rtc {
-       status = "disabled";
-};
-
 &uart1 { /* console */
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1>;