boards: b_u585i_iot02a: Provide PM configuration

Provide configuration for "suspend to idle" states
for b_u585i_iot02a target.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-09-13 17:11:10 +02:00 committed by Christopher Friedt
commit de76ab1999
3 changed files with 34 additions and 0 deletions

View file

@ -12,4 +12,9 @@ config SPI_STM32_INTERRUPT
default y
depends on SPI
choice STM32_LPTIM_CLOCK
default STM32_LPTIM_CLOCK_LSE
depends on STM32_LPTIM_TIMER
endchoice
endif # BOARD_B_U585I_IOT02A

View file

@ -28,6 +28,27 @@
gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
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>;
};
};
};
&clk_lse {

View file

@ -25,6 +25,14 @@
};
};
&cpu0 {
cpu-power-states = <&stop0 &stop1 &stop2>;
};
&lptim1 {
status = "okay";
};
&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
current-speed = <115200>;