Skip to content

Commit 2e63b27

Browse files
numbqqsuperna9999
authored andcommitted
arm64: dts: amlogic: meson-s4-s905y4-khadas-vim1s: enable HYM8563 RTC
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>
1 parent 42379e7 commit 2e63b27

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/meson-s4-s905y4-khadas-vim1s.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
mmc0 = &emmc; /* eMMC */
2121
mmc1 = &sd; /* SD card */
2222
mmc2 = &sdio; /* SDIO */
23+
rtc0 = &rtc;
24+
rtc1 = &vrtc;
2325
serial0 = &uart_b;
2426
};
2527

@@ -223,6 +225,19 @@
223225
phy-mode = "rmii";
224226
};
225227

228+
&i2c1 {
229+
status = "okay";
230+
pinctrl-names = "default";
231+
pinctrl-0 = <&i2c1_pins2>;
232+
clock-frequency = <100000>;
233+
234+
rtc: rtc@51 {
235+
compatible = "haoyu,hym8563";
236+
reg = <0x51>;
237+
#clock-cells = <0>;
238+
};
239+
};
240+
226241
&ir {
227242
status = "okay";
228243
pinctrl-0 = <&remote_pins>;

0 commit comments

Comments
 (0)