diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-08-05 10:58:27 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2021-08-14 12:47:28 +0200 |
commit | b171cb623ca253856b7bf7345e8761a7f24b54b9 (patch) | |
tree | a52500d6ae25d3de01f33766399aa50b8282796d | |
parent | power: reset: linkstation-poweroff: add new device (diff) | |
download | linux-b171cb623ca253856b7bf7345e8761a7f24b54b9.tar.xz linux-b171cb623ca253856b7bf7345e8761a7f24b54b9.zip |
dt-bindings: power: Extend battery bindings with chemistry
This adds a battery-chemistry property and bindings for the different
"technologies" that are used in Linux. More types can be added.
This is needed to convert the custom ST-Ericsson AB8500 battery
properties over to the generic battery bindings.
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-rw-r--r-- | Documentation/devicetree/bindings/power/supply/battery.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/battery.yaml b/Documentation/devicetree/bindings/power/supply/battery.yaml index c3b4b7543591..d56ac484fec5 100644 --- a/Documentation/devicetree/bindings/power/supply/battery.yaml +++ b/Documentation/devicetree/bindings/power/supply/battery.yaml @@ -31,6 +31,20 @@ properties: compatible: const: simple-battery + device-chemistry: + description: This describes the chemical technology of the battery. + oneOf: + - const: nickel-cadmium + - const: nickel-metal-hydride + - const: lithium-ion + description: This is a blanket type for all lithium-ion batteries, + including those below. If possible, a precise compatible string + from below should be used, but sometimes it is unknown which specific + lithium ion battery is employed and this wide compatible can be used. + - const: lithium-ion-polymer + - const: lithium-ion-iron-phosphate + - const: lithium-ion-manganese-oxide + over-voltage-threshold-microvolt: description: battery over-voltage limit |