From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.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 8058D21ABAA for ; Sun, 21 Jun 2026 00:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782002794; cv=none; b=Wq8NN7UUqzHw8mo8QV8EjDa+qzihBTsmdhWr3fpttA6IlT3GUV+kccksV+fNBV/OL87Vhu+0ChX0g3V96GFLKVJi+imnKp1v8a6ly+GRNjAWCtXx1pZS0r+AvurJsQEsEFmPYf2X85rqdiwK7xxsJ3F4wI7QFBHwlHmOiqIZzSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782002794; c=relaxed/simple; bh=5TTxQ3I91yDsizRvGxC6wGurDup/AtF5mbCDjYKei1M=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QbwZM02iNXXlIJhsIpu8g13NKLbVlLZLgBH/nh1WLlnaek4xyeGCf5jVUeXWsQSFW2AemlYWA+uIpp17K2+dzAy4HN+pUHIt0+UrSkiAYy/4l8JMrlISs3WlLoiNKF0gAqj/jZlxHNy1xEKR1zkdrccV+gWIrugC3TwR7BjMOpo= 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=QQ+PYWpe; arc=none smtp.client-ip=209.85.160.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="QQ+PYWpe" Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-4474073fa81so499351fac.3 for ; Sat, 20 Jun 2026 17:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782002790; x=1782607590; 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=6UcOBkVQ+LuwHq0/corgNyTz2DMj/Og0DSgHE/NFxEw=; b=QQ+PYWpetG9zk+hisGM4B2Xa3x4V3uLwp9TShUJLa/29KnYerBghnhlDxw6UAUbjHB 0D/V/VMjTnue43rnDYXc4nci5HHvtawBUKrNl7hGHXmZ7C3Nt/mgPVjmPJLz9kaeMIRi fcAeynmVeUzkE2HZ4mGnFGIEs6L4hoVZouAE7/LBtWWwnVTS33t+N2Z1kTgTA7Dvi+d9 uK9BKF7pIKmdMpBQVKJKE5rO1YYkolSzdJw/GinPfXYtbPKrUY2gx2qgz+1UH5B0Qk1s WXJWG8Zjrz1cU0oyFzmb/XGi63UKTo2RWmJGoXKV8Nn1KDWxDMq9aNU7mpa7JA4mZz+w dNAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782002790; x=1782607590; 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=6UcOBkVQ+LuwHq0/corgNyTz2DMj/Og0DSgHE/NFxEw=; b=jZvpdN3jHgeKVl5vFxVOfck6WCYuszo7QXOXSovAdTM62fHPQXo8Nohbp6++mSvmkh gtfyjX7Q6O4EvszAkEWXGYqwYOHqsUckfsT0jkmVhTuC+Wlls5R3VUPu47mVKYEQvNqa aFaT8zC7KxlShAXYvU0R7lrDWwwmaIrXHoc6KCGKOf8gnvC+JGi3HZk+0zXX/uKmmn02 HaMEGjg/iqye9i8y8rc0EcsTpJ518GRHKVTz9ndxRFPpJ5io3KWP5DUTJ9J3/S1Nz42n aU/tOwzGpMU7+1j12QdFsx//i6XUgZ5Z4fuN1sQUtHQv+1CYjdMbPABPx0SuQKtrvsFH 3+8w== X-Forwarded-Encrypted: i=1; AHgh+RoX+GJ0kQkDQXDHCV5USQkSEcadgPYfjZ9Ycgq15ulxWrKtANJXsHbC8Noi9W/59ywAzPLV07vA+Ri60bU=@vger.kernel.org X-Gm-Message-State: AOJu0YwFwbcVB1IP+odtrQ9AZFbSBeI4TMzUSMwMaGtFWtJ0JhmkNp8l zUlsCfTT6Tfw+boeoZusp+0wfIWWLLabCpjicnWi3so53NPkQQmG26iF X-Gm-Gg: AfdE7ck3TF6G6ptXoPYMnMtJZ2BwzDP6YZqP1Ny2+0oppyFVcDjY2ZBP81Af/s/itnU mBrRB4R2DUtjEvJIoqsPG6WklTtZ415zmKwE3u3Co5KP4fxim+dSKGSLojuaXdamZaL7Y2s6EwV KQAVhmtP9tdEi/MffS2StRVc7ADhZp7A7GzXvst1FfCFBdXOePVL7hQ4yKEQrn5D8OzmuiTaNSX w7sRpvIVa9jpQ93X80e3JE4XlspyG/ERY7JoJY68vGLEHZSxu6D9plXMtD6SlAKv2xLNI/oEw9J 9Pj5SVYpYTsdeg9kbyDf0/3dbRrpF8ywWaejdr0fc5j7R80n2UAJd+5BrGOHGbzVjgfbDQg12Bo Vo8oDUkpKevYnjlgvSgmj1FMa6z97hzNlEXFc9bNKPcSNMnWKE7oENr9fLdvKFgkGXp4gp+toTo 2Q3qPmnKNtXo/AX+SbVU+oXXtzwMU5zB2yYKVgkYEr2RMIQaM= X-Received: by 2002:a05:6870:e386:b0:430:3ddf:9712 with SMTP id 586e51a60fabf-44707c309dfmr7829163fac.5.1782002790326; Sat, 20 Jun 2026 17:46:30 -0700 (PDT) Received: from linuxescape.lan (23-88-128-2.fttp.usinternet.com. [23.88.128.2]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4472ec5fd4csm3080457fac.2.2026.06.20.17.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2026 17:46:30 -0700 (PDT) From: Maxwell Doose To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 1/2] dt-bindings: iio: temperature: Add STS30 devicetree bindings Date: Sat, 20 Jun 2026 19:46:23 -0500 Message-ID: <20260621004626.66629-2-m32285159@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260621004626.66629-1-m32285159@gmail.com> References: <20260621004626.66629-1-m32285159@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 Add the devicetree bindings for the STS30 family of temperature sensors. The STS30 family of sensors includes the STS30, STS31, and STS35. All devices in the STS30 family share the same commands, timings, etc. The only difference between them is their measurement accuracy and tolerance. Additionally add MAINTAINERS entry for the driver. Signed-off-by: Maxwell Doose --- Changes since v1: - Squashed parts of the MAINTAINERS commit into this commit. - Added ALERT pin as an interrupt and in the examples. .../iio/temperature/sensirion,sts30.yaml | 55 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml diff --git a/Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml b/Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml new file mode 100644 index 000000000000..9bb0f04795d4 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/sensirion,sts30.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STS30, STS31, and STS35 temperature iio sensors + +maintainers: + - Maxwell Doose + +description: | + Family of digital temperature sensors from Sensirion with I2C interface. + All devices are compatible with each other, their only differences are + their levels of accuracy. + + Datasheet available at: + https://sensirion.com/media/documents/1DA31AFD/65D613A8/Datasheet_STS3x_DIS.pdf + +properties: + compatible: + enum: + - sensirion,sts30 + - sensirion,sts31 + - sensirion,sts35 + + reg: + maxItems: 1 + + vdd-supply: true + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temperature@4a { + compatible = "sensirion,sts30"; + reg = <0x4a>; + vdd-supply = <®_3v3>; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index d95d3ef77773..7f94b8cac3e2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24487,6 +24487,11 @@ F: drivers/iio/chemical/sps30.c F: drivers/iio/chemical/sps30_i2c.c F: drivers/iio/chemical/sps30_serial.c +SENSIRION STS30 TEMPERATURE SENSOR DRIVER +M: Maxwell Doose +S: Maintained +F: Documentation/devicetree/bindings/iio/temperature/sensirion,sts30.yaml + SERIAL DEVICE BUS M: Rob Herring L: linux-serial@vger.kernel.org -- 2.54.0