boards: nucleo_g0b1re: Enable PM support
Enable PM support for nucleo_g0b1re. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
f7ba9ce226
commit
5c85dcc47f
2 changed files with 24 additions and 0 deletions
|
@ -22,6 +22,21 @@
|
|||
zephyr,code-partition = &slot0_partition;
|
||||
};
|
||||
|
||||
power-states {
|
||||
stop0: state0 {
|
||||
compatible = "zephyr,power-state";
|
||||
power-state-name = "suspend-to-idle";
|
||||
substate-id = <1>;
|
||||
min-residency-us = <20>;
|
||||
};
|
||||
stop1: state1 {
|
||||
compatible = "zephyr,power-state";
|
||||
power-state-name = "suspend-to-idle";
|
||||
substate-id = <2>;
|
||||
min-residency-us = <100>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_4 {
|
||||
|
@ -168,3 +183,11 @@ zephyr_udc0: &usb {
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
cpu-power-states = <&stop0 &stop1>;
|
||||
};
|
||||
|
||||
&lptim1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -19,3 +19,4 @@ supported:
|
|||
- nvs
|
||||
- dma
|
||||
- usb_device
|
||||
- lptim
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue