1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/addac/adi,ad74413r.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD74412R/AD74413R device
10 - Cosmin Tanislav <cosmin.tanislav@analog.com>
13 The AD74412R and AD74413R are quad-channel software configurable input/output
14 solutions for building and process control applications. They contain
15 functionality for analog output, analog input, digital input, resistance
16 temperature detector, and thermocouple measurements integrated
17 into a single chip solution with an SPI interface.
18 The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide
19 four configurable input/output channels and a suite of diagnostic functions.
20 The AD74413R differentiates itself from the AD74412R by being HART-compatible.
21 https://www.analog.com/en/products/ad74412r.html
22 https://www.analog.com/en/products/ad74413r.html
49 shunt-resistor-micro-ohms:
51 Shunt (sense) resistor value in micro-Ohms.
67 additionalProperties: false
68 description: Represents the external channels which are connected to the device.
73 The channel number. It can have up to 4 channels numbered from 0 to 3.
78 $ref: /schemas/types.yaml#/definitions/uint32
81 HART functions are not supported on AD74412R.
82 0 - CH_FUNC_HIGH_IMPEDANCE
83 1 - CH_FUNC_VOLTAGE_OUTPUT
84 2 - CH_FUNC_CURRENT_OUTPUT
85 3 - CH_FUNC_VOLTAGE_INPUT
86 4 - CH_FUNC_CURRENT_INPUT_EXT_POWER
87 5 - CH_FUNC_CURRENT_INPUT_LOOP_POWER
88 6 - CH_FUNC_RESISTANCE_INPUT
89 7 - CH_FUNC_DIGITAL_INPUT_LOGIC
90 8 - CH_FUNC_DIGITAL_INPUT_LOOP_POWER
91 9 - CH_FUNC_CURRENT_INPUT_EXT_POWER_HART
92 10 - CH_FUNC_CURRENT_INPUT_LOOP_POWER_HART
100 Whether to configure GPO as a comparator or not.
101 When not configured as a comparator, the GPO will be treated as an
104 drive-strength-microamp:
106 For channels configured as digital input, this configures the sink
117 - $ref: /schemas/spi/spi-peripheral-props.yaml#
119 unevaluatedProperties: false
123 #include <dt-bindings/gpio/gpio.h>
124 #include <dt-bindings/interrupt-controller/irq.h>
125 #include <dt-bindings/iio/addac/adi,ad74413r.h>
128 #address-cells = <1>;
132 compatible = "adi,ad74413r";
134 spi-max-frequency = <1000000>;
137 #address-cells = <1>;
140 interrupt-parent = <&gpio>;
141 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
143 refin-supply = <&ad74413r_refin>;
144 reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
149 adi,ch-func = <CH_FUNC_VOLTAGE_OUTPUT>;
155 adi,ch-func = <CH_FUNC_CURRENT_OUTPUT>;
161 adi,ch-func = <CH_FUNC_DIGITAL_INPUT_LOGIC>;
168 adi,ch-func = <CH_FUNC_CURRENT_INPUT_EXT_POWER>;