drivers: stm32: Select PINCTRL when required
Select PINCTRL subsystem by drivers which require it.
Prevent the need from enabling this symbol at board or soc level.
Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
diff --git a/drivers/i2s/Kconfig.stm32 b/drivers/i2s/Kconfig.stm32
index 3a4078d..1df49c5 100644
--- a/drivers/i2s/Kconfig.stm32
+++ b/drivers/i2s/Kconfig.stm32
@@ -9,6 +9,7 @@
depends on DT_HAS_ST_STM32_I2S_ENABLED
select CACHE_MANAGEMENT if CPU_HAS_DCACHE
select DMA
+ select PINCTRL
help
Enable I2S support on the STM32 family of processors.
(Tested on the STM32F4 & STM32H7 series)