Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs

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

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

Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"

The ADS131E0x are a family of multichannel, simultaneous sampling, 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a built-in programmable gain amplifier (PGA), internal reference and an onboard oscillator. The communication with ADC chip is via the SPI bus (mode 1).

https://www.ti.com/lit/ds/symlink/ads131e08.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,ads131e04", "ti,ads131e06", "ti,ads131e08"

reg — required here #

Maximum number of items (maxItems): 1

spi-cpha — required here #

true — No constraints added by this property rule.

clocks — required here #

Device tree identifier to the clock source (2.048 MHz). Note: clock source is selected using CLKSEL pin.

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "adc-clk"

interrupts — required here #

IRQ line for the ADC data ready.

Maximum number of items (maxItems): 1

vref-supply — not listed as required here #

Optional external voltage reference. If not supplied, internal voltage reference is used.

ti,vref-internal — not listed as required here #

Select the internal voltage reference value. 0: 2.4V 1: 4.0V If this field is left empty, 2.4V is selected. Note: internal voltage reference is used only if vref-supply is not supplied.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Default value (default): 0

#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", "spi-cpha", "clocks", "clock-names", "interrupts"

Properties matching a name pattern (patternProperties) #

^channel@([0-7])$ — 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. Up to 4 channels, numbered from 0 to 3 for ti,ads131e04. Up to 6 channels, numbered from 0 to 5 for ti,ads131e06. Up to 8 channels, numbered from 0 to 7 for ti,ads131e08.

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 7

ti,gain — not listed as required here

The PGA gain value for the channel. If this field is left empty, PGA gain 1 is used.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 1, 2, 4, 8, 12

Default value (default): 1

ti,mux — not listed as required here

Channel input selection(muliplexer). 0: Normal input. 1: Input shorted to (VREFP + VREFN) / 2 (for offset or noise measurements). 3: MVDD (for supply measurement) 4: Temperature sensor If this field is left empty, normal input is selected.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 3, 4

Default value (default): 0

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

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#

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 = "ti,ads131e08";
    reg = <0>;
    spi-max-frequency = <1000000>;
    spi-cpha;
    clocks = <&clk2048k>;
    clock-names = "adc-clk";
    interrupt-parent = <&gpio5>;
    interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
    vref-supply = <&adc_vref>;

    #address-cells = <1>;
    #size-cells = <0>;

    channel@0 {
      reg = <0>;
    };

    channel@1 {
      reg = <1>;
    };

    channel@2 {
      reg = <2>;
      ti,gain = <2>;
    };

    channel@3 {
      reg = <3>;
    };

    channel@4 {
      reg = <4>;
    };

    channel@5 {
      reg = <5>;
    };

    channel@6 {
      reg = <6>;
    };

    channel@7 {
      reg = <7>;
      ti,mux = <4>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page