]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Add rtc0 alias for NanoPi R5S + R5C
authorDiederik de Haas <didi.debian@cknow.org>
Sun, 13 Jul 2025 16:16:36 +0000 (18:16 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 15 Jul 2025 10:37:15 +0000 (12:37 +0200)
The RTC_HCTOSYS_DEVICE module defaults to rtc0 and should (highly)
preferable be assigned to a battery backed RTC module as it is used to
(re)initialize the system clock.

The R5S and R5C have a connector for a RTC battery which is used by
HYM8563 RTC. Both devices also have another RTC from the rk809 PMIC.
To make sure the HYM8563 is always assigned rtc0, add an alias for it.

Signed-off-by: Diederik de Haas <didi.debian@cknow.org>
Link: https://lore.kernel.org/r/20250713161723.270963-1-didi.debian@cknow.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi

index a28b4af10d13a2612f201743b9ed41fffde30ebf..f4d042bdd328835f79bd462265a84c689ee7c298 100644 (file)
@@ -18,6 +18,7 @@
        aliases {
                mmc0 = &sdmmc0;
                mmc1 = &sdhci;
+               rtc0 = &hym8563;
        };
 
        chosen: chosen {