Re: [PATCH v3 2/3] dt-bindings: iio: flow: add Sensirion SLF3S liquid flow sensor

From: Marcelo Schmitt

Date: Sun May 31 2026 - 13:45:00 EST


Hello Wadim,

The dt doc looks good to me.
A couple of minor comments inline.

On 05/30, Wadim Mueller wrote:
> Document the bindings for the Sensirion SLF3S family of digital
> liquid-flow sensors on I2C. The family currently covers the
> SLF3S-0600F, SLF3S-1300F and SLF3S-4000B variants.
>
> The driver auto-detects the variant from the product-information
> register at probe time; the per-variant compatible strings exist
> for documentation and dt_binding_check purposes.
>
> The active calibration medium (water / IPA) is runtime-switchable
> via the in_volumeflow_medium sysfs attribute and therefore not a
> DT property.
>
> Signed-off-by: Wadim Mueller <wafgo01@xxxxxxxxx>
> ---
> .../bindings/iio/flow/sensirion,slf3s.yaml | 49 +++++++++++++++++++
> MAINTAINERS | 8 +++
> 2 files changed, 57 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml b/Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml
> new file mode 100644
> index 000000000..dc41120e0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/flow/sensirion,slf3s.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Sensirion SLF3S liquid flow sensor
> +
> +maintainers:
> + - Wadim Mueller <wafgo01@xxxxxxxxx>
> +
> +description:
> + Family of digital liquid-flow sensors from Sensirion with I2C
> + interface. All family members share the same register map; sub-types
> + differ only in the flow scale factor and the calibrated measurement
> + range, both of which are detected at probe time via the
> + product-information register.
> +
> +properties:
> + compatible:
> + enum:
> + - sensirion,slf3s-0600f
> + - sensirion,slf3s-1300f
> + - sensirion,slf3s-4000b
> +
> + reg:
> + maxItems: 1
> +
> + vdd-supply: true

We could add a mention to the IRQ pin to make the doc more complete.

interrupts:
maxItems: 1

Though, I see the chip has an unused pin. If future designs implement an
aditional IRQ signaling on that unused pin, we would need to add extra
properties to the dt-doc to specify the number of interrupts each design has.
Anyway, documenting the IRQ now is probably okay even if we have to update it
in the future.

> +
> +required:
> + - compatible
> + - reg
> + - vdd-supply
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + flow-sensor@8 {
> + compatible = "sensirion,slf3s-0600f";
> + reg = <0x08>;
> + vdd-supply = <&reg_3v3>;
> + };
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 06a8c7457..222a03b6d 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -24187,6 +24187,14 @@ S: Maintained
> F: Documentation/ABI/testing/sysfs-bus-iio-chemical-sgp40
> F: drivers/iio/chemical/sgp40.c
>
> +SENSIRION SLF3S LIQUID FLOW SENSOR DRIVER
> +M: Wadim Mueller <wafgo01@xxxxxxxxx>
> +R: Maxwell Doose <m32285159@xxxxxxxxx>
> +L: linux-iio@xxxxxxxxxxxxxxx
> +S: Maintained
> +F: Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml
> +F: drivers/iio/flow/slf3s.c
The driver file is added in patch 2 so the above line would be introduced in the
second patch.

With the MAINTAINERS entry adjustment,
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@xxxxxxxxx>

> +
> SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER
> M: Tomasz Duszynski <tduszyns@xxxxxxxxx>
> S: Maintained
> --
> 2.52.0
>
>