0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/ti,adc084s021.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Texas Instruments ADC084S021 ADC
0008
0009 maintainers:
0010 - MÃ¥rten Lindahl <martenli@axis.com>
0011
0012 description: |
0013 8 bit ADC with 4 channels
0014
0015 properties:
0016 compatible:
0017 const: ti,adc084s021
0018
0019 reg:
0020 maxItems: 1
0021
0022 spi-max-frequency: true
0023
0024 vref-supply:
0025 description: External reference, needed to establish input scaling
0026
0027 spi-cpol: true
0028 spi-cpha: true
0029
0030 "#io-channel-cells":
0031 const: 1
0032
0033 required:
0034 - compatible
0035 - reg
0036 - vref-supply
0037 - spi-cpol
0038 - spi-cpha
0039
0040 additionalProperties: false
0041
0042 examples:
0043 - |
0044 spi {
0045 #address-cells = <1>;
0046 #size-cells = <0>;
0047
0048 adc@0 {
0049 compatible = "ti,adc084s021";
0050 reg = <0>;
0051 vref-supply = <&adc_vref>;
0052 spi-cpol;
0053 spi-cpha;
0054 spi-max-frequency = <16000000>;
0055 #io-channel-cells = <1>;
0056 };
0057 };
0058 ...