Skip to content

Commit

Permalink
arm64: dts: imx8mn-beacon-som: Configure RTC aliases
Browse files Browse the repository at this point in the history
On the i.MX8MN Beacon SOM, there is an RTC chip which is fed power
from the baseboard during power off.  The SNVS RTC integrated into
the SoC is not fed power.  Depending on the order the modules are
loaded, this can be a problem if the external RTC isn't rtc0.

Make the alias for rtc0 point to the external RTC all the time and
rtc1 point to the SVNS in order to correctly hold date/time over
a power-cycle.

Signed-off-by: Adam Ford <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
  • Loading branch information
aford173 authored and Shawn Guo committed Jan 18, 2021
1 parent e8d08d8 commit 18b9de7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
*/

/ {
aliases {
rtc0 = &rtc;
rtc1 = &snvs_rtc;
};

usdhc1_pwrseq: usdhc1_pwrseq {
compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
Expand Down Expand Up @@ -212,7 +217,7 @@
reg = <0x50>;
};

rtc@51 {
rtc: rtc@51 {
compatible = "nxp,pcf85263";
reg = <0x51>;
};
Expand Down

0 comments on commit 18b9de7

Please sign in to comment.