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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/iio/adc/adi,ad7476.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 # Copyright 2019 Analog Devices Inc.
  3 %YAML 1.2
  4 ---
  5 $id: http://devicetree.org/schemas/iio/adc/adi,ad7476.yaml#
  6 $schema: http://devicetree.org/meta-schemas/core.yaml#
  7 
  8 title: AD7476 and similar simple SPI ADCs from multiple manufacturers.
  9 
 10 maintainers:
 11   - Michael Hennerich <michael.hennerich@analog.com>
 12 
 13 description: |
 14   A lot of simple SPI ADCs have very straight forward interfaces.
 15   They typically don't provide a MOSI pin, simply reading out data
 16   on MISO when the clock toggles.
 17 
 18 properties:
 19   compatible:
 20     enum:
 21       - adi,ad7091
 22       - adi,ad7091r
 23       - adi,ad7273
 24       - adi,ad7274
 25       - adi,ad7276
 26       - adi,ad7277
 27       - adi,ad7278
 28       - adi,ad7466
 29       - adi,ad7467
 30       - adi,ad7468
 31       - adi,ad7475
 32       - adi,ad7476
 33       - adi,ad7476a
 34       - adi,ad7477
 35       - adi,ad7477a
 36       - adi,ad7478
 37       - adi,ad7478a
 38       - adi,ad7495
 39       - adi,ad7910
 40       - adi,ad7920
 41       - adi,ad7940
 42       - ti,adc081s
 43       - ti,adc101s
 44       - ti,adc121s
 45       - ti,ads7866
 46       - ti,ads7867
 47       - ti,ads7868
 48       - lltc,ltc2314-14
 49 
 50   reg:
 51     maxItems: 1
 52 
 53   vcc-supply:
 54     description:
 55       Main powersupply voltage for the chips, sometimes referred to as VDD on
 56       datasheets.  If there is no separate vref-supply, then this is needed
 57       to establish channel scaling.
 58 
 59   vdrive-supply:
 60     description:
 61       Some devices have separate supply for their digital control side.
 62 
 63   vref-supply:
 64     description:
 65       Some devices have a specific reference voltage supplied on a different pin
 66       to the other supplies. Needed to be able to establish channel scaling
 67       unless there is also an internal reference available (e.g. ad7091r)
 68 
 69   adi,conversion-start-gpios:
 70     description: A GPIO used to trigger the start of a conversion
 71     maxItems: 1
 72 
 73 required:
 74   - compatible
 75   - reg
 76 
 77 allOf:
 78   - $ref: /schemas/spi/spi-peripheral-props.yaml#
 79 
 80   # Devices where reference is vcc
 81   - if:
 82       properties:
 83         compatible:
 84           contains:
 85             enum:
 86               - adi,ad7091
 87               - adi,ad7276
 88               - adi,ad7277
 89               - adi,ad7278
 90               - adi,ad7466
 91               - adi,ad7467
 92               - adi,ad7468
 93               - adi,ad7940
 94               - ti,adc081s
 95               - ti,adc101s
 96               - ti,adc121s
 97               - ti,ads7866
 98               - ti,ads7868
 99     then:
100       required:
101         - vcc-supply
102   # Devices with a vref
103   - if:
104       properties:
105         compatible:
106           contains:
107             enum:
108               - adi,ad7091r
109               - adi,ad7273
110               - adi,ad7274
111               - adi,ad7475
112               - lltc,ltc2314-14
113     then:
114       properties:
115         vref-supply: true
116     else:
117       properties:
118         vref-supply: false
119   # Devices with a vref where it is not optional
120   - if:
121       properties:
122         compatible:
123           contains:
124             enum:
125               - adi,ad7273
126               - adi,ad7274
127               - adi,ad7475
128               - lltc,ltc2314-14
129     then:
130       required:
131         - vref-supply
132   - if:
133       properties:
134         compatible:
135           contains:
136             enum:
137               - adi,ad7475
138               - adi,ad7495
139     then:
140       properties:
141         vdrive-supply: true
142     else:
143       properties:
144         vdrive-supply: false
145   - if:
146       properties:
147         compatible:
148           contains:
149             enum:
150               - adi,ad7091
151               - adi,ad7091r
152     then:
153       properties:
154         adi,conversion-start-gpios: true
155     else:
156       properties:
157         adi,conversion-start-gpios: false
158 
159 unevaluatedProperties: false
160 
161 examples:
162   - |
163     spi {
164       #address-cells = <1>;
165       #size-cells = <0>;
166 
167       adc@0 {
168         compatible = "adi,ad7091r";
169         reg = <0>;
170         spi-max-frequency = <5000000>;
171         vcc-supply = <&adc_vcc>;
172         vref-supply = <&adc_vref>;
173       };
174     };
175 ...

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