Path: blob/master/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/addac/adi,ad74115.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD74115H device78maintainers:9- Cosmin Tanislav <cosmin.tanislav@analog.com>1011description: |12The AD74115H is a single-channel software configurable input/output13device for industrial control applications. It contains functionality for14analog output, analog input, digital output, digital input, resistance15temperature detector, and thermocouple measurements integrated into a single16chip solution with an SPI interface. The device features a 16-bit ADC and a1714-bit DAC.1819https://www.analog.com/en/products/ad74115h.html2021properties:22compatible:23enum:24- adi,ad74115h2526reg:27maxItems: 12829spi-max-frequency:30maximum: 240000003132spi-cpol: true3334reset-gpios:35maxItems: 13637interrupts:38minItems: 139maxItems: 24041interrupt-names:42minItems: 143maxItems: 244items:45enum:46- adc_rdy47- alert4849avdd-supply: true50avcc-supply: true51dvcc-supply: true52dovdd-supply: true53refin-supply: true5455adi,ch-func:56$ref: /schemas/types.yaml#/definitions/uint3257description: |58Channel function.590 - High impedance601 - Voltage output612 - Current output623 - Voltage input634 - Current input, externally-powered645 - Current input, loop-powered656 - Resistance input667 - RTD measure678 - Digital input logic689 - Digital input, loop-powered6910 - Current output with HART7011 - Current input, externally-powered, with HART7112 - Current input, loop-powered, with HART72minimum: 073maximum: 1274default: 07576adi,conv2-mux:77$ref: /schemas/types.yaml#/definitions/uint3278description: |79Input node for ADC conversion 2.800 - SENSE_EXT1 to AGND_SENSE811 - SENSE_EXT2 to AGND_SENSE822 - SENSE_EXT2 to SENSE_EXT1833 - AGND to AGND84minimum: 085maximum: 386default: 08788adi,conv2-range-microvolt:89description: Conversion range for ADC conversion 2.90oneOf:91- items:92- enum: [-2500000, 0]93- const: 250000094- items:95- enum: [-12000000, 0]96- const: 1200000097- items:98- const: -250000099- const: 0100- items:101- const: -104000102- const: 104000103- items:104- const: 0105- const: 625000106107adi,sense-agnd-buffer-low-power:108type: boolean109description:110Whether to enable low-power buffered mode for the AGND sense pin.111112adi,lf-buffer-low-power:113type: boolean114description:115Whether to enable low-power buffered mode for the low-side filtered116sense pin.117118adi,hf-buffer-low-power:119type: boolean120description:121Whether to enable low-power buffered mode for the high-side filtered122sense pin.123124adi,ext2-buffer-low-power:125type: boolean126description: Whether to enable low-power buffered mode for the EXT2 pin.127128adi,ext1-buffer-low-power:129type: boolean130description: Whether to enable low-power buffered mode for the EXT1 pin.131132adi,comparator-invert:133type: boolean134description: Whether to invert the comparator output.135136adi,digital-input-sink-range-high:137$ref: /schemas/types.yaml#/definitions/uint32138description: |139When not present, the digital input range is from 0 to 3700uA in steps140of 120uA, with a ~2k series resistance.141When present, the digital input range is from 0 to 7400uA in steps142of 240uA, with a ~1k series resistance.143144adi,digital-input-sink-microamp:145description: Sink current in digital input mode.146minimum: 0147maximum: 3700148default: 0149150adi,digital-input-debounce-mode-counter-reset:151type: boolean152description: |153When not present, a counter increments when the signal is asserted154and decrements when the signal is de-asserted.155When present, a counter increments while the signal is asserted and156resets when the signal de-asserts157158adi,digital-input-unbuffered:159type: boolean160description: Whether to buffer digital input signals.161162adi,digital-input-short-circuit-detection:163type: boolean164description: Whether to detect digital input short circuits.165166adi,digital-input-open-circuit-detection:167type: boolean168description: Whether to detect digital input open circuits.169170adi,digital-input-threshold-mode-fixed:171type: boolean172description: |173When not present, the digital input threshold range is -0.96 * AVDD174to AVDD.175When present, the threshold range is fixed from -19V to 30V.176177adi,dac-bipolar:178type: boolean179description: |180When not present, the DAC operates in the 0V to 12V range.181When present, the DAC operates in the -12V to 12V range.182183adi,charge-pump:184type: boolean185description: Whether to enable the internal charge pump.186187adi,dac-hart-slew:188type: boolean189description: Whether to use a HART-compatible slew rate.190191adi,dac-current-limit-low:192type: boolean193description: |194When not present, the DAC short-circuit current limit is 32mA in195either source or sink for VOUT and 4mA sink for IOUT.196When present, the limit is 16mA in either source or sink for VOUT,1971mA sink for IOUT.198199adi,4-wire-rtd:200type: boolean201description: |202When not present, the ADC should be used for measuring 3-wire RTDs.203When present, the ADC should be used for measuring 4-wire RTDs.204205adi,3-wire-rtd-excitation-swap:206type: boolean207description: Whether to swap the excitation for 3-wire RTD.208209adi,rtd-excitation-current-microamp:210description: Excitation current to apply to RTD.211enum: [250, 500, 750, 1000]212default: 250213214adi,ext1-burnout:215type: boolean216description: Whether to enable burnout current for EXT1.217218adi,ext1-burnout-current-nanoamp:219description:220Burnout current in nanoamps to be applied to EXT1.221enum: [0, 50, 500, 1000, 10000]222default: 0223224adi,ext1-burnout-current-polarity-sourcing:225type: boolean226description: |227When not present, the burnout current polarity for EXT1 is sinking.228When present, the burnout current polarity for EXT1 is sourcing.229230adi,ext2-burnout:231type: boolean232description: Whether to enable burnout current for EXT2.233234adi,ext2-burnout-current-nanoamp:235description: Burnout current in nanoamps to be applied to EXT2.236enum: [0, 50, 500, 1000, 10000]237default: 0238239adi,ext2-burnout-current-polarity-sourcing:240type: boolean241description: |242When not present, the burnout current polarity for EXT2 is sinking.243When present, the burnout current polarity for EXT2 is sourcing.244245adi,viout-burnout:246type: boolean247description: Whether to enable burnout current for VIOUT.248249adi,viout-burnout-current-nanoamp:250description: Burnout current in nanoamps to be applied to VIOUT.251enum: [0, 1000, 10000]252default: 0253254adi,viout-burnout-current-polarity-sourcing:255type: boolean256description: |257When not present, the burnout current polarity for VIOUT is sinking.258When present, the burnout current polarity for VIOUT is sourcing.259260adi,gpio0-mode:261$ref: /schemas/types.yaml#/definitions/uint32262description: |263GPIO functions.2640 - Disabled2651 - Logic I/O2662 - Comparator output2673 - Control HART CD2684 - Monitor HART CD2695 - Monitor HART EOM status270minimum: 0271maximum: 5272default: 0273274adi,gpio1-mode:275$ref: /schemas/types.yaml#/definitions/uint32276description: |277GPIO functions.2780 - Disabled2791 - Logic I/O2802 - Drive external digital output FET2813 - Control HART RXD2824 - Monitor HART RXD2835 - Monitor HART SOM status284minimum: 0285maximum: 5286default: 0287288adi,gpio2-mode:289$ref: /schemas/types.yaml#/definitions/uint32290description: |291GPIO functions.2920 - Disabled2931 - Logic I/O2942 - Drive internal digital output FET2953 - Control HART TXD2964 - Monitor HART TXD2975 - Monitor HART TX complete status298minimum: 0299maximum: 5300default: 0301302adi,gpio3-mode:303$ref: /schemas/types.yaml#/definitions/uint32304description: |305GPIO functions.3060 - Disabled3071 - Logic I/O3082 - High impedance3093 - Control HART RTS3104 - Monitor HART RTS3115 - Monitor HART CD complete status312minimum: 0313maximum: 5314default: 0315316required:317- compatible318- reg319- spi-cpol320- avdd-supply321322allOf:323- $ref: /schemas/spi/spi-peripheral-props.yaml#324- if:325required:326- adi,digital-input-sink-range-high327then:328properties:329adi,digital-input-sink-microamp:330maximum: 7400331332unevaluatedProperties: false333334examples:335- |336#include <dt-bindings/gpio/gpio.h>337#include <dt-bindings/interrupt-controller/irq.h>338339spi {340#address-cells = <1>;341#size-cells = <0>;342343addac@0 {344compatible = "adi,ad74115h";345reg = <0>;346347spi-max-frequency = <12000000>;348spi-cpol;349350reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;351352interrupt-parent = <&gpio>;353interrupts = <26 IRQ_TYPE_EDGE_FALLING>;354interrupt-names = "adc_rdy";355356avdd-supply = <&ad74115_avdd>;357358adi,ch-func = <1>;359adi,conv2-mux = <2>;360adi,conv2-range-microvolt = <(-12000000) 12000000>;361362adi,gpio0-mode = <1>;363adi,gpio1-mode = <1>;364adi,gpio2-mode = <1>;365adi,gpio3-mode = <1>;366367adi,dac-bipolar;368};369};370...371372373