176 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2# Copyright 2019 Analog Devices Inc.3%YAML 1.24---5$id: http://devicetree.org/schemas/iio/adc/adi,ad7476.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: AD7476 and similar simple SPI ADCs from multiple manufacturers.9 10maintainers:11 - Michael Hennerich <michael.hennerich@analog.com>12 13description: |14 A lot of simple SPI ADCs have very straight forward interfaces.15 They typically don't provide a MOSI pin, simply reading out data16 on MISO when the clock toggles.17 18properties:19 compatible:20 enum:21 - adi,ad709122 - adi,ad7091r23 - adi,ad727324 - adi,ad727425 - adi,ad727626 - adi,ad727727 - adi,ad727828 - adi,ad746629 - adi,ad746730 - adi,ad746831 - adi,ad747532 - adi,ad747633 - adi,ad7476a34 - adi,ad747735 - adi,ad7477a36 - adi,ad747837 - adi,ad7478a38 - adi,ad749539 - adi,ad791040 - adi,ad792041 - adi,ad794042 - ti,adc081s43 - ti,adc101s44 - ti,adc121s45 - ti,ads786646 - ti,ads786747 - ti,ads786848 - lltc,ltc2314-1449 50 reg:51 maxItems: 152 53 vcc-supply:54 description:55 Main powersupply voltage for the chips, sometimes referred to as VDD on56 datasheets. If there is no separate vref-supply, then this is needed57 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 pin66 to the other supplies. Needed to be able to establish channel scaling67 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 conversion71 maxItems: 172 73required:74 - compatible75 - reg76 77allOf:78 - $ref: /schemas/spi/spi-peripheral-props.yaml#79 80 # Devices where reference is vcc81 - if:82 properties:83 compatible:84 contains:85 enum:86 - adi,ad709187 - adi,ad727688 - adi,ad727789 - adi,ad727890 - adi,ad746691 - adi,ad746792 - adi,ad746893 - adi,ad794094 - ti,adc081s95 - ti,adc101s96 - ti,adc121s97 - ti,ads786698 - ti,ads786899 then:100 required:101 - vcc-supply102 # Devices with a vref103 - if:104 properties:105 compatible:106 contains:107 enum:108 - adi,ad7091r109 - adi,ad7273110 - adi,ad7274111 - adi,ad7475112 - lltc,ltc2314-14113 then:114 properties:115 vref-supply: true116 else:117 properties:118 vref-supply: false119 # Devices with a vref where it is not optional120 - if:121 properties:122 compatible:123 contains:124 enum:125 - adi,ad7273126 - adi,ad7274127 - adi,ad7475128 - lltc,ltc2314-14129 then:130 required:131 - vref-supply132 - if:133 properties:134 compatible:135 contains:136 enum:137 - adi,ad7475138 - adi,ad7495139 then:140 properties:141 vdrive-supply: true142 else:143 properties:144 vdrive-supply: false145 - if:146 properties:147 compatible:148 contains:149 enum:150 - adi,ad7091151 - adi,ad7091r152 then:153 properties:154 adi,conversion-start-gpios: true155 else:156 properties:157 adi,conversion-start-gpios: false158 159unevaluatedProperties: false160 161examples: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...176