[PATCH 3/3] riscv: dts: sophgo: add rtc dt node for CV1800B
From: Jingbao Qiu
Date: Tue Nov 21 2023 - 04:47:11 EST
Add the rtc device tree node to CV1800B SoC.
Signed-off-by: Jingbao Qiu <qiujingbao.dlmu@xxxxxxxxx>
---
arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi
index df40e87ee063..89411c75b89a 100644
--- a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi
+++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi
@@ -119,5 +119,13 @@ clint: timer@74000000 {
reg = <0x74000000 0x10000>;
interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>;
};
+
+ rtc: rtc-controller@05026000 {
+ compatible = "sophgo,cv800b-rtc";
+ reg = <0x05026000 0x1000>;
+ interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-parent = <&plic>;
+ clocks = <&osc>;
+ };
};
};
--
2.25.1