Skip to content

Add support for ADA4355

Marcelo Schmitt linux-devicetree linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iio: backend: Add calibration source interfacedrivers/iio/industrialio-backend.c include/linux/iio/backend.h+45 -02 replies
2/5dt-bindings: iio: adc: Add AXI ADA4355 IP COREDocumentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml+1 -01 reply
3/5iio: adc: adi-axi-adc: Support AXI ADA4355 IP coredrivers/iio/adc/adi-axi-adc.c+66 -00 replies
4/5dt-bindings: iio: adc: Add ADA4355Documentation/devicetree/bindings/iio/adc/adi,ada4355.yaml MAINTAINERS+111 -03 replies
5/5iio: adc: Add support for ADA4355 and similar ADCsMAINTAINERS drivers/iio/adc/Kconfig drivers/iio/adc/Makefile +1 more+811 -01 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchConor Dooley
1/5
2/5A-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/5] Add support for ADA4355

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

Signature · 1 line
2.39.2