Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (sht3x) add support for SHT85

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>

authored by

Antoni Pokusinski and committed by
Guenter Roeck
1fe80112 af7e57d4

+16 -7
+13 -5
Documentation/hwmon/sht3x.rst
··· 23 23 - https://sensirion.com/media/documents/1DA31AFD/61641F76/Sensirion_Temperature_Sensors_STS3x_Datasheet.pdf 24 24 - https://sensirion.com/media/documents/292A335C/65537BAF/Sensirion_Datasheet_STS32_STS33.pdf 25 25 26 + * Sensirion SHT85 27 + 28 + Prefix: 'sht85' 29 + 30 + Addresses scanned: none 31 + 32 + Datasheet: https://sensirion.com/media/documents/4B40CEF3/640B2346/Sensirion_Humidity_Sensors_SHT85_Datasheet.pdf 33 + 26 34 Author: 27 35 28 36 - David Frey <david.frey@sensirion.com> ··· 39 31 Description 40 32 ----------- 41 33 42 - This driver implements support for the Sensirion SHT3x-DIS and STS3x-DIS 34 + This driver implements support for the Sensirion SHT3x-DIS, STS3x-DIS and SHT85 43 35 series of humidity and temperature sensors. Temperature is measured in degrees 44 36 celsius, relative humidity is expressed as a percentage. In the sysfs interface, 45 37 all values are scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500. 46 38 47 - The device communicates with the I2C protocol. Sensors can have the I2C 48 - addresses 0x44 or 0x45 (0x4a or 0x4b for sts3x), depending on the wiring. See 49 - Documentation/i2c/instantiating-devices.rst for methods to instantiate the 50 - device. 39 + The device communicates with the I2C protocol. SHT3x sensors can have the I2C 40 + addresses 0x44 or 0x45 (0x4a or 0x4b for sts3x), depending on the wiring. SHT85 41 + address is 0x44 and is fixed. See Documentation/i2c/instantiating-devices.rst for 42 + methods to instantiate the device. 51 43 52 44 Even if sht3x sensor supports clock-stretch (blocking mode) and non-stretch 53 45 (non-blocking mode) in single-shot mode, this driver only supports the latter.
+2 -2
drivers/hwmon/Kconfig
··· 1983 1983 depends on I2C 1984 1984 select CRC8 1985 1985 help 1986 - If you say yes here you get support for the Sensiron SHT30 and SHT31 1987 - humidity and temperature sensors. 1986 + If you say yes here you get support for the Sensiron SHT30, SHT31 and 1987 + SHT85 humidity and temperature sensors. 1988 1988 1989 1989 This driver can also be built as a module. If so, the module 1990 1990 will be called sht3x.
+1
drivers/hwmon/sht3x.c
··· 933 933 static const struct i2c_device_id sht3x_ids[] = { 934 934 {"sht3x", sht3x}, 935 935 {"sts3x", sts3x}, 936 + {"sht85", sht3x}, 936 937 {} 937 938 }; 938 939