TI ADS1018/ADS1118 SPI analog to digital converter
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1018.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kurt Borja <kuurtb@gmail.com>"
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 and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads1018", "ti,ads1118"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
spi-max-frequency — not listed as required here #
Maximum value (maximum): 4000000
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
DOUT/DRDY (Data Out/Data Ready) line.
Maximum number of items (maxItems): 1
drdy-gpios — not listed as required here #
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.
Maximum number of items (maxItems): 1
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "vdd-supply"
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>
#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>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)