xref: /linux/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
17ea58c95SCaleb Connolly# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
27ea58c95SCaleb Connolly%YAML 1.2
37ea58c95SCaleb Connolly---
47ea58c95SCaleb Connolly$id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml#
57ea58c95SCaleb Connolly$schema: http://devicetree.org/meta-schemas/core.yaml#
67ea58c95SCaleb Connolly
77ea58c95SCaleb Connollytitle: Qualcomm's SPMI PMIC Round Robin ADC
87ea58c95SCaleb Connolly
97ea58c95SCaleb Connollymaintainers:
107ea58c95SCaleb Connolly  - Caleb Connolly <caleb.connolly@linaro.org>
117ea58c95SCaleb Connolly
127ea58c95SCaleb Connollydescription: |
137ea58c95SCaleb Connolly  The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to
147ea58c95SCaleb Connolly  read the voltage, current and temperature for supported peripherals such as
157ea58c95SCaleb Connolly  the battery thermistor die temperature, charger temperature, USB and DC input
167ea58c95SCaleb Connolly  voltage / current and battery ID resistor.
177ea58c95SCaleb Connolly
187ea58c95SCaleb Connollyproperties:
197ea58c95SCaleb Connolly  compatible:
207ea58c95SCaleb Connolly    enum:
217ea58c95SCaleb Connolly      - qcom,pmi8998-rradc
227ea58c95SCaleb Connolly      - qcom,pm660-rradc
237ea58c95SCaleb Connolly
247ea58c95SCaleb Connolly  reg:
257ea58c95SCaleb Connolly    maxItems: 1
267ea58c95SCaleb Connolly
277ea58c95SCaleb Connolly  qcom,batt-id-delay-ms:
287ea58c95SCaleb Connolly    description: Sets the hardware settling time for the battery ID resistor.
297ea58c95SCaleb Connolly    enum: [0, 1, 4, 12, 20, 40, 60, 80]
307ea58c95SCaleb Connolly
317ea58c95SCaleb Connolly  "#io-channel-cells":
327ea58c95SCaleb Connolly    const: 1
337ea58c95SCaleb Connolly
347ea58c95SCaleb Connollyrequired:
357ea58c95SCaleb Connolly  - compatible
367ea58c95SCaleb Connolly  - reg
377ea58c95SCaleb Connolly
387ea58c95SCaleb ConnollyadditionalProperties: false
397ea58c95SCaleb Connolly
407ea58c95SCaleb Connollyexamples:
417ea58c95SCaleb Connolly  - |
427ea58c95SCaleb Connolly    pmic {
437ea58c95SCaleb Connolly        #address-cells = <1>;
447ea58c95SCaleb Connolly        #size-cells = <0>;
457ea58c95SCaleb Connolly
46*adb2af79SJohan Hovold        adc@4500 {
477ea58c95SCaleb Connolly            compatible = "qcom,pmi8998-rradc";
487ea58c95SCaleb Connolly            reg = <0x4500>;
497ea58c95SCaleb Connolly            #io-channel-cells = <1>;
507ea58c95SCaleb Connolly        };
517ea58c95SCaleb Connolly    };
52