The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/power/supply/ltc2941.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 1693d512d899cd689ae9454eb81e8086


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.