Re: [PATCH v3 7/7] gpio: add pinctrl based generic gpio driver
From: Linus Walleij
Date: Wed Mar 11 2026 - 18:04:47 EST
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.
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.)
Yours,
Linus Walleij