Analog Devices AD7091R-2/-4/-5/-8 Multi-Channel 12-Bit ADCs

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

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

Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Marcelo Schmitt <marcelo.schmitt@analog.com>"

Analog Devices AD7091R5 4-Channel 12-Bit ADC supporting I2C interface https://www.analog.com/media/en/technical-documentation/data-sheets/ad7091r-5.pdf Analog Devices AD7091R-2/AD7091R-4/AD7091R-8 2-/4-/8-Channel 12-Bit ADCs supporting SPI interface https://www.analog.com/media/en/technical-documentation/data-sheets/AD7091R-2_7091R-4_7091R-8.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad7091r2", "adi,ad7091r4", "adi,ad7091r5", "adi,ad7091r8"

reg — required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

Provide VDD power to the sensor (VDD range is from 2.7V to 5.25V).

vdrive-supply — not listed as required here #

Determines the voltage level at which the interface logic will operate. The V_drive voltage range is from 1.8V to 5.25V and must not exceed VDD by more than 0.3V.

vref-supply — not listed as required here #

Phandle to the vref power supply

convst-gpios — not listed as required here #

GPIO connected to the CONVST pin. This logic input is used to initiate conversions on the analog input channels.

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Interrupt for signaling when conversion results exceed the high limit for ADC readings or fall below the low limit for them. Interrupt source must be attached to ALERT/BUSY/GPO0 pin.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

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,ad7091r2"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — 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,ad7091r2", "adi,ad7091r4", "adi,ad7091r8"

When the condition matches (then) #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    adc@2f {
        compatible = "adi,ad7091r5";
        reg = <0x2f>;

        interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
        interrupt-parent = <&gpio>;
    };
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    adc@0 {
        compatible = "adi,ad7091r8";
        reg = <0x0>;
        spi-max-frequency = <1000000>;
        vref-supply = <&adc_vref>;
        convst-gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
        reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
        interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
        interrupt-parent = <&gpio>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 69: AD7091R-2 does not have ALERT/BUSY/GPO pin

Edit this page