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,max1027.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Maxim MAX1027 and similar ADCs
0008
0009 maintainers:
0010 - Miquel Raynal <miquel.raynal@bootlin.com>
0011 - Philippe Reynes <tremyfr@yahoo.fr>
0012
0013 description: |
0014 300ks/s SPI ADCs with temperature sensors.
0015
0016 properties:
0017 compatible:
0018 enum:
0019 # 10-bit 8 channels
0020 - maxim,max1027
0021 # 10-bit 12 channels
0022 - maxim,max1029
0023 # 10-bit 16 channels
0024 - maxim,max1031
0025 # 12-bit 8 channels
0026 - maxim,max1227
0027 # 12-bit 12 channels
0028 - maxim,max1229
0029 # 12-bit 16 channels
0030 - maxim,max1231
0031
0032 reg:
0033 maxItems: 1
0034
0035 interrupts:
0036 maxItems: 1
0037
0038 spi-max-frequency:
0039 maximum: 10000000
0040
0041 "#io-channel-cells":
0042 const: 1
0043
0044 required:
0045 - compatible
0046 - reg
0047
0048 additionalProperties: false
0049
0050 examples:
0051 - |
0052 #include <dt-bindings/interrupt-controller/irq.h>
0053 spi {
0054 #address-cells = <1>;
0055 #size-cells = <0>;
0056 maxadc: adc@0 {
0057 compatible = "maxim,max1027";
0058 reg = <0>;
0059 #io-channel-cells = <1>;
0060 interrupt-parent = <&gpio5>;
0061 interrupts = <15 IRQ_TYPE_EDGE_RISING>;
0062 spi-max-frequency = <1000000>;
0063 };
0064 };
0065 ...