This adds a battery-type 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 <redacted>
---
ChangeLog v1->v2:
- Add devicetree list to Cc
- Use "device-chemistry" instead of "battery-type" as this
has precedence in standards.
I need a bunch of new bindings for switch the STE AB8500 custom
bindings out, but I need to start somewhere, this is as good as
any place to start.
---
.../devicetree/bindings/power/supply/battery.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
@@ -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
From: Sebastian Reichel <hidden> Date: 2021-08-05 16:04:13
Hi,
On Thu, Aug 05, 2021 at 10:58:27AM +0200, Linus Walleij wrote:
This adds a battery-type 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 <redacted>
---
ChangeLog v1->v2:
- Add devicetree list to Cc
- Use "device-chemistry" instead of "battery-type" as this
has precedence in standards.
I need a bunch of new bindings for switch the STE AB8500 custom
bindings out, but I need to start somewhere, this is as good as
any place to start.
---
Waiting a bit to give Rob a chance to review this. From my side
it looks good.
Reviewed-by: Sebastian Reichel <redacted>
-- Sebastian
@@ -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
From: Rob Herring <robh@kernel.org> Date: 2021-08-13 18:27:03
On Thu, Aug 05, 2021 at 10:58:27AM +0200, Linus Walleij wrote:
This adds a battery-type property and bindings for the different
s/battery-type/"device-chemistry"/
Otherwise,
Reviewed-by: Rob Herring <robh@kernel.org>
"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 <redacted>
---
ChangeLog v1->v2:
- Add devicetree list to Cc
- Use "device-chemistry" instead of "battery-type" as this
has precedence in standards.
I need a bunch of new bindings for switch the STE AB8500 custom
bindings out, but I need to start somewhere, this is as good as
any place to start.
---
.../devicetree/bindings/power/supply/battery.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)