Re: [PATCH 1/2] dt-bindings: iio: temperature: add ADI MAX30210

From: David Lechner

Date: Thu Feb 26 2026 - 13:51:28 EST


When there is more than one patch in a series, please include a cover letter.

On 2/26/26 10:30 AM, John Erasmus Mari Geronimo wrote:
> Add device tree binding documentation for the Analog Devices
> MAX30210 temperature sensor.
>
> Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@xxxxxxxxxx>
> ---
> .../iio/temperature/adi,max30210.yaml | 71 +++++++++++++++++++
> 1 file changed, 71 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/temperature/adi,max30210.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/temperature/adi,max30210.yaml b/Documentation/devicetree/bindings/iio/temperature/adi,max30210.yaml
> new file mode 100644
> index 000000000000..80aeae23e0a5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/temperature/adi,max30210.yaml
> @@ -0,0 +1,71 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright 2026 Analog Devices Inc.
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/temperature/adi,max30210.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices MAX30210 Low-Power I2C Digital Temperature Sensor
> +
> +maintainers:
> + - John Erasmus Mari Geronimo <johnerasmusmari.geronimo@xxxxxxxxxx>
> +
> +description: |
> + The MAX30210 operates from 1.7V to 2.0V supply voltage, and is a low-power,

This voltage range doesn't match the one below.

We don't really need all of the tech specs here anyway, we have the link
to the datasheet.

> + high-accuracy digital temperature sensor with ±0.1°C accuracy from +20°C to
> + +50°C and ±0.15°C accuracy from -20°C to +85°C.
> + https://www.analog.com/media/en/technical-documentation/data-sheets/max30210.pdf
> +
> +properties:
> + compatible:
> + enum:
> + - adi,max30210
> +
> + reg:
> + maxItems: 1
> +
> + vdd-supply:
> + description: |

"|" is not needed here or below. It is only needed to preserve formatting or if
the text contains ":".

> + Analog Supply Voltage Input. Must have values in the interval (1.7V; 5.5V)
> + in order for the device to function correctly.
> +
> + powerdown-gpios:
> + description: |
> + GPIO spec for CVT/PDB pin. Should be configured with GPIO_ACTIVE_LOW.
> + maxItems: 1
> +
> + interrupts:
> + description: |
> + Connected to INT pin. Should be configured with type IRQ_TYPE_EDGE_BOTH.
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - vdd-supply

> + - powerdown-gpios

Is this pin really required? Seems like it would still work with this pin
hard-wired by using autonomous mode.

> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/pwm/pwm.h>

pwm is unused.

> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "okay";
> +
> + temperature-sensor@40 {
> + compatible = "adi,max30210";
> + reg = <0x40>;
> + vdd-supply = <&vdd>;
> + powerdown-gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
> +
> + interrupt-parent = <&gpio>;
> + interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
> + };
> + };
> +...