1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/adc/ti,adc084s021.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Texas Instruments ADC084S021 ADC 8 9maintainers: 10 - Mårten Lindahl <martenli@axis.com> 11 12description: | 13 8 bit ADC with 4 channels 14 15properties: 16 compatible: 17 const: ti,adc084s021 18 19 reg: 20 maxItems: 1 21 22 vref-supply: 23 description: External reference, needed to establish input scaling 24 25 spi-cpol: true 26 spi-cpha: true 27 28 "#io-channel-cells": 29 const: 1 30 31required: 32 - compatible 33 - reg 34 - vref-supply 35 - spi-cpol 36 - spi-cpha 37 38allOf: 39 - $ref: /schemas/spi/spi-peripheral-props.yaml# 40 41unevaluatedProperties: false 42 43examples: 44 - | 45 spi { 46 #address-cells = <1>; 47 #size-cells = <0>; 48 49 adc@0 { 50 compatible = "ti,adc084s021"; 51 reg = <0>; 52 vref-supply = <&adc_vref>; 53 spi-cpol; 54 spi-cpha; 55 spi-max-frequency = <16000000>; 56 #io-channel-cells = <1>; 57 }; 58 }; 59... 60