Skip to content

Commit 1e9c240

Browse files
Shreeya Patelmmind
authored andcommitted
arm64: dts: rockchip: Enable RTC support for Rock 5B
Add DT node to enable RTC support for Rock 5B board. Signed-off-by: Shreeya Patel <[email protected]> Reviewed-by: Christopher Obbard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 387b3bb commit 1e9c240

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,31 @@
2727
};
2828
};
2929

30+
&i2c6 {
31+
status = "okay";
32+
33+
hym8563: rtc@51 {
34+
compatible = "haoyu,hym8563";
35+
reg = <0x51>;
36+
#clock-cells = <0>;
37+
clock-frequency = <32768>;
38+
clock-output-names = "hym8563";
39+
pinctrl-names = "default";
40+
pinctrl-0 = <&hym8563_int>;
41+
interrupt-parent = <&gpio0>;
42+
interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
43+
wakeup-source;
44+
};
45+
};
46+
47+
&pinctrl {
48+
hym8563 {
49+
hym8563_int: hym8563-int {
50+
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
51+
};
52+
};
53+
};
54+
3055
&sdhci {
3156
bus-width = <8>;
3257
no-sdio;

0 commit comments

Comments
 (0)