Path: blob/master/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/adi,max31827.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch78maintainers:9- Daniel Matyas <daniel.matyas@analog.com>1011description: |12Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch with13I2C Interface14https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31827-MAX31829.pdf1516properties:17compatible:18oneOf:19- const: adi,max3182720- items:21- enum:22- adi,max3182823- adi,max3182924- const: adi,max318272526reg:27maxItems: 12829vref-supply:30description:31Must have values in the interval (1.6V; 3.6V) in order for the device to32function correctly.3334adi,comp-int:35description:36If present interrupt mode is used. If not present comparator mode is used37(default).38type: boolean3940adi,alarm-pol:41description:42Sets the alarms active state.43- 0 = active low44- 1 = active high45$ref: /schemas/types.yaml#/definitions/uint3246enum: [0, 1]4748adi,fault-q:49description:50Select how many consecutive temperature faults must occur before51overtemperature or undertemperature faults are indicated in the52corresponding status bits.53$ref: /schemas/types.yaml#/definitions/uint3254enum: [1, 2, 4, 8]5556adi,timeout-enable:57description:58Enables timeout. Bus timeout resets the I2C-compatible interface when SCL59is low for more than 30ms (nominal).60type: boolean6162allOf:63- if:64properties:65compatible:66contains:67const: adi,max318296869then:70properties:71adi,alarm-pol:72default: 17374else:75properties:76adi,alarm-pol:77default: 07879- if:80properties:81compatible:82contains:83const: adi,max318278485then:86properties:87adi,fault-q:88default: 18990else:91properties:92adi,fault-q:93default: 4949596required:97- compatible98- reg99- vref-supply100101additionalProperties: false102103examples:104- |105i2c {106#address-cells = <1>;107#size-cells = <0>;108109temperature-sensor@42 {110compatible = "adi,max31827";111reg = <0x42>;112vref-supply = <®_vdd>;113adi,comp-int;114adi,alarm-pol = <0>;115adi,fault-q = <1>;116adi,timeout-enable;117};118};119...120121122