Skip to content

Commit 8698f82

Browse files
FRASTMnashif
authored andcommitted
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 <[email protected]>
1 parent 659a820 commit 8698f82

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

boards/arm/nucleo_l476rg/nucleo_l476rg.dts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,27 @@
2020
zephyr,flash = &flash0;
2121
};
2222

23+
power-states {
24+
stop0: state0 {
25+
compatible = "zephyr,power-state";
26+
power-state-name = "suspend-to-idle";
27+
substate-id = <0>;
28+
min-residency-us = <500>;
29+
};
30+
stop1: state1 {
31+
compatible = "zephyr,power-state";
32+
power-state-name = "suspend-to-idle";
33+
substate-id = <1>;
34+
min-residency-us = <700>;
35+
};
36+
stop2: state2 {
37+
compatible = "zephyr,power-state";
38+
power-state-name = "suspend-to-idle";
39+
substate-id = <2>;
40+
min-residency-us = <1000>;
41+
};
42+
};
43+
2344
leds {
2445
compatible = "gpio-leds";
2546
green_led_2: led_2 {
@@ -42,6 +63,10 @@
4263
};
4364
};
4465

66+
&cpu0 {
67+
cpu-power-states = <&stop0 &stop1 &stop2>;
68+
};
69+
4570
&usart1 {
4671
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
4772
current-speed = <115200>;

0 commit comments

Comments
 (0)