[PATCH 04/15] arm64: dts: rockchip: Enable RTC support for opi5max
Jimmy Hon
honyuenkwun at gmail.com
Sat Oct 26 02:48:20 PDT 2024
Add DT node to enable RTC support for Orange Pi 5 Max
Signed-off-by: Jimmy Hon <honyuenkwun at gmail.com>
---
.../dts/rockchip/rk3588-orangepi-5-max.dts | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
index 83a118e52bb0..961f9271d0f0 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
@@ -150,6 +150,32 @@ regulator-state-mem {
};
};
+&i2c6 {
+ clock-frequency = <400000>;
+ status = "okay";
+
+ hym8563: rtc at 51 {
+ compatible = "haoyu,hym8563";
+ reg = <0x51>;
+ /* RTC_INT_L */
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>;
+ #clock-cells = <0>;
+ clock-output-names = "hym8563";
+ pinctrl-names = "default";
+ pinctrl-0 = <&hym8563_int>;
+ wakeup-source;
+ };
+};
+
+&pinctrl {
+ hym8563 {
+ hym8563_int: hym8563-int {
+ rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+};
+
&pwm4 {
pinctrl-names = "default";
pinctrl-0 = <&pwm4m0_pins>;
--
2.47.0
More information about the Linux-rockchip
mailing list