From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E963402447 for ; Thu, 11 Jun 2026 13:27:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781184427; cv=none; b=kaJg9IiRy/5K+nYDAHlFXF67uhC3VoXStbixdZHt6bK7kMuj7T7PF7EfHHyC1IGCFq1pfLVn2NysxE0eYV6jTSLg/RhSHKBRGd/8NlDJFGzCpqADwrY/EBfVmjqS5hytLkbUJyLvE+qKuql4pSQkxE+/WEEyDtwag3znCDmnCb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781184427; c=relaxed/simple; bh=R8VBiD+QXC251qgkXFGljnCBmfK+Jfx8IbBGreOEHZo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DXuA/gwdpnqrYn5gMkzSdooq+C/WNwFtjow0xh+t2fXhTKTmkTO7gsVuCNS5oPatH7v2vSwzck2zBP6rdkTCNkk7CHut3SvPxdfQLeLuNk18R+9nC7iNGq+j+5lD0R9n+iKEXFqeg0lUI1lvdoKSsiQIr/FuZY//2QAtsRfNqL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dvzCOYsJ; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dvzCOYsJ" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-bebc80100efso855420566b.1 for ; Thu, 11 Jun 2026 06:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781184425; x=1781789225; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T6oEo+zVW0utqGa0HgsB8AO2WeB1C1W2F+2/mB2GeSE=; b=dvzCOYsJ5BcQnQ2ITm0wkP8sf1v6slWMwjxwCrYImZMKZq3N2VzXJVtWdwXkP0L27D kAUiu1xej6nFuorgG4cUrJi1rZ+MpmuaAZ4aHZknMnOkKyPFzTGS7uRnaeetMNhY0P4/ nYI0HCtd6GBWpq9Ra347TINVPFgtW9a7tp5uPYD23T3B8MiQzjEoJlw+LmkSf0PJImNI s2CuSHydufl8thlfgFOVP6TVe6vpGZQMwXHQzXq9ABKn3pyxkMkjyjxZJTbXtqYxMgsn /5IPylPAvKlwgq7WLNVmjdM77095aBX1pcDdFAi2SY1z3iFnsh6BukjQ5liH1gYfcjPy 2RwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781184425; x=1781789225; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=T6oEo+zVW0utqGa0HgsB8AO2WeB1C1W2F+2/mB2GeSE=; b=PQiGVrjjig9xxwpn5GOk6p4kpfFQCnxeUyNveXgx2EvyBrhozJ7yxo0FWXP/xKpgWz 2j8worS2SIt40qGUHZl7S41z1kJiAVXsQ3379DHw7vCxiUw7Tp5BVHK3enn0osVh8vb/ G1Cm6v9b86+AVJiAYpTBunOV2+/ZLn4BmpTbg+bAtht0E3QFiyuxkf5+8tBF67QWLtDO sqK9uRerivhHTfDALKohInYlfOPhYNY1hhIo4JWCPQcz5NCz1D9MV+hhpqCP87lsRunY MtYvmCNryCQj9pOzon0Egvqr/1ymDFH7+I0FDbPzVoHiGD5zkKqUKJCyITuo1/v6xhud FrqQ== X-Forwarded-Encrypted: i=1; AFNElJ9bP/kjbLXPdh37ajm+ZmBLmy8ADTQXUySqP5oP+ecUy9gE+j5etvW8ZRyx6MaX+Pznrwo6R1fpdEQ/rfA=@vger.kernel.org X-Gm-Message-State: AOJu0YygifHl+La6NlijpW6btGyszr2PviGuhBaevVfX5SCBxNVbUT6T tiRvHnRwb33hYgVkR1ylXcLc4v3CDTDapJSatHPQxH34VZ1+6kdt+856 X-Gm-Gg: Acq92OFpUvgTp2Rfm/WHFdjjQbVKTCpbkN1u9yp4LsBkYg2ZB9FsCo6mzb6Puk61UBH 0WFtOZ4xgJnGweAILZiwF7DIxnHpnfpvGu9avlBLsfwBvDmTX6E9eLYmy6UVtwE+kYuX65oKBVw LZ4N95FdzZYpvb7rvoMXyQgpCqoASKAMhJutLDk1x82cSxFGODg//lNH9ESnJDwmfrVvaWdZIxh WS3xh4VR1ufzKXx1W8uOT3ojKjbORuQrINSwC4LrvbPG4BXyItDhgBh/BIEKDAzC5JllkRjzvkp /v7YcdRWlzNIbqLa3hPGCD2vF2g9Bmm5CZK9NsgugXH7/MFYMX4TJpm7F0AeGMxoBrIYHHXUHEY Nkm2L6XyYWH6nUebZkRGDct2+NYVVr7MBiBY/RA/nEEhG9o0WBXzlw0+IeY7ml3Zz8caKLHb8St Zx3tvJfgyJHUna2/luYPgMmdu7zktuUZCQ5BLVCmS9YpLFtRmoAFtl4WWlVLyhJ28oByTxdAvvc Chl X-Received: by 2002:a17:906:c10c:b0:bde:a3cf:d268 with SMTP id a640c23a62f3a-bfc85c7f9acmr150749166b.13.1781184424344; Thu, 11 Jun 2026 06:27:04 -0700 (PDT) Received: from fedora.clients.cmblu.de (p5df027fc.dip0.t-ipconnect.de. [93.240.39.252]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bfcb1cf077asm65719566b.26.2026.06.11.06.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2026 06:27:03 -0700 (PDT) From: Wadim Mueller To: Jonathan Cameron , Krzysztof Kozlowski , Rob Herring , Conor Dooley , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Maxwell Doose Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marcelo Schmitt , Rodrigo Alencar <455.rodrigo.alencar@gmail.com>, Wadim Mueller Subject: [PATCH v4 2/4] dt-bindings: iio: flow: add Sensirion SLF3S liquid flow sensor Date: Thu, 11 Jun 2026 15:26:58 +0200 Message-ID: <20260611132700.671322-3-wafgo01@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260611132700.671322-1-wafgo01@gmail.com> References: <20260611132700.671322-1-wafgo01@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. All variants share the same register map and are fully detectable from the product-information register at probe time, so sensirion,slf3s-1300f serves as the fallback compatible for the other variants. 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 --- .../bindings/iio/flow/sensirion,slf3s.yaml | 58 +++++++++++++++++++ MAINTAINERS | 7 +++ 2 files changed, 65 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..c054a505b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml @@ -0,0 +1,58 @@ +# 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 + +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. The sub-type can be + identified from the product-information register. + +properties: + compatible: + oneOf: + - const: sensirion,slf3s-1300f + - items: + - enum: + - sensirion,slf3s-0600f + - sensirion,slf3s-4000b + - const: sensirion,slf3s-1300f + + reg: + maxItems: 1 + + vdd-supply: true + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + flow-sensor@8 { + compatible = "sensirion,slf3s-0600f", "sensirion,slf3s-1300f"; + reg = <0x08>; + vdd-supply = <®_3v3>; + interrupt-parent = <&gpio0>; + interrupts = <0 IRQ_TYPE_EDGE_RISING>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 06a8c7457..cdc18a601 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24187,6 +24187,13 @@ 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 +R: Maxwell Doose +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml + SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER M: Tomasz Duszynski S: Maintained -- 2.52.0