Texas Instruments ADS1119 ADC
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1119.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "João Paulo Gonçalves <jpaulo.silvagoncalves@gmail.com>"
The TI ADS1119 is a precision 16-bit ADC over I2C that offers single-ended and differential measurements using a multiplexed input. It features a programmable gain, a programmable sample rate, an internal oscillator and voltage reference, and a 50/60Hz rejection filter.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,ads1119"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
true — No constraints added by this property rule.
dvdd-supply — required here #
true — No constraints added by this property rule.
vref-supply — not listed as required here #
ADC external reference voltage (VREF).
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "avdd-supply", "dvdd-supply"
Properties matching a name pattern (patternProperties) #
^channel@([0-6])$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 6
diff-channels — not listed as required here
Differential input channels AIN0-AIN1, AIN2-AIN3 and AIN1-AIN2.
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):2Item 2
Exact value (
const):3
Rule 3
Array item rules (
items)Item 1
Exact value (
const):1Item 2
Exact value (
const):2
single-channel — not listed as required here
Single-ended input channels AIN0, AIN1, AIN2 and AIN3.
Minimum value (minimum): 0
Maximum value (maximum): 3
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@40 {
compatible = "ti,ads1119";
reg = <0x40>;
interrupt-parent = <&gpio1>;
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
avdd-supply = <®_avdd_ads1119>;
dvdd-supply = <®_dvdd_ads1119>;
vref-supply = <®_vref_ads1119>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
channel@0 {
reg = <0>;
single-channel = <0>;
};
channel@1 {
reg = <1>;
diff-channels = <0 1>;
};
channel@2 {
reg = <2>;
single-channel = <3>;
};
channel@3 {
reg = <3>;
single-channel = <1>;
};
channel@4 {
reg = <4>;
single-channel = <2>;
};
channel@5 {
reg = <5>;
diff-channels = <1 2>;
};
channel@6 {
reg = <6>;
diff-channels = <2 3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)