Skip to content

Commit 619f8ca

Browse files
author
Alexandre Torgue
committed
pinctrl: stm32: add stm32mp257 pinctrl support
Add stm32mp257 pinctrl support. Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
1 parent a456454 commit 619f8ca

4 files changed

Lines changed: 2591 additions & 0 deletions

File tree

drivers/pinctrl/stm32/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ config PINCTRL_STM32MP157
5151
depends on OF && HAS_IOMEM
5252
default MACH_STM32MP157
5353
select PINCTRL_STM32
54+
55+
config PINCTRL_STM32MP257
56+
bool "STMicroelectronics STM32MP257 pin control" if COMPILE_TEST && !MACH_STM32MP25
57+
depends on OF && HAS_IOMEM
58+
default MACH_STM32MP25
59+
select PINCTRL_STM32
5460
endif

drivers/pinctrl/stm32/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ obj-$(CONFIG_PINCTRL_STM32F769) += pinctrl-stm32f769.o
1010
obj-$(CONFIG_PINCTRL_STM32H743) += pinctrl-stm32h743.o
1111
obj-$(CONFIG_PINCTRL_STM32MP135) += pinctrl-stm32mp135.o
1212
obj-$(CONFIG_PINCTRL_STM32MP157) += pinctrl-stm32mp157.o
13+
obj-$(CONFIG_PINCTRL_STM32MP257) += pinctrl-stm32mp257.o

drivers/pinctrl/stm32/pinctrl-stm32.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#define STM32MP_PKG_AB BIT(1)
2525
#define STM32MP_PKG_AC BIT(2)
2626
#define STM32MP_PKG_AD BIT(3)
27+
#define STM32MP_PKG_AI BIT(8)
28+
#define STM32MP_PKG_AK BIT(10)
29+
#define STM32MP_PKG_AL BIT(11)
2730

2831
struct stm32_desc_function {
2932
const char *name;

0 commit comments

Comments
 (0)