Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml
29539 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:19oneOf:20- items:21- enum:22- adi,ad709123- adi,ad7091r24- adi,ad727325- adi,ad727426- adi,ad727627- adi,ad727728- adi,ad727829- adi,ad746630- adi,ad746731- adi,ad746832- adi,ad747533- adi,ad747634- adi,ad7476a35- adi,ad747736- adi,ad7477a37- adi,ad747838- adi,ad7478a39- adi,ad749540- adi,ad791041- adi,ad792042- adi,ad794043- rohm,bd7910544- ti,adc081s45- ti,adc101s46- ti,adc121s47- ti,ads786648- ti,ads786749- ti,ads786850- lltc,ltc2314-1451- items:52- const: rohm,bu79100g53- const: ti,ads78665455reg:56maxItems: 15758interrupts:59description:60The data-ready interrupt. Provided via DOUT pin.61maxItems: 16263vcc-supply:64description:65Main powersupply voltage for the chips, sometimes referred to as VDD on66datasheets. If there is no separate vref-supply, then this is needed67to establish channel scaling.6869vdrive-supply:70description:71Some devices have separate supply for their digital control side.7273vref-supply:74description:75Some devices have a specific reference voltage supplied on a different pin76to the other supplies. Needed to be able to establish channel scaling77unless there is also an internal reference available (e.g. ad7091r)7879adi,conversion-start-gpios:80description: A GPIO used to trigger the start of a conversion81maxItems: 18283rdy-gpios:84description: A GPIO for detecting the data-ready.85maxItems: 18687required:88- compatible89- reg9091allOf:92- $ref: /schemas/spi/spi-peripheral-props.yaml#9394# Devices with an IRQ95- if:96properties:97compatible:98contains:99enum:100- rohm,bd79105101then:102properties:103interrupts: true104else:105properties:106interrupts: false107108# Devices where reference is vcc109- if:110properties:111compatible:112contains:113enum:114- adi,ad7091115- adi,ad7276116- adi,ad7277117- adi,ad7278118- adi,ad7466119- adi,ad7467120- adi,ad7468121- adi,ad7940122- ti,adc081s123- ti,adc101s124- ti,adc121s125- ti,ads7866126- ti,ads7868127then:128required:129- vcc-supply130# Devices with a vref131- if:132not:133properties:134compatible:135contains:136enum:137- adi,ad7091r138- adi,ad7273139- adi,ad7274140- adi,ad7475141- lltc,ltc2314-14142- rohm,bd79105143then:144properties:145vref-supply: false146# Devices with a vref where it is not optional147- if:148properties:149compatible:150contains:151enum:152- adi,ad7273153- adi,ad7274154- adi,ad7475155- lltc,ltc2314-14156- rohm,bd79105157then:158required:159- vref-supply160- if:161not:162properties:163compatible:164contains:165enum:166- adi,ad7475167- adi,ad7495168- rohm,bd79105169then:170properties:171vdrive-supply: false172173# Devices which support polling the data-ready via GPIO174- if:175not:176properties:177compatible:178contains:179enum:180- rohm,bd79105181then:182properties:183rdy-gpios: false184185- if:186not:187properties:188compatible:189contains:190enum:191- adi,ad7091192- adi,ad7091r193- rohm,bd79105194then:195properties:196adi,conversion-start-gpios: false197198# Devices with a convstart GPIO where it is not optional199- if:200properties:201compatible:202contains:203enum:204- rohm,bd79105205then:206required:207- adi,conversion-start-gpios208209unevaluatedProperties: false210211examples:212- |213spi {214#address-cells = <1>;215#size-cells = <0>;216217adc@0 {218compatible = "adi,ad7091r";219reg = <0>;220spi-max-frequency = <5000000>;221vcc-supply = <&adc_vcc>;222vref-supply = <&adc_vref>;223};224};225...226227228