ltc2941.txt 1.1 KB

123456789101112131415161718192021222324252627
  1. binding for LTC2941 and LTC2943 battery gauges
  2. Both the LTC2941 and LTC2943 measure battery capacity.
  3. The LTC2943 is compatible with the LTC2941, it adds voltage and
  4. temperature monitoring, and uses a slightly different conversion
  5. formula for the charge counter.
  6. Required properties:
  7. - compatible: Should contain "ltc2941" or "ltc2943" which also indicates the
  8. type of I2C chip attached.
  9. - reg: The 7-bit I2C address.
  10. - lltc,resistor-sense: The sense resistor value in milli-ohms. Can be a 32-bit
  11. negative value when the battery has been connected to the wrong end of the
  12. resistor.
  13. - lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet.
  14. This determines the range and accuracy of the gauge. The value is programmed
  15. into the chip only if it differs from the current setting. The setting is
  16. lost when the battery is disconnected.
  17. Example from the Topic Miami Florida board:
  18. fuelgauge: ltc2943@64 {
  19. compatible = "ltc2943";
  20. reg = <0x64>;
  21. lltc,resistor-sense = <15>;
  22. lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
  23. };