Maxim MAX31856 thermocouple support

Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/maxim,max31856.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"

https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max31856"

reg — required here #

Maximum number of items (maxItems): 1

spi-cpha — required here #

true — No constraints added by this property rule.

thermocouple-type — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted). Use defines in dt-bindings/iio/temperature/thermocouple.h. Supported types are B, E, J, K, N, R, S, T.

Required in this object (required): "compatible", "reg", "spi-cpha"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/iio/temperature/thermocouple.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    temp-sensor@0 {
        compatible = "maxim,max31856";
        reg = <0>;
        spi-max-frequency = <5000000>;
        spi-cpha;
        thermocouple-type = <THERMOCOUPLE_TYPE_K>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page