Re: [PATCH v4] gpiolib: support parsing gpio three-cell interrupts scheme
From: Bartosz Golaszewski
Date: Tue Apr 08 2025 - 12:59:47 EST
On Tue, Apr 8, 2025 at 6:05 PM Alex Elder <elder@xxxxxxxxxxxx> wrote:
>
> On 4/8/25 10:11 AM, Yixun Lan wrote:
> > gpio irq which using three-cell scheme should always call
> > instance_match() function to find the correct irqdomain.
> >
> > The select() function will be called with !DOMAIN_BUS_ANY,
> > so for specific gpio irq driver, it need to set bus token
> > explicitly, something like:
> > irq_domain_update_bus_token(girq->domain, DOMAIN_BUS_WIRED);
> >
> > Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>
> > ---
> > In this patch [1], the GPIO controller add support for describing
> > hardware with a three-cell scheme:
> >
> > gpios = <&gpio instance offset flags>;
> >
> > It also result describing interrupts in three-cell as this in DT:
> >
> > node {
> > interrupt-parent = <&gpio>;
> > interrupts = <instance hwirq irqflag>;
> > }
> >
> > This series try to extend describing interrupts with three-cell scheme.
> >
> > The first patch will add capability for parsing irq number and flag
> > from last two cells which eventually will support the three-cells
> > interrupt, the second patch support finding irqdomain according to
> > interrupt instance index.
>
> Did you intend to send more than just one patch? -Alex
>
That's alright, the original series was 2 patches, Thomas picked up
the first and now I'm taking the second through the GPIO tree.
Bart