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,max31856.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Maxim MAX31856 thermocouple support
8
9 maintainers:
10 - Jonathan Cameron <jic23@kernel.org>
11
12 description: |
13 https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf
14
15 properties:
16 compatible:
17 const: maxim,max31856
18
19 reg:
20 maxItems: 1
21
22 spi-max-frequency: true
23 spi-cpha: true
24
25 thermocouple-type:
26 $ref: /schemas/types.yaml#/definitions/uint32
27 description:
28 Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted).
29 Use defines in dt-bindings/iio/temperature/thermocouple.h.
30 Supported types are B, E, J, K, N, R, S, T.
31
32 required:
33 - compatible
34 - reg
35 - spi-cpha
36
37 additionalProperties: false
38
39 examples:
40 - |
41 #include <dt-bindings/iio/temperature/thermocouple.h>
42 spi {
43 #address-cells = <1>;
44 #size-cells = <0>;
45
46 temp-sensor@0 {
47 compatible = "maxim,max31856";
48 reg = <0>;
49 spi-max-frequency = <5000000>;
50 spi-cpha;
51 thermocouple-type = <THERMOCOUPLE_TYPE_K>;
52 };
53 };
54 ...
Cache object: e3c2c1bbafe3f09c80ab3c9e2571ae6f
|