Skip to contentSkip to conversation

arm64: dts: nuvoton: ma35d1: add rtc node

PATCH New Jacky Huang 1 participant 1 message Jun 4, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: nuvoton: ma35d1: add rtc node

From: Jacky Huang <[email protected]>

Add RTC node on MA35D1 and enable the RTC module on SOM and IoT boards.

---
 arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts | 4 ++++
 arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts | 4 ++++
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi         | 8 ++++++++
 3 files changed, 16 insertions(+)
arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts +4 -0
index b89e2be6abae..b3be4331abcf 100644
@@ -54,3 +54,7 @@ &clk {
 			   "integer",
 			   "integer";
 };
+
+&rtc {
+	status = "okay";
+};
arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts +4 -0
index a1ebddecb7f8..9858788a589c 100644
@@ -54,3 +54,7 @@ &clk {
 			   "integer",
 			   "integer";
 };
+
+&rtc {
+	status = "okay";
+};
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi +8 -0
index 781cdae566a0..394395bfd3ae 100644
@@ -95,6 +95,14 @@ clk: clock-controller@40460200 {
 			clocks = <&clk_hxt>;
 		};
 
+		rtc: rtc@40410000 {
+			compatible = "nuvoton,ma35d1-rtc";
+			reg = <0x0 0x40410000 0x0 0x200>;
+			interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clk RTC_GATE>;
+			status = "disabled";
+		};
+
 		uart0: serial@40700000 {
 			compatible = "nuvoton,ma35d1-uart";
 			reg = <0x0 0x40700000 0x0 0x100>;
Signature · 1 line
2.34.1