Microchip MCP9600 and similar thermocouple EMF converters
Schema identifier ($id): "http://devicetree.org/schemas/iio/temperature/microchip,mcp9600.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Hepp <andrew.hepp@ahepp.dev>"
https://ww1.microchip.com/downloads/en/DeviceDoc/MCP960X-Data-Sheet-20005426.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"microchip,mcp9600"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"microchip,mcp9601"Item 2
Exact value (
const):"microchip,mcp9600"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
Array item rules (items) #
Allowed values (
enum):"open-circuit","short-circuit","alert1","alert2","alert3","alert4"
thermocouple-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 3
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.
microchip,vsense — not listed as required here #
Value type (type): "boolean"
This flag indicates that the chip has been wired with VSENSE to enable open and short circuit detect.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"microchip,mcp9601"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):4
interrupt-names— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):4Array item rules (
items)Allowed values (
enum):"alert1","alert2","alert3","alert4"
microchip,vsense— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/iio/temperature/thermocouple.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@60 {
compatible = "microchip,mcp9600";
reg = <0x60>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "alert1";
thermocouple-type = <THERMOCOUPLE_TYPE_K>;
vdd-supply = <&vdd>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
temperature-sensor@62 {
compatible = "microchip,mcp9601", "microchip,mcp9600";
reg = <0x62>;
interrupt-parent = <&gpio>;
interrupts = <22 IRQ_TYPE_EDGE_RISING>, <23 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "open-circuit", "short-circuit";
vdd-supply = <&vdd>;
microchip,vsense;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)