Analog Devices MAX11410 ADC device driver
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/adi,max11410.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ibrahim Tilki <Ibrahim.Tilki@analog.com>"
Bindings for the Analog Devices MAX11410 ADC device. Datasheet can be
found here:
https://datasheets.maximintegrated.com/en/ds/MAX11410.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,max11410"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Name of the gpio pin of max11410 used for IRQ
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"gpio1"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
avdd-supply — not listed as required here #
Optional avdd supply. Used as reference when no explicit reference supplied.
vref0p-supply — not listed as required here #
vref0p supply can be used as reference for conversion.
vref1p-supply — not listed as required here #
vref1p supply can be used as reference for conversion.
vref2p-supply — not listed as required here #
vref2p supply can be used as reference for conversion.
vref0n-supply — not listed as required here #
vref0n supply can be used as reference for conversion.
vref1n-supply — not listed as required here #
vref1n supply can be used as reference for conversion.
vref2n-supply — not listed as required here #
vref2n supply can be used as reference for conversion.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 8000000
Properties matching a name pattern (patternProperties) #
^channel(@[0-9])?$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number in single-ended mode.
Minimum value (minimum): 0
Maximum value (maximum): 9
adi,reference — not listed as required here
Select the reference source to use when converting on the specific channel. Valid values are: 0: VREF0P/VREF0N 1: VREF1P/VREF1N 2: VREF2P/VREF2N 3: AVDD/AGND 4: VREF0P/AGND 5: VREF1P/AGND 6: VREF2P/AGND If this field is left empty, AVDD/AGND is selected.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6
Default value (default): 3
adi,input-mode — not listed as required here
Select signal path of input channels. Valid values are: 0: Buffered, low-power, unity-gain path (default) 1: Bypass path 2: PGA path
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 0
diff-channels — not listed as required here
true — No constraints added by this property rule.
bipolar — not listed as required here
true — No constraints added by this property rule.
settling-time-us — not listed as required here
true — No constraints added by this property rule.
adi,buffered-vrefp — not listed as required here
Enable buffered mode for positive reference.
Value type (type): "boolean"
adi,buffered-vrefn — not listed as required here
Enable buffered mode for negative reference.
Value type (type): "boolean"
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
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) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
reg = <0>;
compatible = "adi,max11410";
spi-max-frequency = <8000000>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "gpio1";
avdd-supply = <&adc_avdd>;
vref1p-supply = <&adc_vref1p>;
vref1n-supply = <&adc_vref1n>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
diff-channels = <2 3>;
adi,reference = <1>;
bipolar;
settling-time-us = <100000>;
};
channel@2 {
reg = <2>;
diff-channels = <7 9>;
adi,reference = <5>;
adi,input-mode = <2>;
settling-time-us = <50000>;
};
};
};
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.