Skip to content

Commit 47c9ac5

Browse files
erwangonashif
authored andcommitted
drivers/gpio: stm32: Don't perform clock gating with VddIO2
In some cases, VddIO2 is required to get port working. Looking in details, VddIO2 should be set on start up but not toggled on/off in PM use cases. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 125d82a commit 47c9ac5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/gpio/gpio_stm32.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -249,20 +249,6 @@ int gpio_stm32_clock_request(const struct device *dev, bool on)
249249
return ret;
250250
}
251251

252-
#if defined(PWR_CR2_IOSV) && DT_NODE_HAS_STATUS(DT_NODELABEL(gpiog), okay)
253-
z_stm32_hsem_lock(CFG_HW_RCC_SEMID, HSEM_LOCK_DEFAULT_RETRY);
254-
if (cfg->port == STM32_PORTG) {
255-
/* Port G[15:2] requires external power supply */
256-
/* Cf: L4/L5 RM, Chapter "Independent I/O supply rail" */
257-
if (on) {
258-
LL_PWR_EnableVddIO2();
259-
} else {
260-
LL_PWR_DisableVddIO2();
261-
}
262-
}
263-
z_stm32_hsem_unlock(CFG_HW_RCC_SEMID);
264-
#endif
265-
266252
return ret;
267253
}
268254

0 commit comments

Comments
 (0)