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

Configure Feed

Select the types of activity you want to include in your feed.

hwmon: (sht21) Add support for SHT20, SHT25 chips

All sht2x chips share the same communication protocol so add support for
them.

Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250908-sht2x-v4-2-bc15f68af7de@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Kurt Borja and committed by
Guenter Roeck
a0cce093 94a28f9b

+14 -2
+10
Documentation/hwmon/sht21.rst
··· 3 3 4 4 Supported chips: 5 5 6 + * Sensirion SHT20 7 + 8 + Prefix: 'sht20' 9 + 10 + Addresses scanned: none 11 + 12 + Datasheet: Publicly available at the Sensirion website 13 + 14 + https://www.sensirion.com/file/datasheet_sht20 15 + 6 16 * Sensirion SHT21 7 17 8 18 Prefix: 'sht21'
+2 -2
drivers/hwmon/Kconfig
··· 1930 1930 tristate "Sensiron humidity and temperature sensors. SHT21 and compat." 1931 1931 depends on I2C 1932 1932 help 1933 - If you say yes here you get support for the Sensiron SHT21, SHT25 1934 - humidity and temperature sensors. 1933 + If you say yes here you get support for the Sensiron SHT20, SHT21, 1934 + SHT25 humidity and temperature sensors. 1935 1935 1936 1936 This driver can also be built as a module. If so, the module 1937 1937 will be called sht21.
+2
drivers/hwmon/sht21.c
··· 275 275 276 276 /* Device ID table */ 277 277 static const struct i2c_device_id sht21_id[] = { 278 + { "sht20" }, 278 279 { "sht21" }, 280 + { "sht25" }, 279 281 { } 280 282 }; 281 283 MODULE_DEVICE_TABLE(i2c, sht21_id);