]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: enable HYM8563 RTC
authorNick Xie <nick@khadas.com>
Fri, 27 Mar 2026 09:30:15 +0000 (17:30 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 2 Jun 2026 07:49:45 +0000 (09:49 +0200)
The Khadas VIM1S board has an on-board Haoyu Micro HYM8563 Real Time
Clock (RTC) connected to the I2C1 bus.

Enable the I2C1 controller and add the RTC child node to support
hardware clock persistence.

Signed-off-by: Nick Xie <nick@khadas.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260327093016.722095-3-nick@khadas.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts

index 792ab45c4c94446a7641349a9c11c494f2b1f095..7314e0ab81da337bbf4b439ae9babce9b2a13ef6 100644 (file)
@@ -20,6 +20,8 @@
                mmc0 = &emmc; /* eMMC */
                mmc1 = &sd; /* SD card */
                mmc2 = &sdio; /* SDIO */
+               rtc0 = &rtc;
+               rtc1 = &vrtc;
                serial0 = &uart_b;
        };
 
        phy-mode = "rmii";
 };
 
+&i2c1 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c1_pins2>;
+       clock-frequency = <100000>;
+
+       rtc: rtc@51 {
+               compatible = "haoyu,hym8563";
+               reg = <0x51>;
+               #clock-cells = <0>;
+       };
+};
+
 &ir {
        status = "okay";
        pinctrl-0 = <&remote_pins>;