GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / iio / temperature / maxim,max31865.yaml
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
7 title: Maxim MAX31865 Resistance Temperature Detector.
8
9 maintainers:
10   - Navin Sankar Velliangiri <navin@linumiz.com>
11
12 description: |
13   https://datasheets.maximintegrated.com/en/ds/MAX31865.pdf
14
15 properties:
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-cpha: true
29
30 required:
31   - compatible
32   - reg
33   - spi-cpha
34
35 allOf:
36   - $ref: /schemas/spi/spi-peripheral-props.yaml#
37
38 unevaluatedProperties: false
39
40 examples:
41   - |
42     spi {
43        #address-cells = <1>;
44        #size-cells = <0>;
45
46        temp_sensor@0 {
47          compatible = "maxim,max31865";
48          reg = <0>;
49          spi-max-frequency = <400000>;
50          spi-cpha;
51          maxim,3-wire;
52        };
53     };
54 ...