diff mbox series

[1/5] dt-bindings: power: supply: add dual-cell for cw2015

Message ID 20240726194948.109326-2-macroalpha82@gmail.com
State New
Headers show
Series Add GameForce Ace | expand

Commit Message

Chris Morgan July 26, 2024, 7:49 p.m. UTC
From: Chris Morgan <macromorgan@hotmail.com>

According to the datasheet for the cw2015 the device supports dual-cell
configurations. Add a new device tree property for this condition so
that the voltage values reported to userspace are correct.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 .../devicetree/bindings/power/supply/cw2015_battery.yaml    | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Rob Herring (Arm) July 30, 2024, 4:36 p.m. UTC | #1
On Fri, Jul 26, 2024 at 02:49:44PM -0500, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> According to the datasheet for the cw2015 the device supports dual-cell
> configurations. Add a new device tree property for this condition so
> that the voltage values reported to userspace are correct.
> 
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> ---
>  .../devicetree/bindings/power/supply/cw2015_battery.yaml    | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml
> index dc697b6147b2..0e7866d42cca 100644
> --- a/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml
> @@ -34,6 +34,12 @@ properties:
>      minItems: 64
>      maxItems: 64
>  
> +  cellwise,dual-cell:
> +    description: |

Don't need '|' if no formatting.

Acked-by: Rob Herring (Arm) <robh@kernel.org>

> +      This property specifies if the battery is used in a dual-cell series
> +      configuration so that the correct voltage is presented to userspace.
> +    type: boolean
> +
>    cellwise,monitor-interval-ms:
>      description:
>        Specifies the interval in milliseconds gauge values are polled at
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml
index dc697b6147b2..0e7866d42cca 100644
--- a/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml
+++ b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml
@@ -34,6 +34,12 @@  properties:
     minItems: 64
     maxItems: 64
 
+  cellwise,dual-cell:
+    description: |
+      This property specifies if the battery is used in a dual-cell series
+      configuration so that the correct voltage is presented to userspace.
+    type: boolean
+
   cellwise,monitor-interval-ms:
     description:
       Specifies the interval in milliseconds gauge values are polled at