xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/maxim,max1027.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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
48allOf:
49  - $ref: /schemas/spi/spi-peripheral-props.yaml#
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/interrupt-controller/irq.h>
56    spi {
57        #address-cells = <1>;
58        #size-cells = <0>;
59        maxadc: adc@0 {
60            compatible = "maxim,max1027";
61            reg = <0>;
62            #io-channel-cells = <1>;
63            interrupt-parent = <&gpio5>;
64            interrupts = <15 IRQ_TYPE_EDGE_RISING>;
65            spi-max-frequency = <1000000>;
66        };
67    };
68...
69