Skip to content

Commit 1361bfe

Browse files
dos1Shawn Guo
authored andcommitted
arm64: dts: imx8mq-librem5: Enable SNVS RTC
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>
1 parent bb01a42 commit 1361bfe

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
compatible = "purism,librem5", "fsl,imx8mq";
1818
chassis-type = "handset";
1919

20+
aliases {
21+
rtc0 = &rtc;
22+
rtc1 = &snvs_rtc;
23+
};
24+
2025
backlight_dsi: backlight-dsi {
2126
compatible = "led-backlight";
2227
leds = <&led_backlight>;
@@ -1001,7 +1006,7 @@
10011006
};
10021007
};
10031008

1004-
rtc@68 {
1009+
rtc: rtc@68 {
10051010
compatible = "microcrystal,rv4162";
10061011
reg = <0x68>;
10071012
pinctrl-names = "default";
@@ -1316,10 +1321,6 @@
13161321
status = "okay";
13171322
};
13181323

1319-
&snvs_rtc {
1320-
status = "disabled";
1321-
};
1322-
13231324
&uart1 { /* console */
13241325
pinctrl-names = "default";
13251326
pinctrl-0 = <&pinctrl_uart1>;

0 commit comments

Comments
 (0)