Skip to content

Commit e40ad1c

Browse files
EmilioCBenkartben
authored andcommitted
dts: arm: nxp: Enable RTC Counter for MCXW7X
Enabled the RTC Counter for the MCXW71 and MCXW72. Signed-off-by: Emilio Benavente <[email protected]>
1 parent 8640147 commit e40ad1c

File tree

6 files changed

+27
-0
lines changed

6 files changed

+27
-0
lines changed

boards/nxp/frdm_mcxw71/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ The ``frdm_mcxw71`` board target in Zephyr currently supports the following feat
6060
+-----------+------------+-------------------------------------+
6161
| LPTMR | on-chip | counter |
6262
+-----------+------------+-------------------------------------+
63+
| RTC | on-chip | counter |
64+
+-----------+------------+-------------------------------------+
6365
| BLE | on-chip | Bluetooth |
6466
+-----------+------------+-------------------------------------+
6567
| FLEXCAN | on-chip | can |

boards/nxp/frdm_mcxw71/frdm_mcxw71.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,7 @@
176176
status = "okay";
177177
wakeup-source;
178178
};
179+
180+
&rtc {
181+
status = "okay";
182+
};

boards/nxp/mcxw72_evk/mcxw72_evk_mcxw727c_cpu0.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,7 @@
134134
pinctrl-0 = <&pinmux_lpi2c1>;
135135
pinctrl-names = "default";
136136
};
137+
138+
&rtc {
139+
status = "okay";
140+
};

dts/arm/nxp/nxp_mcxw71.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@
6060
&smu2 {
6161
ranges = <0x0 0x1c0000 DT_SIZE_K(40)>;
6262
};
63+
64+
&rtc {
65+
reg = <0x4002c000 0x50>;
66+
};

dts/arm/nxp/nxp_mcxw72.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@
5353
&smu2 {
5454
ranges = <0x0 0x1c0000 DT_SIZE_K(80)>;
5555
};
56+
57+
&rtc {
58+
reg = <0x4002c000 0x60>;
59+
};

dts/arm/nxp/nxp_mcxw7x_common.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,15 @@
324324
nxp,current-compensation-en;
325325
status = "disabled";
326326
};
327+
328+
rtc: rtc@4002c000 {
329+
compatible = "nxp,rtc";
330+
status = "disabled";
331+
interrupts = <32 0>, <33 0>;
332+
interrupt-names = "alarm", "seconds";
333+
clock-frequency = <32768>;
334+
prescaler = <32768>;
335+
};
327336
};
328337

329338
&fast_peripheral0 {

0 commit comments

Comments
 (0)