Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/x-powers,axp209-adc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: X-Powers AXP ADC bindings
0008 
0009 maintainers:
0010   - Chen-Yu Tsai <wens@csie.org>
0011 
0012 description: |
0013   ADC is frequently used as a provider to consumers of the ADC channels.
0014   Device is a child of an axp209 multifunction device
0015   ADC channels and their indexes per variant:
0016 
0017   AXP209
0018   ------
0019    0 | acin_v
0020    1 | acin_i
0021    2 | vbus_v
0022    3 | vbus_i
0023    4 | pmic_temp
0024    5 | gpio0_v
0025    6 | gpio1_v
0026    7 | ipsout_v
0027    8 | batt_v
0028    9 | batt_chrg_i
0029   10 | batt_dischrg_i
0030   11 | ts_v
0031 
0032   AXP22x
0033   ------
0034    0 | pmic_temp
0035    1 | batt_v
0036    2 | batt_chrg_i
0037    3 | batt_dischrg_i
0038    4 | ts_v
0039 
0040   AXP813
0041   ------
0042    0 | pmic_temp
0043    1 | gpio0_v
0044    2 | batt_v
0045    3 | batt_chrg_i
0046    4 | batt_dischrg_i
0047    5 | ts_v
0048 
0049 
0050 properties:
0051   compatible:
0052     oneOf:
0053       - const: x-powers,axp209-adc
0054       - const: x-powers,axp221-adc
0055       - const: x-powers,axp813-adc
0056 
0057       - items:
0058           - const: x-powers,axp803-adc
0059           - const: x-powers,axp813-adc
0060 
0061   "#io-channel-cells":
0062     const: 1
0063 
0064 additionalProperties: false
0065 
0066 examples:
0067   - |
0068     axp221 {
0069         adc {
0070             compatible = "x-powers,axp221-adc";
0071             #io-channel-cells = <1>;
0072         };
0073     };
0074 ...