1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: AXP20x Battery power-supply
8
9description: |
10  The supported devices can read the battery voltage, charge and discharge
11  currents of the battery by reading ADC channels from the ADC.
12
13maintainers:
14  - Chen-Yu Tsai <wens@csie.org>
15  - Sebastian Reichel <sre@kernel.org>
16
17allOf:
18  - $ref: power-supply.yaml#
19
20properties:
21  compatible:
22    enum:
23      - x-powers,axp209-battery-power-supply
24      - x-powers,axp221-battery-power-supply
25      - x-powers,axp813-battery-power-supply
26
27required:
28  - compatible
29
30additionalProperties: false
31