-
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.
gpio/twl: Add DT support to gpio-twl4030 driver
Add the DT support for the I2C GPIO expander inside the twl4030. Note: The pdata parameters still have to be properly adapted using dedicated bindings. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Acked-by: Felipe Balbi <balbi@ti.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
- Loading branch information
Benoit Cousson
authored and
Samuel Ortiz
committed
Mar 22, 2012
1 parent
2d9dd99
commit b8589e2
Showing
2 changed files
with
73 additions
and
29 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,23 @@ | ||
twl4030 GPIO controller bindings | ||
|
||
Required properties: | ||
- compatible: | ||
- "ti,twl4030-gpio" for twl4030 GPIO controller | ||
- #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 not used. | ||
|
||
Example: | ||
|
||
twl_gpio: gpio { | ||
compatible = "ti,twl4030-gpio"; | ||
#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