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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.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 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml (Architecture i386) and /Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml (Architecture sparc)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/iio/adc/ti,      4 $id: http://devicetree.org/schemas/iio/adc/ti,ads131e08.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Texas Instruments ADS131E0x 4-, 6- and       7 title: Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Jonathan Cameron <jic23@kernel.org>             10   - Jonathan Cameron <jic23@kernel.org>
 11                                                    11 
 12 description: |                                     12 description: |
 13   The ADS131E0x are a family of multichannel,      13   The ADS131E0x are a family of multichannel, simultaneous sampling,
 14   24-bit, delta-sigma, analog-to-digital conve     14   24-bit, delta-sigma, analog-to-digital converters (ADCs) with a
 15   built-in programmable gain amplifier (PGA),      15   built-in programmable gain amplifier (PGA), internal reference
 16   and an onboard oscillator.                       16   and an onboard oscillator.
 17   The communication with ADC chip is via the S     17   The communication with ADC chip is via the SPI bus (mode 1).
 18                                                    18 
 19   https://www.ti.com/lit/ds/symlink/ads131e08.     19   https://www.ti.com/lit/ds/symlink/ads131e08.pdf
 20                                                    20 
 21 properties:                                        21 properties:
 22   compatible:                                      22   compatible:
 23     enum:                                          23     enum:
 24       - ti,ads131e04                               24       - ti,ads131e04
 25       - ti,ads131e06                               25       - ti,ads131e06
 26       - ti,ads131e08                               26       - ti,ads131e08
 27                                                    27 
 28   reg:                                             28   reg:
 29     maxItems: 1                                    29     maxItems: 1
 30                                                    30 
 31   spi-cpha: true                                   31   spi-cpha: true
 32                                                    32 
 33   clocks:                                          33   clocks:
 34     description: |                                 34     description: |
 35       Device tree identifier to the clock sour     35       Device tree identifier to the clock source (2.048 MHz).
 36       Note: clock source is selected using CLK     36       Note: clock source is selected using CLKSEL pin.
 37     maxItems: 1                                    37     maxItems: 1
 38                                                    38 
 39   clock-names:                                     39   clock-names:
 40     items:                                         40     items:
 41       - const: adc-clk                             41       - const: adc-clk
 42                                                    42 
 43   interrupts:                                      43   interrupts:
 44     description: |                                 44     description: |
 45       IRQ line for the ADC data ready.             45       IRQ line for the ADC data ready.
 46     maxItems: 1                                    46     maxItems: 1
 47                                                    47 
 48   vref-supply:                                     48   vref-supply:
 49     description: |                                 49     description: |
 50       Optional external voltage reference. If      50       Optional external voltage reference. If not supplied, internal voltage
 51       reference is used.                           51       reference is used.
 52                                                    52 
 53   ti,vref-internal:                                53   ti,vref-internal:
 54     description: |                                 54     description: |
 55       Select the internal voltage reference va     55       Select the internal voltage reference value.
 56       0: 2.4V                                      56       0: 2.4V
 57       1: 4.0V                                      57       1: 4.0V
 58       If this field is left empty, 2.4V is sel     58       If this field is left empty, 2.4V is selected.
 59       Note: internal voltage reference is used     59       Note: internal voltage reference is used only if vref-supply is not supplied.
 60     $ref: /schemas/types.yaml#/definitions/uin     60     $ref: /schemas/types.yaml#/definitions/uint32
 61     enum: [0, 1]                                   61     enum: [0, 1]
 62     default: 0                                     62     default: 0
 63                                                    63 
 64   '#address-cells':                                64   '#address-cells':
 65     const: 1                                       65     const: 1
 66                                                    66 
 67   '#size-cells':                                   67   '#size-cells':
 68     const: 0                                       68     const: 0
 69                                                    69 
 70 required:                                          70 required:
 71   - compatible                                     71   - compatible
 72   - reg                                            72   - reg
 73   - spi-cpha                                       73   - spi-cpha
 74   - clocks                                         74   - clocks
 75   - clock-names                                    75   - clock-names
 76   - interrupts                                     76   - interrupts
 77                                                    77 
 78 patternProperties:                                 78 patternProperties:
 79   "^channel@([0-7])$":                             79   "^channel@([0-7])$":
 80     $ref: adc.yaml                                 80     $ref: adc.yaml
 81     type: object                                   81     type: object
 82     description: |                                 82     description: |
 83       Represents the external channels which a     83       Represents the external channels which are connected to the ADC.
 84                                                    84 
 85     properties:                                    85     properties:
 86       reg:                                         86       reg:
 87         description: |                             87         description: |
 88           The channel number.                      88           The channel number.
 89           Up to 4 channels, numbered from 0 to     89           Up to 4 channels, numbered from 0 to 3 for ti,ads131e04.
 90           Up to 6 channels, numbered from 0 to     90           Up to 6 channels, numbered from 0 to 5 for ti,ads131e06.
 91           Up to 8 channels, numbered from 0 to     91           Up to 8 channels, numbered from 0 to 7 for ti,ads131e08.
 92         items:                                     92         items:
 93           minimum: 0                               93           minimum: 0
 94           maximum: 7                               94           maximum: 7
 95                                                    95 
 96       ti,gain:                                     96       ti,gain:
 97         description: |                             97         description: |
 98           The PGA gain value for the channel.      98           The PGA gain value for the channel.
 99           If this field is left empty, PGA gai     99           If this field is left empty, PGA gain 1 is used.
100         $ref: /schemas/types.yaml#/definitions    100         $ref: /schemas/types.yaml#/definitions/uint32
101         enum: [1, 2, 4, 8, 12]                    101         enum: [1, 2, 4, 8, 12]
102         default: 1                                102         default: 1
103                                                   103 
104       ti,mux:                                     104       ti,mux:
105         description: |                            105         description: |
106           Channel input selection(muliplexer).    106           Channel input selection(muliplexer).
107           0: Normal input.                        107           0: Normal input.
108           1: Input shorted to (VREFP + VREFN)     108           1: Input shorted to (VREFP + VREFN) / 2 (for offset or noise measurements).
109           3: MVDD (for supply measurement)        109           3: MVDD (for supply measurement)
110           4: Temperature sensor                   110           4: Temperature sensor
111           If this field is left empty, normal     111           If this field is left empty, normal input is selected.
112         $ref: /schemas/types.yaml#/definitions    112         $ref: /schemas/types.yaml#/definitions/uint32
113         enum: [0, 1, 3, 4]                        113         enum: [0, 1, 3, 4]
114         default: 0                                114         default: 0
115                                                   115 
116     required:                                     116     required:
117       - reg                                       117       - reg
118                                                   118 
119     additionalProperties: false                   119     additionalProperties: false
120                                                   120 
121 allOf:                                            121 allOf:
122   - $ref: /schemas/spi/spi-peripheral-props.ya    122   - $ref: /schemas/spi/spi-peripheral-props.yaml#
123                                                   123 
124 unevaluatedProperties: false                      124 unevaluatedProperties: false
125                                                   125 
126 examples:                                         126 examples:
127   - |                                             127   - |
128     #include <dt-bindings/interrupt-controller    128     #include <dt-bindings/interrupt-controller/irq.h>
129                                                   129 
130     spi {                                         130     spi {
131       #address-cells = <1>;                       131       #address-cells = <1>;
132       #size-cells = <0>;                          132       #size-cells = <0>;
133                                                   133 
134       adc@0 {                                     134       adc@0 {
135         compatible = "ti,ads131e08";              135         compatible = "ti,ads131e08";
136         reg = <0>;                                136         reg = <0>;
137         spi-max-frequency = <1000000>;            137         spi-max-frequency = <1000000>;
138         spi-cpha;                                 138         spi-cpha;
139         clocks = <&clk2048k>;                     139         clocks = <&clk2048k>;
140         clock-names = "adc-clk";                  140         clock-names = "adc-clk";
141         interrupt-parent = <&gpio5>;              141         interrupt-parent = <&gpio5>;
142         interrupts = <28 IRQ_TYPE_EDGE_FALLING    142         interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
143         vref-supply = <&adc_vref>;                143         vref-supply = <&adc_vref>;
144                                                   144 
145         #address-cells = <1>;                     145         #address-cells = <1>;
146         #size-cells = <0>;                        146         #size-cells = <0>;
147                                                   147 
148         channel@0 {                               148         channel@0 {
149           reg = <0>;                              149           reg = <0>;
150         };                                        150         };
151                                                   151 
152         channel@1 {                               152         channel@1 {
153           reg = <1>;                              153           reg = <1>;
154         };                                        154         };
155                                                   155 
156         channel@2 {                               156         channel@2 {
157           reg = <2>;                              157           reg = <2>;
158           ti,gain = <2>;                          158           ti,gain = <2>;
159         };                                        159         };
160                                                   160 
161         channel@3 {                               161         channel@3 {
162           reg = <3>;                              162           reg = <3>;
163         };                                        163         };
164                                                   164 
165         channel@4 {                               165         channel@4 {
166           reg = <4>;                              166           reg = <4>;
167         };                                        167         };
168                                                   168 
169         channel@5 {                               169         channel@5 {
170           reg = <5>;                              170           reg = <5>;
171         };                                        171         };
172                                                   172 
173         channel@6 {                               173         channel@6 {
174           reg = <6>;                              174           reg = <6>;
175         };                                        175         };
176                                                   176 
177         channel@7 {                               177         channel@7 {
178           reg = <7>;                              178           reg = <7>;
179           ti,mux = <4>;                           179           ti,mux = <4>;
180         };                                        180         };
181       };                                          181       };
182     };                                            182     };
                                                      

~ [ 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