From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 2FFB543B3E9 for ; Tue, 14 Jul 2026 08:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784019245; cv=none; b=VPVO6EgIFcBJmTQQrsZd12giydy24y512vpMYHkP7xqZXlwAM6tXIrOBjZ650NCWzjapYtIdeWvn1ltb+1vbwSffKR3k2BHxaS54DceGOedFqwF4UoCMl66rvC40Frl4MSqTkjmU1Wu2401kxd7/9pCLLOGB9m9g32jS0+WZ8WI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784019245; c=relaxed/simple; bh=HcgU+VG1Oc+bIeWE7x5YCDCDMVvhSEyQh9IJhuIxDB4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TB7YKARx1kBZnl9+C/0slVEI6d82CE2CPuR6cSz3pmc5FGWCLtaW99HJeGPquehHS0K7+eDpX5SYXvAX4vpBV53wkPmqZvcHtWcuTHqXlChrSey13sQP246VpOm1fThPVeWuCgu9owcVe+MMmBl0E0Wq/Wq1wkFqVnxxV9dV8O0= 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=DS2WMuMd; arc=none smtp.client-ip=209.85.218.51 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="DS2WMuMd" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-c15e03c2763so157914266b.0 for ; Tue, 14 Jul 2026 01:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784019241; x=1784624041; 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:content-type; bh=LjuLXIei9hVQC9Zi0Wm9KUJab+j6Qn7lCqW1Es/FnEI=; b=DS2WMuMdqL8AV1/P/EG1/h7RygVpm9VsNYQCr8M8NB3BIuoInkp0/5DcNoslXa5pyo x3xGu3iDqmEPaLFIUie/AuMmcuNcbVYGigxAwqua+VGpj5oj9bRqon0rLuJiV4zMidZQ NLg1yUN2tpFW07yl81RbHe5csVhq5L28z64+U/QgsAEsRjf1/S6JxiwZqNlm34dbPqN7 hpCBFXWw9En7pVQ0eHO3zWjk1XWSa0cKDQfY5rgW5apYpCJAsDtk3Ok0bBN9bMDTfGPT eMXGHGiiIrG9Ty2v1X1EGYN+h8pu8/KOZgpx+NvHLyUdfWc4xuBbJlO5vbopo3yu+nOF 19uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784019241; x=1784624041; 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:content-type; bh=LjuLXIei9hVQC9Zi0Wm9KUJab+j6Qn7lCqW1Es/FnEI=; b=WR79f659NSKP1LgpH2LrowaPNEbxP8Z3cnl5Zycr/JUMGxQhG3pvim0/so2qOl0cni sghDZc8tCj138KKjFnV64wXYu1XnG/OuaPm8kCMBxXo5Bhq0COirJbYnb3OL+Cu80HwA NIRco5ldABAc6TeQ6g+4Zc24NokU6sO/AuLXuTHa5GAPBjEws/4x3y3zu6VXcsOhIWml MLmp+AtxKzDGyxmNcjbcRsBFMk+zxA7a94KMI3Bv7lW5vzTicUPtG7ze9hI8syILTsYQ LZAI8bTv2UtxUJUFny4BO/4ypp3U+6OpDQCMmiQ+Me+Rcuw0Z/8XsZ4aVeTv6Am3K3Wv xwNg== X-Forwarded-Encrypted: i=1; AHgh+RongLAqqKXzIgwB1zgk/BgCR04nTkRb9/uOmO5UfwxKisGbqSqjl4RlmlQDoHGtKevHexBvfaQTvud6@vger.kernel.org X-Gm-Message-State: AOJu0YxW5GieRC/09N3s13itxUyhTYtbufdCia2qHgWr82WNztpI6bJV eHdF1sEgC+pMnT0xdm1AZRpL2ES0XB6PiABqIsjMCAevRo9CuMicI/Xx X-Gm-Gg: AfdE7clDmR5FwceCKT6e33Lj++GjSvSyjY8stCYEQsSfKIN3ndHduNFaan2f+Ow+JQm TfhJTwNaWO3v8T+H3Hh2Y4b0/aong8pyKhwD+0RiM83yOg2gbQuBKIu9P8FYGQeAQ7O9Nt5OrXQ HiFsOvCYX5WsSpU9gSGsmwj+34aVd9qt5wTHGzBRCwym1wiQ0BDI6WSmTXQjOXxXoMsJlVVJ61A IwPXnnxkisg7P2/g4+hGCl/QzGepQzUh7QBwAUD39CTKX/ef+AomgE33UGsLFSwt8f5ejqp172f EJVjxvrF+jriBqpQKOWYR0bVUXbTPeMTRuhVGInxgA84KzzbUdKKC8RjO46MoxzhYtU5H+OLysZ eKtKPm6GNdhaPR6mUI12ERt+qGheOv9ReupJRkk+mElIBZ3ixRvdabcwSKIPBlsbp1zA6k9Q0wA Lj1ouKpA9ZXDqdBRN4ftxBTo2ZwPpJ4kpc/U2QOez9b+MgNA== X-Received: by 2002:a17:907:9610:b0:c12:4133:39ba with SMTP id a640c23a62f3a-c161ea2ad17mr666319066b.26.1784019240816; Tue, 14 Jul 2026 01:54:00 -0700 (PDT) Received: from DE-PF5B95TD.embedded.cmblu.dev ([87.129.199.250]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c15ad82279csm1143689366b.13.2026.07.14.01.53.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 01:54:00 -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> Subject: [PATCH v5 2/4] dt-bindings: iio: flow: add Sensirion SLF3S liquid flow sensor Date: Tue, 14 Jul 2026 10:53:56 +0200 Message-ID: <20260714085358.20842-3-wafgo01@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260714085358.20842-1-wafgo01@gmail.com> References: <20260714085358.20842-1-wafgo01@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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 Reviewed-by: Krzysztof Kozlowski --- .../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 000000000000..c054a505b75d --- /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 b051eccafa60..f400b82520a4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24296,6 +24296,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.43.0