1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/power/supply/lltc,ltc294x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LTC2941, LTC2942, LTC2943 and LTC2944 battery fuel gauges
10 All chips measure battery capacity.
11 The LTC2942 is pin compatible with the LTC2941, it adds voltage and
12 temperature monitoring, and is runtime detected. LTC2943 and LTC2944
13 are software compatible, uses a slightly different conversion formula
14 for the charge counter and adds voltage, current and temperature monitoring.
17 - Sebastian Reichel <sre@kernel.org>
20 - $ref: power-supply.yaml#
34 $ref: /schemas/types.yaml#/definitions/int32
36 Sense resistor value in milli-ohms.
37 Can be negative value when the battery has been connected to the wrong end of the resistor.
39 lltc,prescaler-exponent:
40 $ref: /schemas/types.yaml#/definitions/uint32
42 The prescaler exponent as explained in the datasheet.
43 This determines the range and accuracy of the gauge.
44 The value is programmed into the chip only if it differs from the current setting.
45 The setting is lost when the battery is disconnected.
51 - lltc,prescaler-exponent
53 additionalProperties: false
61 compatible = "lltc,ltc2943";
63 lltc,resistor-sense = <15>;
64 lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */