-
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.
To achieve DT support, we need to populate a custom platform_data in a private struct from DT information. To simplify code, the adapter and algorithm are also put into the private struct. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
- Loading branch information
Jean-Christophe PLAGNIOL-VILLARD
committed
Mar 15, 2012
1 parent
86a89f4
commit 8ffaa0f
Showing
2 changed files
with
108 additions
and
22 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,32 @@ | ||
Device-Tree bindings for i2c gpio driver | ||
|
||
Required properties: | ||
- compatible = "i2c-gpio"; | ||
- gpios: sda and scl gpio | ||
|
||
|
||
Optional properties: | ||
- i2c-gpio,sda-open-drain: sda as open drain | ||
- i2c-gpio,scl-open-drain: scl as open drain | ||
- i2c-gpio,scl-output-only: scl as output only | ||
- i2c-gpio,delay-us: delay between GPIO operations (may depend on each platform) | ||
- i2c-gpio,timeout-ms: timeout to get data | ||
|
||
Example nodes: | ||
|
||
i2c@0 { | ||
compatible = "i2c-gpio"; | ||
gpios = <&pioA 23 0 /* sda */ | ||
&pioA 24 0 /* scl */ | ||
>; | ||
i2c-gpio,sda-open-drain; | ||
i2c-gpio,scl-open-drain; | ||
i2c-gpio,delay-us = <2>; /* ~100 kHz */ | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
rv3029c2@56 { | ||
compatible = "rv3029c2"; | ||
reg = <0x56>; | ||
}; | ||
}; |
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