Skip to content

Commit bf71281

Browse files
yongxu-wang15kartben
authored andcommitted
dts: nxp: imx943: add CPU power states for M33 and M7 cores
Introduce power state definitions for i.MX943 Cortex-M cores in DTS Signed-off-by: Yongxu Wang <[email protected]>
1 parent ad4bac2 commit bf71281

File tree

3 files changed

+75
-3
lines changed

3 files changed

+75
-3
lines changed

dts/arm/nxp/nxp_imx943_m33.dtsi

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
#address-cells = <1>;
1717
#size-cells = <0>;
1818

19-
cpu@0 {
19+
cpu0:cpu@0 {
2020
device_type = "cpu";
2121
compatible = "arm,cortex-m33";
22+
cpu-power-states = <&wait &stop &suspend>;
2223
reg = <0>;
2324
clock-frequency = <DT_FREQ_M(333)>;
2425

@@ -30,6 +31,29 @@
3031
reg = <0xe000ed90 0x40>;
3132
};
3233
};
34+
35+
power-states {
36+
wait: power-state-wait {
37+
compatible = "zephyr,power-state";
38+
power-state-name = "runtime-idle";
39+
min-residency-us = <100>;
40+
exit-latency-us = <50>;
41+
};
42+
43+
stop: power-state-stop {
44+
compatible = "zephyr,power-state";
45+
power-state-name = "suspend-to-idle";
46+
min-residency-us = <1000>;
47+
exit-latency-us = <200>;
48+
};
49+
50+
suspend: power-state-suspend {
51+
compatible = "zephyr,power-state";
52+
power-state-name = "standby";
53+
min-residency-us = <5000>;
54+
exit-latency-us = <1000>;
55+
};
56+
};
3357
};
3458

3559
reserved-memory {

dts/arm/nxp/nxp_imx943_m7_0.dtsi

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
#address-cells = <1>;
1616
#size-cells = <0>;
1717

18-
cpu@0 {
18+
cpu0: cpu@0 {
1919
device_type = "cpu";
2020
compatible = "arm,cortex-m7";
2121
reg = <0>;
2222
clock-frequency = <DT_FREQ_M(800)>;
23+
cpu-power-states = <&wait &stop &suspend>;
2324

2425
#address-cells = <1>;
2526
#size-cells = <1>;
@@ -30,6 +31,29 @@
3031
reg = <0xe000ed90 0x40>;
3132
};
3233
};
34+
35+
power-states {
36+
wait: power-state-wait {
37+
compatible = "zephyr,power-state";
38+
power-state-name = "runtime-idle";
39+
min-residency-us = <100>;
40+
exit-latency-us = <50>;
41+
};
42+
43+
stop: power-state-stop {
44+
compatible = "zephyr,power-state";
45+
power-state-name = "suspend-to-idle";
46+
min-residency-us = <1000>;
47+
exit-latency-us = <200>;
48+
};
49+
50+
suspend: power-state-suspend {
51+
compatible = "zephyr,power-state";
52+
power-state-name = "standby";
53+
min-residency-us = <5000>;
54+
exit-latency-us = <1000>;
55+
};
56+
};
3357
};
3458

3559
reserved-memory {

dts/arm/nxp/nxp_imx943_m7_1.dtsi

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
#address-cells = <1>;
1616
#size-cells = <0>;
1717

18-
cpu@0 {
18+
cpu0: cpu@0 {
1919
device_type = "cpu";
2020
compatible = "arm,cortex-m7";
2121
reg = <0>;
2222
clock-frequency = <DT_FREQ_M(800)>;
23+
cpu-power-states = <&wait &stop &suspend>;
2324

2425
#address-cells = <1>;
2526
#size-cells = <1>;
@@ -30,6 +31,29 @@
3031
reg = <0xe000ed90 0x40>;
3132
};
3233
};
34+
35+
power-states {
36+
wait: power-state-wait {
37+
compatible = "zephyr,power-state";
38+
power-state-name = "runtime-idle";
39+
min-residency-us = <100>;
40+
exit-latency-us = <50>;
41+
};
42+
43+
stop: power-state-stop {
44+
compatible = "zephyr,power-state";
45+
power-state-name = "suspend-to-idle";
46+
min-residency-us = <1000>;
47+
exit-latency-us = <200>;
48+
};
49+
50+
suspend: power-state-suspend {
51+
compatible = "zephyr,power-state";
52+
power-state-name = "standby";
53+
min-residency-us = <5000>;
54+
exit-latency-us = <1000>;
55+
};
56+
};
3357
};
3458

3559
reserved-memory {

0 commit comments

Comments
 (0)