Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml
26309 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- ti,adc081s44- ti,adc101s45- ti,adc121s46- ti,ads786647- ti,ads786748- ti,ads786849- lltc,ltc2314-1450- items:51- const: rohm,bu79100g52- const: ti,ads78665354reg:55maxItems: 15657vcc-supply:58description:59Main powersupply voltage for the chips, sometimes referred to as VDD on60datasheets. If there is no separate vref-supply, then this is needed61to establish channel scaling.6263vdrive-supply:64description:65Some devices have separate supply for their digital control side.6667vref-supply:68description:69Some devices have a specific reference voltage supplied on a different pin70to the other supplies. Needed to be able to establish channel scaling71unless there is also an internal reference available (e.g. ad7091r)7273adi,conversion-start-gpios:74description: A GPIO used to trigger the start of a conversion75maxItems: 17677required:78- compatible79- reg8081allOf:82- $ref: /schemas/spi/spi-peripheral-props.yaml#8384# Devices where reference is vcc85- if:86properties:87compatible:88contains:89enum:90- adi,ad709191- adi,ad727692- adi,ad727793- adi,ad727894- adi,ad746695- adi,ad746796- adi,ad746897- adi,ad794098- ti,adc081s99- ti,adc101s100- ti,adc121s101- ti,ads7866102- ti,ads7868103then:104required:105- vcc-supply106# Devices with a vref107- if:108properties:109compatible:110contains:111enum:112- adi,ad7091r113- adi,ad7273114- adi,ad7274115- adi,ad7475116- lltc,ltc2314-14117then:118properties:119vref-supply: true120else:121properties:122vref-supply: false123# Devices with a vref where it is not optional124- if:125properties:126compatible:127contains:128enum:129- adi,ad7273130- adi,ad7274131- adi,ad7475132- lltc,ltc2314-14133then:134required:135- vref-supply136- if:137properties:138compatible:139contains:140enum:141- adi,ad7475142- adi,ad7495143then:144properties:145vdrive-supply: true146else:147properties:148vdrive-supply: false149- if:150properties:151compatible:152contains:153enum:154- adi,ad7091155- adi,ad7091r156then:157properties:158adi,conversion-start-gpios: true159else:160properties:161adi,conversion-start-gpios: false162163unevaluatedProperties: false164165examples:166- |167spi {168#address-cells = <1>;169#size-cells = <0>;170171adc@0 {172compatible = "adi,ad7091r";173reg = <0>;174spi-max-frequency = <5000000>;175vcc-supply = <&adc_vcc>;176vref-supply = <&adc_vref>;177};178};179...180181182