Texas Instruments ADS7128/ADS7138 analog-to-digital converter (ADC)
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads7138.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tobias Sperling <tobias.sperling@softing.com>"
The ADS7128 and ADS7138 chips are 12-bit, 8 channel analog-to-digital converters (ADC) with build-in digital window comparator (DWC), using the I2C interface. ADS7128 differs in the addition of further hardware features, like a root-mean-square (RMS) and a zero-crossing-detect (ZCD) module.
Datasheets:
https://www.ti.com/product/ADS7128
https://www.ti.com/product/ADS7138
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads7128", "ti,ads7138"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
The regulator used as analog supply voltage as well as reference voltage.
interrupts — not listed as required here #
Interrupt on ALERT pin, triggers on low level.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "avdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@10 {
compatible = "ti,ads7138";
reg = <0x10>;
avdd-supply = <®_stb_3v3>;
interrupt-parent = <&gpio2>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)