0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/temperature/maxim,max31856.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Maxim MAX31856 thermocouple support
0008
0009 maintainers:
0010 - Jonathan Cameron <jic23@kernel.org>
0011
0012 description: |
0013 https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf
0014
0015 properties:
0016 compatible:
0017 const: maxim,max31856
0018
0019 reg:
0020 maxItems: 1
0021
0022 spi-max-frequency: true
0023 spi-cpha: true
0024
0025 thermocouple-type:
0026 $ref: /schemas/types.yaml#/definitions/uint32
0027 description:
0028 Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted).
0029 Use defines in dt-bindings/iio/temperature/thermocouple.h.
0030 Supported types are B, E, J, K, N, R, S, T.
0031
0032 required:
0033 - compatible
0034 - reg
0035 - spi-cpha
0036
0037 additionalProperties: false
0038
0039 examples:
0040 - |
0041 #include <dt-bindings/iio/temperature/thermocouple.h>
0042 spi {
0043 #address-cells = <1>;
0044 #size-cells = <0>;
0045
0046 temp-sensor@0 {
0047 compatible = "maxim,max31856";
0048 reg = <0>;
0049 spi-max-frequency = <5000000>;
0050 spi-cpha;
0051 thermocouple-type = <THERMOCOUPLE_TYPE_K>;
0052 };
0053 };
0054 ...