Re: How to create IRQ mappings in a GPIO driver that doesn't controlits IRQ domain ?
From: Linus Walleij
Date: Thu Jul 25 2013 - 09:19:38 EST
On Thu, Jul 25, 2013 at 11:45 AM, Laurent Pinchart
> 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
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/