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:
parent
997e4584ce
commit
de76ab1999
3 changed files with 34 additions and 0 deletions
|
@ -12,4 +12,9 @@ config SPI_STM32_INTERRUPT
|
||||||
default y
|
default y
|
||||||
depends on SPI
|
depends on SPI
|
||||||
|
|
||||||
|
choice STM32_LPTIM_CLOCK
|
||||||
|
default STM32_LPTIM_CLOCK_LSE
|
||||||
|
depends on STM32_LPTIM_TIMER
|
||||||
|
endchoice
|
||||||
|
|
||||||
endif # BOARD_B_U585I_IOT02A
|
endif # BOARD_B_U585I_IOT02A
|
||||||
|
|
|
@ -28,6 +28,27 @@
|
||||||
gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
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 {
|
&clk_lse {
|
||||||
|
|
|
@ -25,6 +25,14 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cpu0 {
|
||||||
|
cpu-power-states = <&stop0 &stop1 &stop2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&lptim1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&usart1 {
|
&usart1 {
|
||||||
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
||||||
current-speed = <115200>;
|
current-speed = <115200>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue