1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/addac/adi,ad74115.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD74115H device
10 - Cosmin Tanislav <cosmin.tanislav@analog.com>
13 The AD74115H is a single-channel software configurable input/output
14 device for industrial control applications. It contains functionality for
15 analog output, analog input, digital output, digital input, resistance
16 temperature detector, and thermocouple measurements integrated into a single
17 chip solution with an SPI interface. The device features a 16-bit ADC and a
20 https://www.analog.com/en/products/ad74115h.html
56 $ref: /schemas/types.yaml#/definitions/uint32
63 4 - Current input, externally-powered
64 5 - Current input, loop-powered
67 8 - Digital input logic
68 9 - Digital input, loop-powered
69 10 - Current output with HART
70 11 - Current input, externally-powered, with HART
71 12 - Current input, loop-powered, with HART
77 $ref: /schemas/types.yaml#/definitions/uint32
79 Input node for ADC conversion 2.
80 0 - SENSE_EXT1 to AGND_SENSE
81 1 - SENSE_EXT2 to AGND_SENSE
82 2 - SENSE_EXT2 to SENSE_EXT1
88 adi,conv2-range-microvolt:
89 description: Conversion range for ADC conversion 2.
95 - enum: [-12000000, 0]
107 adi,sense-agnd-buffer-low-power:
110 Whether to enable low-power buffered mode for the AGND sense pin.
112 adi,lf-buffer-low-power:
115 Whether to enable low-power buffered mode for the low-side filtered
118 adi,hf-buffer-low-power:
121 Whether to enable low-power buffered mode for the high-side filtered
124 adi,ext2-buffer-low-power:
126 description: Whether to enable low-power buffered mode for the EXT2 pin.
128 adi,ext1-buffer-low-power:
130 description: Whether to enable low-power buffered mode for the EXT1 pin.
132 adi,comparator-invert:
134 description: Whether to invert the comparator output.
136 adi,digital-input-sink-range-high:
137 $ref: /schemas/types.yaml#/definitions/uint32
139 When not present, the digital input range is from 0 to 3700uA in steps
140 of 120uA, with a ~2k series resistance.
141 When present, the digital input range is from 0 to 7400uA in steps
142 of 240uA, with a ~1k series resistance.
144 adi,digital-input-sink-microamp:
145 description: Sink current in digital input mode.
150 adi,digital-input-debounce-mode-counter-reset:
153 When not present, a counter increments when the signal is asserted
154 and decrements when the signal is de-asserted.
155 When present, a counter increments while the signal is asserted and
156 resets when the signal de-asserts
158 adi,digital-input-unbuffered:
160 description: Whether to buffer digital input signals.
162 adi,digital-input-short-circuit-detection:
164 description: Whether to detect digital input short circuits.
166 adi,digital-input-open-circuit-detection:
168 description: Whether to detect digital input open circuits.
170 adi,digital-input-threshold-mode-fixed:
173 When not present, the digital input threshold range is -0.96 * AVDD
175 When present, the threshold range is fixed from -19V to 30V.
180 When not present, the DAC operates in the 0V to 12V range.
181 When present, the DAC operates in the -12V to 12V range.
185 description: Whether to enable the internal charge pump.
189 description: Whether to use a HART-compatible slew rate.
191 adi,dac-current-limit-low:
194 When not present, the DAC short-circuit current limit is 32mA in
195 either source or sink for VOUT and 4mA sink for IOUT.
196 When present, the limit is 16mA in either source or sink for VOUT,
202 When not present, the ADC should be used for measuring 3-wire RTDs.
203 When present, the ADC should be used for measuring 4-wire RTDs.
205 adi,3-wire-rtd-excitation-swap:
207 description: Whether to swap the excitation for 3-wire RTD.
209 adi,rtd-excitation-current-microamp:
210 description: Excitation current to apply to RTD.
211 enum: [250, 500, 750, 1000]
216 description: Whether to enable burnout current for EXT1.
218 adi,ext1-burnout-current-nanoamp:
219 $ref: /schemas/types.yaml#/definitions/uint32
221 Burnout current in nanoamps to be applied to EXT1.
222 enum: [0, 50, 500, 1000, 10000]
225 adi,ext1-burnout-current-polarity-sourcing:
228 When not present, the burnout current polarity for EXT1 is sinking.
229 When present, the burnout current polarity for EXT1 is sourcing.
233 description: Whether to enable burnout current for EXT2.
235 adi,ext2-burnout-current-nanoamp:
236 $ref: /schemas/types.yaml#/definitions/uint32
237 description: Burnout current in nanoamps to be applied to EXT2.
238 enum: [0, 50, 500, 1000, 10000]
241 adi,ext2-burnout-current-polarity-sourcing:
244 When not present, the burnout current polarity for EXT2 is sinking.
245 When present, the burnout current polarity for EXT2 is sourcing.
249 description: Whether to enable burnout current for VIOUT.
251 adi,viout-burnout-current-nanoamp:
252 $ref: /schemas/types.yaml#/definitions/uint32
253 description: Burnout current in nanoamps to be applied to VIOUT.
254 enum: [0, 1000, 10000]
257 adi,viout-burnout-current-polarity-sourcing:
260 When not present, the burnout current polarity for VIOUT is sinking.
261 When present, the burnout current polarity for VIOUT is sourcing.
264 $ref: /schemas/types.yaml#/definitions/uint32
269 2 - Comparator output
272 5 - Monitor HART EOM status
278 $ref: /schemas/types.yaml#/definitions/uint32
283 2 - Drive external digital output FET
286 5 - Monitor HART SOM status
292 $ref: /schemas/types.yaml#/definitions/uint32
297 2 - Drive internal digital output FET
300 5 - Monitor HART TX complete status
306 $ref: /schemas/types.yaml#/definitions/uint32
314 5 - Monitor HART CD complete status
326 - $ref: /schemas/spi/spi-peripheral-props.yaml#
329 - adi,digital-input-sink-range-high
332 adi,digital-input-sink-microamp:
335 unevaluatedProperties: false
339 #include <dt-bindings/gpio/gpio.h>
340 #include <dt-bindings/interrupt-controller/irq.h>
343 #address-cells = <1>;
347 compatible = "adi,ad74115h";
350 spi-max-frequency = <12000000>;
353 reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
355 interrupt-parent = <&gpio>;
356 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
357 interrupt-names = "adc_rdy";
359 avdd-supply = <&ad74115_avdd>;
363 adi,conv2-range-microvolt = <(-12000000) 12000000>;
365 adi,gpio0-mode = <1>;
366 adi,gpio1-mode = <1>;
367 adi,gpio2-mode = <1>;
368 adi,gpio3-mode = <1>;