Skip to content

Commit 2415dcc

Browse files
ozersakartben
authored andcommitted
dts: arm: adi: Add power management states in devicetree
This commits added power management states in max32xxx MCUs Common states added in max32xxx.dtsi file and additional ones added in max32655.dtsi Exit-latency-us value set as per of device datasheet spec. The typical value is mentioned in DS is multiplied with 2. For more information please take a look: https://www.analog.com/en/products/max32655.html Signed-off-by: Sadik Ozer <[email protected]>
1 parent 497f2ce commit 2415dcc

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

dts/arm/adi/max32/max32655.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@
3333

3434
/* MAX32655 extra peripherals. */
3535
/ {
36+
cpus {
37+
cpu@0 {
38+
cpu-power-states = <&idle &suspend &standby>;
39+
};
40+
41+
power-states {
42+
/* Standby Mode */
43+
standby: standby {
44+
compatible = "zephyr,power-state";
45+
power-state-name = "standby";
46+
/* The value not mentioned in UG/DS, set it as 40us */
47+
min-residency-us = <40>;
48+
/* Typical value is 14.7us as per of Datasheet */
49+
exit-latency-us = <30>;
50+
};
51+
};
52+
};
53+
3654
soc {
3755
sram1: memory@20008000 {
3856
compatible = "mmio-sram";

dts/arm/adi/max32/max32xxx.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,28 @@
2626
device_type = "cpu";
2727
compatible = "arm,cortex-m4f";
2828
reg = <0>;
29+
cpu-power-states = <&idle &suspend>;
30+
};
31+
32+
power-states {
33+
/* Sleep Mode */
34+
idle: idle {
35+
compatible = "zephyr,power-state";
36+
power-state-name = "runtime-idle";
37+
/* The value not mentioned in UG/DS, set it as 1us */
38+
min-residency-us = <1>;
39+
/* Typical value is 0.847us as per of Datasheet */
40+
exit-latency-us = <1>;
41+
};
42+
/* Deep-sleep Mode */
43+
suspend: suspend {
44+
compatible = "zephyr,power-state";
45+
power-state-name = "suspend-to-idle";
46+
/* The value not mentioned in UG/DS, set it as 35us */
47+
min-residency-us = <35>;
48+
/* Typical value is 12.4us as per of Datasheet */
49+
exit-latency-us = <25>;
50+
};
2951
};
3052
};
3153

0 commit comments

Comments
 (0)