Analog Devices AD7768-1 ADC family

Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>"

Analog Devices AD7768-1 24-Bit Single Channel Low Power sigma-delta ADC family

https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7767-1.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7768-1.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/adaq7769-1.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad7768-1", "adi,adaq7767-1", "adi,adaq7768-1", "adi,adaq7769-1"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "mclk"

trigger-sources — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

A list of phandles referencing trigger source providers. Each entry represents a trigger source for the ADC:

  - First entry specifies the device responsible for driving the
    synchronization (SYNC_IN) pin, as an alternative to adi,sync-in-gpios.
    This can be a `gpio-trigger` or another `ad7768-1` device. If the
    device's own SYNC_OUT pin is internally connected to its SYNC_IN pin,
    reference the device itself or omit this property.
  - Second entry optionally defines a GPIO3 pin used as a START signal trigger.

Use the accompanying trigger source cell to identify the type of each entry.

interrupts — not listed as required here #

DRDY (Data Ready) pin, which signals conversion results are available.

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

vref-supply — required here #

ADC reference voltage supply

adi,aaf-gain-bp — not listed as required here #

Specifies the gain applied by the Analog Anti-Aliasing Filter (AAF)
to the ADC input in basis points (one hundredth of a percent).
The hardware gain is determined by which input pin(s) the signal goes
through into the AAF. The possible connections are:
* For the ADAQ7767-1: Input connected to IN1±, IN2± or IN3±.
* For the ADAQ7769-1: OUT_PGA pin connected to IN1_AAF+, IN2_AAF+,
  or IN3_AAF+.

Allowed values (enum): 1430, 3640, 10000

Default value (default): 10000

pga-gpios — not listed as required here #

GAIN 0, GAIN1 and GAIN2 pins for gain selection. For devices that have PGA configuration input pins, pga-gpios must be defined.

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

adi,sync-in-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Enables synchronization of multiple devices that require simultaneous sampling. A pulse is always required if the configuration is changed in any way, for example if the filter decimation rate changes. As the line is active low, it should be marked GPIO_ACTIVE_LOW.

regulators — not listed as required here #

Value type (type): "object"

list of regulators provided by this controller.

Properties and child nodes (properties) #

vcm-output — not listed as required here

Shared schema rule ($ref): /schemas/regulator/regulator.yaml#

Value type (type): "object"

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

spi-cpol — required here #

true — No constraints added by this property rule.

spi-cpha — required here #

true — No constraints added by this property rule.

#io-channel-cells — not listed as required here #

Exact value (const): 1

#trigger-source-cells — not listed as required here #

Cell indicates the trigger output signal: 0 = SYNC_OUT, 1 = GPIO3, 2 = DRDY.

For better readability, macros for these values are available in dt-bindings/iio/adc/adi,ad7768-1.h.

Exact value (const): 1

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

The first cell is for the GPIO number: 0 to 3. The second cell takes standard GPIO flags.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "vref-supply", "spi-cpol", "spi-cpha"

Property dependencies (dependencies) #

adi,sync-in-gpios — applies when this property is present #

This rule must not match (not) #

Required in this object (required): "trigger-sources"

trigger-sources — applies when this property is present #

This rule must not match (not) #

Required in this object (required): "adi,sync-in-gpios"

Properties matching a name pattern (patternProperties) #

^channel@([0-9]|1[0-5])$ — name matches this regular expression #

Value type (type): "object"

Represents the external channels which are connected to the device.

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

The channel number.

label — not listed as required here

Unique name to identify which channel this is.

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adaq7767-1", "adi,adaq7769-1"

When the condition matches (then) #

Required in this object (required): "adi,aaf-gain-bp"

When the condition does not match (else) #

Properties and child nodes (properties)

adi,aaf-gain-bp — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adaq7768-1", "adi,adaq7769-1"

When the condition matches (then) #

Required in this object (required): "pga-gpios"

When the condition does not match (else) #

Properties and child nodes (properties)

pga-gpios — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    adc@0 {
        compatible = "adi,ad7768-1";
        reg = <0>;
        spi-max-frequency = <2000000>;
        spi-cpol;
        spi-cpha;
        gpio-controller;
        #gpio-cells = <2>;
        vref-supply = <&adc_vref>;
        interrupts = <25 IRQ_TYPE_EDGE_RISING>;
        interrupt-parent = <&gpio>;
        adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
        reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
        clocks = <&ad7768_mclk>;
        clock-names = "mclk";

        #address-cells = <1>;
        #size-cells = <0>;

        channel@0 {
            reg = <0>;
            label = "channel_0";
        };

        regulators {
          vcm_reg: vcm-output {
            regulator-name = "ad7768-1-vcm";
          };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 177: AAF Gain property only applies to ADAQ7767-1 and ADAQ7769-1 devices

Edit this page