Skip to content

Commit a3d42ff

Browse files
mmahadevan108kartben
authored andcommitted
dts: nxp_rw6xx: Add support for standby power mode
This maps to Power Mode 3 in the SoC. Add RTC node that is used to wakeup from this mode. Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent 9004207 commit a3d42ff

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

dts/arm/nxp/nxp_rw6xx_common.dtsi

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
reg = <0>;
3131
#address-cells = <1>;
3232
#size-cells = <1>;
33-
cpu-power-states = <&idle &suspend>;
33+
cpu-power-states = <&idle &suspend &standby>;
3434

3535
mpu: mpu@e000ed90 {
3636
compatible = "arm,armv8m-mpu";
@@ -58,6 +58,20 @@
5858
<0x100>,
5959
<0x0>;
6060
};
61+
/* This is the setting for Sleep Mode */
62+
standby: standby {
63+
compatible = "nxp,pdcfg-power", "zephyr,power-state";
64+
power-state-name = "standby";
65+
/* TODO: Revisit latency numbers */
66+
min-residency-us = <5000>;
67+
exit-latency-us = <1000>;
68+
deep-sleep-config = <0x180000>,
69+
<0x0>,
70+
<0x4>,
71+
<0x100>,
72+
<0x0>;
73+
status = "disabled";
74+
};
6175
};
6276
};
6377

@@ -225,7 +239,7 @@
225239
resets = <&rstctl1 NXP_SYSCON_RESET(0, 8)>;
226240
dmas = <&dma0 0>, <&dma0 1>;
227241
dma-names = "rx", "tx";
228-
zephyr,disabling-power-states = <&suspend>;
242+
zephyr,disabling-power-states = <&suspend &standby>;
229243
status = "disabled";
230244
};
231245

@@ -237,7 +251,7 @@
237251
resets = <&rstctl1 NXP_SYSCON_RESET(0, 9)>;
238252
dmas = <&dma0 2>, <&dma0 3>;
239253
dma-names = "rx", "tx";
240-
zephyr,disabling-power-states = <&suspend>;
254+
zephyr,disabling-power-states = <&suspend &standby>;
241255
status = "disabled";
242256
};
243257

@@ -249,7 +263,7 @@
249263
resets = <&rstctl1 NXP_SYSCON_RESET(0, 10)>;
250264
dmas = <&dma0 4>, <&dma0 5>;
251265
dma-names = "rx", "tx";
252-
zephyr,disabling-power-states = <&suspend>;
266+
zephyr,disabling-power-states = <&suspend &standby>;
253267
status = "disabled";
254268
};
255269

@@ -261,7 +275,7 @@
261275
resets = <&rstctl1 NXP_SYSCON_RESET(0, 11)>;
262276
dmas = <&dma0 6>, <&dma0 7>;
263277
dma-names = "rx", "tx";
264-
zephyr,disabling-power-states = <&suspend>;
278+
zephyr,disabling-power-states = <&suspend &standby>;
265279
status = "disabled";
266280
};
267281

@@ -273,7 +287,7 @@
273287
resets = <&rstctl1 NXP_SYSCON_RESET(0, 22)>;
274288
dmas = <&dma0 26>, <&dma0 27>;
275289
dma-names = "rx", "tx";
276-
zephyr,disabling-power-states = <&suspend>;
290+
zephyr,disabling-power-states = <&suspend &standby>;
277291
status = "disabled";
278292
};
279293

@@ -327,6 +341,17 @@
327341
dmas = <&dma0 0>;
328342
};
329343

344+
rtc: rtc@30000 {
345+
compatible = "nxp,lpc-rtc";
346+
reg = <0x30000 0x1000>;
347+
interrupts = <32 0>;
348+
status = "disabled";
349+
rtc_highres: rtc_highres {
350+
compatible = "nxp,lpc-rtc-highres";
351+
status = "disabled";
352+
};
353+
};
354+
330355
ctimer0: ctimer@28000 {
331356
compatible = "nxp,lpc-ctimer";
332357
reg = <0x28000 0x1000>;

0 commit comments

Comments
 (0)