From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 9B15129AAFA for ; Sat, 30 May 2026 20:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780174507; cv=none; b=rKsqAYEij4p8DbsacrjhfGTBWnz9KrA43sa66m54s7rxgQoOBPjJ4LIm9B+fBAaUvWWIzsjJbqU4P42DYYVJaT495kaLtSjlWFRFa+moBKwX0CwAugZ9WqAT1bC2n47RWnauufniREe1SsZuToOwrP3EI7uhL3Dpn4RPGl6hzN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780174507; c=relaxed/simple; bh=hwGl3EPuphO2HwbxFoFnDldoXbDsAWGoIy1kLT4Cp5g=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=niyUBkHZxC3t7HUw6SkVH+yVuv3UPzkXx1aTvnB26ruZsVlptAnOwx3LpaiU0lFrmNOHBQJpUJ+6HQixo57BI9EBb6B3ayOLDi3obguINqYNdZYVxEF9LjLaUAYtWu2hdi2kjnjD617kTpisd3ZuWG66U8sAVoaXRWFu+Zv2Bxo= 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=K6MuVJXM; arc=none smtp.client-ip=209.85.221.54 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="K6MuVJXM" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-45f3cf907ceso201600f8f.2 for ; Sat, 30 May 2026 13:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780174504; x=1780779304; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=fP/yeBc6tDGnYnwkYYiLHLYGfPjF9AFGOqGTC6mRuYQ=; b=K6MuVJXMtCKJnnL3zr6rtTD7fo0JObyDg1Mq7XSDFppzGCnQ5AYO9cU5YkrVe770MD bYgNcty23Y+TMUMEjQFLgndu15pMoh2nL+rmwU4f+t9eWlclbT0r8bTw/KPJkb8r/d6p +Ywm7VTN6wfruN74hEd0kYIa3NK61d4G5c1M3CPWLts5f8HbofwpQh/yduNL7zWvI5qH E8xw4mlwqEOLGocJyDWp0dek3M5n1KN7zxva86RCLs069IkuS45FCmlCiD76vhd1OGg5 MPHO3yFSW7yZGxOnPzRshLGLj6nAuNld7jqnnfhGOFjNKjFik0vA4km7+2rCXE5hYiti WMEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780174504; x=1780779304; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=fP/yeBc6tDGnYnwkYYiLHLYGfPjF9AFGOqGTC6mRuYQ=; b=XVICuo+2sbsZlrr3RkMminOSJsIPuwldqRi6McxqR1rq/yo8FsdhzcW2xUFPPl87RP sAQnUdfX6R90QdDGLyBkzkDwr5WHewr3hc5VoGdYECBYPAUtc0BeJuJ6T263StH8GV9/ dgj52fta4tG6lUko190pKRUSs8eFgJFfOJQ8vHmV1smGdRrgwAPRj2eo1iQOSWZcV9LK kwW9gvVnZmkYmfQ0Z2FD2t6m+Tef+57F7AfaDZ0Y5bano2DNgAWHODGOE5hvOvxhoVVp IZEg7RbaBxRHZHYLhU/AXihtVOOtUFNKiJLAh6WhBTW43paTScnYYQycTFltAdkw+SqA /lYg== X-Forwarded-Encrypted: i=1; AFNElJ/A2Srk7sU6xlW6Lvd0YTMQ+lWsZbSkkp+vFAImmzW1Xv2+VaaYcfMrubFCE+amuQ1Uxtn6ZnwS0F8BTlU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx4rHkbS+4d7qmiBk77d3kHccf4mgZelH8xufVJ6GNSikxGvl9F AHn5dKdJhb7A8VSWf36JOHa6ObOJI6HXbTXCi5y8fwDBP3Kb1dBZhzk8 X-Gm-Gg: Acq92OFBVcN7Kssj8AYef3eo3tzPVYRlx9XhwKJPdhNPtN7UOwjZA8gL4oYxtrkLnPx Jvb4Z7by1CcPiEGffyOmkxvBVWOS7NL6d8XQGYu0NzIPJAbDp2pa+xkwDj5RK6NjQR21xkaoC/n vPJR73KDcwf+oMaW6arHbSLhmWrg8x0v6LX3+nfWUWEERThyJqYTvupXu8BdiRBs2W+bVEp/cNR USeBVQ2+knk5JT6eW79StwVGW8kcgMBUWABmiNBm2tGOHxIJNJRPZQEPOXPMtKo6x+Zmv37pFYc PQE/8GklG/eCfupijZ3W/2xHdgih7QBnQQeCtU18znCf1RCJiyP6RDdmZaXNo5oiKWZPdIsp2Zi /h9M/HJCLYrsZGVCW4QT2+a0iuumic3/02/qXPko4WxFPnrVTtnl6rdagHILDeOTAz+WEDDPDUT 3DXe/Svjc99SfDEg0= X-Received: by 2002:a05:600c:6287:b0:490:5429:1513 with SMTP id 5b1f17b1804b1-490a2901c14mr93218935e9.6.1780174504103; Sat, 30 May 2026 13:55:04 -0700 (PDT) Received: from sefo-laptop ([2a02:8071:50c5:5c0::361b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4909cab0e94sm132288225e9.12.2026.05.30.13.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 May 2026 13:55: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 , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dt-bindings: iio: flow: add Sensirion SLF3S liquid flow sensor Date: Sat, 30 May 2026 22:54:31 +0200 Message-ID: <20260530205435.37326-3-wafgo01@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260530205435.37326-1-wafgo01@gmail.com> References: <20260530205435.37326-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. 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 --- .../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 + +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 + +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 = <®_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 +R: Maxwell Doose +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/flow/sensirion,slf3s.yaml +F: drivers/iio/flow/slf3s.c + SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER M: Tomasz Duszynski S: Maintained -- 2.52.0