boards: xtensa: esp32s2_saola: dts: add power states
Add power states to ESP32-S2 Saola board dts. Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
parent
7dbb1ff276
commit
d449b32b02
1 changed files with 26 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
compatible = "espressif,esp32s2";
|
||||
|
||||
aliases {
|
||||
sw0 = &user_button;
|
||||
i2c-0 = &i2c0;
|
||||
watchdog0 = &wdt0;
|
||||
};
|
||||
|
@ -24,10 +25,35 @@
|
|||
zephyr,shell-uart = &uart0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
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 = <2000>;
|
||||
exit-latency-us = <212>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
user_button: user_button {
|
||||
label = "BOOT";
|
||||
gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <ESP32_CLK_CPU_240M>;
|
||||
cpu-power-states = <&deep_sleep &light_sleep>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue