diff options
author | Mike Looijmans <mike.looijmans@topic.nl> | 2014-10-28 03:08:04 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-01-21 21:23:22 -0500 |
commit | 24d3b15a1844e3d2c7f5b0d9c482ece98386ede1 (patch) | |
tree | 7272cddc1f9a1b8e809a987889a25127b71d5788 | |
parent | 085bc24d1553aae0d8a2b8e5b7c80c7862d0212c (diff) |
Add devicetree binding documentation for the LTC2941/LTC2943 driver
This adds the devicetree binding documentation for the LTC2941 and LTC2943
driver. These are I2C connected battery gas gauge ICs.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/power/ltc2941.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/ltc2941.txt b/Documentation/devicetree/bindings/power/ltc2941.txt new file mode 100644 index 000000000000..ea42ae12d924 --- /dev/null +++ b/Documentation/devicetree/bindings/power/ltc2941.txt | |||
@@ -0,0 +1,27 @@ | |||
1 | binding for LTC2941 and LTC2943 battery gauges | ||
2 | |||
3 | Both the LTC2941 and LTC2943 measure battery capacity. | ||
4 | The LTC2943 is compatible with the LTC2941, it adds voltage and | ||
5 | temperature monitoring, and uses a slightly different conversion | ||
6 | formula for the charge counter. | ||
7 | |||
8 | Required properties: | ||
9 | - compatible: Should contain "ltc2941" or "ltc2943" which also indicates the | ||
10 | type of I2C chip attached. | ||
11 | - reg: The 7-bit I2C address. | ||
12 | - lltc,resistor-sense: The sense resistor value in milli-ohms. Can be a 32-bit | ||
13 | negative value when the battery has been connected to the wrong end of the | ||
14 | resistor. | ||
15 | - lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet. | ||
16 | This determines the range and accuracy of the gauge. The value is programmed | ||
17 | into the chip only if it differs from the current setting. The setting is | ||
18 | lost when the battery is disconnected. | ||
19 | |||
20 | Example from the Topic Miami Florida board: | ||
21 | |||
22 | fuelgauge: ltc2943@64 { | ||
23 | compatible = "ltc2943"; | ||
24 | reg = <0x64>; | ||
25 | lltc,resistor-sense = <15>; | ||
26 | lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */ | ||
27 | }; | ||