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

From: Krzysztof Kozlowski

Date: Fri Feb 27 2026 - 05:48:36 EST


On Fri, Feb 27, 2026 at 12:30:40AM +0800, John Erasmus Mari Geronimo wrote:
> +
> +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,
> + 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: |

Do not need '|' unless you need to preserve formatting. Same in other
places.

> + 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.

Should be configured depending on wiring, because the flag includes any
inverters. Just say it is active low,


> + maxItems: 1
> +
> + interrupts:
> + description: |
> + Connected to INT pin. Should be configured with type IRQ_TYPE_EDGE_BOTH.

No, just say it is interrupt triggered by raising and falling edges.

> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - vdd-supply
> + - powerdown-gpios
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/pwm/pwm.h>

Where do you use this header?

> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "okay";

Drop.

> +
> + 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>;
> + };
> + };
> +...
> --
> 2.34.1
>