boards: nucleo_g071rb: Enable PM support
Enable PM support for nucleo_g071rb. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
5c85dcc47f
commit
85bb8178cb
2 changed files with 24 additions and 0 deletions
|
@ -21,6 +21,21 @@
|
||||||
zephyr,flash = &flash0;
|
zephyr,flash = &flash0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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 {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
green_led_1: led_4 {
|
green_led_1: led_4 {
|
||||||
|
@ -140,3 +155,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cpu0 {
|
||||||
|
cpu-power-states = <&stop0 &stop1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&lptim1 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
@ -22,3 +22,4 @@ supported:
|
||||||
- adc
|
- adc
|
||||||
- dac
|
- dac
|
||||||
- dma
|
- dma
|
||||||
|
- lptim
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue