Skip to content

Commit 5c85dcc

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

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@
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 = <1>;
30+
min-residency-us = <20>;
31+
};
32+
stop1: state1 {
33+
compatible = "zephyr,power-state";
34+
power-state-name = "suspend-to-idle";
35+
substate-id = <2>;
36+
min-residency-us = <100>;
37+
};
38+
};
39+
2540
leds {
2641
compatible = "gpio-leds";
2742
green_led_1: led_4 {
@@ -168,3 +183,11 @@ zephyr_udc0: &usb {
168183
};
169184
};
170185
};
186+
187+
&cpu0 {
188+
cpu-power-states = <&stop0 &stop1>;
189+
};
190+
191+
&lptim1 {
192+
status = "okay";
193+
};

boards/arm/nucleo_g0b1re/nucleo_g0b1re.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ supported:
1919
- nvs
2020
- dma
2121
- usb_device
22+
- lptim

0 commit comments

Comments
 (0)