diff options
author | Josua Mayer <josua@solid-run.com> | 2024-01-18 18:01:10 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2024-02-05 12:56:01 +0300 |
commit | 2a33952350712fe93e97eaa59184e62246f85e4f (patch) | |
tree | 9bbe8ec9e19fe3b90291eaeed5e0e0d2c4a7fb95 /arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi | |
parent | 8458002b765c2768490bde9cb8f7665d2ffcf102 (diff) | |
download | linux-2a33952350712fe93e97eaa59184e62246f85e4f.tar.xz |
ARM: dts: imx6qdl-hummingboard: Add rtc0 and rtc1 aliases to fix hctosys
HummingBoard has two RTCs, first integrated within SoC that can be used to
wake up from sleep - and a second on the carrier board including back-up
battery which is intended for keeping time during power-off.
Add aliases for both, ensuring that the battery-backed clock is primary
rtc and used by default during boot for restoring system time.
Fixes keeping time across power-cycle observed on Debian,
which sets RTC_HCTOSYS_DEVICE="rtc0".
Signed-off-by: Josua Mayer <josua@solid-run.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi')
-rw-r--r-- | arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi index 0883ef99cded..e6017f9bf640 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi @@ -41,6 +41,11 @@ #include <dt-bindings/sound/fsl-imx-audmux.h> / { + aliases { + rtc0 = &pcf8523; + rtc1 = &snvs_rtc; + }; + /* Will be filled by the bootloader */ memory@10000000 { device_type = "memory"; |