Skip to content

Commit 264711e

Browse files
committed
dts: mcxw7x: Add Power Management support
Add support for power management states Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent 36bc2f3 commit 264711e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

dts/arm/nxp/nxp_mcxw7x_common.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
cpu0: cpu@0 {
3333
compatible = "arm,cortex-m33f";
3434
reg = <0>;
35+
cpu-power-states = <&sleep &sleep_optimized &deep_sleep>;
3536
#address-cells = <1>;
3637
#size-cells = <1>;
3738

@@ -40,6 +41,31 @@
4041
reg = <0xe000ed90 0x40>;
4142
};
4243
};
44+
45+
power-states {
46+
/* This is most simple state and is just entered by doing WFI. */
47+
sleep: sleep {
48+
compatible = "zephyr,power-state";
49+
power-state-name = "runtime-idle";
50+
min-residency-us = <100>;
51+
exit-latency-us = <0>;
52+
};
53+
/* This is corresponding to SoC sleep mode. */
54+
sleep_optimized: sleep-optimized {
55+
compatible = "zephyr,power-state";
56+
power-state-name = "suspend-to-idle";
57+
substate-id = <0>;
58+
min-residency-us = <500>;
59+
exit-latency-us = <10>;
60+
};
61+
/* This is corresponding to SoC deep-sleep mode. */
62+
deep_sleep: deep-sleep {
63+
compatible = "zephyr,power-state";
64+
power-state-name = "standby";
65+
min-residency-us = <1000>;
66+
exit-latency-us = <11>;
67+
};
68+
};
4369
};
4470

4571
soc {

0 commit comments

Comments
 (0)