Skip to content

Commit b41a058

Browse files
committed
dt-bindings: hwmon: add adi,max31875.yaml
Add documentation for devicetree bindings for max31875 Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
1 parent 0b3d96f commit b41a058

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
...

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12596,6 +12596,13 @@ F: Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
1259612596
F: Documentation/hwmon/max31827.rst
1259712597
F: drivers/hwmon/max31827.c
1259812598

12599+
MAX31875 TEMPERATURE SENSOR DRIVER
12600+
M: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
12601+
L: linux-hwmon@vger.kernel.org
12602+
S: Supported
12603+
W: http://ez.analog.com/community/linux-device-drivers
12604+
F: Documentation/devicetree/bindings/hwmon/adi,max31875.yaml
12605+
1259912606
MAX31335 RTC DRIVER
1260012607
M: Antoniu Miclaus <antoniu.miclaus@analog.com>
1260112608
L: linux-rtc@vger.kernel.org

0 commit comments

Comments
 (0)