xref: /freebsd/sys/contrib/device-tree/Bindings/iio/temperature/maxim,max31855k.yaml (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/temperature/maxim,max31855k.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Maxim MAX31855 and similar thermocouples
8
9maintainers:
10  - Matt Ranostay <matt.ranostay@konsulko.com>
11
12description: |
13  https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf
14  https://datasheets.maximintegrated.com/en/ds/MAX31855.pdf
15
16properties:
17  compatible:
18    description:
19      The generic maxim,max31855 compatible is deprecated in favour of
20      the thermocouple type specific variants.
21    enum:
22      - maxim,max6675
23      - maxim,max31855
24      - maxim,max31855k
25      - maxim,max31855j
26      - maxim,max31855n
27      - maxim,max31855s
28      - maxim,max31855t
29      - maxim,max31855e
30      - maxim,max31855r
31
32  reg:
33    maxItems: 1
34
35  spi-max-frequency: true
36  spi-cpha: true
37
38required:
39  - compatible
40  - reg
41
42allOf:
43  - if:
44      properties:
45        compatible:
46          contains:
47            enum:
48              - maxim,max6675
49    then:
50      required:
51        - spi-cpha
52    else:
53      properties:
54        spi-cpha: false
55
56additionalProperties: false
57
58examples:
59  - |
60    spi {
61        #address-cells = <1>;
62        #size-cells = <0>;
63
64        temp-sensor@0 {
65            compatible = "maxim,max31855k";
66            reg = <0>;
67            spi-max-frequency = <4300000>;
68        };
69        temp-sensor@1 {
70            compatible = "maxim,max6675";
71            reg = <1>;
72            spi-max-frequency = <4300000>;
73            spi-cpha;
74        };
75    };
76...
77