File Index
Files and directories
Sign in
FILE

x-powers,axp209-adc.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml YAML
 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  AXP717
41  ------
42   0 | batt_v
43   1 | ts_v
44   2 | vbus_v
45   3 | vsys_v
46   4 | pmic_temp
47   5 | batt_chrg_i
48   6 | vmid_v
49   7 | bkup_batt_v
50
51  AXP813
52  ------
53   0 | pmic_temp
54   1 | gpio0_v
55   2 | batt_v
56   3 | batt_chrg_i
57   4 | batt_dischrg_i
58   5 | ts_v
59
60properties:
61  compatible:
62    oneOf:
63      - const: x-powers,axp209-adc
64      - const: x-powers,axp221-adc
65      - const: x-powers,axp717-adc
66      - const: x-powers,axp813-adc
67
68      - items:
69          - const: x-powers,axp803-adc
70          - const: x-powers,axp813-adc
71
72  "#io-channel-cells":
73    const: 1
74
75additionalProperties: false
76
77examples:
78  - |
79    axp221 {
80        adc {
81            compatible = "x-powers,axp221-adc";
82            #io-channel-cells = <1>;
83        };
84    };
85...
~/ Read-only file preview.