Path: blob/master/Documentation/devicetree/bindings/iio/temperature/microchip,mcp9600.yaml
29539 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 and similar thermocouple EMF converters78maintainers:9- Andrew Hepp <andrew.hepp@ahepp.dev>1011description:12https://ww1.microchip.com/downloads/en/DeviceDoc/MCP960X-Data-Sheet-20005426.pdf1314properties:15compatible:16oneOf:17- const: microchip,mcp960018- items:19- const: microchip,mcp960120- const: microchip,mcp96002122reg:23maxItems: 12425interrupts:26minItems: 127maxItems: 62829interrupt-names:30minItems: 131maxItems: 632items:33enum:34- open-circuit35- short-circuit36- alert137- alert238- alert339- alert44041thermocouple-type:42$ref: /schemas/types.yaml#/definitions/uint3243default: 344description:45Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted).46Use defines in dt-bindings/iio/temperature/thermocouple.h.47Supported types are B, E, J, K, N, R, S, T.4849microchip,vsense:50type: boolean51description:52This flag indicates that the chip has been wired with VSENSE to53enable open and short circuit detect.5455vdd-supply: true5657allOf:58- if:59properties:60compatible:61not:62contains:63const: microchip,mcp960164then:65properties:66interrupts:67minItems: 168maxItems: 469interrupt-names:70minItems: 171maxItems: 472items:73enum:74- alert175- alert276- alert377- alert478microchip,vsense: false7980required:81- compatible82- reg8384additionalProperties: false8586examples:87- |88#include <dt-bindings/iio/temperature/thermocouple.h>89#include <dt-bindings/interrupt-controller/irq.h>90i2c {91#address-cells = <1>;92#size-cells = <0>;9394temperature-sensor@60 {95compatible = "microchip,mcp9600";96reg = <0x60>;97interrupt-parent = <&gpio>;98interrupts = <25 IRQ_TYPE_EDGE_RISING>;99interrupt-names = "alert1";100thermocouple-type = <THERMOCOUPLE_TYPE_K>;101vdd-supply = <&vdd>;102};103};104- |105#include <dt-bindings/interrupt-controller/irq.h>106i2c {107#address-cells = <1>;108#size-cells = <0>;109110temperature-sensor@62 {111compatible = "microchip,mcp9601", "microchip,mcp9600";112reg = <0x62>;113interrupt-parent = <&gpio>;114interrupts = <22 IRQ_TYPE_EDGE_RISING>, <23 IRQ_TYPE_EDGE_RISING>;115interrupt-names = "open-circuit", "short-circuit";116vdd-supply = <&vdd>;117microchip,vsense;118};119};120121122