Skip to content

Commit 659a820

Browse files
FRASTMnashif
authored andcommitted
boards: arm: nucleo_wb55rg: 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 27a3c95 commit 659a820

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,27 @@
2222
zephyr,code-partition = &slot0_partition;
2323
};
2424

25+
power-states {
26+
stop0: state0 {
27+
compatible = "zephyr,power-state";
28+
power-state-name = "suspend-to-idle";
29+
substate-id = <0>;
30+
min-residency-us = <100>;
31+
};
32+
stop1: state1 {
33+
compatible = "zephyr,power-state";
34+
power-state-name = "suspend-to-idle";
35+
substate-id = <1>;
36+
min-residency-us = <500>;
37+
};
38+
stop2: state2 {
39+
compatible = "zephyr,power-state";
40+
power-state-name = "suspend-to-idle";
41+
substate-id = <2>;
42+
min-residency-us = <900>;
43+
};
44+
};
45+
2546
leds {
2647
compatible = "gpio-leds";
2748
blue_led_1: led_0 {
@@ -62,6 +83,10 @@
6283
};
6384
};
6485

86+
&cpu0 {
87+
cpu-power-states = <&stop0 &stop1 &stop2>;
88+
};
89+
6590
&usart1 {
6691
pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>;
6792
current-speed = <115200>;

0 commit comments

Comments
 (0)