boards: lora_e5_dev_board: add power states config

Add the power state configs so that the board can be used with suspend
to idle out of the box. This is the same config as the one in
nucleo_wl55jc.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
This commit is contained in:
Fabio Baltieri 2021-09-21 19:12:48 +01:00 committed by Christopher Friedt
commit a85b5f5fe2

View file

@ -75,6 +75,35 @@
regulator-boot-on;
status = "okay";
};
power-states {
stop0: state0 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
substate-id = <1>;
min-residency-us = <100>;
};
stop1: state1 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
substate-id = <2>;
min-residency-us = <500>;
};
stop2: state2 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
substate-id = <3>;
min-residency-us = <900>;
};
};
};
&cpu0 {
cpu-power-states = <&stop0 &stop1 &stop2>;
};
&lptim1 {
status = "okay";
};
&clk_msi {