treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / adc / axp20x_adc.txt
blob7a6313913923a7dadcaa5c495e425ac1d1f85f06
1 * X-Powers AXP ADC bindings
3 Required 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,
10 Example:
12 &axp22x {
13         adc {
14                 compatible = "x-powers,axp221-adc";
15                 #io-channel-cells = <1>;
16         };
19 ADC channels and their indexes per variant:
21 AXP209
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
33 10 | batt_dischrg_i
35 AXP22x
36 ------
37  0 | pmic_temp
38  1 | batt_v
39  2 | batt_chrg_i
40  3 | batt_dischrg_i
42 AXP813
43 ------
44  0 | pmic_temp
45  1 | gpio0_v
46  2 | batt_v
47  3 | batt_chrg_i
48  4 | batt_dischrg_i