132 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/ti,ads1015.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: TI ADS1015/ADS1115 4 channel I2C analog to digital converter8 9maintainers:10 - Daniel Baluta <daniel.baluta@nxp.com>11 12description: |13 Datasheet at: https://www.ti.com/lit/gpn/ads101514 Supports both single ended and differential channels.15 16properties:17 compatible:18 enum:19 - ti,ads101520 - ti,ads111521 - ti,tla202122 - ti,tla202423 24 reg:25 maxItems: 126 27 interrupts:28 maxItems: 129 30 "#address-cells":31 const: 132 33 "#size-cells":34 const: 035 36 "#io-channel-cells":37 const: 138 39required:40 - compatible41 - reg42 - "#address-cells"43 - "#size-cells"44 45additionalProperties: false46 47patternProperties:48 "^channel@[0-7]+$":49 type: object50 additionalProperties: false51 description:52 Child nodes needed for each channel that the platform uses.53 54 properties:55 reg:56 description: |57 0: Voltage over AIN0 and AIN1.58 1: Voltage over AIN0 and AIN3.59 2: Voltage over AIN1 and AIN3.60 3: Voltage over AIN2 and AIN3.61 4: Voltage over AIN0 and GND.62 5: Voltage over AIN1 and GND.63 6: Voltage over AIN2 and GND.64 7: Voltage over AIN3 and GND.65 items:66 - minimum: 067 maximum: 768 69 ti,gain:70 $ref: /schemas/types.yaml#/definitions/uint3271 minimum: 072 maximum: 573 description: |74 pga is the programmable gain amplifier (values are full scale)75 0: +/- 6.144 V76 1: +/- 4.096 V77 2: +/- 2.048 V (default)78 3: +/- 1.024 V79 4: +/- 0.512 V80 5: +/- 0.256 V81 82 ti,datarate:83 $ref: /schemas/types.yaml#/definitions/uint3284 minimum: 085 maximum: 786 description: |87 Data acquisition rate in samples per second for ADS1015, TLA202488 0: 12889 1: 25090 2: 49091 3: 92092 4: 1600 (default)93 5: 240094 6: 330095 7: 330096 97 Data acquisition rate in samples per second for ADS111598 0: 899 1: 16100 2: 32101 3: 64102 4: 128 (default)103 5: 250104 6: 475105 7: 860106 107 required:108 - reg109 110examples:111 - |112 i2c {113 #address-cells = <1>;114 #size-cells = <0>;115 116 adc@49 {117 compatible = "ti,ads1015";118 reg = <0x49>;119 #address-cells = <1>;120 #size-cells = <0>;121 channel@0 {122 reg = <0>;123 };124 channel@4 {125 reg = <4>;126 ti,gain = <3>;127 ti,datarate = <5>;128 };129 };130 };131...132