1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/adc/maxim,max1027.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Maxim MAX1027 and similar ADCs
8
9maintainers:
10  - Miquel Raynal <miquel.raynal@bootlin.com>
11  - Philippe Reynes <tremyfr@yahoo.fr>
12
13description: |
14  300ks/s SPI ADCs with temperature sensors.
15
16properties:
17  compatible:
18    enum:
19        # 10-bit 8 channels
20      - maxim,max1027
21        # 10-bit 12 channels
22      - maxim,max1029
23        # 10-bit 16 channels
24      - maxim,max1031
25         # 12-bit 8 channels
26      - maxim,max1227
27         # 12-bit 12 channels
28      - maxim,max1229
29         # 12-bit 16 channels
30      - maxim,max1231
31
32  reg:
33    maxItems: 1
34
35  interrupts:
36    maxItems: 1
37
38  spi-max-frequency:
39    maximum: 10000000
40
41  "#io-channel-cells":
42    const: 1
43
44required:
45  - compatible
46  - reg
47
48additionalProperties: false
49
50examples:
51  - |
52    #include <dt-bindings/interrupt-controller/irq.h>
53    spi {
54       #address-cells = <1>;
55       #size-cells = <0>;
56        maxadc: adc@0 {
57            compatible = "maxim,max1027";
58            reg = <0>;
59            #io-channel-cells = <1>;
60            interrupt-parent = <&gpio5>;
61            interrupts = <15 IRQ_TYPE_EDGE_RISING>;
62            spi-max-frequency = <1000000>;
63        };
64    };
65...
66