Re: gpio-mt7621 unroutable IRQs to bank0
From: Sergio Paracuellos
Date: Thu May 14 2026 - 08:00:37 EST
On Tue, May 12, 2026 at 2:17 AM Vicente Bergas <vicencb@xxxxxxxxx> wrote:
>
> On Thu, May 7, 2026 at 12:52 PM Sergio Paracuellos
> <sergio.paracuellos@xxxxxxxxx> wrote:
> >
> > On Thu, May 7, 2026 at 10:54 AM Linus Walleij <linusw@xxxxxxxxxx> wrote:
> > >
> > > On Thu, May 7, 2026 at 6:06 AM Sergio Paracuellos
> > > <sergio.paracuellos@xxxxxxxxx> wrote:
> > >
> > > > Linus, Bartosz, any advice regarding this?
> > >
> > > I sent the advice to try to use an external irqdomain already?
> >
> > True. Sorry, I missed that somehow.
> >
> > Best regards,
> > Sergio Paracuellos
>
> Please, can somebody write some general guidelines on how to use an
> external irqdomain?
> I'm lost here, i don't know where to start.
IIUC we need to register an external irq_domain for the 96 pins that
the three banks (32 gpios each) can reference. Current driver has
three gpio_chip instances but we will have one external domain now so
I don't know but we would need probably a specific xlate function so
when the device tree asks for a gpio on whatever bank the driver maps
the correct offset in the external domain. The other tricky part would
be the irq handler itself that now has to iterate the three banks to
trigger the proper virtual IRQ.
Linus, is my understanding correct?
Thanks,
Sergio Paracuellos