Re: [PATCH 1/3] ARM: stm32: select HAVE_SHARED_GPIOS
From: Antonio Borneo
Date: Fri Dec 04 2026 - 10:09:47 EST
On Tue, 2026-11-03 at 14:33 +0100, Bartosz Golaszewski wrote:
> Enable automated management of shared GPIOs provided by the GPIO shared
> proxy module for stm32 platforms.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> arch/arm/mach-stm32/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
> index 4ac3384e397aabd86e4843d6a6326cd22a2dd66e..ecb6b35610f4988b4fca3fa10defc260a149f7c1 100644
> --- a/arch/arm/mach-stm32/Kconfig
> +++ b/arch/arm/mach-stm32/Kconfig
> @@ -9,6 +9,7 @@ menuconfig ARCH_STM32
> select ARM_AMBA
> select ARCH_HAS_RESET_CONTROLLER
> select CLKSRC_STM32
> + select HAVE_SHARED_GPIOS
> select PINCTRL
> select RESET_CONTROLLER
> select STM32_EXTI if ARM_SINGLE_ARMV7M
>
Hi Bartosz,
ARCH_STM32 is enabled by default in multi_v7_defconfig and in the deprecated
stm32_defconfig.
ARCH_SUNXI is enabled by default in multi_v7_defconfig, multi_v5_defconfig
and sunxi_defconfig.
My concern is about all the other platforms that use these defconfig and
will then embed the extra shared gpio code, while not using it.
The driver "panel-mipi-dbi" has the feature to share "dc-gpio", but none of
the upstream DT needs nor uses it.
Looking for the compatible "panel-mipi-dbi-spi", I see that:
- arch/arm/boot/dts/allwinner/sun8i-v3s-anbernic-rg-nano.dts
dc-gpios = <&pio 2 0 GPIO_ACTIVE_HIGH>;
has no other references to "pio 2 0"
- arch/arm/boot/dts/st/stm32mp153c-lxa-fairytux2.dtsi and
arch/arm/boot/dts/st/stm32mp15xc-lxa-tac.dtsi get included by board DTs:
- stm32mp153c-lxa-fairytux2-gen1.dts
- stm32mp153c-lxa-fairytux2-gen2.dts
- stm32mp153c-lxa-tac-gen3.dts
- stm32mp157c-lxa-tac-gen1.dts
- stm32mp157c-lxa-tac-gen2.dts
all using the same GPIO:
dc-gpios = <&gpiod 10 0>;
and none has other references to "gpiod 10".
My conclusion is that neither STM32 nor SUNXI arch need HAVE_SHARED_GPIOS,
at least not on current upstream DTs.
I have added in copy Leonard Göhrs and Chris Morgan, the developers that
added the panel's node in the above DTs, to get their feedback.
Patch 3/3 could be merged independently, dropping 1/3 and 2/3.
Best Regards,
Antonio