-
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.
yaml --- r: 296916 b: refs/heads/master c: 384ebe1 h: refs/heads/master v: v3
- Loading branch information
Benoit Cousson
committed
Mar 5, 2012
1 parent
b11dae5
commit cb67080
Showing
3 changed files
with
149 additions
and
10 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 96751fcbe5438e95514b025e9cee7a6d38038f40 | ||
refs/heads/master: 384ebe1c2849160d040df3e68634ec506f13d9ff |
36 changes: 36 additions & 0 deletions
36
trunk/Documentation/devicetree/bindings/gpio/gpio-omap.txt
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,36 @@ | ||
OMAP GPIO controller bindings | ||
|
||
Required properties: | ||
- compatible: | ||
- "ti,omap2-gpio" for OMAP2 controllers | ||
- "ti,omap3-gpio" for OMAP3 controllers | ||
- "ti,omap4-gpio" for OMAP4 controllers | ||
- #gpio-cells : Should be two. | ||
- first cell is the pin number | ||
- second cell is used to specify optional parameters (unused) | ||
- gpio-controller : Marks the device node as a GPIO controller. | ||
- #interrupt-cells : Should be 2. | ||
- interrupt-controller: Mark the device node as an interrupt controller | ||
The first cell is the GPIO number. | ||
The second cell is used to specify flags: | ||
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. | ||
|
||
OMAP specific properties: | ||
- ti,hwmods: Name of the hwmod associated to the GPIO: | ||
"gpio<X>", <X> being the 1-based instance number from the HW spec | ||
|
||
|
||
Example: | ||
|
||
gpio4: gpio4 { | ||
compatible = "ti,omap4-gpio"; | ||
ti,hwmods = "gpio4"; | ||
#gpio-cells = <2>; | ||
gpio-controller; | ||
#interrupt-cells = <2>; | ||
interrupt-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