Skip to content

Commit

Permalink
gpio: grgpio: Add irq support
Browse files Browse the repository at this point in the history
The drivers sets up an irq domain and hands out unique irqs to irq
capable gpio lines regardless of how underlying irq maps to gpio
lines. Any gpio line can map to any one or none of the irqs of the
core, independently of each other.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Andreas Larsson authored and Linus Walleij committed Apr 26, 2013
1 parent ddb27f3 commit 08ffb22
Show file tree
Hide file tree
Showing 2 changed files with 364 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Documentation/devicetree/bindings/gpio/gpio-grgpio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ Optional properties:

- nbits : The number of gpio lines. If not present driver assumes 32 lines.

- irqmap : An array with an index for each gpio line. An index is either a valid
index into the interrupts property array, or 0xffffffff that indicates
no irq for that line. Driver provides no interrupt support if not
present.

For further information look in the documentation for the GLIB IP core library:
http://www.gaisler.com/products/grlib/grip.pdf
Loading

0 comments on commit 08ffb22

Please sign in to comment.