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 <erwan.gouriou@linaro.org>
diff --git a/drivers/gpio/gpio_stm32.c b/drivers/gpio/gpio_stm32.c
index 9066f39..295347c 100644
--- a/drivers/gpio/gpio_stm32.c
+++ b/drivers/gpio/gpio_stm32.c
@@ -249,20 +249,6 @@
return ret;
}
-#if defined(PWR_CR2_IOSV) && DT_NODE_HAS_STATUS(DT_NODELABEL(gpiog), okay)
- z_stm32_hsem_lock(CFG_HW_RCC_SEMID, HSEM_LOCK_DEFAULT_RETRY);
- if (cfg->port == STM32_PORTG) {
- /* Port G[15:2] requires external power supply */
- /* Cf: L4/L5 RM, Chapter "Independent I/O supply rail" */
- if (on) {
- LL_PWR_EnableVddIO2();
- } else {
- LL_PWR_DisableVddIO2();
- }
- }
- z_stm32_hsem_unlock(CFG_HW_RCC_SEMID);
-#endif
-
return ret;
}