From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 5BE724611CF for ; Wed, 27 May 2026 18:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779907390; cv=none; b=CLgSqnD+hZNcOoFf90V/tTtc/13a3dfF0BNPKuLU3ORztAkushvnBPrPs8Am0xFO0KUKUcYyz4VSbB34lV1hVBvuVKjb08Bv9IzrI1cIdWiFPCo6OpBKdghqonMM1QbA3+eA8LZy5GjvPB3+9l65NyPWWB7fTQmu4nOF9OM+ZI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779907390; c=relaxed/simple; bh=S6cOIQ9icy+P7rvUpdDlaXAeTozliAus/Ll9N8r1BiU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RzzQj/nViMHaekX03cCeoHEwL9MnWOBHZy1ggYml7xXUmUIsJ6YmSgazCPl7dogm0ehqZqnPARD7Hr1L1pwRyAFR3hwThs+wohB1Q/bUem4yCuwIK8VZ+AKgWnuWA5DUqqLdnDKiEWMspPCd6C55UZhdmy9nzUzyGf+107w/Czc= 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=QItF5Xvp; arc=none smtp.client-ip=209.85.128.41 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="QItF5Xvp" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4906238c62eso33990395e9.3 for ; Wed, 27 May 2026 11:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779907384; x=1780512184; 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=lodW82P5YwYpxQxDxn5G0N2M8jp9f8jZPuN/5IUlEPw=; b=QItF5XvpEtR8S5uuWNtP51OkSRTA0Bs+xRVVhIemCje46HJIxLZi44crSIr2YuPx2l 6B5JF33fkAbwUs1YSPjRFaNtfzakCpP2G6mBo8uzLSyu4cK+N4yWaJEGPC0JppTifopW ms7ZiMNc/x5r0PBhUIl/2uqZy5Zn/QzU9H207xihtG47H9E2OU1hxFW56bQwuQHvrDA6 a7G3hwrGdMYw1QMNQESS70hM1nI7qTjK5u33VQhfYGxdb7QeqR2FY000PMEvTcU7QajD 9CuOSCLQsEF/di321W5qO0CxpVAi4JaGjhLcK3unSiEhsaBj/mSE+EYLIyaQw0Z8v+wr YVSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779907384; x=1780512184; 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=lodW82P5YwYpxQxDxn5G0N2M8jp9f8jZPuN/5IUlEPw=; b=SpZ8mwiYaRH15c7f4pl4Yho30APA36rfOYP6PB+TvnTLToSpAhw1GmvohXaCBcKGDe oM4JlABMWUJhB5I3RiIgNAIQXdXTuKD3coDwX0X8mKHRWvdGNMHOQoQBaFt/kGKN21+i y2oUu1yCmEYMCaP5QNRZr+nWhjjrXVp7GtaIY6TYInzSJRr2t/IDd9q2QkY9oqwDNZYI /lZTpBahdGwWsifisam32xaV46hF491PJ3O7RnEM1mTjKuMWR1irzylZwAfi2D+0BV0i +Hbs4Ya+yh6z72nA1+ZvUiMQ0F/lbwRlAa97ucKkSxR7gF6G2jMS/3xW0AI5ZpMNyTNb l2NQ== X-Forwarded-Encrypted: i=1; AFNElJ87PxE8ZV4GLOEsv9E2gsdF1+J5LUSAtdU2irPKz8CNjQKmXSL+LgAaSDWLxNvtNX44IqDMlOI7VmAIQlY=@vger.kernel.org X-Gm-Message-State: AOJu0YyXyhyoG7TkJqWQE4jGFYZZh6bllf0NdQ/a20Wq7HFG5CpScrud stIuwDdoRxZu1wGrmR8EqXd90teLB2GVhGZTq/lj9ncRx8vJVyP8vLtw X-Gm-Gg: Acq92OFGBDEmHDkCR42dn3+Ve2ZUDSmO0L66UYCxKMDnRs85tcSYycEm0hwDjae6QSr x/cN1BZaZBDe0+MlFq2L6u53oLt60x/gOPflgSHBanoNPkiUfypzZ6u5KbPObtgVDru8eplZg/F YcFyYYyFk/ts9tC41oFaVqOJ134jKdO/Yx3o2kJ5ofj4ZEk/CAvMSttRzP4dcAvT4LuKVZ/7F6m jZgPmcdBMoJAcfPLtuY1AubTzfqw3eDS2aNaovwlBeLK5ruwofEowz13iPtC30hTJ01BROB0dJT tP69cpqrCfX6F0BQ/8O/uuug1JsmgfT3+5PLBJ3VjXmDecCSEfFgZy3lupqWMh14R+o1edwwVkx yyH1tF6zu6cTyLo2Qx8Gl9RBLt/8crSVHEhJryN0s+ECiWl3BSlkAMqe1NeYKfBMAdk4vfSehtN bzE2ED6hmlH3MKatmbH1buMshTvQ== X-Received: by 2002:a05:600c:c8d:b0:490:6869:46d2 with SMTP id 5b1f17b1804b1-490686947f8mr207785505e9.0.1779907383635; Wed, 27 May 2026 11:43:03 -0700 (PDT) Received: from sefo-laptop ([2a02:8071:50c5:5c0::361b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490809ca202sm35312935e9.6.2026.05.27.11.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2026 11:43:03 -0700 (PDT) From: Wadim Mueller To: Maxwell Doose , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Guenter Roeck , Jean Delvare , Andreas Klinger , Lars-Peter Clausen , linux-hwmon@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: iio: flow: add Sensirion SLF3S liquid flow sensor Date: Wed, 27 May 2026 20:42:53 +0200 Message-ID: <20260527184257.141635-3-wafgo01@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260527184257.141635-1-wafgo01@gmail.com> References: <20260524205112.26638-1-wafgo01@gmail.com> <20260527184257.141635-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. 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 Cc: Guenter Roeck Cc: Jean Delvare Cc: Andreas Klinger Cc: Lars-Peter Clausen Cc: linux-hwmon@vger.kernel.org Cc: Maxwell Doose --- .../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 + +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 +R: Maxwell Doose +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml +F: drivers/iio/flow/ + SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER M: Tomasz Duszynski S: Maintained -- 2.52.0