Documentation / devicetree / bindings / iio / adc / ti,ads112c14.yaml


Based on kernel version 7.3. Page generated on 2026-10-19 13:17 EDT.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/ti,ads112c14.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments' ADS112C14 and similar ADC chips

description: |
  Supports the following Texas Instruments' ADC chips:
  - ADS112C14 (16-bit)
  - ADS122C14 (24-bit)
 
  https://www.ti.com/lit/ds/symlink/ads122c14.pdf
 
  These chips are primarily designed for use with resistive sensors such as
  RTDs, thermocouples, Wheatstone bridges, etc. The channel bindings reflect
  this in that each channel represents the conditions required to make a
  measurement rather than strictly just the physical input channels.

maintainers:
  - David Lechner <dlechner@baylibre.com>

properties:
  compatible:
    enum:
      - ti,ads112c14
      - ti,ads122c14

  reg:
    items:
      - minimum: 0x40
        maximum: 0x47

  clocks:
    maxItems: 1
    description: Optional external clock connected to GPIO3 pin.

  avdd-supply: true
  dvdd-supply: true

  refp-supply: true
  refn-supply: true

  ti,refp-refn-resistor-ohms:
    description:
      The resistance of the external resistor between REFP and REFN when using
      resistor bridge driven by current outputs for RTD measurements.

  interrupts:
    minItems: 1
    items:
      - description: /FAULT interrupt (GPIO2 pin)
      - description: /DRDY interrupt (GPIO3 pin)

  interrupt-names:
    minItems: 1
    maxItems: 2
    items:
      enum: [fault, drdy]

  gpio-controller: true
  '#gpio-cells':
    const: 2
 
  '#address-cells':
    const: 1
 
  '#size-cells':
    const: 0

patternProperties:
  ^channel@[0-9a-f]$:
    $ref: adc.yaml

    unevaluatedProperties: false

    properties:
      reg:
        items:
          - maximum: 15 # arbitrary limit, channel@ can be any combination of AIN0-AIN7

      single-channel:
        maximum: 7

      diff-channels:
        items:
          maximum: 7

      bipolar: true

      input-chopping: true

      excitation-channels:
        maxItems: 2
        items:
          maximum: 7

      excitation-current-nanoamp:
        maxItems: 2
        items:
          enum: [1000, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000,
                 90000, 100000, 200000, 300000, 400000, 500000, 600000, 700000,
                 800000, 900000, 1000000]

      burn-out-current-nanoamp:
        items:
          - enum: [200, 1000, 10000]

      reference-sources:
        items:
          - enum: [internal-2.5v, internal-1.25v, external, avdd]
            default: internal-2.5v

    dependencies:
      excitation-channels: [ excitation-current-nanoamp ]
      excitation-current-nanoamp: [ excitation-channels ]

    oneOf:
      - required: [ single-channel ]
      - required: [ diff-channels ]

unevaluatedProperties: false

required:
  - compatible
  - reg
  - avdd-supply
  - dvdd-supply

dependencies:
  refn-supply: [ refp-supply ]

oneOf:
  - required: [ refp-supply ]
  - required: [ "ti,refp-refn-resistor-ohms" ]
  - properties:
      refp-supply: false
      refn-supply: false
      ti,refp-refn-resistor-ohms: false
 
# /DRDY out and CLK in use the same AIN7/GPIO3 pin.
if:
  required:
    - interrupt-names
  properties:
    interrupt-names:
      contains:
        const: drdy
then:
  properties:
    clocks: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        adc@40 {
            compatible = "ti,ads112c14";
            reg = <0x40>;
 
            avdd-supply = <&avdd>;
            dvdd-supply = <&dvdd>;
 
            /* 3-Wire RTD: Two IDACs, One Measurement (AIN1-AIN2) */
 
            ti,refp-refn-resistor-ohms = <500>;
 
            #address-cells = <1>;
            #size-cells = <0>;
 
            channel@0 {
                reg = <0>;
                diff-channels = <1>, <2>;
                input-chopping;
                excitation-channels = <0>, <3>;
                excitation-current-nanoamp = <500000>, <500000>;
                reference-sources = "external";
                label = "rtd";
            };
        };
    };
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        adc@40 {
            compatible = "ti,ads112c14";
            reg = <0x40>;
 
            avdd-supply = <&avdd>;
            dvdd-supply = <&dvdd>;
 
            /* Resistive Bridge Measurement With a Thermistor for Temperature Compensation */
 
            refp-supply = <&avdd>;
 
            #address-cells = <1>;
            #size-cells = <0>;
 
            channel@0 {
                reg = <0>;
                diff-channels = <6>, <7>;
                bipolar;
                reference-sources = "external";
                label = "bridge";
            };
 
            channel@1 {
                reg = <1>;
                diff-channels = <1>, <2>;
                reference-sources = "internal-2.5v";
                label = "thermistor";
            };
        };
    };