From: Antonio Borneo <antonio.borneo@foss.st.com>
To: "Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>,
"Russell King" <linux@armlinux.org.uk>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Chen-Yu Tsai" <wens@kernel.org>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Samuel Holland" <samuel@sholland.org>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Linus Walleij" <linusw@kernel.org>,
"Bartosz Golaszewski" <brgl@kernel.org>,
"Leonard Göhrs" <l.goehrs@pengutronix.de>,
"Chris Morgan" <macromorgan@hotmail.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-kernel@vger.kernel.org>, <linux-sunxi@lists.linux.dev>,
<dri-devel@lists.freedesktop.org>, <linux-gpio@vger.kernel.org>
Subject: Re: [PATCH 1/3] ARM: stm32: select HAVE_SHARED_GPIOS
Date: Fri, 4 Dec 2026 16:09:16 +0100 [thread overview]
Message-ID: <c48155add16c4e0f3d9d411e22df02eb31ac9c60.camel@foss.st.com> (raw)
In-Reply-To: <20261103-panel-mipi-non-exclusive-gpios-v1-1-aa862c1d71e3@oss.qualcomm.com>
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@oss.qualcomm.com>
> ---
> 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
next prev parent reply other threads:[~2026-12-04 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 13:33 [PATCH 0/3] drm/panel-mipi-dbi: stop requesting GPIOs explicitly as non-exclusive Bartosz Golaszewski
2026-11-03 13:33 ` [PATCH 1/3] ARM: stm32: select HAVE_SHARED_GPIOS Bartosz Golaszewski
2026-12-04 15:09 ` Antonio Borneo [this message]
2026-11-03 13:33 ` [PATCH 2/3] ARM: sunxi: " Bartosz Golaszewski
2026-11-03 13:33 ` [PATCH 3/3] drm/panel-mipi-dbi: drop GPIOD_FLAGS_BIT_NONEXCLUSIVE Bartosz Golaszewski
2026-12-04 15:10 ` Antonio Borneo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c48155add16c4e0f3d9d411e22df02eb31ac9c60.camel@foss.st.com \
--to=antonio.borneo@foss.st.com \
--cc=airlied@gmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=brgl@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=l.goehrs@pengutronix.de \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux@armlinux.org.uk \
--cc=maarten.lankhorst@linux.intel.com \
--cc=macromorgan@hotmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=mripard@kernel.org \
--cc=samuel@sholland.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®