~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/adc/ti,ads1015.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/iio/adc/ti,ads1015.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: TI ADS1015/ADS1115 4 channel I2C analog to digital converter
  8 
  9 maintainers:
 10   - Daniel Baluta <daniel.baluta@nxp.com>
 11 
 12 description: |
 13   Datasheet at: https://www.ti.com/lit/gpn/ads1015
 14   Supports both single ended and differential channels.
 15 
 16 properties:
 17   compatible:
 18     enum:
 19       - ti,ads1015
 20       - ti,ads1115
 21       - ti,tla2021
 22       - ti,tla2024
 23 
 24   reg:
 25     maxItems: 1
 26 
 27   interrupts:
 28     maxItems: 1
 29 
 30   "#address-cells":
 31     const: 1
 32 
 33   "#size-cells":
 34     const: 0
 35 
 36   "#io-channel-cells":
 37     const: 1
 38 
 39 required:
 40   - compatible
 41   - reg
 42   - "#address-cells"
 43   - "#size-cells"
 44 
 45 additionalProperties: false
 46 
 47 patternProperties:
 48   "^channel@[0-7]+$":
 49     type: object
 50     additionalProperties: false
 51     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: 0
 67             maximum: 7
 68 
 69       ti,gain:
 70         $ref: /schemas/types.yaml#/definitions/uint32
 71         minimum: 0
 72         maximum: 5
 73         description: |
 74           pga is the programmable gain amplifier (values are full scale)
 75           0: +/- 6.144 V
 76           1: +/- 4.096 V
 77           2: +/- 2.048 V (default)
 78           3: +/- 1.024 V
 79           4: +/- 0.512 V
 80           5: +/- 0.256 V
 81 
 82       ti,datarate:
 83         $ref: /schemas/types.yaml#/definitions/uint32
 84         minimum: 0
 85         maximum: 7
 86         description: |
 87           Data acquisition rate in samples per second for ADS1015, TLA2024
 88           0: 128
 89           1: 250
 90           2: 490
 91           3: 920
 92           4: 1600 (default)
 93           5: 2400
 94           6: 3300
 95           7: 3300
 96 
 97           Data acquisition rate in samples per second for ADS1115
 98           0: 8
 99           1: 16
100           2: 32
101           3: 64
102           4: 128 (default)
103           5: 250
104           6: 475
105           7: 860
106 
107     required:
108       - reg
109 
110 examples:
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 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php