162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciif ARCH_STM32 || COMPILE_TEST
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciconfig PINCTRL_STM32
562306a36Sopenharmony_ci	bool
662306a36Sopenharmony_ci	depends on OF
762306a36Sopenharmony_ci	select PINMUX
862306a36Sopenharmony_ci	select GENERIC_PINCONF
962306a36Sopenharmony_ci	select GPIOLIB
1062306a36Sopenharmony_ci	select IRQ_DOMAIN_HIERARCHY
1162306a36Sopenharmony_ci	select MFD_SYSCON
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciconfig PINCTRL_STM32F429
1462306a36Sopenharmony_ci	bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
1562306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
1662306a36Sopenharmony_ci	default MACH_STM32F429
1762306a36Sopenharmony_ci	select PINCTRL_STM32
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciconfig PINCTRL_STM32F469
2062306a36Sopenharmony_ci	bool "STMicroelectronics STM32F469 pin control" if COMPILE_TEST && !MACH_STM32F469
2162306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
2262306a36Sopenharmony_ci	default MACH_STM32F469
2362306a36Sopenharmony_ci	select PINCTRL_STM32
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciconfig PINCTRL_STM32F746
2662306a36Sopenharmony_ci	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
2762306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
2862306a36Sopenharmony_ci	default MACH_STM32F746
2962306a36Sopenharmony_ci	select PINCTRL_STM32
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciconfig PINCTRL_STM32F769
3262306a36Sopenharmony_ci	bool "STMicroelectronics STM32F769 pin control" if COMPILE_TEST && !MACH_STM32F769
3362306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
3462306a36Sopenharmony_ci	default MACH_STM32F769
3562306a36Sopenharmony_ci	select PINCTRL_STM32
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciconfig PINCTRL_STM32H743
3862306a36Sopenharmony_ci	bool "STMicroelectronics STM32H743 pin control" if COMPILE_TEST && !MACH_STM32H743
3962306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
4062306a36Sopenharmony_ci	default MACH_STM32H743
4162306a36Sopenharmony_ci	select PINCTRL_STM32
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciconfig PINCTRL_STM32MP135
4462306a36Sopenharmony_ci	bool "STMicroelectronics STM32MP135 pin control" if COMPILE_TEST && !MACH_STM32MP13
4562306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
4662306a36Sopenharmony_ci	default MACH_STM32MP13
4762306a36Sopenharmony_ci	select PINCTRL_STM32
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciconfig PINCTRL_STM32MP157
5062306a36Sopenharmony_ci	bool "STMicroelectronics STM32MP157 pin control" if COMPILE_TEST && !MACH_STM32MP157
5162306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
5262306a36Sopenharmony_ci	default MACH_STM32MP157
5362306a36Sopenharmony_ci	select PINCTRL_STM32
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ciconfig PINCTRL_STM32MP257
5662306a36Sopenharmony_ci	bool "STMicroelectronics STM32MP257 pin control" if COMPILE_TEST && !MACH_STM32MP25
5762306a36Sopenharmony_ci	depends on OF && HAS_IOMEM
5862306a36Sopenharmony_ci	default MACH_STM32MP25
5962306a36Sopenharmony_ci	select PINCTRL_STM32
6062306a36Sopenharmony_ciendif
61