0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Qualcomm's SPMI PMIC Round Robin ADC
0008
0009 maintainers:
0010 - Caleb Connolly <caleb.connolly@linaro.org>
0011
0012 description: |
0013 The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to
0014 read the voltage, current and temperature for supported peripherals such as
0015 the battery thermistor die temperature, charger temperature, USB and DC input
0016 voltage / current and battery ID resistor.
0017
0018 properties:
0019 compatible:
0020 enum:
0021 - qcom,pmi8998-rradc
0022 - qcom,pm660-rradc
0023
0024 reg:
0025 maxItems: 1
0026
0027 qcom,batt-id-delay-ms:
0028 description: Sets the hardware settling time for the battery ID resistor.
0029 enum: [0, 1, 4, 12, 20, 40, 60, 80]
0030
0031 "#io-channel-cells":
0032 const: 1
0033
0034 required:
0035 - compatible
0036 - reg
0037
0038 additionalProperties: false
0039
0040 examples:
0041 - |
0042 pmic {
0043 #address-cells = <1>;
0044 #size-cells = <0>;
0045
0046 pmic_rradc: adc@4500 {
0047 compatible = "qcom,pmi8998-rradc";
0048 reg = <0x4500>;
0049 #io-channel-cells = <1>;
0050 };
0051 };