TI ADS1015/ADS1115 4 channel I2C analog to digital converter
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,ads1015.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Baluta <daniel.baluta@nxp.com>"
Datasheet at: https://www.ti.com/lit/gpn/ads1015 Supports both single ended and differential channels.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads1015", "ti,ads1115", "ti,tla2021", "ti,tla2024"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#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"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^channel@[0-7]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Child nodes needed for each channel that the platform uses.
Properties and child nodes (properties) #
reg — required here
0: Voltage over AIN0 and AIN1. 1: Voltage over AIN0 and AIN3. 2: Voltage over AIN1 and AIN3. 3: Voltage over AIN2 and AIN3. 4: Voltage over AIN0 and GND. 5: Voltage over AIN1 and GND. 6: Voltage over AIN2 and GND. 7: Voltage over AIN3 and GND.
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):7
ti,gain — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 5
pga is the programmable gain amplifier (values are full scale) 0: +/- 6.144 V 1: +/- 4.096 V 2: +/- 2.048 V (default) 3: +/- 1.024 V 4: +/- 0.512 V 5: +/- 0.256 V
ti,datarate — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Data acquisition rate in samples per second for ADS1015, TLA2024 0: 128 1: 250 2: 490 3: 920 4: 1600 (default) 5: 2400 6: 3300 7: 3300
Data acquisition rate in samples per second for ADS1115 0: 8 1: 16 2: 32 3: 64 4: 128 (default) 5: 250 6: 475 7: 860
Required in this object (required): "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
adc@49 {
compatible = "ti,ads1015";
reg = <0x49>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@4 {
reg = <4>;
ti,gain = <3>;
ti,datarate = <5>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)