From: Antoni Pokusinski <apokusinski01@gmail.com>
To: jdelvare@suse.com, linux@roeck-us.net, corbet@lwn.net
Cc: linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Antoni Pokusinski <apokusinski01@gmail.com>
Subject: [PATCH v2] hwmon: (sht3x) add support for SHT85
Date: Thu, 11 Dec 2025 19:58:42 +0100 [thread overview]
Message-ID: <20251211185842.66084-1-apokusinski01@gmail.com> (raw)
SHT85 is a temperature and humidity sensor with the same interface
as SHT3x.
Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com>
---
Changes since v1:
* sht3x.c - dropped all changes, added {"sht85", sht3x} to i2c_device_id[]
* Kconfig - added information about SHT85 support
* Documentation: changed "Datasheets" -> "Datasheet"
* Documentation: added information about SHT85 address == 0x44
---
Documentation/hwmon/sht3x.rst | 18 +++++++++++++-----
drivers/hwmon/Kconfig | 4 ++--
drivers/hwmon/sht3x.c | 1 +
3 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/Documentation/hwmon/sht3x.rst b/Documentation/hwmon/sht3x.rst
index 9585fa7c5a5d..ea1642920295 100644
--- a/Documentation/hwmon/sht3x.rst
+++ b/Documentation/hwmon/sht3x.rst
@@ -23,6 +23,14 @@ Supported chips:
- https://sensirion.com/media/documents/1DA31AFD/61641F76/Sensirion_Temperature_Sensors_STS3x_Datasheet.pdf
- https://sensirion.com/media/documents/292A335C/65537BAF/Sensirion_Datasheet_STS32_STS33.pdf
+ * Sensirion SHT85
+
+ Prefix: 'sht85'
+
+ Addresses scanned: none
+
+ Datasheet: https://sensirion.com/media/documents/4B40CEF3/640B2346/Sensirion_Humidity_Sensors_SHT85_Datasheet.pdf
+
Author:
- David Frey <david.frey@sensirion.com>
@@ -31,15 +39,15 @@ Author:
Description
-----------
-This driver implements support for the Sensirion SHT3x-DIS and STS3x-DIS
+This driver implements support for the Sensirion SHT3x-DIS, STS3x-DIS and SHT85
series of humidity and temperature sensors. Temperature is measured in degrees
celsius, relative humidity is expressed as a percentage. In the sysfs interface,
all values are scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.
-The device communicates with the I2C protocol. Sensors can have the I2C
-addresses 0x44 or 0x45 (0x4a or 0x4b for sts3x), depending on the wiring. See
-Documentation/i2c/instantiating-devices.rst for methods to instantiate the
-device.
+The device communicates with the I2C protocol. SHT3x sensors can have the I2C
+addresses 0x44 or 0x45 (0x4a or 0x4b for sts3x), depending on the wiring. SHT85
+address is 0x44 and is fixed. See Documentation/i2c/instantiating-devices.rst for
+methods to instantiate the device.
Even if sht3x sensor supports clock-stretch (blocking mode) and non-stretch
(non-blocking mode) in single-shot mode, this driver only supports the latter.
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 720e8491ae97..955f6b4208ba 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1931,8 +1931,8 @@ config SENSORS_SHT3x
depends on I2C
select CRC8
help
- If you say yes here you get support for the Sensiron SHT30 and SHT31
- humidity and temperature sensors.
+ If you say yes here you get support for the Sensiron SHT30, SHT31 and
+ SHT85 humidity and temperature sensors.
This driver can also be built as a module. If so, the module
will be called sht3x.
diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c
index f36c0229328f..08306ccb6d0b 100644
--- a/drivers/hwmon/sht3x.c
+++ b/drivers/hwmon/sht3x.c
@@ -933,6 +933,7 @@ static int sht3x_probe(struct i2c_client *client)
static const struct i2c_device_id sht3x_ids[] = {
{"sht3x", sht3x},
{"sts3x", sts3x},
+ {"sht85", sht3x},
{}
};
--
2.25.1
reply other threads:[~2025-12-11 18:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251211185842.66084-1-apokusinski01@gmail.com \
--to=apokusinski01@gmail.com \
--cc=corbet@lwn.net \
--cc=jdelvare@suse.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).