[PATCH v2] iio: humidity: am2315: add am2320 to i2c_device_id table
From: Nicolás Antinori
Date: Mon Aug 10 2026 - 14:39:28 EST
The AM2320 is fully compatible with the AM2315 sensor in terms of I2C
communication protocol and measurement conversions.
Add the "am2320" entry to the i2c_device_id table.
Signed-off-by: Nicolás Antinori <nico.antinori.7@xxxxxxxxx>
---
v2:
- Adapted KConfig text using the suggestions from v1 by Nuno Sá and Andy
Shevchenko
v1: https://lore.kernel.org/all/20260805183733.1000550-1-nico.antinori.7@xxxxxxxxx/T/#u
drivers/iio/humidity/Kconfig | 8 +++++---
drivers/iio/humidity/am2315.c | 3 ++-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/humidity/Kconfig b/drivers/iio/humidity/Kconfig
index 54f11f000b6f..10598a0b15bc 100644
--- a/drivers/iio/humidity/Kconfig
+++ b/drivers/iio/humidity/Kconfig
@@ -5,13 +5,15 @@
menu "Humidity sensors"
config AM2315
- tristate "Aosong AM2315 relative humidity and temperature sensor"
+ tristate "Aosong AM2315 and similar relative humidity and temperature sensor"
depends on I2C
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
help
- If you say yes here you get support for the Aosong AM2315
- relative humidity and ambient temperature sensor.
+ If you say yes here you get support for the Aosong relative
+ humidity and ambient temperature sensors:
+ - AM2315
+ - AM2320
This driver can also be built as a module. If so, the module will
be called am2315.
diff --git a/drivers/iio/humidity/am2315.c b/drivers/iio/humidity/am2315.c
index f29baa251f9f..5bce5eec45cc 100644
--- a/drivers/iio/humidity/am2315.c
+++ b/drivers/iio/humidity/am2315.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
- * Aosong AM2315 relative humidity and temperature
+ * Aosong AM2315 and similar relative humidity and temperature
*
* Copyright (c) 2016, Intel Corporation.
*
@@ -251,6 +251,7 @@ static int am2315_probe(struct i2c_client *client)
static const struct i2c_device_id am2315_i2c_id[] = {
{ .name = "am2315" },
+ { .name = "am2320" },
{ }
};
MODULE_DEVICE_TABLE(i2c, am2315_i2c_id);
--
2.47.3