Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad4000.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/adc/adi,ad4000.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD4000 and similar Analog to Digital Converters78maintainers:9- Marcelo Schmitt <marcelo.schmitt@analog.com>1011description: |12Analog Devices AD4000 family of Analog to Digital Converters with SPI support.13Specifications can be found at:14https://www.analog.com/media/en/technical-documentation/data-sheets/ad4000-4004-4008.pdf15https://www.analog.com/media/en/technical-documentation/data-sheets/ad4001-4005.pdf16https://www.analog.com/media/en/technical-documentation/data-sheets/ad4002-4006-4010.pdf17https://www.analog.com/media/en/technical-documentation/data-sheets/ad4003-4007-4011.pdf18https://www.analog.com/media/en/technical-documentation/data-sheets/ad4020-4021-4022.pdf19https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4001.pdf20https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4003.pdf21https://www.analog.com/media/en/technical-documentation/data-sheets/ad7685.pdf22https://www.analog.com/media/en/technical-documentation/data-sheets/ad7686.pdf23https://www.analog.com/media/en/technical-documentation/data-sheets/ad7687.pdf24https://www.analog.com/media/en/technical-documentation/data-sheets/ad7688.pdf25https://www.analog.com/media/en/technical-documentation/data-sheets/ad7690.pdf26https://www.analog.com/media/en/technical-documentation/data-sheets/ad7691.pdf27https://www.analog.com/media/en/technical-documentation/data-sheets/ad7693.pdf28https://www.analog.com/media/en/technical-documentation/data-sheets/ad7942.pdf29https://www.analog.com/media/en/technical-documentation/data-sheets/ad7946.pdf30https://www.analog.com/media/en/technical-documentation/data-sheets/ad7980.pdf31https://www.analog.com/media/en/technical-documentation/data-sheets/ad7982.pdf32https://www.analog.com/media/en/technical-documentation/data-sheets/ad7983.pdf33https://www.analog.com/media/en/technical-documentation/data-sheets/ad7984.pdf34https://www.analog.com/media/en/technical-documentation/data-sheets/ad7988-1_7988-5.pdf3536$ref: /schemas/spi/spi-peripheral-props.yaml#3738properties:39compatible:40oneOf:41- enum:42- adi,ad400043- adi,ad400144- adi,ad400245- adi,ad400346- adi,ad402047- adi,adaq400148- adi,adaq400349- adi,ad768750- adi,ad769151- adi,ad794252- adi,ad794653- adi,ad798354- items:55- enum:56- adi,ad400457- adi,ad400858- const: adi,ad400059- items:60- enum:61- adi,ad400562- const: adi,ad400163- items:64- enum:65- adi,ad400666- adi,ad401067- const: adi,ad400268- items:69- enum:70- adi,ad400771- adi,ad401172- const: adi,ad400373- items:74- enum:75- adi,ad402176- adi,ad402277- const: adi,ad402078- items:79- enum:80- adi,ad768581- adi,ad768682- adi,ad798083- adi,ad7988-184- adi,ad7988-585- const: adi,ad798386- items:87- enum:88- adi,ad768889- adi,ad769390- const: adi,ad768791- items:92- enum:93- adi,ad769094- adi,ad798295- adi,ad798496- const: adi,ad76919798reg:99maxItems: 1100101spi-max-frequency:102maximum: 102040816 # for VIO > 2.7 V, 81300813 for VIO > 1.7 V103104adi,sdi-pin:105$ref: /schemas/types.yaml#/definitions/string106enum: [ high, low, cs, sdi ]107default: sdi108description:109Describes how the ADC SDI pin is wired. A value of "sdi" indicates that110the ADC SDI is connected to host SDO. "high" indicates that the ADC SDI111pin is hard-wired to logic high (VIO). "low" indicates that it is112hard-wired low (GND). "cs" indicates that the ADC SDI pin is connected to113the host CS line.114115'#daisy-chained-devices': true116117vdd-supply:118description: A 1.8V supply that powers the chip (VDD).119120vio-supply:121description:122A 1.8V to 5.5V supply for the digital inputs and outputs (VIO).123124ref-supply:125description:126A 2.5 to 5V supply for the external reference voltage (REF).127128cnv-gpios:129description:130When provided, this property indicates the GPIO that is connected to the131CNV pin.132maxItems: 1133134adi,high-z-input:135type: boolean136description:137High-Z mode allows the amplifier and RC filter in front of the ADC to be138chosen based on the signal bandwidth of interest, rather than the settling139requirements of the switched capacitor SAR ADC inputs.140141adi,gain-milli:142description: |143The hardware gain applied to the ADC input (in milli units).144The gain provided by the ADC input scaler is defined by the hardware145connections between chip pins OUT+, R1K-, R1K1-, R1K+, R1K1+, and OUT-.146If not present, default to 1000 (no actual gain applied).147$ref: /schemas/types.yaml#/definitions/uint16148enum: [454, 909, 1000, 1900]149default: 1000150151interrupts:152description:153The SDO pin can also function as a busy indicator. This node should be154connected to an interrupt that is triggered when the SDO line goes low155while the SDI line is high and the CNV line is low ("3-wire" mode) or the156SDI line is low and the CNV line is high ("4-wire" mode); or when the SDO157line goes high while the SDI and CNV lines are high (chain mode),158maxItems: 1159160required:161- compatible162- reg163- vdd-supply164- vio-supply165- ref-supply166167allOf:168# Single-channel PulSAR devices have SDI either tied to VIO, GND, or host CS.169- if:170properties:171compatible:172contains:173enum:174- adi,ad7687175- adi,ad7691176- adi,ad7942177- adi,ad7946178- adi,ad7983179then:180properties:181adi,sdi-pin:182enum: [ high, low, cs ]183default: cs184# The configuration register can only be accessed if SDI is connected to MOSI185- if:186required:187- adi,sdi-pin188then:189properties:190adi,high-z-input: false191# chain mode has lower SCLK max rate192- if:193required:194- '#daisy-chained-devices'195then:196properties:197spi-max-frequency:198maximum: 50000000 # for VIO > 2.7 V, 40000000 for VIO > 1.7 V199# Gain property only applies to ADAQ devices200- if:201properties:202compatible:203not:204contains:205enum:206- adi,adaq4001207- adi,adaq4003208then:209properties:210adi,gain-milli: false211212unevaluatedProperties: false213214examples:215- |216#include <dt-bindings/gpio/gpio.h>217spi {218#address-cells = <1>;219#size-cells = <0>;220adc@0 {221compatible = "adi,ad4020";222reg = <0>;223spi-max-frequency = <71000000>;224vdd-supply = <&supply_1_8V>;225vio-supply = <&supply_1_8V>;226ref-supply = <&supply_5V>;227adi,sdi-pin = "cs";228cnv-gpios = <&gpio0 88 GPIO_ACTIVE_HIGH>;229};230};231- |232spi {233#address-cells = <1>;234#size-cells = <0>;235adc@0 {236compatible = "adi,adaq4003";237reg = <0>;238spi-max-frequency = <80000000>;239vdd-supply = <&supply_1_8V>;240vio-supply = <&supply_1_8V>;241ref-supply = <&supply_5V>;242adi,high-z-input;243adi,gain-milli = /bits/ 16 <454>;244};245};246247248