dts: battery: Create bindings for common battery properties

Adds a devicetree for describing common battery characteristics used
by multiple devices and subsystems.

Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
This commit is contained in:
Ricardo Rivera-Matos 2023-09-11 14:16:16 -05:00 committed by Carles Cufí
parent 59bb1c523c
commit 5b1a7b0f2a
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Copyright 2023 Cirrus Logic, Inc.
# SPDX-License-Identifier: Apache-2.0
description: |
Static Battery Characteristics
Properties are inherited from Linux. See
linux/Documentation/devicetree/bindings/power/supply/battery.yaml
properties:
precharge-current-microamp:
type: int
description: current for pre-charge phase
charge-term-current-microamp:
type: int
description: current for charge termination phase
constant-charge-current-max-microamp:
type: int
description: maximum constant input current
constant-charge-voltage-max-microvolt:
type: int
description: maximum constant input voltage