Skip to content

Commit 4da6358

Browse files
committed
dt-bindings: iio: temperature: add adi,max30210.yaml
Add documentation for devicetree bindings for max30210 Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
1 parent 74637fb commit 4da6358

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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/iio/temperature/adi,max30210.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Analog Devices MAX30210 Low-Power I2C Digital Temperature Sensor
9+
10+
maintainers:
11+
- Daniel Matyas <daniel.matyas@analog.com>
12+
- John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
13+
14+
description: |
15+
The MAX30210 operates from 1.7V to 2.0V supply voltage, and is a low-power,
16+
high-accuracy digital temperature sensor with ±0.1°C accuracy from +20°C to
17+
+50°C and ±0.15°C accuracy from -20°C to +85°C.
18+
https://www.analog.com/media/en/technical-documentation/data-sheets/max30210.pdf
19+
20+
properties:
21+
compatible:
22+
enum:
23+
- adi,max30210
24+
25+
reg:
26+
maxItems: 1
27+
description: |
28+
I2C address of slave device.
29+
30+
vdd-supply:
31+
description: |
32+
Analog Supply Voltage Input. Must have values in the interval (1.7V; 5.5V)
33+
in order for the device to function correctly.
34+
35+
interrupts:
36+
description: |
37+
Connected to INT pin. Should be configured with type IRQ_TYPE_EDGE_BOTH.
38+
39+
adi,ext-cvt-active-edge:
40+
$ref: /schemas/types.yaml#/definitions/uint8
41+
description: |
42+
If present, CVT/PDB pin is used for external temperature conversion. Value
43+
is the active edge of CVT/PDB pin. If value is not present, 0 (falling
44+
edge) is used (default).
45+
minimum: 0
46+
maximum: 1
47+
default: 0
48+
49+
adi,int-output-drive-type:
50+
$ref: /schemas/types.yaml#/definitions/uint8
51+
description: |
52+
If present, value is the output drive type for the INT pin. Refer to
53+
MAX30210 datasheet, bitfield INT_OCFG of the PIN CONFIGURATION (0x12) of
54+
the Register Map. If value is not present, 0 is used (default).
55+
minimum: 0
56+
maximum: 2
57+
default: 0
58+
59+
adi,roc-filter:
60+
$ref: /schemas/types.yaml#/definitions/uint8
61+
description: |
62+
If present, temperature change detection is enabled. Value is the
63+
Rate-of-Change FIR filter settings. Refer to MAX30210 datasheet, Table 5.
64+
"Rate-of-Change Filter Settings." If value is not present, 0 is used
65+
(default).
66+
minimum: 0
67+
maximum: 7
68+
default: 0
69+
70+
adi,comp-mode:
71+
description: |
72+
If present, comparator mode is used. If not present, interrupt mode is
73+
used (default).
74+
type: boolean
75+
76+
required:
77+
- compatible
78+
- reg
79+
- vdd-supply
80+
81+
additionalProperties: false
82+
83+
examples:
84+
- |
85+
#include <dt-bindings/interrupt-controller/irq.h>
86+
87+
i2c {
88+
#address-cells = <1>;
89+
#size-cells = <0>;
90+
status = "okay";
91+
92+
temperature-sensor@40 {
93+
compatible = "adi,max30210";
94+
reg = <0x40>;
95+
vdd-supply = <&reg_vdd>;
96+
interrupt-parent = <&gpio>;
97+
interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
98+
adi,ext-cvt-active-edge = <1>;
99+
adi,int-output-drive-type = <2>;
100+
adi,roc-filter = <4>;
101+
adi,comp-mode;
102+
};
103+
};
104+
...
105+

MAINTAINERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12566,6 +12566,16 @@ F: Documentation/userspace-api/media/drivers/max2175.rst
1256612566
F: drivers/media/i2c/max2175*
1256712567
F: include/uapi/linux/max2175.h
1256812568

12569+
MAX30210 IIO TEMPERATURE DRIVER
12570+
M: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
12571+
M: Daniel Matyas <daniel.matyas@analog.com>
12572+
L: linux-iio@vger.kernel.org
12573+
S: Supported
12574+
W: https://ez.analog.com/linux-software-drivers
12575+
F: Documentation/ABI/testing/sysfs-bus-iio-temperature-max30210
12576+
F: Documentation/devicetree/bindings/iio/temperature/adi,max30210.yaml
12577+
F: drivers/iio/temperature/max30210.c
12578+
1256912579
MAX31827 TEMPERATURE SWITCH DRIVER
1257012580
M: Daniel Matyas <daniel.matyas@analog.com>
1257112581
L: linux-hwmon@vger.kernel.org

0 commit comments

Comments
 (0)