On 09/17/2024 12:03 PM, Linus Walleij wrote:
On Tue, Sep 17, 2024 at 8:13 PM William Zhang
<william.zhang@xxxxxxxxxxxx> wrote:
If we upstream more elaborated driver later, it will be a dedicated gpio
controller driver and not use this basic mmio gpio and we can have
the new compatible.
Thinking of it, in that case the driver would just use one reg = <>
property for the whole I/O range used by the chip and then it need
a new compatible anyway. Let's drop this for now. I'll switch over
to the old compatible.
It seems the approach taken with this SoC is a combination of
simple GPIO and a separate extint (external interrupt) unit, so
it does not need GPIOs to be able to trigger interrupts, which
was my major worry.
I am looking into this and we should be able to support an irq chip for
this gpio controller that control external interrupt controller. So any
gpio that is configured in external interrupt controller can trigger
an interrupt.
Will post such driver for review when it is ready.
Yours,
Linus Walleij