File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 73
73
/ {
74
74
chosen {
75
75
zephyr,flash-controller = &flash;
76
+ zephyr,cortex-m-idle-timer = &rtc;
76
77
};
77
78
78
79
cpus {
83
84
device_type = "cpu";
84
85
compatible = "arm,cortex-m0+";
85
86
reg = <0>;
87
+ cpu-power-states = <&stop>;
88
+ };
89
+
90
+ power-states {
91
+ stop: stop {
92
+ compatible = "zephyr,power-state";
93
+ power-state-name = "suspend-to-idle";
94
+ /* It is really hard to establish these numbers precisely.
95
+ * We are basing on RTC as a wakeup source with 62,5us tick.
96
+ * It requires a proper margin. Additionally, sys_clock_announce
97
+ * works within system tick boundaries (100us by default),
98
+ * which also introduces some shift.
99
+ */
100
+ min-residency-us = <400>;
101
+ exit-latency-us = <300>;
102
+ };
86
103
};
87
104
};
88
105
You can’t perform that action at this time.
0 commit comments