Analog Devices AD74115H device

Schema identifier ($id): "http://devicetree.org/schemas/iio/addac/adi,ad74115.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Cosmin Tanislav <cosmin.tanislav@analog.com>"

The AD74115H is a single-channel software configurable input/output device for industrial control applications. It contains functionality for analog output, analog input, digital output, digital input, resistance temperature detector, and thermocouple measurements integrated into a single chip solution with an SPI interface. The device features a 16-bit ADC and a 14-bit DAC.

  https://www.analog.com/en/products/ad74115h.html

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad74115h"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 24000000

spi-cpol — required here #

true — No constraints added by this property rule.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items) #

Allowed values (enum): "adc_rdy", "alert"

avdd-supply — required here #

true — No constraints added by this property rule.

avcc-supply — not listed as required here #

true — No constraints added by this property rule.

dvcc-supply — not listed as required here #

true — No constraints added by this property rule.

dovdd-supply — not listed as required here #

true — No constraints added by this property rule.

refin-supply — not listed as required here #

true — No constraints added by this property rule.

adi,ch-func — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Channel function. 0 - High impedance 1 - Voltage output 2 - Current output 3 - Voltage input 4 - Current input, externally-powered 5 - Current input, loop-powered 6 - Resistance input 7 - RTD measure 8 - Digital input logic 9 - Digital input, loop-powered 10 - Current output with HART 11 - Current input, externally-powered, with HART 12 - Current input, loop-powered, with HART

Minimum value (minimum): 0

Maximum value (maximum): 12

Default value (default): 0

adi,conv2-mux — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Input node for ADC conversion 2. 0 - SENSE_EXT1 to AGND_SENSE 1 - SENSE_EXT2 to AGND_SENSE 2 - SENSE_EXT2 to SENSE_EXT1 3 - AGND to AGND

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

adi,conv2-range-microvolt — not listed as required here #

Conversion range for ADC conversion 2.

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): -2500000, 0

Item 2

Exact value (const): 2500000

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): -12000000, 0

Item 2

Exact value (const): 12000000

Rule 3

Array item rules (items)

Item 1

Exact value (const): -2500000

Item 2

Exact value (const): 0

Rule 4

Array item rules (items)

Item 1

Exact value (const): -104000

Item 2

Exact value (const): 104000

Rule 5

Array item rules (items)

Item 1

Exact value (const): 0

Item 2

Exact value (const): 625000

adi,sense-agnd-buffer-low-power — not listed as required here #

Value type (type): "boolean"

Whether to enable low-power buffered mode for the AGND sense pin.

adi,lf-buffer-low-power — not listed as required here #

Value type (type): "boolean"

Whether to enable low-power buffered mode for the low-side filtered sense pin.

adi,hf-buffer-low-power — not listed as required here #

Value type (type): "boolean"

Whether to enable low-power buffered mode for the high-side filtered sense pin.

adi,ext2-buffer-low-power — not listed as required here #

Value type (type): "boolean"

Whether to enable low-power buffered mode for the EXT2 pin.

adi,ext1-buffer-low-power — not listed as required here #

Value type (type): "boolean"

Whether to enable low-power buffered mode for the EXT1 pin.

adi,comparator-invert — not listed as required here #

Value type (type): "boolean"

Whether to invert the comparator output.

adi,digital-input-sink-range-high — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

When not present, the digital input range is from 0 to 3700uA in steps of 120uA, with a ~2k series resistance. When present, the digital input range is from 0 to 7400uA in steps of 240uA, with a ~1k series resistance.

adi,digital-input-sink-microamp — not listed as required here #

Sink current in digital input mode.

Minimum value (minimum): 0

Maximum value (maximum): 3700

Default value (default): 0

adi,digital-input-debounce-mode-counter-reset — not listed as required here #

Value type (type): "boolean"

When not present, a counter increments when the signal is asserted and decrements when the signal is de-asserted. When present, a counter increments while the signal is asserted and resets when the signal de-asserts

adi,digital-input-unbuffered — not listed as required here #

Value type (type): "boolean"

Whether to buffer digital input signals.

adi,digital-input-short-circuit-detection — not listed as required here #

Value type (type): "boolean"

Whether to detect digital input short circuits.

adi,digital-input-open-circuit-detection — not listed as required here #

Value type (type): "boolean"

Whether to detect digital input open circuits.

adi,digital-input-threshold-mode-fixed — not listed as required here #

Value type (type): "boolean"

When not present, the digital input threshold range is -0.96 * AVDD to AVDD. When present, the threshold range is fixed from -19V to 30V.

adi,dac-bipolar — not listed as required here #

Value type (type): "boolean"

When not present, the DAC operates in the 0V to 12V range. When present, the DAC operates in the -12V to 12V range.

adi,charge-pump — not listed as required here #

Value type (type): "boolean"

Whether to enable the internal charge pump.

adi,dac-hart-slew — not listed as required here #

Value type (type): "boolean"

Whether to use a HART-compatible slew rate.

adi,dac-current-limit-low — not listed as required here #

Value type (type): "boolean"

When not present, the DAC short-circuit current limit is 32mA in either source or sink for VOUT and 4mA sink for IOUT. When present, the limit is 16mA in either source or sink for VOUT, 1mA sink for IOUT.

adi,4-wire-rtd — not listed as required here #

Value type (type): "boolean"

When not present, the ADC should be used for measuring 3-wire RTDs. When present, the ADC should be used for measuring 4-wire RTDs.

adi,3-wire-rtd-excitation-swap — not listed as required here #

Value type (type): "boolean"

Whether to swap the excitation for 3-wire RTD.

adi,rtd-excitation-current-microamp — not listed as required here #

Excitation current to apply to RTD.

Allowed values (enum): 250, 500, 750, 1000

Default value (default): 250

adi,ext1-burnout — not listed as required here #

Value type (type): "boolean"

Whether to enable burnout current for EXT1.

adi,ext1-burnout-current-nanoamp — not listed as required here #

Burnout current in nanoamps to be applied to EXT1.

Allowed values (enum): 0, 50, 500, 1000, 10000

Default value (default): 0

adi,ext1-burnout-current-polarity-sourcing — not listed as required here #

Value type (type): "boolean"

When not present, the burnout current polarity for EXT1 is sinking. When present, the burnout current polarity for EXT1 is sourcing.

adi,ext2-burnout — not listed as required here #

Value type (type): "boolean"

Whether to enable burnout current for EXT2.

adi,ext2-burnout-current-nanoamp — not listed as required here #

Burnout current in nanoamps to be applied to EXT2.

Allowed values (enum): 0, 50, 500, 1000, 10000

Default value (default): 0

adi,ext2-burnout-current-polarity-sourcing — not listed as required here #

Value type (type): "boolean"

When not present, the burnout current polarity for EXT2 is sinking. When present, the burnout current polarity for EXT2 is sourcing.

adi,viout-burnout — not listed as required here #

Value type (type): "boolean"

Whether to enable burnout current for VIOUT.

adi,viout-burnout-current-nanoamp — not listed as required here #

Burnout current in nanoamps to be applied to VIOUT.

Allowed values (enum): 0, 1000, 10000

Default value (default): 0

adi,viout-burnout-current-polarity-sourcing — not listed as required here #

Value type (type): "boolean"

When not present, the burnout current polarity for VIOUT is sinking. When present, the burnout current polarity for VIOUT is sourcing.

adi,gpio0-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

GPIO functions. 0 - Disabled 1 - Logic I/O 2 - Comparator output 3 - Control HART CD 4 - Monitor HART CD 5 - Monitor HART EOM status

Minimum value (minimum): 0

Maximum value (maximum): 5

Default value (default): 0

adi,gpio1-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

GPIO functions. 0 - Disabled 1 - Logic I/O 2 - Drive external digital output FET 3 - Control HART RXD 4 - Monitor HART RXD 5 - Monitor HART SOM status

Minimum value (minimum): 0

Maximum value (maximum): 5

Default value (default): 0

adi,gpio2-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

GPIO functions. 0 - Disabled 1 - Logic I/O 2 - Drive internal digital output FET 3 - Control HART TXD 4 - Monitor HART TXD 5 - Monitor HART TX complete status

Minimum value (minimum): 0

Maximum value (maximum): 5

Default value (default): 0

adi,gpio3-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

GPIO functions. 0 - Disabled 1 - Logic I/O 2 - High impedance 3 - Control HART RTS 4 - Monitor HART RTS 5 - Monitor HART CD complete status

Minimum value (minimum): 0

Maximum value (maximum): 5

Default value (default): 0

Required in this object (required): "compatible", "reg", "spi-cpol", "avdd-supply"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Condition (if) #

Required in this object (required): "adi,digital-input-sink-range-high"

When the condition matches (then) #

Properties and child nodes (properties)

adi,digital-input-sink-microamp — not listed as required here

Maximum value (maximum): 7400

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

spi {
  #address-cells = <1>;
  #size-cells = <0>;

  addac@0 {
    compatible = "adi,ad74115h";
    reg = <0>;

    spi-max-frequency = <12000000>;
    spi-cpol;

    reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;

    interrupt-parent = <&gpio>;
    interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
    interrupt-names = "adc_rdy";

    avdd-supply = <&ad74115_avdd>;

    adi,ch-func = <1>;
    adi,conv2-mux = <2>;
    adi,conv2-range-microvolt = <(-12000000) 12000000>;

    adi,gpio0-mode = <1>;
    adi,gpio1-mode = <1>;
    adi,gpio2-mode = <1>;
    adi,gpio3-mode = <1>;

    adi,dac-bipolar;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page