Analog Devices AD4130 ADC device driver
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,ad4130.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cosmin Tanislav <cosmin.tanislav@analog.com>"
Bindings for the Analog Devices AD4130 ADC. Datasheet can be found here:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD4130-8.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ad4130"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
phandle to the master clock (mclk)
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Specify which interrupt pin should be configured as Data Ready / FIFO interrupt. Default if not supplied is int.
Allowed values (enum): "int", "clk", "p2", "dout"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
#clock-cells — not listed as required here #
Exact value (const): 0
clock-output-names — not listed as required here #
Maximum number of items (maxItems): 1
refin1-supply — not listed as required here #
refin1 supply. Can be used as reference for conversion.
refin2-supply — not listed as required here #
refin2 supply. Can be used as reference for conversion.
avdd-supply — not listed as required here #
AVDD voltage supply. Can be used as reference for conversion.
iovdd-supply — not listed as required here #
IOVDD voltage supply. Used for the chip interface.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 5000000
adi,ext-clk-freq-hz — not listed as required here #
Specify the frequency of the external clock.
Allowed values (enum): 76800, 153600
Default value (default): 76800
adi,bipolar — not listed as required here #
Specify if the device should be used in bipolar mode.
Value type (type): "boolean"
adi,vbias-pins — not listed as required here #
Analog inputs to apply a voltage bias of (AVDD − AVSS) / 2 to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):15
Required in this object (required): "compatible", "reg", "interrupts"
Properties matching a name pattern (patternProperties) #
^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.
Properties and child nodes (properties) #
reg — required here
The channel number.
Minimum value (minimum): 0
Maximum value (maximum): 15
diff-channels — required here
Besides the analog inputs available, internal inputs can be used. 16: Internal temperature sensor. 17: AVSS 18: Internal reference 19: DGND 20: (AVDD − AVSS)/6+ 21: (AVDD − AVSS)/6- 22: (IOVDD − DGND)/6+ 23: (IOVDD − DGND)/6- 24: (ALDO − AVSS)/6+ 25: (ALDO − AVSS)/6- 26: (DLDO − DGND)/6+ 27: (DLDO − DGND)/6- 28: V_MV_P 29: V_MV_M
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):29
adi,reference-select — not listed as required here
Select the reference source to use when converting on the specific channel. Valid values are: 0: REFIN1(+)/REFIN1(−) 1: REFIN2(+)/REFIN2(−) 2: REFOUT/AVSS (Internal reference) 3: AVDD/AVSS If not specified, REFIN1 is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
adi,excitation-pin-0 — not listed as required here
Analog input to apply excitation current to while the channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
adi,excitation-pin-1 — not listed as required here
Analog input to apply excitation current to while this channel is active.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
adi,excitation-current-0-nanoamp — not listed as required here
Excitation current in nanoamps to be applied to pin specified in adi,excitation-pin-0 while this channel is active.
Allowed values (enum): 0, 100, 10000, 20000, 50000, 100000, 150000, 200000
Default value (default): 0
adi,excitation-current-1-nanoamp — not listed as required here
Excitation current in nanoamps to be applied to pin specified in adi,excitation-pin-1 while this channel is active.
Allowed values (enum): 0, 100, 10000, 20000, 50000, 100000, 150000, 200000
Default value (default): 0
adi,burnout-current-nanoamp — not listed as required here
Burnout current in nanoamps to be applied for this channel.
Allowed values (enum): 0, 500, 2000, 4000
Default value (default): 0
adi,buffered-positive — not listed as required here
Enable buffered mode for positive input.
Value type (type): "boolean"
adi,buffered-negative — not listed as required here
Enable buffered mode for negative input.
Value type (type): "boolean"
Required in this object (required): "reg", "diff-channels"
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) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "adi,ad4130";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <5000000>;
interrupts = <27 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
channel@0 {
reg = <0>;
adi,reference-select = <2>;
/* AIN8, AIN9 */
diff-channels = <8 9>;
};
channel@1 {
reg = <1>;
adi,reference-select = <2>;
/* AIN10, AIN11 */
diff-channels = <10 11>;
};
channel@2 {
reg = <2>;
adi,reference-select = <2>;
/* Temperature Sensor, DGND */
diff-channels = <16 19>;
};
channel@3 {
reg = <3>;
adi,reference-select = <2>;
/* Internal reference, DGND */
diff-channels = <18 19>;
};
channel@4 {
reg = <4>;
adi,reference-select = <2>;
/* DGND, DGND */
diff-channels = <19 19>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2022 Analog Devices Inc.