Documentation / devicetree / bindings / iio / adc / ti,ads1018.yaml


Based on kernel version 7.0. Page generated on 2026-04-23 09:48 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/ti,ads1018.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI ADS1018/ADS1118 SPI analog to digital converter

maintainers:
  - Kurt Borja <kuurtb@gmail.com>

description: |
  The ADS1018/ADS1118 is a precision, low-power, 12-bit/16-bit, analog to
  digital converter (ADC). It integrates a programmable gain amplifier (PGA),
  internal voltage reference, oscillator and high-accuracy temperature sensor.
 
  Datasheets:
    - ADS1018: https://www.ti.com/lit/ds/symlink/ads1018.pdf
    - ADS1118: https://www.ti.com/lit/ds/symlink/ads1118.pdf

properties:
  compatible:
    enum:
      - ti,ads1018
      - ti,ads1118

  reg:
    maxItems: 1

  vdd-supply: true

  spi-max-frequency:
    maximum: 4000000

  spi-cpha: true

  interrupts:
    description: DOUT/DRDY (Data Out/Data Ready) line.
    maxItems: 1

  drdy-gpios:
    description:
      Extra GPIO line connected to DOUT/DRDY (Data Out/Data Ready). This allows
      distinguishing between interrupts triggered by the data-ready signal and
      interrupts triggered by an SPI transfer.
    maxItems: 1
 
  '#io-channel-cells':
    const: 1

required:
  - compatible
  - reg
  - vdd-supply

allOf:
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    #include <dt-bindings/gpio/gpio.h>
 
    spi {
        #address-cells = <1>;
        #size-cells = <0>;
 
        adc@0 {
            compatible = "ti,ads1118";
            reg = <0>;
 
            spi-max-frequency = <4000000>;
            spi-cpha;
 
            vdd-supply = <&vdd_3v3_reg>;
 
            interrupts-extended = <&gpio 14 IRQ_TYPE_EDGE_FALLING>;
            drdy-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
        };
    };