xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/axp20x_adc.txt (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1* X-Powers AXP ADC bindings
2
3Required properties:
4  - compatible: should be one of:
5    - "x-powers,axp209-adc",
6    - "x-powers,axp221-adc",
7    - "x-powers,axp813-adc",
8  - #io-channel-cells: should be 1,
9
10Example:
11
12&axp22x {
13	adc {
14		compatible = "x-powers,axp221-adc";
15		#io-channel-cells = <1>;
16	};
17};
18
19ADC channels and their indexes per variant:
20
21AXP209
22------
23 0 | acin_v
24 1 | acin_i
25 2 | vbus_v
26 3 | vbus_i
27 4 | pmic_temp
28 5 | gpio0_v
29 6 | gpio1_v
30 7 | ipsout_v
31 8 | batt_v
32 9 | batt_chrg_i
3310 | batt_dischrg_i
34
35AXP22x
36------
37 0 | pmic_temp
38 1 | batt_v
39 2 | batt_chrg_i
40 3 | batt_dischrg_i
41
42AXP813
43------
44 0 | pmic_temp
45 1 | gpio0_v
46 2 | batt_v
47 3 | batt_chrg_i
48 4 | batt_dischrg_i
49