From: Trevor Gamblin <tgamblin@baylibre.com>
To: "Michael Hennerich" <michael.hennerich@analog.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"David Lechner" <dlechner@baylibre.com>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Jonathan Cameron" <jic23@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org,
Trevor Gamblin <tgamblin@baylibre.com>
Subject: [PATCH v2 0/2] iio: adc: ad4695: add oversampling support
Date: Thu, 09 Jan 2025 13:47:22 -0500 [thread overview]
Message-ID: <20250109-ad4695-oversampling-v2-0-a46ac487082c@baylibre.com> (raw)
Add driver logic and documentation for the oversampling feature of the
AD469x parts from Analog Devices. For now, this only works with offload
support, and takes advantage of that mode's higher performance to make
oversampling possible on multiple channels with varying sampling
frequencies. Some significant rework of the driver had to be done in
order to conditionally support this feature, including use of
iio_scan_types to help determine the appropriate spi message
configurations depending on oversampling ratio.
This series depends on David's recent SPI engine changes for adding
offload support:
https://lore.kernel.org/all/20241211-dlech-mainline-spi-engine-offload-2-v6-0-88ee574d5d03@baylibre.com/
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
Changes in v2:
- Removed section in cover letter about correct implementation
- Simplify math of ad4695_get_calibbias() in ad4695.c, based on
Jonathan and David's suggestions
- Link to v1: https://lore.kernel.org/r/20241217-ad4695-oversampling-v1-0-0b045d835dac@baylibre.com
---
Trevor Gamblin (2):
iio: adc: ad4695: add offload-based oversampling support
doc: iio: ad4695: describe oversampling support
Documentation/iio/ad4695.rst | 36 ++++-
drivers/iio/adc/ad4695.c | 333 +++++++++++++++++++++++++++++++++++++++----
2 files changed, 338 insertions(+), 31 deletions(-)
---
base-commit: 0c6c3bf84f541fb4ec7097baf9eac10136f98c62
change-id: 20241217-ad4695-oversampling-2946fbe3aff3
Best regards,
--
Trevor Gamblin <tgamblin@baylibre.com>
next reply other threads:[~2025-01-09 18:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-09 18:47 Trevor Gamblin [this message]
2025-01-09 18:47 ` [PATCH v2 1/2] iio: adc: ad4695: add offload-based oversampling support Trevor Gamblin
2025-01-12 15:31 ` Jonathan Cameron
2025-01-13 14:35 ` Nuno Sá
2025-01-13 16:49 ` Trevor Gamblin
2025-02-10 19:03 ` Jonathan Cameron
2025-02-10 20:41 ` Trevor Gamblin
2025-01-09 18:47 ` [PATCH v2 2/2] doc: iio: ad4695: describe " Trevor Gamblin
2025-02-10 20:51 ` [PATCH v2 0/2] iio: adc: ad4695: add " David Lechner
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=20250109-ad4695-oversampling-v2-0-a46ac487082c@baylibre.com \
--to=tgamblin@baylibre.com \
--cc=corbet@lwn.net \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-doc@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=nuno.sa@analog.com \
/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