The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/iio/adc/qcom,spmi-iadc.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 Qualcomm's SPMI PMIC current ADC
    2 
    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.
    8 
    9 IADC node:
   10 
   11 - compatible:
   12     Usage: required
   13     Value type: <string>
   14     Definition: Should contain "qcom,spmi-iadc".
   15 
   16 - reg:
   17     Usage: required
   18     Value type: <prop-encoded-array>
   19     Definition: IADC base address and length in the SPMI PMIC register map
   20 
   21 - interrupts:
   22     Usage: optional
   23     Value type: <prop-encoded-array>
   24     Definition: End of ADC conversion.
   25 
   26 - qcom,external-resistor-micro-ohms:
   27     Usage: optional
   28     Value type: <u32>
   29     Definition: Sense resister value in micro Ohm.
   30                 If not defined value of 10000 micro Ohms will be used.
   31 
   32 Example:
   33         /* IADC node */
   34         pmic_iadc: iadc@3600 {
   35                 compatible = "qcom,spmi-iadc";
   36                 reg = <0x3600 0x100>;
   37                 interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
   38                 qcom,external-resistor-micro-ohms = <10000>;
   39                 #io-channel-cells  = <1>;
   40         };
   41 
   42         /* IIO client node */
   43         bat {
   44                 io-channels = <&pmic_iadc  0>;
   45                 io-channel-names = "iadc";
   46         };

Cache object: 4e48cbfe03b4c3bb326b5f255d27ae91


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.