Skip to content

Commit 2834362

Browse files
fabiobaltierinashif
authored andcommitted
boards: b_l072z_lrwan1: enable power management support
Enable lptim1 and configure the suspend power state for b_l072z_lrwan1. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 13facbe commit 2834362

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

boards/arm/b_l072z_lrwan1/b_l072z_lrwan1.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@
5757
eeprom-0 = &eeprom;
5858
lora0 = &lora;
5959
};
60+
61+
power-states {
62+
stop: stop {
63+
compatible = "zephyr,power-state";
64+
power-state-name = "suspend-to-idle";
65+
min-residency-us = <100>;
66+
};
67+
};
68+
};
69+
70+
&cpu0 {
71+
cpu-power-states = <&stop>;
72+
};
73+
74+
&lptim1 {
75+
status = "okay";
6076
};
6177

6278
&clk_hsi {

dts/arm/st/l0/stm32l0.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#address-cells = <1>;
2222
#size-cells = <0>;
2323

24-
cpu@0 {
24+
cpu0: cpu@0 {
2525
device_type = "cpu";
2626
compatible = "arm,cortex-m0+";
2727
reg = <0>;

0 commit comments

Comments
 (0)