[PATCH v2 2/3] dt-bindings: iio: flow: add Sensirion SLF3S liquid flow sensor
From: Wadim Mueller
Date: Wed May 27 2026 - 14:43:32 EST
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.
Variants share the same register map and differ only in the flow
scale factor and calibrated measurement range, both of which are
auto-detected at probe time via the product-information register.
Per-variant compatible strings are accepted for documentation and
future-proofing; new variants will fall back on the generic
"sensirion,slf3s" compatible without a driver update.
The data-ready interrupt is optional; without it the driver falls
back to polled I2C reads.
A sensirion,medium property is added so that the driver can start
the sensor with either the H2O or the IPA factory calibration
(default H2O).
Signed-off-by: Wadim Mueller <wafgo01@xxxxxxxxx>
Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
Cc: Jean Delvare <jdelvare@xxxxxxxx>
Cc: Andreas Klinger <ak@xxxxxxxxxxxxx>
Cc: Lars-Peter Clausen <lars@xxxxxxxxxx>
Cc: linux-hwmon@xxxxxxxxxxxxxxx
Cc: Maxwell Doose <m32285159@xxxxxxxxx>
---
.../bindings/iio/flow/sensirion,slf3s.yaml | 68 +++++++++++++++++++
MAINTAINERS | 8 +++
2 files changed, 76 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..f58cf199a
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml
@@ -0,0 +1,68 @@
+# 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:
+ oneOf:
+ - items:
+ - enum:
+ - sensirion,slf3s-0600f
+ - sensirion,slf3s-1300f
+ - sensirion,slf3s-4000b
+ - const: sensirion,slf3s
+ - const: sensirion,slf3s
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+ description:
+ Optional data-ready interrupt line. If omitted the driver falls
+ back to polled I2C reads.
+
+ vdd-supply: true
+
+ sensirion,medium:
+ $ref: /schemas/types.yaml#/definitions/string
+ enum: [ water, ipa ]
+ default: water
+ description:
+ Calibration medium the sensor is configured for at probe time.
+ SLF3S sensors are factory-calibrated for both water and
+ isopropyl alcohol (IPA); this property selects which calibration
+ to activate. Defaults to water when omitted.
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ flow-sensor@8 {
+ compatible = "sensirion,slf3s-0600f", "sensirion,slf3s";
+ reg = <0x08>;
+ vdd-supply = <®_3v3>;
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 06a8c7457..096ef2fe7 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/
+
SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER
M: Tomasz Duszynski <tduszyns@xxxxxxxxx>
S: Maintained
--
2.52.0