xref: /linux/Documentation/devicetree/bindings/power/supply/x-powers,axp20x-ac-power-supply.yaml (revision a4eb44a6435d6d8f9e642407a4a06f65eb90ca04)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: AXP20x AC power-supply
8
9description: |
10  The AXP20X can read the current current and voltage supplied by AC by
11  reading ADC channels from the AXP20X ADC. The AXP22X is only able to
12  tell if an AC power supply is present and usable. AXP813/AXP803 are
13  able to limit current and supply voltage
14
15maintainers:
16  - Chen-Yu Tsai <wens@csie.org>
17  - Sebastian Reichel <sre@kernel.org>
18
19allOf:
20  - $ref: power-supply.yaml#
21
22properties:
23  compatible:
24    oneOf:
25      - const: x-powers,axp202-ac-power-supply
26      - const: x-powers,axp221-ac-power-supply
27      - items:
28          - const: x-powers,axp803-ac-power-supply
29          - const: x-powers,axp813-ac-power-supply
30      - const: x-powers,axp813-ac-power-supply
31
32required:
33  - compatible
34
35additionalProperties: false
36