]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: dts: imx6qdl-hummingboard: Add rtc0 and rtc1 aliases to fix hctosys
authorJosua Mayer <josua@solid-run.com>
Thu, 18 Jan 2024 15:01:10 +0000 (16:01 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 5 Feb 2024 09:56:01 +0000 (17:56 +0800)
commit2a33952350712fe93e97eaa59184e62246f85e4f
tree9bbe8ec9e19fe3b90291eaeed5e0e0d2c4a7fb95
parent8458002b765c2768490bde9cb8f7665d2ffcf102
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>
arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard.dtsi
arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi