|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +# Copyright 2024 Analog Devices Inc. |
| 3 | +%YAML 1.2 |
| 4 | +--- |
| 5 | +$id: http://devicetree.org/schemas/hwmon/adi,max31875.yaml# |
| 6 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | + |
| 8 | +title: Analog Devices MAX31875 Low-Power I2C Temperature Sensor |
| 9 | + |
| 10 | +maintainers: |
| 11 | + - John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com> |
| 12 | + |
| 13 | +description: | |
| 14 | + The MAX31875 is a ±1°C-accurate local temperature sensor with I2C/SMBus |
| 15 | + interface. The combination of tiny package and excellent temperature |
| 16 | + measurement accuracy makes this product ideal for a variety of equipment. |
| 17 | + https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31875.pdf |
| 18 | +
|
| 19 | +properties: |
| 20 | + compatible: |
| 21 | + enum: |
| 22 | + - adi,max31875 |
| 23 | + |
| 24 | + reg: |
| 25 | + maxItems: 1 |
| 26 | + |
| 27 | + vdd-supply: |
| 28 | + description: |
| 29 | + Must have values in the interval (1.6V; 3.6V) in order for the device to |
| 30 | + function correctly. Must also have regulator-name of "vref". |
| 31 | + |
| 32 | + adi,extended-format: |
| 33 | + description: |
| 34 | + If present, the temperature register is read in extended format. If not |
| 35 | + present, the temperature register is read in normal format (default). |
| 36 | + type: boolean |
| 37 | + |
| 38 | + adi,comp-int: |
| 39 | + description: |
| 40 | + If present, the Overtemperature Status bit operates in interrupt mode. If |
| 41 | + not present, it operates in comparator mode (default). |
| 42 | + type: boolean |
| 43 | + |
| 44 | + adi,timeout-disable: |
| 45 | + description: |
| 46 | + Disables timeout. Bus timeout resets the I2C-compatible interface when SCL |
| 47 | + is low for more than 30ms (nominal). |
| 48 | + type: boolean |
| 49 | + |
| 50 | + adi,fault-q: |
| 51 | + description: |
| 52 | + Select how many consecutive overtemperature faults must occur before an |
| 53 | + overtemperature fault is indicated in the Overtemperature Status bit. |
| 54 | + $ref: /schemas/types.yaml#/definitions/uint32 |
| 55 | + enum: [1, 2, 4, 6] |
| 56 | + |
| 57 | +required: |
| 58 | + - compatible |
| 59 | + - reg |
| 60 | + - vdd-supply |
| 61 | + |
| 62 | +additionalProperties: false |
| 63 | + |
| 64 | +examples: |
| 65 | + - | |
| 66 | + i2c { |
| 67 | + #address-cells = <1>; |
| 68 | + #size-cells = <0>; |
| 69 | + status = "okay"; |
| 70 | +
|
| 71 | + temperature-sensor@48 { |
| 72 | + compatible = "adi,max31875"; |
| 73 | + reg = <0x48>; |
| 74 | + vdd-supply = <&vdd>; |
| 75 | +
|
| 76 | + adi,extended-format; |
| 77 | + adi,comp-int; |
| 78 | + adi,timeout-disable; |
| 79 | + adi,fault-q = <1>; |
| 80 | + }; |
| 81 | + }; |
| 82 | +... |
0 commit comments