About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / power / ltc2941.txt


Based on kernel version 4.8. Page generated on 2016-10-06 23:13 EST.

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		};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog