Analog Devices AD4062 ADC family device driver

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

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

Maintainers (maintainers): "Jorge Marques <jorge.marques@analog.com>"

Analog Devices AD4062 Single Channel Precision SAR ADC family

https://www.analog.com/media/en/technical-documentation/data-sheets/ad4060.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad4062.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad4060", "adi,ad4062"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Two pins are available that can be configured as either a general purpose digital output, device enable signal (used to synchronise other parts of the signal chain with ADC sampling), device ready (GP1 only) or various interrupt signals. If intended for use as a GPIO or device enable, will not present here.

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

GP0 pin, cannot be configured as DEV_RDY.

Item 2

GP1 pin, can be configured to any setting.

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): "gp1"

gpio-controller — not listed as required here #

Marks the device node as a GPIO controller. GPs not listed as interrupts are exposed as a GPO.

#gpio-cells — not listed as required here #

Exact value (const): 2

The first cell is the GPIO number and the second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.

vdd-supply — required here #

Analog power supply.

vio-supply — required here #

Digital interface logic power supply.

ref-supply — not listed as required here #

Reference voltage to set the ADC full-scale range. If not present, vdd-supply is used as the reference voltage.

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

All of these rules must match (allOf) #

Rule 1 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i3c {
    #address-cells = <3>;
    #size-cells = <0>;

    adc@0,2ee007c0000 {
        reg = <0x0 0x2ee 0x7c0000>;
        vdd-supply = <&vdd>;
        vio-supply = <&vio>;
        ref-supply = <&ref>;

        interrupt-parent = <&gpio>;
        interrupts = <0 0 IRQ_TYPE_EDGE_RISING>,
                     <0 1 IRQ_TYPE_EDGE_FALLING>;
        interrupt-names = "gp0", "gp1";
    };
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i3c {
    #address-cells = <3>;
    #size-cells = <0>;

    adc@0,2ee007c0000 {
        reg = <0x0 0x2ee 0x7c0000>;
        vdd-supply = <&vdd>;
        vio-supply = <&vio>;
        ref-supply = <&ref>;

        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2025 Analog Devices Inc.

Edit this page