Skip to contentSkip to conversation

iio: adc: ad7405: Add ADuM7801/7802/7811/7812 support

PATCH Applied Pop Ioan Daniel 3 participants 5 messages Nov 6 – Nov 7

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v3 cover iio: adc: ad7405: Add ADuM7801/7802/7811/7812 support

This series adds support for the ADuM7801, ADuM7802, ADuM7811 and ADuM7812 isolated second-order sigma-delta modulators to the ad7405 driver.

The parts are compatible with the existing ADuM7701/7702 handling and differ in input full scale and maximum master clock frequency:
- ADuM7801/7811: +/-320 mV full scale
- ADuM7802/7812: +/-64 mV full scale
- ADuM7801/7802: master clock up to 25 MHz
- ADuM7811/7812: master clock up to 50 MHz

Pop Ioan Daniel (2):
dt-bindings: iio: adc: ad7405: Add ADuM7801/7802/7811/7812 support
iio: adc: ad7405: Add support for ADuM7801/7802/7811/7812

 .../bindings/iio/adc/adi,ad7405.yaml          | 25 +++++++++++++----
 drivers/iio/adc/Kconfig                       | 14 ++++++++--
 drivers/iio/adc/ad7405.c                      | 28 +++++++++++++++++--
 3 files changed, 57 insertions(+), 10 deletions(-)

base-commit: 20ce8ef9c9e04cd6c5ae0422e251a9b5936c6b7c

Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/2 dt-bindings: iio: adc: ad7405: Add ADuM7801/7802/7811/7812 support

Add compatible strings for the ADuM7801, ADuM7802, ADuM7811 and ADuM7812 16-bit isolated sigma-delta modulators.

The ADuM7801 and ADuM7811 have the same ±320 mV full-scale input range as the ADuM7701, and the ADuM7802 and ADuM7812 have the same ±64 mV full-scale input range as the ADuM7702. Apart from that, software handles them the same way. The ADuM780x support a master clock of up to 25 MHz and the ADuM781x of up to 50 MHz, which needs no special handling. Use the ADuM7701 and ADuM7702 as fallback compatibles.

---
changes in v3:
- none

 .../bindings/iio/adc/adi,ad7405.yaml          | 25 +++++++++++++++----
 1 file changed, 20 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/iio/adc/adi,ad7405.yaml +20 -5
index 57f0970257050..41eef107e9f0d 100644
@@ -20,14 +20,29 @@ description: |
   https://www.analog.com/media/en/technical-documentation/data-sheets/adum7701.pdf
   https://www.analog.com/media/en/technical-documentation/data-sheets/adum7702.pdf
   https://www.analog.com/media/en/technical-documentation/data-sheets/ADuM7703.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adum7801.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adum7802.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adum7811.pdf
+  https://www.analog.com/media/en/technical-documentation/data-sheets/adum7812.pdf
 
 properties:
   compatible:
-    enum:
-      - adi,ad7405
-      - adi,adum7701
-      - adi,adum7702
-      - adi,adum7703
+    oneOf:
+      - enum:
+          - adi,ad7405
+          - adi,adum7701
+          - adi,adum7702
+          - adi,adum7703
+      - items:
+          - enum:
+              - adi,adum7801
+              - adi,adum7811
+          - const: adi,adum7701
+      - items:
+          - enum:
+              - adi,adum7802
+              - adi,adum7812
+          - const: adi,adum7702
 
   clocks:
     maxItems: 1
Signature · 1 line
2.34.1
#3 lore raw

PATCH v3 2/2 iio: adc: ad7405: Add support for ADuM7801/7802/7811/7812

In reply to Pop Ioan Daniel

Add a chip information structure and a device tree match table entry for each of the ADuM7801, ADuM7802, ADuM7811 and ADuM7812. These parts are handled the same way as the existing ADuM770x devices and differ only in their full-scale input range: ±320 mV for the ADuM7801 and ADuM7811, and ±64 mV for the ADuM7802 and ADuM7812.

The device tree binding lists the ADuM7701 and ADuM7702 as fallback compatibles, so the driver can handle these parts through the fallback alone. The dedicated entries are added so that the IIO device reports the real part name instead of the name of the fallback part.

Rework the Kconfig help text to list one supported part per line, so that new parts can be added without rewrapping the text, and make the prompt generic instead of naming only the AD7405.

---
changes in v3:
- use the same description in the Kconfig prompt, the top comment and MODULE_DESCRIPTION()

 drivers/iio/adc/Kconfig  | 14 +++++++++++---
 drivers/iio/adc/ad7405.c | 28 ++++++++++++++++++++++++++--
 2 files changed, 37 insertions(+), 5 deletions(-)
drivers/iio/adc/Kconfig +11 -3
index f8456c8039883..bdcb1f5c9a218 100644
@@ -355,11 +355,19 @@ config AD7380
 	  called ad7380.
 
 config AD7405
-	tristate "Analog Devices AD7405 ADC Driver"
+	tristate "Analog Devices AD7405 and similar isolated sigma-delta modulators driver"
 	depends on IIO_BACKEND
 	help
-	  Say yes here to build support for Analog Devices AD7405, ADUM7701,
-	  ADUM7702, ADUM7703 analog to digital converters (ADC).
+	  Say yes here to build support for Analog Devices isolated
+	  sigma-delta modulators:
+	  - AD7405
+	  - ADuM7701
+	  - ADuM7702
+	  - ADuM7703
+	  - ADuM7801
+	  - ADuM7802
+	  - ADuM7811
+	  - ADuM7812
 
 	  To compile this driver as a module, choose M here: the module will be
 	  called ad7405.
drivers/iio/adc/ad7405.c +26 -2
index 0996f48d76f1e..4eaa272a48ae4 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Analog Devices AD7405 driver
+ * Analog Devices AD7405 and similar isolated sigma-delta modulators driver
  *
  * Copyright 2025 Analog Devices Inc.
  */
@@ -158,6 +158,26 @@ static const struct ad7405_chip_info adum7703_chip_info = {
 	.full_scale_mv = 320,
 };
 
+static const struct ad7405_chip_info adum7801_chip_info = {
+	.name = "adum7801",
+	.full_scale_mv = 320,
+};
+
+static const struct ad7405_chip_info adum7802_chip_info = {
+	.name = "adum7802",
+	.full_scale_mv = 64,
+};
+
+static const struct ad7405_chip_info adum7811_chip_info = {
+	.name = "adum7811",
+	.full_scale_mv = 320,
+};
+
+static const struct ad7405_chip_info adum7812_chip_info = {
+	.name = "adum7812",
+	.full_scale_mv = 64,
+};
+
 static const char * const ad7405_power_supplies[] = {
 	"vdd1",	"vdd2",
 };
@@ -232,6 +252,10 @@ static const struct of_device_id ad7405_of_match[] = {
 	{ .compatible = "adi,adum7701", .data = &adum7701_chip_info, },
 	{ .compatible = "adi,adum7702", .data = &adum7702_chip_info, },
 	{ .compatible = "adi,adum7703", .data = &adum7703_chip_info, },
+	{ .compatible = "adi,adum7801", .data = &adum7801_chip_info, },
+	{ .compatible = "adi,adum7802", .data = &adum7802_chip_info, },
+	{ .compatible = "adi,adum7811", .data = &adum7811_chip_info, },
+	{ .compatible = "adi,adum7812", .data = &adum7812_chip_info, },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, ad7405_of_match);
@@ -247,6 +271,6 @@ module_platform_driver(ad7405_driver);
 
 MODULE_AUTHOR("Dragos Bogdan <[email protected]>");
 MODULE_AUTHOR("Pop Ioan Daniel <[email protected]>");
-MODULE_DESCRIPTION("Analog Devices AD7405 driver");
+MODULE_DESCRIPTION("Analog Devices AD7405 and similar isolated sigma-delta modulators driver");
 MODULE_LICENSE("GPL");
 MODULE_IMPORT_NS("IIO_BACKEND");
Signature · 1 line
2.34.1
maintainer Applied
#4 lore raw
In reply to Pop Ioan Daniel
Quoted 10 lines · On Fri, 6 Nov 2026 09:39:35 +0200 Pop Ioan Daniel <[email protected]>…

This series adds support for the ADuM7801, ADuM7802, ADuM7811 and ADuM7812 isolated second-order sigma-delta modulators to the ad7405 driver.

The parts are compatible with the existing ADuM7701/7702 handling and differ in input full scale and maximum master clock frequency:
- ADuM7801/7811: +/-320 mV full scale
- ADuM7802/7812: +/-64 mV full scale
- ADuM7801/7802: master clock up to 25 MHz
- ADuM7811/7812: master clock up to 50 MHz

Applied.

Thanks

Jonathan

Quoted 12 lines

Pop Ioan Daniel (2):
dt-bindings: iio: adc: ad7405: Add ADuM7801/7802/7811/7812 support
iio: adc: ad7405: Add support for ADuM7801/7802/7811/7812

 .../bindings/iio/adc/adi,ad7405.yaml          | 25 +++++++++++++----
 drivers/iio/adc/Kconfig                       | 14 ++++++++--
 drivers/iio/adc/ad7405.c                      | 28 +++++++++++++++++--
 3 files changed, 57 insertions(+), 10 deletions(-)

base-commit: 20ce8ef9c9e04cd6c5ae0422e251a9b5936c6b7c