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 <sadik.ozer@analog.com>
This commit is contained in:
Sadik Ozer 2023-12-25 15:23:41 +03:00 committed by Benjamin Cabé
commit 2415dcc5ea
2 changed files with 40 additions and 0 deletions

View file

@ -33,6 +33,24 @@
/* MAX32655 extra peripherals. */
/ {
cpus {
cpu@0 {
cpu-power-states = <&idle &suspend &standby>;
};
power-states {
/* Standby Mode */
standby: standby {
compatible = "zephyr,power-state";
power-state-name = "standby";
/* The value not mentioned in UG/DS, set it as 40us */
min-residency-us = <40>;
/* Typical value is 14.7us as per of Datasheet */
exit-latency-us = <30>;
};
};
};
soc {
sram1: memory@20008000 {
compatible = "mmio-sram";

View file

@ -26,6 +26,28 @@
device_type = "cpu";
compatible = "arm,cortex-m4f";
reg = <0>;
cpu-power-states = <&idle &suspend>;
};
power-states {
/* Sleep Mode */
idle: idle {
compatible = "zephyr,power-state";
power-state-name = "runtime-idle";
/* The value not mentioned in UG/DS, set it as 1us */
min-residency-us = <1>;
/* Typical value is 0.847us as per of Datasheet */
exit-latency-us = <1>;
};
/* Deep-sleep Mode */
suspend: suspend {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
/* The value not mentioned in UG/DS, set it as 35us */
min-residency-us = <35>;
/* Typical value is 12.4us as per of Datasheet */
exit-latency-us = <25>;
};
};
};