Texas Instruments ADS131M0x 2-, 3-, 4-, 6- and 8-Channel ADCs
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads131m02.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
The ADS131M0x are a family of multichannel, simultaneous sampling, 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a built-in programmable gain amplifier (PGA) and internal reference. Communication with the ADC chip is via SPI.
Datasheets: - ADS131M02: https://www.ti.com/lit/ds/symlink/ads131m02.pdf - ADS131M03: https://www.ti.com/lit/ds/symlink/ads131m03.pdf - ADS131M04: https://www.ti.com/lit/ds/symlink/ads131m04.pdf - ADS131M06: https://www.ti.com/lit/ds/symlink/ads131m06.pdf - ADS131M08: https://www.ti.com/lit/ds/symlink/ads131m08.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads131m02", "ti,ads131m03", "ti,ads131m04", "ti,ads131m06", "ti,ads131m08"
reg — required here #
SPI chip select number.
clocks — required here #
Phandle to the external clock source required by the ADC's CLKIN pin. The datasheet recommends specific frequencies based on the desired power mode (e.g., 8.192 MHz for High-Resolution mode).
Maximum number of items (maxItems): 1
avdd-supply — required here #
Analog power supply (AVDD).
dvdd-supply — required here #
Digital power supply (DVDD).
interrupts — not listed as required here #
DRDY (Data Ready) output signal.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Optional RESET signal.
Maximum number of items (maxItems): 1
clock-names — required here #
Indicates if a crystal oscillator (XTAL) or CMOS signal is connected (CLKIN). Note that XTAL mode is only supported on ADS131M06 and ADS131M08.
Allowed values (enum): "xtal", "clkin"
refin-supply — not listed as required here #
Optional external reference supply (REFIN).
#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", "clocks", "clock-names", "avdd-supply", "dvdd-supply"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/iio/adc/adc.yaml#
Properties for a single ADC channel.
Properties and child nodes (properties) #
reg — required here
The channel index (0-7).
Minimum value (minimum): 0
Maximum value (maximum): 7
label — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"ti,ads131m02","ti,ads131m03","ti,ads131m04"When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereExact value (
const):"clkin"
refin-supply— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m02"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
^channel@[2-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m03"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-2]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):2
^channel@[3-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m04"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-3]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
^channel@[4-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,ads131m06"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[0-5]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):5
^channel@[6-7]$— name matches this regular expression
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/stm32mp1-clks.h>
spi1 {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,ads131m02";
reg = <0>;
spi-max-frequency = <8000000>;
clocks = <&rcc CK_MCO2>;
clock-names = "clkin";
avdd-supply = <&vdd_ana>;
dvdd-supply = <&vdd_dig>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
label = "input_voltage";
};
channel@1 {
reg = <1>;
label = "input_current";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 91: Max channels on ADS131M08
Line 104: 20-pin devices: M02, M03, M04
Line 105: These do not support XTAL or REFIN.
Line 119: ADS131M02: 2 channels max (0-1)
Line 133: ADS131M03: 3 channels max (0-2)
Line 147: ADS131M04: 4 channels max (0-3)
Line 161: ADS131M06: 6 channels max (0-5)