Skip to content

Commit d545c1f

Browse files
cyliangtwfabiobaltieri
authored andcommitted
dts: arm: nuvoton: add rtc node of numaker m2l31x
Update m2l31x.dtsi, to add one rtc node for rtc support. Signed-off-by: cyliang tw <cyliang@nuvoton.com>
1 parent 1805c47 commit d545c1f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dts/arm/nuvoton/m2l31x.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
zephyr,flash-controller = &rmc;
1919
};
2020

21+
aliases {
22+
rtc = &rtc;
23+
};
24+
2125
cpus {
2226
#address-cells = <1>;
2327
#size-cells = <0>;
@@ -40,6 +44,7 @@
4044
compatible = "nuvoton,numaker-scc";
4145
reg = <0x40000200 0x100>;
4246
#clock-cells = <0>;
47+
lxt = "enable";
4348
clk-pclkdiv = <(NUMAKER_CLK_PCLKDIV_APB0DIV_DIV2 |
4449
NUMAKER_CLK_PCLKDIV_APB1DIV_DIV2)>;
4550
core-clock = <DT_FREQ_M(72)>;
@@ -320,6 +325,15 @@
320325
status = "disabled";
321326
#io-channel-cells = <1>;
322327
};
328+
329+
rtc: rtc@40041000 {
330+
compatible = "nuvoton,numaker-rtc";
331+
reg = <0x40041000 0x138>;
332+
interrupts = <6 0>;
333+
oscillator = "lxt";
334+
clocks = <&pcc NUMAKER_RTC_MODULE 0 0>;
335+
alarms-count = <1>;
336+
};
323337
};
324338
};
325339

0 commit comments

Comments
 (0)