0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/maxim,max1118.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Maxim MAX1118 and similar ADCs
0008
0009 maintainers:
0010 - Akinobu Mita <akinobu.mita@gmail.com>
0011
0012 description: |
0013 Dual channel 8bit ADCs.
0014
0015 properties:
0016 compatible:
0017 enum:
0018 - maxim,max1117
0019 - maxim,max1118
0020 - maxim,max1119
0021
0022 reg:
0023 maxItems: 1
0024
0025 spi-max-frequency:
0026 maximum: 5000000
0027
0028 vref-supply:
0029 description: External reference, needed to establish input scaling
0030
0031 if:
0032 properties:
0033 compatible:
0034 contains:
0035 const: maxim,max1118
0036 then:
0037 required:
0038 - vref-supply
0039 else:
0040 properties:
0041 vref-supply: false
0042
0043 required:
0044 - compatible
0045 - reg
0046
0047 additionalProperties: false
0048
0049 examples:
0050 - |
0051 spi {
0052 #address-cells = <1>;
0053 #size-cells = <0>;
0054
0055 adc@0 {
0056 compatible = "maxim,max1118";
0057 reg = <0>;
0058 vref-supply = <&adc_vref>;
0059 spi-max-frequency = <1000000>;
0060 };
0061 };
0062 ...