mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
94a28f9ba2
commit
a0cce09368
|
|
@ -3,6 +3,16 @@ Kernel driver sht21
|
||||||
|
|
||||||
Supported chips:
|
Supported chips:
|
||||||
|
|
||||||
|
* Sensirion SHT20
|
||||||
|
|
||||||
|
Prefix: 'sht20'
|
||||||
|
|
||||||
|
Addresses scanned: none
|
||||||
|
|
||||||
|
Datasheet: Publicly available at the Sensirion website
|
||||||
|
|
||||||
|
https://www.sensirion.com/file/datasheet_sht20
|
||||||
|
|
||||||
* Sensirion SHT21
|
* Sensirion SHT21
|
||||||
|
|
||||||
Prefix: 'sht21'
|
Prefix: 'sht21'
|
||||||
|
|
|
||||||
|
|
@ -1930,8 +1930,8 @@ config SENSORS_SHT21
|
||||||
tristate "Sensiron humidity and temperature sensors. SHT21 and compat."
|
tristate "Sensiron humidity and temperature sensors. SHT21 and compat."
|
||||||
depends on I2C
|
depends on I2C
|
||||||
help
|
help
|
||||||
If you say yes here you get support for the Sensiron SHT21, SHT25
|
If you say yes here you get support for the Sensiron SHT20, SHT21,
|
||||||
humidity and temperature sensors.
|
SHT25 humidity and temperature sensors.
|
||||||
|
|
||||||
This driver can also be built as a module. If so, the module
|
This driver can also be built as a module. If so, the module
|
||||||
will be called sht21.
|
will be called sht21.
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,9 @@ static int sht21_probe(struct i2c_client *client)
|
||||||
|
|
||||||
/* Device ID table */
|
/* Device ID table */
|
||||||
static const struct i2c_device_id sht21_id[] = {
|
static const struct i2c_device_id sht21_id[] = {
|
||||||
|
{ "sht20" },
|
||||||
{ "sht21" },
|
{ "sht21" },
|
||||||
|
{ "sht25" },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, sht21_id);
|
MODULE_DEVICE_TABLE(i2c, sht21_id);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue