-
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: 309087 b: refs/heads/master c: a36e9a1 h: refs/heads/master i: 309085: 839bdbb 309083: 6eb066f 309079: e0f5e74 309071: fb68b18 309055: c92930b v: v3
- Loading branch information
John Crispin
authored and
Ralf Baechle
committed
May 21, 2012
1 parent
b710986
commit 5261f21
Showing
3 changed files
with
128 additions
and
58 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: 5238f7bc356670ba702057c7de7f07909133f788 | ||
refs/heads/master: a36e9a1c5fa67cdc965fe011f1d04317adb35953 |
38 changes: 38 additions & 0 deletions
38
trunk/Documentation/devicetree/bindings/gpio/gpio-mm-lantiq.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,38 @@ | ||
Lantiq SoC External Bus memory mapped GPIO controller | ||
|
||
By attaching hardware latches to the EBU it is possible to create output | ||
only gpios. This driver configures a special memory address, which when | ||
written to outputs 16 bit to the latches. | ||
|
||
The node describing the memory mapped GPIOs needs to be a child of the node | ||
describing the "lantiq,localbus". | ||
|
||
Required properties: | ||
- compatible : Should be "lantiq,gpio-mm-lantiq" | ||
- reg : Address and length of the register set for the device | ||
- #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. | ||
|
||
Optional properties: | ||
- lantiq,shadow : The default value that we shall assume as already set on the | ||
shift register cascade. | ||
|
||
Example: | ||
|
||
localbus@0 { | ||
#address-cells = <2>; | ||
#size-cells = <1>; | ||
ranges = <0 0 0x0 0x3ffffff /* addrsel0 */ | ||
1 0 0x4000000 0x4000010>; /* addsel1 */ | ||
compatible = "lantiq,localbus", "simple-bus"; | ||
|
||
gpio_mm0: gpio@4000000 { | ||
compatible = "lantiq,gpio-mm"; | ||
reg = <1 0x0 0x10>; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
lantiq,shadow = <0x77f> | ||
}; | ||
} |
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