1 Qualcomm's SPMI PMIC current ADC
3 QPNP PMIC current ADC (IADC) provides interface to clients to read current.
4 A 16 bit ADC is used for current measurements. IADC can measure the current
5 through an external resistor (channel 1) or internal (built-in) resistor
6 (channel 0). When using an external resistor it is to be described by
7 qcom,external-resistor-micro-ohms property.
14 Definition: Should contain "qcom,spmi-iadc".
18 Value type: <prop-encoded-array>
19 Definition: IADC base address and length in the SPMI PMIC register map
23 Value type: <prop-encoded-array>
24 Definition: End of ADC conversion.
26 - qcom,external-resistor-micro-ohms:
29 Definition: Sense resister value in micro Ohm.
30 If not defined value of 10000 micro Ohms will be used.
34 pmic_iadc: iadc@3600 {
35 compatible = "qcom,spmi-iadc";
37 interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
38 qcom,external-resistor-micro-ohms = <10000>;
39 #io-channel-cells = <1>;
44 io-channels = <&pmic_iadc 0>;
45 io-channel-names = "iadc";