mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -04:00
The Devicetree bindings document does not have to say in the title that
it is a "Devicetree binding", but instead just describe the hardware.
Drop beginning "Devicetree bindings" in various forms:
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-exec sed -i -e 's/^title: [dD]evice[ -]\?[tT]ree [bB]indings\? for \([tT]he \)\?\(.*\)$/title: \u\2/' {} \;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-exec sed -i -e 's/^title: [bB]indings\? for \([tT]he \)\?\(.*\)$/title: \u\2/' {} \;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-exec sed -i -e 's/^title: [dD][tT] [bB]indings\? for \([tT]he \)\?\(.*\)$/title: \u\2/' {} \;
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # MMC
Acked-by: Stephen Boyd <sboyd@kernel.org> # clk
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> # input
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Sebastian Reichel <sre@kernel.org> # power
Link: https://lore.kernel.org/r/20221216163815.522628-8-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/power/supply/lltc,ltc294x.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: LTC2941, LTC2942, LTC2943 and LTC2944 battery fuel gauges
|
|
|
|
description: |
|
|
All chips measure battery capacity.
|
|
The LTC2942 is pin compatible with the LTC2941, it adds voltage and
|
|
temperature monitoring, and is runtime detected. LTC2943 and LTC2944
|
|
are software compatible, uses a slightly different conversion formula
|
|
for the charge counter and adds voltage, current and temperature monitoring.
|
|
|
|
maintainers:
|
|
- Sebastian Reichel <sre@kernel.org>
|
|
|
|
allOf:
|
|
- $ref: power-supply.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- lltc,ltc2941
|
|
- lltc,ltc2942
|
|
- lltc,ltc2943
|
|
- lltc,ltc2944
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
lltc,resistor-sense:
|
|
$ref: /schemas/types.yaml#/definitions/int32
|
|
description: |
|
|
Sense resistor value in milli-ohms.
|
|
Can be negative value when the battery has been connected to the wrong end of the resistor.
|
|
|
|
lltc,prescaler-exponent:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description: |
|
|
The prescaler exponent as explained in the datasheet.
|
|
This determines the range and accuracy of the gauge.
|
|
The value is programmed into the chip only if it differs from the current setting.
|
|
The setting is lost when the battery is disconnected.
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- lltc,resistor-sense
|
|
- lltc,prescaler-exponent
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
i2c0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
battery@64 {
|
|
compatible = "lltc,ltc2943";
|
|
reg = <0x64>;
|
|
lltc,resistor-sense = <15>;
|
|
lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
|
|
};
|
|
};
|