På måndagen den 29 juli 2013 vid 10:17 AM, skrev Javier Martinez
Canillas <[email protected]>:
> On Mon, Jul 29, 2013 at 8:41 AM, Alexander Holler <[email protected]> 
> wrote:
>> Am 28.07.2013 21:06, schrieb Javier Martinez Canillas:

>>>>>                  interrupt-parent = <&gpio6>;
>>>>>                  interrupts = <16 8>;
>>
>>
>> What do the values 16 and 8 mean here? GPIO numbers?
>> And where do I have to place that?
(...)
>     - bits[3:0] trigger type and level flags
>         1 = low-to-high edge triggered
>         2 = high-to-low edge triggered
>         4 = active high level-sensitive
>         8 = active low level-sensitive
>
> So, the first cell in this example means the 16th GPIO in the omap
> gpio6 controller using the edge/level flag IRQ_TYPE_LEVEL_LOW.

We have a better way to express this to avoid confusion.
In your DTS file, using the new DTS preprocessor:

#include <dt-bindings/interrupt-controller/irq.h>

interrupt-parent = <&gpio6>;
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to