* [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type
@ 2021-08-05 8:58 Linus Walleij
2021-08-05 16:03 ` Sebastian Reichel
2021-08-13 18:26 ` Rob Herring
0 siblings, 2 replies; 5+ messages in thread
From: Linus Walleij @ 2021-08-05 8:58 UTC (permalink / raw)
To: Sebastian Reichel, Marcus Cooper; +Cc: linux-pm, Linus Walleij, devicetree
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 <linus.walleij@linaro.org>
---
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(+)
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
--
2.31.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type
2021-08-05 8:58 [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type Linus Walleij
@ 2021-08-05 16:03 ` Sebastian Reichel
2021-08-13 18:26 ` Rob Herring
1 sibling, 0 replies; 5+ messages in thread
From: Sebastian Reichel @ 2021-08-05 16:03 UTC (permalink / raw)
To: Linus Walleij; +Cc: Marcus Cooper, linux-pm, devicetree
[-- Attachment #1: Type: text/plain, Size: 2232 bytes --]
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 <linus.walleij@linaro.org>
> ---
> 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 <sebastian.reichel@collabora.com>
-- Sebastian
> .../devicetree/bindings/power/supply/battery.yaml | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> 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
>
> --
> 2.31.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type
2021-08-05 8:58 [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type Linus Walleij
2021-08-05 16:03 ` Sebastian Reichel
@ 2021-08-13 18:26 ` Rob Herring
2021-08-13 21:46 ` Linus Walleij
1 sibling, 1 reply; 5+ messages in thread
From: Rob Herring @ 2021-08-13 18:26 UTC (permalink / raw)
To: Linus Walleij; +Cc: Sebastian Reichel, Marcus Cooper, linux-pm, devicetree
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 <linus.walleij@linaro.org>
> ---
> 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(+)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type
2021-08-13 18:26 ` Rob Herring
@ 2021-08-13 21:46 ` Linus Walleij
2021-08-14 10:55 ` Sebastian Reichel
0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2021-08-13 21:46 UTC (permalink / raw)
To: Rob Herring
Cc: Sebastian Reichel, Marcus Cooper, Linux PM list,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
On Fri, Aug 13, 2021 at 8:26 PM Rob Herring <robh@kernel.org> wrote:
> 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>
Thanks Rob, Sebastian tell me if you can fix this when applying
or if you want me to respin the patch.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type
2021-08-13 21:46 ` Linus Walleij
@ 2021-08-14 10:55 ` Sebastian Reichel
0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Reichel @ 2021-08-14 10:55 UTC (permalink / raw)
To: Linus Walleij
Cc: Rob Herring, Marcus Cooper, Linux PM list,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
[-- Attachment #1: Type: text/plain, Size: 629 bytes --]
Hi,
On Fri, Aug 13, 2021 at 11:46:52PM +0200, Linus Walleij wrote:
> On Fri, Aug 13, 2021 at 8:26 PM Rob Herring <robh@kernel.org> wrote:
> > 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>
>
> Thanks Rob, Sebastian tell me if you can fix this when applying
> or if you want me to respin the patch.
No, that's fine. I queued both patches with type changed to
chemistry in the commit messages.
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-14 10:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-05 8:58 [PATCH 1/2 v2] dt-bindings: power: Extend battery bindings with type Linus Walleij
2021-08-05 16:03 ` Sebastian Reichel
2021-08-13 18:26 ` Rob Herring
2021-08-13 21:46 ` Linus Walleij
2021-08-14 10:55 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).