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.yaml

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 # 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-iadc.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Qualcomm's SPMI PMIC current ADC
    8 
    9 maintainers:
   10   - Jonathan Cameron <jic23@kernel.org>
   11 
   12 description: |
   13   QPNP PMIC current ADC (IADC) provides interface to clients to read current.
   14   A 16 bit ADC is used for current measurements. IADC can measure the current
   15   through an external resistor (channel 1) or internal (built-in) resistor
   16   (channel 0). When using an external resistor it is to be described by
   17   qcom,external-resistor-micro-ohms property.
   18 
   19 properties:
   20   compatible:
   21     const: qcom,spmi-iadc
   22 
   23   reg:
   24     description: IADC base address and length in the SPMI PMIC register map
   25     maxItems: 1
   26 
   27   qcom,external-resistor-micro-ohms:
   28     description:
   29       Sensor resistor value. If not defined value of 10000 micro Ohms
   30       will be used.
   31 
   32   interrupts:
   33     maxItems: 1
   34     description:
   35       End of conversion interrupt.
   36 
   37   "#io-channel-cells":
   38     const: 1
   39 
   40 required:
   41   - compatible
   42   - reg
   43 
   44 additionalProperties: false
   45 
   46 examples:
   47   - |
   48     #include <dt-bindings/interrupt-controller/irq.h>
   49     spmi_bus {
   50         #address-cells = <1>;
   51         #size-cells = <0>;
   52         pmic_iadc: adc@3600 {
   53             compatible = "qcom,spmi-iadc";
   54             reg = <0x3600>;
   55             interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>;
   56             qcom,external-resistor-micro-ohms = <10000>;
   57             #io-channel-cells  = <1>;
   58         };
   59     };
   60 ...

Cache object: f6d07bcd246741b10f66616d87a056f5


[ 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.