Path: blob/main/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7476.yaml
48406 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1# Copyright 2019 Analog Devices Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/adi,ad7476.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: AD7476 and similar simple SPI ADCs from multiple manufacturers.89maintainers:10- Michael Hennerich <michael.hennerich@analog.com>1112description: |13A lot of simple SPI ADCs have very straight forward interfaces.14They typically don't provide a MOSI pin, simply reading out data15on MISO when the clock toggles.1617properties:18compatible:19enum:20- adi,ad709121- adi,ad7091r22- adi,ad727323- adi,ad727424- adi,ad727625- adi,ad727726- adi,ad727827- adi,ad746628- adi,ad746729- adi,ad746830- adi,ad747531- adi,ad747632- adi,ad7476a33- adi,ad747734- adi,ad7477a35- adi,ad747836- adi,ad7478a37- adi,ad749538- adi,ad791039- adi,ad792040- adi,ad794041- ti,adc081s42- ti,adc101s43- ti,adc121s44- ti,ads786645- ti,ads786746- ti,ads786847- lltc,ltc2314-144849reg:50maxItems: 15152vcc-supply:53description:54Main powersupply voltage for the chips, sometimes referred to as VDD on55datasheets. If there is no separate vref-supply, then this is needed56to establish channel scaling.5758vdrive-supply:59description:60Some devices have separate supply for their digital control side.6162vref-supply:63description:64Some devices have a specific reference voltage supplied on a different pin65to the other supplies. Needed to be able to establish channel scaling66unless there is also an internal reference available (e.g. ad7091r)6768adi,conversion-start-gpios:69description: A GPIO used to trigger the start of a conversion70maxItems: 17172required:73- compatible74- reg7576allOf:77- $ref: /schemas/spi/spi-peripheral-props.yaml#7879# Devices where reference is vcc80- if:81properties:82compatible:83contains:84enum:85- adi,ad709186- adi,ad727687- adi,ad727788- adi,ad727889- adi,ad746690- adi,ad746791- adi,ad746892- adi,ad794093- ti,adc081s94- ti,adc101s95- ti,adc121s96- ti,ads786697- ti,ads786898then:99required:100- vcc-supply101# Devices with a vref102- if:103properties:104compatible:105contains:106enum:107- adi,ad7091r108- adi,ad7273109- adi,ad7274110- adi,ad7475111- lltc,ltc2314-14112then:113properties:114vref-supply: true115else:116properties:117vref-supply: false118# Devices with a vref where it is not optional119- if:120properties:121compatible:122contains:123enum:124- adi,ad7273125- adi,ad7274126- adi,ad7475127- lltc,ltc2314-14128then:129required:130- vref-supply131- if:132properties:133compatible:134contains:135enum:136- adi,ad7475137- adi,ad7495138then:139properties:140vdrive-supply: true141else:142properties:143vdrive-supply: false144- if:145properties:146compatible:147contains:148enum:149- adi,ad7091150- adi,ad7091r151then:152properties:153adi,conversion-start-gpios: true154else:155properties:156adi,conversion-start-gpios: false157158unevaluatedProperties: false159160examples:161- |162spi {163#address-cells = <1>;164#size-cells = <0>;165166adc@0 {167compatible = "adi,ad7091r";168reg = <0>;169spi-max-frequency = <5000000>;170vcc-supply = <&adc_vcc>;171vref-supply = <&adc_vref>;172};173};174...175176177