dts: riscv: espressif: esp32: move power-states to soc dts files

CPU idle states are not board specific. This patch moves ESP32 idle
states to the core SoC dts files. Board can always tweak some state
parameters (if needed), but the definition belongs to core SoC dts
files, same as e.g. peripherals.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2023-07-19 12:05:47 +02:00 committed by Carles Cufí
commit 5eee169cf0
8 changed files with 52 additions and 86 deletions

View file

@ -26,27 +26,10 @@
i2c-0 = &i2c0;
watchdog0 = &wdt0;
};
power-states {
light_sleep: light_sleep {
compatible = "zephyr,power-state";
power-state-name = "standby";
min-residency-us = <200>;
exit-latency-us = <60>;
};
deep_sleep: deep_sleep {
compatible = "zephyr,power-state";
power-state-name = "soft-off";
min-residency-us = <660>;
exit-latency-us = <105>;
};
};
};
&cpu0 {
clock-frequency = <ESP32_CLK_CPU_160M>;
cpu-power-states = <&deep_sleep &light_sleep>;
};
&uart0 {