Skip to content

Commit 20a1ea7

Browse files
HoZHelcfriedt
authored andcommitted
boards: st: nucleo_wb09ke: Optimize power consumption
Optimize power consumption for the Nucleo-WB09KE board by implementing correct pull-up/pull-down configurations when the device enters lower power states. Disable the SMPS with floating output in suspend-to-ram (deepstop) power state. Signed-off-by: Ali Hozhabri <[email protected]>
1 parent 51fc440 commit 20a1ea7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

boards/st/nucleo_wb09ke/nucleo_wb09ke.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
&pwrc {
9191
smps-mode = "RUN";
9292
smps-bom = <3>;
93+
smps-lp-floating;
9394
};
9495

9596
&clk_lse {
@@ -129,6 +130,37 @@
129130
status = "okay";
130131
};
131132

133+
/* Optimize power consumption during lower power state */
134+
&gpioa {
135+
gpios-pull-up {
136+
gpio-hog;
137+
gpios = <0 GPIO_PULL_UP>;
138+
input;
139+
};
140+
141+
gpios-pull-down {
142+
gpio-hog;
143+
gpios = <8 GPIO_PULL_DOWN>, <9 GPIO_PULL_DOWN>,
144+
<10 GPIO_PULL_DOWN>, <11 GPIO_PULL_DOWN>;
145+
input;
146+
};
147+
};
148+
149+
&gpiob {
150+
gpios-pull-up {
151+
gpio-hog;
152+
gpios = <1 GPIO_PULL_UP>, <2 GPIO_PULL_UP>, <4 GPIO_PULL_UP>,
153+
<5 GPIO_PULL_UP>, <14 GPIO_PULL_UP>, <15 GPIO_PULL_UP>;
154+
input;
155+
};
156+
157+
gpios-pull-down {
158+
gpio-hog;
159+
gpios = <3 GPIO_PULL_DOWN>, <6 GPIO_PULL_DOWN>, <7 GPIO_PULL_DOWN>;
160+
input;
161+
};
162+
};
163+
132164
&bt_hci_wb0 {
133165
status = "okay";
134166
};

0 commit comments

Comments
 (0)