xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/qcom,spmi-rradc.yaml (revision 19fae0f66023a97a9b464b3beeeabb2081f575b3)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm's SPMI PMIC Round Robin ADC
8
9maintainers:
10  - Caleb Connolly <caleb.connolly@linaro.org>
11
12description: |
13  The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to
14  read the voltage, current and temperature for supported peripherals such as
15  the battery thermistor die temperature, charger temperature, USB and DC input
16  voltage / current and battery ID resistor.
17
18properties:
19  compatible:
20    enum:
21      - qcom,pmi8998-rradc
22      - qcom,pm660-rradc
23
24  reg:
25    maxItems: 1
26
27  qcom,batt-id-delay-ms:
28    description: Sets the hardware settling time for the battery ID resistor.
29    enum: [0, 1, 4, 12, 20, 40, 60, 80]
30
31  "#io-channel-cells":
32    const: 1
33
34required:
35  - compatible
36  - reg
37
38additionalProperties: false
39
40examples:
41  - |
42    pmic {
43        #address-cells = <1>;
44        #size-cells = <0>;
45
46        pmic_rradc: adc@4500 {
47            compatible = "qcom,pmi8998-rradc";
48            reg = <0x4500>;
49            #io-channel-cells  = <1>;
50        };
51    };
52