From: "Nuno Sá via B4 Relay" <devnull+nuno.sa.analog.com@kernel.org>
To: devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Guenter Roeck <linux@roeck-us.net>,
Cosmin Tanislav <demonsingur@gmail.com>
Subject: [PATCH 3/3] hwmon: (adt7410): Support adt7422 chip
Date: Wed, 15 Oct 2025 15:52:21 +0100 [thread overview]
Message-ID: <20251015-dev-add-adt7422-v1-3-7cf72d3253ad@analog.com> (raw)
In-Reply-To: <20251015-dev-add-adt7422-v1-0-7cf72d3253ad@analog.com>
From: Nuno Sá <nuno.sa@analog.com>
Add support for the ADT7422 high accuracy digital temperature sensor. It's
identical to the other chips supported in the driver so we just need to
add it to the ID tables.
Co-developed-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
---
drivers/hwmon/Kconfig | 6 +++---
drivers/hwmon/adt7410.c | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 2760feb9f83b..aa783be9b73d 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -175,7 +175,7 @@ config SENSORS_ADT7X10
select REGMAP
help
This module contains common code shared by the ADT7310/ADT7320 and
- ADT7410/ADT7420 temperature monitoring chip drivers.
+ ADT7410/ADT7420/ADT7422 temperature monitoring chip drivers.
If built as a module, the module will be called adt7x10.
@@ -191,12 +191,12 @@ config SENSORS_ADT7310
will be called adt7310.
config SENSORS_ADT7410
- tristate "Analog Devices ADT7410/ADT7420"
+ tristate "Analog Devices ADT7410/ADT7420/ADT7422"
depends on I2C
select SENSORS_ADT7X10
help
If you say yes here you get support for the Analog Devices
- ADT7410 and ADT7420 temperature monitoring chips.
+ ADT7410, ADT7420 and ADT7422 temperature monitoring chips.
This driver can also be built as a module. If so, the module
will be called adt7410.
diff --git a/drivers/hwmon/adt7410.c b/drivers/hwmon/adt7410.c
index 79952866a4db..73b196a78f3a 100644
--- a/drivers/hwmon/adt7410.c
+++ b/drivers/hwmon/adt7410.c
@@ -91,6 +91,7 @@ static int adt7410_i2c_probe(struct i2c_client *client)
static const struct i2c_device_id adt7410_ids[] = {
{ "adt7410" },
{ "adt7420" },
+ { "adt7422" },
{}
};
MODULE_DEVICE_TABLE(i2c, adt7410_ids);
@@ -98,6 +99,7 @@ MODULE_DEVICE_TABLE(i2c, adt7410_ids);
static const struct of_device_id adt7410_of_match[] = {
{ .compatible = "adi,adt7410" },
{ .compatible = "adi,adt7420" },
+ { .compatible = "adi,adt7422" },
{ }
};
MODULE_DEVICE_TABLE(of, adt7410_of_match);
--
2.51.0
next prev parent reply other threads:[~2025-10-15 14:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 14:52 [PATCH 0/3] hwmon: (adt7410): Add ADT7422 support Nuno Sá via B4 Relay
2025-10-15 14:52 ` [PATCH 1/3] dt-bindings: trivial-devices: add ADT7410, ADT7420 and ADT7422 Nuno Sá via B4 Relay
2025-10-16 16:20 ` Conor Dooley
2025-10-16 20:45 ` Guenter Roeck
2025-10-15 14:52 ` [PATCH 2/3] hwmon: (adt7410): Add OF match table Nuno Sá via B4 Relay
2025-10-16 20:45 ` Guenter Roeck
2025-10-15 14:52 ` Nuno Sá via B4 Relay [this message]
2025-10-16 20:46 ` [PATCH 3/3] hwmon: (adt7410): Support adt7422 chip Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251015-dev-add-adt7422-v1-3-7cf72d3253ad@analog.com \
--to=devnull+nuno.sa.analog.com@kernel.org \
--cc=conor+dt@kernel.org \
--cc=demonsingur@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).