mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marcelo Schmitt <marcelo.schmitt@analog.com>
To: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux@analog.com>
Cc: <jic23@kernel.org>, <Michael.Hennerich@analog.com>,
	<nuno.sa@analog.com>, <eblanc@baylibre.com>,
	<dlechner@baylibre.com>, <andy@kernel.org>, <robh@kernel.org>,
	<krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<olivier.moysan@foss.st.com>, <marcelo.schmitt1@gmail.com>
Subject: [PATCH v1 0/5] Add support for ADA4355
Date: Wed, 18 Nov 2026 10:02:53 -0300	[thread overview]
Message-ID: <cover.1795003864.git.marcelo.schmitt@analog.com> (raw)

ADA4355 (and ADA4356) are programmable transimpedance, current to bits receivers.
ADA4356 main difference from ADA4355 is the set of configurable transimpedance
(Tz) options which result in different scaling to miliampere units.

ADA4355 is partially similar to AD9467 in that both chips contain high
performance ADCs and output data through pairs of LVDS data output pins. Though,
ADA4355 is also different from AD9467 such that squeezing ADA4355 support into
the same device driver would probably lead to a lot of rework.

According to LLM, AD9467 vs ADA4355 main differences are:

┌───────────────┬────────────────────────────────────┬────────────────────────────────────────────┐
│               │               AD9467               │                  ADA4355                   │
├───────────────┼────────────────────────────────────┼────────────────────────────────────────────┤
│               │ A standalone 16-bit IF-sampling    │ A complete current-in to bits µModule:     │
│ Type          │ ADC                                │ TIA, LPF, ADC driver (FDA), 14-bit ADC,    │
│               │                                    │ LDO and all passives                       │
├───────────────┼────────────────────────────────────┼────────────────────────────────────────────┤
│               │ Differential voltage, 2.0–2.5 V    │ Single-ended current. Linear range is      │
│ Input         │ p-p programmable, 530 Ω / 3.5 pF,  │ −80…+800 µA at TZ=2 kΩ (scales ÷10 per     │
│               │ 900 MHz full-power BW              │ gain step), survives 40 mA, 2 pF           │
├───────────────┼────────────────────────────────────┼────────────────────────────────────────────┤
│               │ SPI: reg 0x18 full-scale (2.0–2.5  │ Pins only: GSEL1/GSEL0 pick TZ (01=2 k,    │
│ Gain/range    │ V p-p), 0x0F external VREF, 0x2C   │ 10=20 k, 00=200 k, 11 reserved), FSEL      │
│ control       │ AC/DC coupling, 0x36/0x107 buffer  │ picks the LPF (100 MHz / 1 MHz). They have │
│               │ current                            │  no pull resistors and must be driven      │
├───────────────┼────────────────────────────────────┼────────────────────────────────────────────┤
│ Bandwidth     │ 900 MHz                            │ TIA 43 / 18 / 1.6 MHz (per TZ), then LPF   │
│               │                                    │ 100 or 1 MHz                               │
├───────────────┼────────────────────────────────────┼────────────────────────────────────────────┤
│               │                                    │ Offset: 0 µA gives +0.825 V at the ADC,    │
│ Transfer      │ Bipolar around mid-scale           │ and full scale is 1.65 V/TZ toward −0.825  │
│ function      │                                    │ V. In practice the signal is unipolar and  │
│               │                                    │ inverted                                   │
├───────────────┼────────────────────────────────────┼────────────────────────────────────────────┤
│ Applications  │ Radar, wireless, instrumentation   │ ToF/LiDAR, OTDR, mass spec, optical        │
│               │                                    │ sensing (10 ns pulses)                     │
└───────────────┴────────────────────────────────────┴────────────────────────────────────────────┘

The most relevant differences at SPI and register map level are:

┌────────────────┬───────────────────────┬───────────────────────────────────────────────────────┐
│                │        AD9467         │                        ADA4355                        │
├────────────────┼───────────────────────┼───────────────────────────────────────────────────────┤
│ Chip ID        │ 0x50, plus a speed    │ 0x8B                                                  │
│                │ grade in 0x02         │                                                       │
├────────────────┼───────────────────────┼───────────────────────────────────────────────────────┤
│ Start-up       │ Nothing mandatory     │ Mandatory sequence: 0x00=0x00, 0x05=0x02, 0x22=0x03,  │
│                │                       │ 0x05=0x31                                             │
├────────────────┼───────────────────────┼───────────────────────────────────────────────────────┤
│ Device index   │ —                     │ Selects data channel, DCO and FCO                     │
│ (0x05)         │                       │                                                       │
├────────────────┼───────────────────────┼───────────────────────────────────────────────────────┤
│ Test modes     │ Modes 0000–0111 only, │ Adds 1000 user pattern (with PATT1/PATT2 regs         │
│ (0x0D)         │  no user pattern      │ 0x19–0x1C), 1-/0-bit toggle, 1× sync, one-bit-high    │
│                │                       │ and mixed-frequency modes                             │
├────────────────┼───────────────────────┼───────────────────────────────────────────────────────┤
│ Analog-side    │ VREF, coupling,       │ None. The datasheet says the registers "configure and │
│ registers      │ buffer current,       │  control the ADC only"                                │
│                │ offset (0x10)         │                                                       │
├────────────────┼───────────────────────┼───────────────────────────────────────────────────────┤
│                │                       │ DCS on/off in 0x09. Digital reset (0x08 = 0x03 then   │
│ Other          │ —                     │ 0x00) is required if the clock was not stable at      │
│                │                       │ power-up                                              │
└────────────────┴───────────────────────┴───────────────────────────────────────────────────────┘

This patch series was assisted by LLM and introduces some code duplication from
AD9467 into ADA4355. Though, my estimation is that this is going to keep things
easier to maintain than adding ADA4355 support into ad9467.c.

With best regards,
Marcelo


Marcelo Schmitt (5):
  iio: backend: Add calibration source interface
  dt-bindings: iio: adc: Add AXI ADA4355 IP CORE
  iio: adc: adi-axi-adc: Support AXI ADA4355 IP core
  dt-bindings: iio: adc: Add ADA4355
  iio: adc: Add support for ADA4355 and similar ADCs

 .../bindings/iio/adc/adi,ada4355.yaml         | 104 +++
 .../bindings/iio/adc/adi,axi-adc.yaml         |   1 +
 MAINTAINERS                                   |   8 +
 drivers/iio/adc/Kconfig                       |  11 +
 drivers/iio/adc/Makefile                      |   1 +
 drivers/iio/adc/ada4355.c                     | 798 ++++++++++++++++++
 drivers/iio/adc/adi-axi-adc.c                 |  66 ++
 drivers/iio/industrialio-backend.c            |  23 +
 include/linux/iio/backend.h                   |  22 +
 9 files changed, 1034 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ada4355.yaml
 create mode 100644 drivers/iio/adc/ada4355.c


base-commit: 94921bc9eb214f838481faa847cda5c42e486013
-- 
2.39.2


             reply	other threads:[~2026-11-18 13:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 13:02 Marcelo Schmitt [this message]
2026-11-18 13:03 ` [PATCH v1 1/5] iio: backend: Add calibration source interface Marcelo Schmitt
2026-11-18 13:03 ` [PATCH v1 2/5] dt-bindings: iio: adc: Add AXI ADA4355 IP CORE Marcelo Schmitt
2026-11-18 13:03 ` [PATCH v1 3/5] iio: adc: adi-axi-adc: Support AXI ADA4355 IP core Marcelo Schmitt
2026-11-18 13:04 ` [PATCH v1 4/5] dt-bindings: iio: adc: Add ADA4355 Marcelo Schmitt
2026-11-18 13:04 ` [PATCH v1 5/5] iio: adc: Add support for ADA4355 and similar ADCs Marcelo Schmitt

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=cover.1795003864.git.marcelo.schmitt@analog.com \
    --to=marcelo.schmitt@analog.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=eblanc@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=marcelo.schmitt1@gmail.com \
    --cc=nuno.sa@analog.com \
    --cc=olivier.moysan@foss.st.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®