-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: at91/gpio: add irqdomain and DT support
Add "legacy" type of irqdomain to preserve old-style numbering and allow smooth transition for both DT and non-DT cases. Original idea and code by Jean-Christophe Plagniol-Villard. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- Loading branch information
Nicolas Ferre
committed
Mar 1, 2012
1 parent
4340cde
commit 21f8187
Showing
5 changed files
with
291 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
* Atmel GPIO controller (PIO) | ||
|
||
Required properties: | ||
- compatible: "atmel,at91rm9200-gpio" | ||
- reg: Should contain GPIO controller registers location and length | ||
- interrupts: Should be the port interrupt shared by all the pins. | ||
- #gpio-cells: Should be two. The first cell is the pin number and | ||
the second cell is used to specify optional parameters (currently | ||
unused). | ||
- gpio-controller: Marks the device node as a GPIO controller. | ||
|
||
Example: | ||
pioA: gpio@fffff200 { | ||
compatible = "atmel,at91rm9200-gpio"; | ||
reg = <0xfffff200 0x100>; | ||
interrupts = <2 4>; | ||
#gpio-cells = <2>; | ||
gpio-controller; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.