From: Antoniu Miclaus <antoniu.miclaus@analog.com>
To: "Nuno Sá" <nuno.sa@analog.com>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Antoniu Miclaus" <antoniu.miclaus@analog.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux@analog.com, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] iio: adc: ad4080: add support for AD4886
Date: Mon, 28 Sep 2026 13:48:06 +0300 [thread overview]
Message-ID: <20260928104806.9330-3-antoniu.miclaus@analog.com> (raw)
In-Reply-To: <20260928104806.9330-1-antoniu.miclaus@analog.com>
Add support for the AD4886, a dual-channel, 14-bit, 40 MSPS SAR ADC.
The AD4886 is the dual-channel variant of the AD4086, sharing the same
register map and SPI interface as the rest of the AD4080 family. Like
the AD4885, it uses two independent ADC channels, each with its own SPI
configuration interface, but it has 14-bit resolution and therefore uses
the same maximum LVDS conversion clock count as the AD4086.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
drivers/iio/adc/ad4080.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/iio/adc/ad4080.c b/drivers/iio/adc/ad4080.c
index 4ed82aa42400..19d4d0dfd13a 100644
--- a/drivers/iio/adc/ad4080.c
+++ b/drivers/iio/adc/ad4080.c
@@ -138,6 +138,7 @@
#define AD4883_CHIP_ID 0x005B
#define AD4884_CHIP_ID 0x005C
#define AD4885_CHIP_ID 0x005D
+#define AD4886_CHIP_ID 0x005E
#define AD4080_MAX_CHANNELS 2
@@ -567,6 +568,11 @@ static const struct iio_chan_spec ad4885_channels[] = {
AD4880_CHANNEL_DEFINE(16, 16, 1),
};
+static const struct iio_chan_spec ad4886_channels[] = {
+ AD4880_CHANNEL_DEFINE(14, 16, 0),
+ AD4880_CHANNEL_DEFINE(14, 16, 1),
+};
+
static const struct ad4080_chip_info ad4080_chip_info = {
.name = "ad4080",
.product_id = AD4080_CHIP_ID,
@@ -697,6 +703,16 @@ static const struct ad4080_chip_info ad4885_chip_info = {
.lvds_cnv_clk_cnt_max = 8,
};
+static const struct ad4080_chip_info ad4886_chip_info = {
+ .name = "ad4886",
+ .product_id = AD4886_CHIP_ID,
+ .scale_table = ad4080_scale_table,
+ .num_scales = ARRAY_SIZE(ad4080_scale_table),
+ .num_channels = 2,
+ .channels = ad4886_channels,
+ .lvds_cnv_clk_cnt_max = 4,
+};
+
static int ad4080_setup_channel(struct ad4080_state *st, unsigned int ch)
{
struct device *dev = regmap_get_device(st->regmap[ch]);
@@ -908,6 +924,7 @@ static const struct spi_device_id ad4080_id[] = {
{ .name = "ad4883", .driver_data = (kernel_ulong_t)&ad4883_chip_info },
{ .name = "ad4884", .driver_data = (kernel_ulong_t)&ad4884_chip_info },
{ .name = "ad4885", .driver_data = (kernel_ulong_t)&ad4885_chip_info },
+ { .name = "ad4886", .driver_data = (kernel_ulong_t)&ad4886_chip_info },
{ }
};
MODULE_DEVICE_TABLE(spi, ad4080_id);
@@ -926,6 +943,7 @@ static const struct of_device_id ad4080_of_match[] = {
{ .compatible = "adi,ad4883", &ad4883_chip_info },
{ .compatible = "adi,ad4884", &ad4884_chip_info },
{ .compatible = "adi,ad4885", &ad4885_chip_info },
+ { .compatible = "adi,ad4886", &ad4886_chip_info },
{ }
};
MODULE_DEVICE_TABLE(of, ad4080_of_match);
--
2.43.0
prev parent reply other threads:[~2026-09-28 10:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-28 10:48 [PATCH 0/2] " Antoniu Miclaus
2026-09-28 10:48 ` [PATCH 1/2] dt-bindings: iio: adc: ad4080: add AD4886 support Antoniu Miclaus
2026-09-28 16:35 ` Conor Dooley
2026-09-28 10:48 ` Antoniu Miclaus [this message]
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=20260928104806.9330-3-antoniu.miclaus@analog.com \
--to=antoniu.miclaus@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@analog.com \
--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
all inboxes | Powered by JetHome®