Re: [PATCH v3 7/7] gpio: add pinctrl based generic gpio driver

From: Andy Shevchenko

Date: Thu Mar 12 2026 - 06:41:54 EST


On Wed, Mar 11, 2026 at 11:00:02PM +0100, Linus Walleij wrote:
> On Wed, Mar 11, 2026 at 9:34 PM Andy Shevchenko
> <andriy.shevchenko@xxxxxxxxx> wrote:
> > On Wed, Mar 11, 2026 at 10:39:24PM +0300, Dan Carpenter wrote:
> >
> > > The ARM SCMI pinctrl protocol allows GPIO access. Instead of creating
> > > a new SCMI gpio driver, this driver is a generic GPIO driver that uses
> > > standard pinctrl interfaces.
> >
> > Similar wondering here... Can't this code be integrated with one of
> > the existing generic things, like gpio-aggregator?
>
> The aggregator is very different, it takes existing GPIOs and
> creates a new GPIOchip from them.
>
> What this does is essentially take the gpio-ranges, find the
> backing pins on the pin controller, and creates a GPIOchip
> from them.

Thanks for elaboration! But why is it done this way? It doesn't sound
like a usual (generic) problem to solve.

> I don't see anything that can be shared by the other generic
> business sadly, but I think maybe another back-end using just
> pin control can re-use this. In this case it is SCMI but any other
> firmware API just exposing pin control and no explicit GPIO
> could use this. (Not that I can think of any.)

--
With Best Regards,
Andy Shevchenko