Skip to content

Commit 85bb817

Browse files
ycsinnashif
authored andcommitted
boards: nucleo_g071rb: Enable PM support
Enable PM support for nucleo_g071rb. Signed-off-by: Yong Cong Sin <[email protected]>
1 parent 5c85dcc commit 85bb817

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

boards/arm/nucleo_g071rb/nucleo_g071rb.dts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@
2121
zephyr,flash = &flash0;
2222
};
2323

24+
power-states {
25+
stop0: state0 {
26+
compatible = "zephyr,power-state";
27+
power-state-name = "suspend-to-idle";
28+
substate-id = <1>;
29+
min-residency-us = <20>;
30+
};
31+
stop1: state1 {
32+
compatible = "zephyr,power-state";
33+
power-state-name = "suspend-to-idle";
34+
substate-id = <2>;
35+
min-residency-us = <100>;
36+
};
37+
};
38+
2439
leds {
2540
compatible = "gpio-leds";
2641
green_led_1: led_4 {
@@ -140,3 +155,11 @@
140155
};
141156
};
142157
};
158+
159+
&cpu0 {
160+
cpu-power-states = <&stop0 &stop1>;
161+
};
162+
163+
&lptim1 {
164+
status = "okay";
165+
};

boards/arm/nucleo_g071rb/nucleo_g071rb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ supported:
2222
- adc
2323
- dac
2424
- dma
25+
- lptim

0 commit comments

Comments
 (0)