boards: arm: nucleo_l476rg: Add idle states in dts

Add information about this board idle states in its dts.
Stop 0, 1, 2 modes are supported.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-02-05 12:58:23 +01:00 committed by Anas Nashif
commit 8698f828c5

View file

@ -20,6 +20,27 @@
zephyr,flash = &flash0;
};
power-states {
stop0: state0 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
substate-id = <0>;
min-residency-us = <500>;
};
stop1: state1 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
substate-id = <1>;
min-residency-us = <700>;
};
stop2: state2 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-idle";
substate-id = <2>;
min-residency-us = <1000>;
};
};
leds {
compatible = "gpio-leds";
green_led_2: led_2 {
@ -42,6 +63,10 @@
};
};
&cpu0 {
cpu-power-states = <&stop0 &stop1 &stop2>;
};
&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
current-speed = <115200>;