Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad7625.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,ad7625.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices Fast PulSAR Analog to Digital Converters78maintainers:9- Michael Hennerich <Michael.Hennerich@analog.com>10- Nuno Sá <nuno.sa@analog.com>1112description: |13A family of single channel differential analog to digital converters.1415* https://www.analog.com/en/products/ad7625.html16* https://www.analog.com/en/products/ad7626.html17* https://www.analog.com/en/products/ad7960.html18* https://www.analog.com/en/products/ad7961.html1920properties:21compatible:22enum:23- adi,ad762524- adi,ad762625- adi,ad796026- adi,ad79612728vdd1-supply: true29vdd2-supply: true30vio-supply: true3132ref-supply:33description:34Voltage regulator for the external reference voltage (REF).3536refin-supply:37description:38Voltage regulator for the reference buffer input (REFIN).3940clocks:41description:42The clock connected to the CLK pins, gated by the clk_gate PWM.43maxItems: 14445pwms:46items:47- description: PWM connected to the CNV input on the ADC.48- description: PWM that gates the clock connected to the ADC's CLK input.4950pwm-names:51items:52- const: cnv53- const: clk_gate5455io-backends:56description:57The AXI ADC IP block connected to the D+/- and DCO+/- lines of the58ADC. An example backend can be found at59http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.html.60maxItems: 16162adi,no-dco:63$ref: /schemas/types.yaml#/definitions/flag64description:65Indicates the wiring of the DCO+/- lines. If true, then they are66grounded and the device is in self-clocked mode. If this is not67present, then the device is in echoed clock mode.6869adi,en0-always-on:70$ref: /schemas/types.yaml#/definitions/flag71description:72Indicates if EN0 is hard-wired to the high state. If neither this73nor en0-gpios are present, then EN0 is hard-wired low.7475adi,en1-always-on:76$ref: /schemas/types.yaml#/definitions/flag77description:78Indicates if EN1 is hard-wired to the high state. If neither this79nor en1-gpios are present, then EN1 is hard-wired low.8081adi,en2-always-on:82$ref: /schemas/types.yaml#/definitions/flag83description:84Indicates if EN2 is hard-wired to the high state. If neither this85nor en2-gpios are present, then EN2 is hard-wired low.8687adi,en3-always-on:88$ref: /schemas/types.yaml#/definitions/flag89description:90Indicates if EN3 is hard-wired to the high state. If neither this91nor en3-gpios are present, then EN3 is hard-wired low.9293en0-gpios:94description:95Configurable EN0 pin.9697en1-gpios:98description:99Configurable EN1 pin.100101en2-gpios:102description:103Configurable EN2 pin.104105en3-gpios:106description:107Configurable EN3 pin.108109required:110- compatible111- vdd1-supply112- vdd2-supply113- vio-supply114- clocks115- pwms116- pwm-names117- io-backends118119allOf:120- if:121required:122- ref-supply123then:124properties:125refin-supply: false126- if:127required:128- refin-supply129then:130properties:131ref-supply: false132- if:133properties:134compatible:135contains:136enum:137- adi,ad7625138- adi,ad7626139then:140properties:141en2-gpios: false142en3-gpios: false143adi,en2-always-on: false144adi,en3-always-on: false145146- if:147properties:148compatible:149contains:150enum:151- adi,ad7960152- adi,ad7961153then:154# ad796x parts must have one of the two supplies155oneOf:156- required: [ref-supply]157- required: [refin-supply]158159additionalProperties: false160161examples:162- |163#include <dt-bindings/gpio/gpio.h>164adc {165compatible = "adi,ad7625";166vdd1-supply = <&supply_5V>;167vdd2-supply = <&supply_2_5V>;168vio-supply = <&supply_2_5V>;169io-backends = <&axi_adc>;170clocks = <&ref_clk>;171pwms = <&axi_pwm_gen 0 0>, <&axi_pwm_gen 1 0>;172pwm-names = "cnv", "clk_gate";173en0-gpios = <&gpio0 86 GPIO_ACTIVE_HIGH>;174en1-gpios = <&gpio0 87 GPIO_ACTIVE_HIGH>;175};176177178