]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
hwmon: (sht3x) add support for SHT85
authorAntoni Pokusinski <apokusinski01@gmail.com>
Thu, 11 Dec 2025 18:58:42 +0000 (19:58 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 31 Jan 2026 15:38:31 +0000 (07:38 -0800)
SHT85 is a temperature and humidity sensor with the same interface
as SHT3x.

Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com>
Link: https://lore.kernel.org/r/20251211185842.66084-1-apokusinski01@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/sht3x.rst
drivers/hwmon/Kconfig
drivers/hwmon/sht3x.c

index 9585fa7c5a5d87efab9efd1e71bc36a7611b7493..ea1642920295c0757cdd31af062679d77df79f65 100644 (file)
@@ -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.
index 157678b821fc58d27db92f8ca38eeb7f98c20721..d9bac1e3057bae0f0242a685b1c4b62b2e4a701e 100644 (file)
@@ -1983,8 +1983,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.
index f36c0229328fa3f68078454a248cee3391f95f0e..08306ccb6d0befbfe305566a2de2cff2c676b9e7 100644 (file)
@@ -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},
        {}
 };