Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
26309 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices AD7768-1 ADC device driver78maintainers:9- Michael Hennerich <michael.hennerich@analog.com>1011description: |12Datasheet at:13https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf1415properties:16compatible:17const: adi,ad7768-11819reg:20maxItems: 12122clocks:23maxItems: 12425clock-names:26const: mclk2728trigger-sources:29$ref: /schemas/types.yaml#/definitions/phandle-array30minItems: 131maxItems: 232description: |33A list of phandles referencing trigger source providers. Each entry34represents a trigger source for the ADC:3536- First entry specifies the device responsible for driving the37synchronization (SYNC_IN) pin, as an alternative to adi,sync-in-gpios.38This can be a `gpio-trigger` or another `ad7768-1` device. If the39device's own SYNC_OUT pin is internally connected to its SYNC_IN pin,40reference the device itself or omit this property.41- Second entry optionally defines a GPIO3 pin used as a START signal trigger.4243Use the accompanying trigger source cell to identify the type of each entry.4445interrupts:46description:47DRDY (Data Ready) pin, which signals conversion results are available.48maxItems: 14950'#address-cells':51const: 15253'#size-cells':54const: 05556vref-supply:57description:58ADC reference voltage supply5960adi,sync-in-gpios:61maxItems: 162description:63Enables synchronization of multiple devices that require simultaneous64sampling. A pulse is always required if the configuration is changed65in any way, for example if the filter decimation rate changes.66As the line is active low, it should be marked GPIO_ACTIVE_LOW.6768regulators:69type: object70description:71list of regulators provided by this controller.7273properties:74vcm-output:75$ref: /schemas/regulator/regulator.yaml#76type: object77unevaluatedProperties: false7879additionalProperties: false8081reset-gpios:82maxItems: 18384spi-cpol: true8586spi-cpha: true8788"#io-channel-cells":89const: 19091"#trigger-source-cells":92description: |93Cell indicates the trigger output signal: 0 = SYNC_OUT, 1 = GPIO3,942 = DRDY.9596For better readability, macros for these values are available in97dt-bindings/iio/adc/adi,ad7768-1.h.98const: 199100gpio-controller: true101102"#gpio-cells":103const: 2104description: |105The first cell is for the GPIO number: 0 to 3.106The second cell takes standard GPIO flags.107108required:109- compatible110- reg111- clocks112- clock-names113- vref-supply114- spi-cpol115- spi-cpha116117dependencies:118adi,sync-in-gpios:119not:120required:121- trigger-sources122trigger-sources:123not:124required:125- adi,sync-in-gpios126127patternProperties:128"^channel@([0-9]|1[0-5])$":129type: object130description: |131Represents the external channels which are connected to the device.132133properties:134reg:135maxItems: 1136description: |137The channel number.138139label:140description: |141Unique name to identify which channel this is.142required:143- reg144additionalProperties: false145146allOf:147- $ref: /schemas/spi/spi-peripheral-props.yaml#148149unevaluatedProperties: false150151examples:152- |153#include <dt-bindings/interrupt-controller/irq.h>154#include <dt-bindings/gpio/gpio.h>155spi {156#address-cells = <1>;157#size-cells = <0>;158159adc@0 {160compatible = "adi,ad7768-1";161reg = <0>;162spi-max-frequency = <2000000>;163spi-cpol;164spi-cpha;165gpio-controller;166#gpio-cells = <2>;167vref-supply = <&adc_vref>;168interrupts = <25 IRQ_TYPE_EDGE_RISING>;169interrupt-parent = <&gpio>;170adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;171reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;172clocks = <&ad7768_mclk>;173clock-names = "mclk";174175#address-cells = <1>;176#size-cells = <0>;177178channel@0 {179reg = <0>;180label = "channel_0";181};182183regulators {184vcm_reg: vcm-output {185regulator-name = "ad7768-1-vcm";186};187};188};189};190...191192193