Skip to content

Commit 1f91cfe

Browse files
Raffael Rostagnojhedberg
authored andcommitted
dts: pm: esp32h2: Add power states
Add power states for PM. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent da21bee commit 1f91cfe

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

dts/riscv/espressif/esp32h2/esp32h2_common.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,27 @@
3636
compatible = "espressif,riscv";
3737
riscv,isa = "rv32imac_zicsr";
3838
reg = <0>;
39+
cpu-power-states = <&light_sleep &deep_sleep>;
3940
clock-source = <ESP32_CPU_CLK_SRC_PLL>;
4041
clock-frequency = <DT_FREQ_M(96)>;
4142
xtal-freq = <DT_FREQ_M(32)>;
4243
};
44+
45+
power-states {
46+
light_sleep: light_sleep {
47+
compatible = "zephyr,power-state";
48+
power-state-name = "standby";
49+
min-residency-us = <200>;
50+
exit-latency-us = <60>;
51+
};
52+
53+
deep_sleep: deep_sleep {
54+
compatible = "zephyr,power-state";
55+
power-state-name = "soft-off";
56+
min-residency-us = <2000>;
57+
exit-latency-us = <212>;
58+
};
59+
};
4360
};
4461

4562
pinctrl: pin-controller {

0 commit comments

Comments
 (0)