1# Copyright 2023 Cirrus Logic, Inc.
2# SPDX-License-Identifier: Apache-2.0
3
4description: |
5  Static Battery Characteristics
6
7  Properties are inherited from Linux. See
8  linux/Documentation/devicetree/bindings/power/supply/battery.yaml
9
10properties:
11  device-chemistry:
12    type: string
13    description: This describes the chemical technology of the battery.
14      The "lithium-ion" value is a blanket type for all lithium-ion batteries.
15      If the specific chemistry is unknown, this value can be used instead of
16      the precise "lithium-ion-X" options.
17    enum:
18      - "nickel-cadmium"
19      - "nickel-metal-hydride"
20      - "lithium-ion"
21      - "lithium-ion-polymer"
22      - "lithium-ion-iron-phosphate"
23      - "lithium-ion-manganese-oxide"
24
25  ocv-capacity-table-0:
26    type: array
27    description: |
28      An array providing the open circuit voltage (OCV) , which is used to look
29      up battery capacity according to current OCV value. The OCV unit is
30      microvolts.
31
32      Unlike the linux equivalent this array is required to be 11 elements
33      long, representing the voltages for 0-100% charge in 10% steps.
34
35  charge-full-design-microamp-hours:
36    type: int
37    description: battery design capacity
38
39  re-charge-voltage-microvolt:
40    type: int
41    description: limit to automatically start charging again
42
43  precharge-current-microamp:
44    type: int
45    description: current for pre-charge phase
46
47  charge-term-current-microamp:
48    type: int
49    description: current for charge termination phase
50
51  constant-charge-current-max-microamp:
52    type: int
53    description: maximum constant input current
54
55  constant-charge-voltage-max-microvolt:
56    type: int
57    description: maximum constant input voltage
58