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,max31865.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Maxim MAX31865 Resistance Temperature Detector.
8
9maintainers:
10  - Navin Sankar Velliangiri <navin@linumiz.com>
11
12description: |
13  https://datasheets.maximintegrated.com/en/ds/MAX31865.pdf
14
15properties:
16  compatible:
17    const: maxim,max31865
18
19  reg:
20    maxItems: 1
21
22  maxim,3-wire:
23    description:
24      Identifies the number of wires used by the RTD. Setting this property
25      enables 3-wire RTD connection. Else 2-wire or 4-wire RTD connection.
26    type: boolean
27
28  spi-max-frequency: true
29  spi-cpha: true
30
31required:
32  - compatible
33  - reg
34  - spi-cpha
35
36additionalProperties: false
37
38examples:
39  - |
40    spi {
41       #address-cells = <1>;
42       #size-cells = <0>;
43
44       temp_sensor@0 {
45         compatible = "maxim,max31865";
46         reg = <0>;
47         spi-max-frequency = <400000>;
48         spi-cpha;
49         maxim,3-wire;
50       };
51    };
52...
53