From nobody Wed Aug 26 15:43:00 2026 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42331437117 for ; Mon, 10 Aug 2026 18:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786386841; cv=none; b=jLmmaACsNfZu3xcCyahBwWSlbICgdUV8N3RmDNUiYB4fwkLqbrWe9SDCJ60Hm2EYn5w1/2Z+rJANgpjK73+mQJUQTAf52/V7gjig72zrSJUl5IEDjDohefOLo38oBa6K7+Yu1M4LCr77eiID95Vvsc/HoDSATOSnlhyxrW7DWrM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786386841; c=relaxed/simple; bh=SqcgA4LJuoWFHZgSuIGEdqOlMctmYEWvqDTQVUq2iwI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=gtPBNk2rG3yGtbnxCPjJyUYS1QgHlGnolY1wklhRNHYGFzZUtvSSJh4QjjTs8gp57AuMSLoyY+g6xc2UHtqa7pDu62RWuC2k82QtnE6YoXXuFZFmVPQkS5Kr7ow4kMo+nuh/Xy4v99t1Y1hKTht8xEV3UIWuHj0RZBHa0UktgsM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eKGt0K8q; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eKGt0K8q" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2cf27856f9cso26716655ad.2 for ; Mon, 10 Aug 2026 11:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786386839; x=1786991639; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=MKUjBVCjl00/cCCAjLM5qqAoQDkenE2Pgtyp/CT8tOo=; b=eKGt0K8qslLTv2CxTswmX7IWBsEOGFP1w6JbPl5qyoe02nuDQzfkAubjUHco1quCWW azWRYACTtTzOtUxsNdOK3uMf/XdtG37P17+N7G3TOUbtv7c2XdFl/HX9tNtzoO0BCjFA 0t9wNVtr0sLbuUBu/TjtI+crZ0+nrfTvx4IGB0ZRazaXoIaxvMHCF8Kk+YtKfRGiPxJO GcXCFYKwZR07wRUEq40Kp0SdER+13c4GEok8F63ahCggWlawJDRTWdzCpgN1E9fJfiRQ VAry4QuAZpRuv9chKj++RXpXeRU7TUPQPSb2sB2L8vg+7XHiCzBzrMmJN1TTdLxDAUR3 JA4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786386839; x=1786991639; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=MKUjBVCjl00/cCCAjLM5qqAoQDkenE2Pgtyp/CT8tOo=; b=RQc+AGbdF15LzkDYd47zzgVTOg77Gyw7fC/GyXpN5FmgMnL+68GiKEGutcRprBcVVM WC++AI1MRqmMuPHMmx23nufG/N85LfiKrLGVprPd7tspqxerrHipE0KX2RFyN6XP8dw7 /E3aO9U8OqS4HwiHO7F0sZ8uln2VokSlsNSLM9v9fisVAFsloK7i67NW87ie5jSeDHki Bzq02yx2yhTUkE4MkAgkJ/QVlowOtcX8a7PUSJb0waRO1YvvUUj0t/dvfJ5alD7GfpJX dB/pg9yS/0Gb+GyWTtZktli/auE2vElTuEWXDSApnUvWCgkCu1QX5RLzwG603LZF4aJU KFKQ== X-Forwarded-Encrypted: i=1; AHgh+RqVmLwVsbVh2zuj9FXixR04uMqpboqWUNa80fdiiCx1vGwpilNP21GQyBEnowmMAB6fofub3A1PEcrsphg=@vger.kernel.org X-Gm-Message-State: AOJu0Yyuy0oNaATJBUQj/JCbelwpRmAHgpkwE1zd5qaWnKJ/pQEu4tWY bTVca65eKe05CX9UxXarUMLkHocts/mIFHQ0YwYIBVP4M2HHhGFPsyI= X-Gm-Gg: AR+sD13I5V1F7KqMiWaxh82lJpJKdY56GBbbcOWrHM6wcK+2mOgtkepcwSOsZ76Ani5 zRgukkbmRt0Kma73VP+N8+Ws1ccAeZIzXyfhFPM9GkFK51sH6TwQGTTSbry1GtXbfQNcbotBsq6 Xf7oN8LHuaFhC4N7HFAYvtrJi5S6kfHfdKc5cM7Ps9qigb07gi4m56m658cApYM41FkeIapVVbN TvvAEjX7pJpOf2GNE+YuLmYK2Z+rJWXFVsxjka8oRRWzCjSbnPLGhze9pSROt9eenZa5Ha/VcUH csEXrQtGdi61LeCvD4uN+IUEzwqvR4aD6aw80Xpk6fuPu9Fi0jyh7SpSCc11lMX9UREwi0omZGJ KpzKlxeGtSFOCu1c3AF/CLTvgH/Bb8osVQDC+pNaOOUSQKK1VztT8MDYuJFwkFMM4scdMwrVu/6 kUsqdDPXY5IWkzbkNA9eevY/IoFAYlmKxHgzOZLhKwdVItSzHHbimj6CroZ9hjQiNLhZLkTpfBe L0B4eLeVSFIospzTWEvBW7xdx4pQ9/qvq+x+pM7 X-Received: by 2002:a05:6a21:3392:b0:3c3:9595:57ef with SMTP id adf61e73a8af0-3cb85ffd1cemr50581343637.31.1786386839340; Mon, 10 Aug 2026 11:33:59 -0700 (PDT) Received: from localhost.localdomain ([186.158.238.108]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-315be8a9220sm48209020eec.7.2026.08.10.11.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2026 11:33:58 -0700 (PDT) From: =?UTF-8?q?Nicol=C3=A1s=20Antinori?= To: Jonathan Cameron Cc: =?UTF-8?q?Nicol=C3=A1s=20Antinori?= , Andy Shevchenko , Brigham Campbell , David Lechner , Jori Koolstra , Marcelo Schmitt , =?UTF-8?q?Nuno=20S=C3=A1?= , Shuah Khan , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linux.dev Subject: [PATCH v2] iio: humidity: am2315: add am2320 to i2c_device_id table Date: Mon, 10 Aug 2026 15:32:31 -0300 Message-ID: <20260810183337.451812-1-nico.antinori.7@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=C3=A1s Antinori Reviewed-by: Andy Shevchenko --- v2: - Adapted KConfig text using the suggestions from v1 by Nuno S=C3=A1 and An= dy Shevchenko v1: https://lore.kernel.org/all/20260805183733.1000550-1-nico.antinori.7@gm= ail.com/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 sen= sor" 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[] =3D { { .name =3D "am2315" }, + { .name =3D "am2320" }, { } }; MODULE_DEVICE_TABLE(i2c, am2315_i2c_id); -- 2.47.3