Skip to content

Commit

Permalink
dt-bindings: power: Extend battery bindings with chemistry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
linusw authored and sre committed Aug 14, 2021
1 parent 0c77ec3 commit b171cb6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Documentation/devicetree/bindings/power/supply/battery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b171cb6

Please sign in to comment.