Analog Devices AD7949/AD7682/AD7689 analog to digital converters

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

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

Maintainers (maintainers): "Charles-Antoine Couret <charles-antoine.couret@essensium.com>"

Specifications on the converters can be found at:
  AD7949:
    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
  AD7682/AD7698:
    https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad7682", "adi,ad7689", "adi,ad7949"

reg — required here #

Maximum number of items (maxItems): 1

vrefin-supply — not listed as required here #

Buffered ADC reference voltage supply.

vref-supply — not listed as required here #

Unbuffered ADC reference voltage supply.

adi,internal-ref-microvolt — not listed as required here #

Internal reference voltage selection in microvolts.

If no internal reference is specified, the channel will default to the external reference defined by vrefin-supply (or vref-supply). vrefin-supply will take precedence over vref-supply if both are defined.

If no supplies are defined, the reference selection will default to 4096mV internal reference.

Allowed values (enum): 2500000, 4096000

Default value (default): 4096000

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

Exact value (const): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

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#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

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

        compatible = "adi,ad7949";
        reg = <0>;
        vref-supply = <&vdd_supply>;
    };

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

        compatible = "adi,ad7949";
        reg = <1>;
        vrefin-supply = <&vdd_supply>;
    };

    adc@2 {
        #address-cells = <1>;
        #size-cells = <0>;

        compatible = "adi,ad7949";
        reg = <2>;
        adi,internal-ref-microvolt = <4096000>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page