Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aceb16dc authored by Maxime Coquelin's avatar Maxime Coquelin Committed by Linus Walleij
Browse files

pinctrl: Add STM32 MCUs support



This patch adds pinctrl and GPIO support to STMicroelectronic's STM32
family of MCUs.

While it only supports STM32F429 for now, it has been designed to enable
support of other MCUs of the family (e.g. STM32F746).

Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarMaxime Coquelin <mcoquelin.stm32@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 936516bf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -257,6 +257,7 @@ source "drivers/pinctrl/qcom/Kconfig"
source "drivers/pinctrl/samsung/Kconfig"
source "drivers/pinctrl/sh-pfc/Kconfig"
source "drivers/pinctrl/spear/Kconfig"
source "drivers/pinctrl/stm32/Kconfig"
source "drivers/pinctrl/sunxi/Kconfig"
source "drivers/pinctrl/uniphier/Kconfig"
source "drivers/pinctrl/vt8500/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ obj-$(CONFIG_ARCH_QCOM) += qcom/
obj-$(CONFIG_PINCTRL_SAMSUNG)	+= samsung/
obj-$(CONFIG_PINCTRL_SH_PFC)	+= sh-pfc/
obj-$(CONFIG_PINCTRL_SPEAR)	+= spear/
obj-$(CONFIG_ARCH_STM32)	+= stm32/
obj-$(CONFIG_ARCH_SUNXI)	+= sunxi/
obj-$(CONFIG_PINCTRL_UNIPHIER)	+= uniphier/
obj-$(CONFIG_ARCH_VT8500)	+= vt8500/
+16 −0
Original line number Diff line number Diff line
if ARCH_STM32 || COMPILE_TEST

config PINCTRL_STM32
	bool
	depends on OF
	select PINMUX
	select GENERIC_PINCONF
	select GPIOLIB

config PINCTRL_STM32F429
	bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
	depends on OF
	default MACH_STM32F429
	select PINCTRL_STM32

endif
+5 −0
Original line number Diff line number Diff line
# Core
obj-$(CONFIG_PINCTRL_STM32) += pinctrl-stm32.o

# SoC Drivers
obj-$(CONFIG_PINCTRL_STM32F429)	+= pinctrl-stm32f429.o
+834 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading