xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/x-powers,axp209-adc.yaml (revision f81cdf24ba5436367377f7c8e8f51f6df2a75ca7)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/x-powers,axp209-adc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: X-Powers AXP ADC
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11
12description: |
13  ADC is frequently used as a provider to consumers of the ADC channels.
14  Device is a child of an axp209 multifunction device
15  ADC channels and their indexes per variant:
16
17  AXP209
18  ------
19   0 | acin_v
20   1 | acin_i
21   2 | vbus_v
22   3 | vbus_i
23   4 | pmic_temp
24   5 | gpio0_v
25   6 | gpio1_v
26   7 | ipsout_v
27   8 | batt_v
28   9 | batt_chrg_i
29  10 | batt_dischrg_i
30  11 | ts_v
31
32  AXP22x
33  ------
34   0 | pmic_temp
35   1 | batt_v
36   2 | batt_chrg_i
37   3 | batt_dischrg_i
38   4 | ts_v
39
40  AXP813
41  ------
42   0 | pmic_temp
43   1 | gpio0_v
44   2 | batt_v
45   3 | batt_chrg_i
46   4 | batt_dischrg_i
47   5 | ts_v
48
49
50properties:
51  compatible:
52    oneOf:
53      - const: x-powers,axp209-adc
54      - const: x-powers,axp221-adc
55      - const: x-powers,axp813-adc
56
57      - items:
58          - const: x-powers,axp803-adc
59          - const: x-powers,axp813-adc
60
61  "#io-channel-cells":
62    const: 1
63
64additionalProperties: false
65
66examples:
67  - |
68    axp221 {
69        adc {
70            compatible = "x-powers,axp221-adc";
71            #io-channel-cells = <1>;
72        };
73    };
74...
75