Skip to content

Drop old AD7946 and AD7984 device trees#3208

Merged
nunojsa merged 2 commits intoanalogdevicesinc:mainfrom
machschmitt:main-drop-old-AD7946-AD7984
Mar 27, 2026
Merged

Drop old AD7946 and AD7984 device trees#3208
nunojsa merged 2 commits intoanalogdevicesinc:mainfrom
machschmitt:main-drop-old-AD7946-AD7984

Conversation

@machschmitt
Copy link
Copy Markdown
Contributor

PR Description

After we updates to ad7768-1 (#3170), ad4134 (#3194), and ad_sigma_delta (#3196), ad_pulsar will be the only remaining user of legacy SPI Engine. AD7689 is only one part supported by drivers/iio/adc/ad_pulsar.c driver that is not yet fully supported by a different driver. AD7689 is supported both by ad_pulsar.c (ADI only) and ad7949.c (upstream and ADI). Though, we don't support AD7689 with SPI offloading with ad7949.c. So, in practice, zynq-coraz7s-ad7689-ardz.dts will be the only user of legacy SPI Engine since all other devices are going to be using the new stuff.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

The old device tree for AD7946 describes hardware in a way that is
substantially different and incompatible with how we currently describe
AD7946. On top of that, it uses a deprecated device driver compatible
string. We already have a new device tree for AD7946
(zynq-coraz7s-ad7946-pmdz.dts), which better describes AD7946 and uses the
new, upstreamed, device driver for PulSAR and similar ADCs. Drop the old
AD7946 dts in favor of the new one.

Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
The old device tree for AD7984 describes hardware in a way that is
substantially different and incompatible with how we currently describe
AD7984. On top of that, it uses a deprecated device driver compatible
string. We already have a new device tree for AD7984
(zynq-coraz7s-ad7984-pmdz.dts), which better describes AD7984 and uses the
new, upstreamed, device driver for PulSAR and similar ADCs. Drop the old
AD7984 dts in favor of the new one.

Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
@nunojsa
Copy link
Copy Markdown
Collaborator

nunojsa commented Mar 26, 2026

Though, we don't support AD7689 with SPI offloading with ad7949.c. So, in practice, zynq-coraz7s-ad7689-ardz.dts will be the only user of legacy SPI Engine since all other devices are going to be using the new stuff.

Do we have a plan or estimate for when we can add spi offloading to ad7689?

@nunojsa
Copy link
Copy Markdown
Collaborator

nunojsa commented Mar 26, 2026

BTW, why is this a draft? Do wee need some other stuff first merged?

@machschmitt
Copy link
Copy Markdown
Contributor Author

Do we have a plan or estimate for when we can add spi offloading to ad7689?

No. Well, we would need to update ad7949.c to provide offload support. Provided approval and evaluation hardware, I may work on that.

Anyways, this PR doesn't need anything else so yes, officially opening it.

@machschmitt machschmitt marked this pull request as ready for review March 26, 2026 12:51
@nunojsa nunojsa merged commit 6c118b2 into analogdevicesinc:main Mar 27, 2026
24 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants