]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: Add HYM8563 RTC for Khadas Edge 2L
authorGray Huang <gray.huang@wesion.com>
Wed, 29 Apr 2026 06:37:07 +0000 (14:37 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 5 May 2026 18:03:23 +0000 (20:03 +0200)
The Khadas Edge 2L uses an on-board HYM8563 RTC connected to
I2C2. Enable it and expose its 32.768kHz clock output so later
board-level patches can reference it as the LPO clock source for
the AP6275P wireless module.

Mark the RTC as a wakeup source as well.

Signed-off-by: Gray Huang <gray.huang@wesion.com>
Link: https://patch.msgid.link/20260429063712.2150938-3-gray.huang@wesion.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts

index c39c7f90b6fbafd90e2a34aec44114c3f79b67d9..cf846b24a24a81fe128c96e8b28fadd9bf921ced 100644 (file)
        };
 };
 
+&i2c2 {
+       status = "okay";
+
+       hym8563: rtc@51 {
+               compatible = "haoyu,hym8563";
+               reg = <0x51>;
+               #clock-cells = <0>;
+               clock-output-names = "hym8563";
+               wakeup-source;
+       };
+};
+
 &sdhci {
        bus-width = <8>;
        no-sdio;