Re: [PATCH v2 1/2] dt-bindings: iio: temperature: Add STS30 devicetree bindings

From: Jonathan Cameron

Date: Thu Jul 02 2026 - 19:36:27 EST


On Sat, 20 Jun 2026 19:46:23 -0500
Maxwell Doose <m32285159@xxxxxxxxx> wrote:

> Add the devicetree bindings for the STS30 family of temperature sensors.
> The STS30 family of sensors includes the STS30, STS31, and STS35.
>
> All devices in the STS30 family share the same commands, timings, etc.
> The only difference between them is their measurement accuracy and
> tolerance.
Given we don't report accuracy (and reporting less accurate than they
actually are should always be safe if we do add such reporting in future),
I think a fallback compatible to the least accurate is appropriate for
the other two.

>
> Additionally add MAINTAINERS entry for the driver.
>
> Signed-off-by: Maxwell Doose <m32285159@xxxxxxxxx>
> ---
> Changes since v1:
> - Squashed parts of the MAINTAINERS commit into this commit.
> - Added ALERT pin as an interrupt and in the examples.
>
> .../iio/temperature/sensirion,sts30.yaml | 55 +++++++++++++++++++
> MAINTAINERS | 5 ++
> 2 files changed, 60 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml b/Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml
> new file mode 100644
> index 000000000000..9bb0f04795d4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml
> @@ -0,0 +1,55 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/temperature/sensirion,sts30.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STS30, STS31, and STS35 temperature iio sensors
> +
> +maintainers:
> + - Maxwell Doose <m32285159@xxxxxxxxx>
> +
> +description: |
> + Family of digital temperature sensors from Sensirion with I2C interface.
> + All devices are compatible with each other, their only differences are
> + their levels of accuracy.
> +
> + Datasheet available at:
> + https://sensirion.com/media/documents/1DA31AFD/65D613A8/Datasheet_STS3x_DIS.pdf
> +
> +properties:
> + compatible:
> + enum:
> + - sensirion,sts30
> + - sensirion,sts31
> + - sensirion,sts35
> +
> + reg:
> + maxItems: 1
> +
> + vdd-supply: true
> +
> + interrupts:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/irq.h>
> +
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + temperature@4a {
> + compatible = "sensirion,sts30";
> + reg = <0x4a>;
> + vdd-supply = <&reg_3v3>;
> + interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
> + };
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index d95d3ef77773..7f94b8cac3e2 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -24487,6 +24487,11 @@ F: drivers/iio/chemical/sps30.c
> F: drivers/iio/chemical/sps30_i2c.c
> F: drivers/iio/chemical/sps30_serial.c
>
> +SENSIRION STS30 TEMPERATURE SENSOR DRIVER
> +M: Maxwell Doose <m32285159@xxxxxxxxx>
> +S: Maintained
> +F: Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml
> +
> SERIAL DEVICE BUS
> M: Rob Herring <robh@xxxxxxxxxx>
> L: linux-serial@xxxxxxxxxxxxxxx