Analog Devices Easy Drive Multiplexed SAR Analog to Digital Converters

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

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

Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.com>"

A family of similar multi-channel analog to digital converters with SPI bus.

* https://www.analog.com/en/products/ad4695.html * https://www.analog.com/en/products/ad4696.html * https://www.analog.com/en/products/ad4697.html * https://www.analog.com/en/products/ad4698.html

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad4695", "adi,ad4696", "adi,ad4697", "adi,ad4698"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 80000000

spi-cpol — not listed as required here #

true — No constraints added by this property rule.

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

spi-rx-bus-width — not listed as required here #

Array item rules (items) #

Minimum value (minimum): 1

Maximum value (maximum): 4

avdd-supply — required here #

Analog power supply.

vio-supply — required here #

I/O pin power supply.

ldo-in-supply — not listed as required here #

Internal LDO Input. Mutually exclusive with vdd-supply.

vdd-supply — not listed as required here #

Core power supply. Mutually exclusive with ldo-in-supply.

ref-supply — not listed as required here #

External reference voltage. Mutually exclusive with refin-supply.

refin-supply — not listed as required here #

Internal reference buffer input. Mutually exclusive with ref-supply.

com-supply — not listed as required here #

Common voltage supply for pseudo-differential analog inputs.

adi,no-ref-current-limit — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

When this flag is present, the REF Overvoltage Reduced Current protection is disabled.

adi,no-ref-high-z — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable this flag if the ref-supply requires Reference Input High-Z Mode to be disabled for proper operation.

cnv-gpios — not listed as required here #

The Convert Input (CNV). If omitted, CNV is tied to SPI CS.

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

The Reset Input (RESET). Should be configured GPIO_ACTIVE_LOW.

Maximum number of items (maxItems): 1

pwms — not listed as required here #

PWM signal connected to the CNV pin.

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Signal coming from the BSY_ALT_GP0 pin (ALERT or BUSY).

Item 2

Signal coming from the GP2 pin (ALERT).

Item 3

Signal coming from the GP3 pin (BUSY).

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "gp0"

Item 2

Exact value (const): "gp2"

Item 3

Exact value (const): "gp3"

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 the GPn number: 0 to 3. The second cell takes standard GPIO flags.

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

First cell indicates the output signal: 0 = BUSY, 1 = ALERT. Second cell indicates which GPn pin is used: 0, 2 or 3.

For convenience, macros for these values are available in dt-bindings/iio/adc/adi,ad4695.h.

Exact value (const): 2

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^in(?:[13579]|1[135])-supply$ — name matches this regular expression #

Optional voltage supply for odd numbered channels when they are used as the negative input for a pseudo-differential channel.

^channel@[0-9a-f]$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): adc.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Describes each individual channel. In addition the properties defined below, bipolar from adc.yaml is also supported.

Properties and child nodes (properties) #

reg — required here

Maximum value (maximum): 15

common-mode-channel — not listed as required here

Describes the common mode channel for single channels. 0xFF is REFGND and OxFE is COM. Macros are available for these values in dt-bindings/iio/adc/adi,ad4695.h. Values 1 to 15 correspond to INx inputs. Only odd numbered INx inputs can be used as common mode channels.

Allowed values (enum): 1, 3, 5, 7, 9, 11, 13, 15, 254, 255

Default value (default): 255

adi,no-high-z — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Enable this flag if the input pin requires the Analog Input High-Z Mode to be disabled for proper operation.

Required in this object (required): "reg"

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

common-mode-channel — not listed as required here

Exact value (const): 255

When the condition matches (then)

Properties and child nodes (properties)

bipolar — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible", "reg", "avdd-supply", "vio-supply"

All of these rules must match (allOf) #

Rule 1 #

Exactly one of these rules must match (oneOf) #

Rule 1

Required in this object (required): "ldo-in-supply"

Rule 2

Required in this object (required): "vdd-supply"

Rule 2 #

Exactly one of these rules must match (oneOf) #

Rule 1

Required in this object (required): "ref-supply"

Rule 2

Required in this object (required): "refin-supply"

Rule 3 #

Condition (if) #

Required in this object (required): "refin-supply"

When the condition matches (then) #

Properties and child nodes (properties)

adi,no-ref-high-z — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,ad4697", "adi,ad4698"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^in(?:9|1[135])-supply$ — name matches this regular expression

false — Not permitted by this property rule.

^channel@[0-7]$ — name matches this regular expression

Properties and child nodes (properties)

reg — not listed as required here

Maximum value (maximum): 7

common-mode-channel — not listed as required here

Allowed values (enum): 1, 3, 5, 7, 254, 255

^channel@[8-9a-f]$ — name matches this regular expression

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/gpio/gpio.h>
#include <dt-bindings/iio/adc/adi,ad4695.h>

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

    adc@0 {
        compatible = "adi,ad4695";
        reg = <0>;
        spi-cpol;
        spi-cpha;
        spi-max-frequency = <80000000>;
        avdd-supply = <&power_supply>;
        ldo-in-supply = <&power_supply>;
        vio-supply = <&io_supply>;
        refin-supply = <&supply_5V>;
        com-supply = <&supply_2V5>;
        in3-supply = <&supply_2V5>;
        reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;

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

        /* Pseudo-differential channel between IN0 and REFGND. */
        channel@0 {
            reg = <0>;
        };

        /* Pseudo-differential channel between IN1 and COM. */
        channel@1 {
            reg = <1>;
            common-mode-channel = <AD4695_COMMON_MODE_COM>;
            bipolar;
        };

        /* Pseudo-differential channel between IN2 and IN3. */
        channel@2 {
            reg = <2>;
            common-mode-channel = <3>;
            bipolar;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 167: bipolar mode can't be used with REFGND

Line 195: the internal reference buffer always requires high-z mode

Line 203: limit channels for 8-channel chips

Edit this page