-
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.
Adding support to generate platform data when kernel is configured through device tree. Also adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein <rklein@nvidia.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
- Loading branch information
Rhyland Klein
authored and
Anton Vorontsov
committed
Nov 24, 2011
1 parent
85b5fbf
commit 6c75ea1
Showing
2 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/power_supply/ti_bq20z75.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,23 @@ | ||
TI bq20z75 | ||
~~~~~~~~~~ | ||
|
||
Required properties : | ||
- compatible : "ti,bq20z75" | ||
|
||
Optional properties : | ||
- ti,i2c-retry-count : The number of times to retry i2c transactions on i2c | ||
IO failure. | ||
- ti,poll-retry-count : The number of times to try looking for new status | ||
after an external change notification. | ||
- ti,battery-detect-gpios : The gpio which signals battery detection and | ||
a flag specifying its polarity. | ||
|
||
Example: | ||
|
||
bq20z75@b { | ||
compatible = "ti,bq20z75"; | ||
reg = < 0xb >; | ||
ti,i2c-retry-count = <2>; | ||
ti,poll-retry-count = <10>; | ||
ti,battery-detect-gpios = <&gpio-controller 122 1>; | ||
} |
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