How to create IRQ mappings in a GPIO driver that doesn't control its IRQ domain ?

Linus Walleij linus.walleij at linaro.org
Thu Jul 25 09:19:32 EDT 2013


On Thu, Jul 25, 2013 at 11:45 AM, Laurent Pinchart
<laurent.pinchart at ideasonboard.com> wrote:

> The two devices are independent, so there's no real parent/child relationship.
> However, as Grant proposed, I could list all the interrupts associated with
> GPIOs in the GPIO controller DT node. I would then just call
> irq_of_parse_and_map() in the .to_irq() handler to magically translate the
> GPIO number to a mapped IRQ number.

That works even if the device tree will need a comment or two
to explain what is going on.

I suggested a similar solution for the OMAP crossbar mux
that is discussed in another thread, so I'm happy with this
approach.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list