File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 32
32
cpu0: cpu@0 {
33
33
compatible = "arm,cortex-m33f";
34
34
reg = <0>;
35
+ cpu-power-states = <&sleep &sleep_optimized &deep_sleep>;
35
36
#address-cells = <1>;
36
37
#size-cells = <1>;
37
38
40
41
reg = <0xe000ed90 0x40>;
41
42
};
42
43
};
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
+ };
43
69
};
44
70
45
71
soc {
You can’t perform that action at this time.
0 commit comments