Path: blob/master/Documentation/devicetree/bindings/iio/temperature/microchip,mcp9600.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/temperature/microchip,mcp9600.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Microchip MCP9600 thermocouple EMF converter78maintainers:9- Andrew Hepp <andrew.hepp@ahepp.dev>1011description:12https://ww1.microchip.com/downloads/en/DeviceDoc/MCP960X-Data-Sheet-20005426.pdf1314properties:15compatible:16const: microchip,mcp96001718reg:19maxItems: 12021interrupts:22minItems: 123maxItems: 62425interrupt-names:26minItems: 127maxItems: 628items:29enum:30- open-circuit31- short-circuit32- alert133- alert234- alert335- alert43637thermocouple-type:38$ref: /schemas/types.yaml#/definitions/uint3239description:40Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted).41Use defines in dt-bindings/iio/temperature/thermocouple.h.42Supported types are B, E, J, K, N, R, S, T.4344vdd-supply: true4546required:47- compatible48- reg4950additionalProperties: false5152examples:53- |54#include <dt-bindings/iio/temperature/thermocouple.h>55#include <dt-bindings/interrupt-controller/irq.h>56i2c {57#address-cells = <1>;58#size-cells = <0>;5960temperature-sensor@60 {61compatible = "microchip,mcp9600";62reg = <0x60>;63interrupt-parent = <&gpio>;64interrupts = <25 IRQ_TYPE_EDGE_RISING>;65interrupt-names = "open-circuit";66thermocouple-type = <THERMOCOUPLE_TYPE_K>;67vdd-supply = <&vdd>;68};69};707172