Thread (16 messages) 16 messages, 6 authors, 2013-10-21

Re: [PATCH] RFC: interrupt consistency check for OF GPIO IRQs

From: Alexander Holler <hidden>
Date: 2013-09-12 08:56:47
Also in: linux-arm-kernel, linux-omap, lkml

Am 11.09.2013 19:42, schrieb Alexander Holler:
Am 11.09.2013 18:14, schrieb Javier Martinez Canillas:
quoted
So for example in an OMAP board DT you can define something like this:

ethernet@5,0 {
         compatible = "smsc,lan9221", "smsc,lan9115";
         interrupt-parent = <&gpio6>;
         interrupts = <16 8>;
};

Since each OMAP GPIO bank has 32 GPIO pins, then what you are defining
is that
the GPIO 176 (5 * 32 + 16) will be mapped as the IRQ line for the
ethernet
controller.
By the way, how do you define two GPIOs/IRQs from different
gpio-banks/irq-controllers wuth that scheme?

Would that be like below?

 ethernet@5,0 {
          compatible = "smsc,lan9221", "smsc,lan9115";
          interrupt-parent = <&gpio6>;
          interrupts = <16 8>;
          interrupt-parent = <&gpio7>;
          interrupts = <1 IRQF_TRIGGER_FALLING>; /* GPIO7_1 */
 };

So multiple definitions of interrupt-parent are allowed and the order
does matter? And such does work? Sorry for asking, but I'm relatively
new to DT. ;)

Regards,

Alexander Holler
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help