-
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.
drivers/gpio: gpio-nomadik: Provide documentation for Device Tree bin…
…dings Add required documentation for specific gpio-nomadik DT bindings. Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
- Loading branch information
Lee Jones
authored and
Linus Walleij
committed
Apr 23, 2012
1 parent
c0b133b
commit b55ac4e
Showing
1 changed file
with
29 additions
and
0 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,29 @@ | ||
Nomadik GPIO controller | ||
|
||
Required properties: | ||
- compatible : Should be "st,nomadik-gpio". | ||
- reg : Physical base address and length of the controller's registers. | ||
- interrupts : The interrupt outputs from the controller. | ||
- #gpio-cells : Should be two: | ||
The first cell is the pin number. | ||
The second cell is used to specify optional parameters: | ||
- 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. | ||
- gpio-controller : Marks the device node as a GPIO controller. | ||
- gpio-bank : Specifies which bank a controller owns. | ||
- st,supports-sleepmode : Specifies whether controller can sleep or not | ||
|
||
Example: | ||
|
||
gpio1: gpio@8012e080 { | ||
compatible = "st,nomadik-gpio"; | ||
reg = <0x8012e080 0x80>; | ||
interrupts = <0 120 0x4>; | ||
#gpio-cells = <2>; | ||
gpio-controller; | ||
supports-sleepmode; | ||
gpio-bank = <1>; | ||
}; |