Analog Devices AD4030 and AD4630 ADC families
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4030.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michael Hennerich <michael.hennerich@analog.com>", "Nuno Sa <nuno.sa@analog.com>"
Analog Devices AD4030 single channel and AD4630/AD4632 dual channel precision SAR ADC families
* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4030-24-4032-24.pdf * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-24_ad4632-24.pdf * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-16-4632-16.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4030-24", "adi,ad4032-24", "adi,ad4630-16", "adi,ad4630-24", "adi,ad4632-16", "adi,ad4632-24"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 102040816
spi-rx-bus-width — not listed as required here #
Maximum number of items (maxItems): 2
Exactly one of these rules must match (oneOf) #
Rule 1
Rule for matching array elements (
contains)Exact value (
const):1
Rule 2
Rule for matching array elements (
contains)Exact value (
const):2
Rule 3
Rule for matching array elements (
contains)Exact value (
const):4
vdd-5v-supply — required here #
true — No constraints added by this property rule.
vdd-1v8-supply — required here #
true — No constraints added by this property rule.
vio-supply — required here #
true — No constraints added by this property rule.
ref-supply — not listed as required here #
Optional External unbuffered reference. Used when refin-supply is not connected.
refin-supply — not listed as required here #
Internal buffered Reference. Used when ref-supply is not connected.
cnv-gpios — required here #
The Convert Input (CNV). It initiates the sampling conversions.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
The Reset Input (/RST). Used for asynchronous device reset.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The BUSY pin is used to signal that the conversions results are available to be transferred when in SPI Clocking Mode. This nodes should be connected to an interrupt that is triggered when the BUSY line goes low.
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Exact value (const): "busy"
Required in this object (required): "compatible", "reg", "vdd-5v-supply", "vdd-1v8-supply", "vio-supply", "cnv-gpios"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
spi-rx-bus-width— not listed as required hereMaximum number of items (
maxItems):1
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4030-24";
reg = <0>;
spi-max-frequency = <80000000>;
vdd-5v-supply = <&supply_5V>;
vdd-1v8-supply = <&supply_1_8V>;
vio-supply = <&supply_1_8V>;
ref-supply = <&supply_5V>;
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
};
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4630-24";
reg = <0>;
spi-max-frequency = <80000000>;
spi-rx-bus-width = <4>, <4>;
vdd-5v-supply = <&supply_5V>;
vdd-1v8-supply = <&supply_1_8V>;
vio-supply = <&supply_1_8V>;
ref-supply = <&supply_5V>;
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2024 Analog Devices Inc.
Line 3: Copyright 2024 BayLibre, SAS.
Line 41: all lanes must have the same width