Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v2 0/5] iio: adc: ad4000: Add SPI offload support
@ 2025-03-19 14:56 Marcelo Schmitt
  2025-03-19 14:57 ` [PATCH v2 1/5] iio: adc: ad400: Set transfer bits_per_word to have data in CPU endianness Marcelo Schmitt
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Marcelo Schmitt @ 2025-03-19 14:56 UTC (permalink / raw)
  To: linux-iio, linux-doc, linux-kernel
  Cc: jic23, lars, Michael.Hennerich, corbet, marcelo.schmitt1

This patch series extends the ad4000 driver to support SPI offloading.
In addition to that, ad4000 IIO documentation is expanded to:
- list PulSAR parts supported by the ad4000 driver.
- describe some characteristics of AD4000 IIO device.
- describe changes when SPI offload is being used.

v2 changes were tested with ADAQ4003 on CoraZ7 setup running Linux built from
IIO testing branch.

Link to v1: https://lore.kernel.org/linux-iio/cover.1741970538.git.marcelo.schmitt@analog.com/

Change log v1 -> v2
- Fixed passing inappropriate pointer instead of ret to dev_err_probe().
- [new patch] Set transfer bits_per_word to have data in CPU endianness.
- Set iio_dev num_channels close to where channels is set.
- Complement offload message comment about first sample being invalid.
- Documented why the first buffer sample is invalid when offloading.
- Added blank line before a 'simple return'. 

Instead of changing bits_per_word according to buffer endianness, I set
bits_per_word for other SPI transfers and updated IIO channels to always use CPU
endianness (the new patch). With that, bits_per_word no longer needs be updated
according to buffer endianness or, in other words, buffer endianness is no
longer related to bits_per_word.


Marcelo Schmitt (5):
  iio: adc: ad400: Set transfer bits_per_word to have data in CPU
    endianness
  iio: adc: ad4000: Add support for SPI offload
  Documentation: iio: ad4000: Add new supported parts
  Documentation: iio: ad4000: Add IIO Device characteristics section
  Documentation: iio: ad4000: Describe offload support

 Documentation/iio/ad4000.rst |  86 +++++-
 drivers/iio/adc/Kconfig      |   7 +-
 drivers/iio/adc/ad4000.c     | 509 +++++++++++++++++++++++++++++------
 3 files changed, 512 insertions(+), 90 deletions(-)


base-commit: af94f401e26f686f7391ce79b38a6129417c22dc
prerequisite-patch-id: 3d517eef53a799adba5922815fe684b913e36773
-- 
2.47.2


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-03-21 20:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 14:56 [PATCH v2 0/5] iio: adc: ad4000: Add SPI offload support Marcelo Schmitt
2025-03-19 14:57 ` [PATCH v2 1/5] iio: adc: ad400: Set transfer bits_per_word to have data in CPU endianness Marcelo Schmitt
2025-03-20 20:43   ` David Lechner
2025-03-21 19:07     ` Marcelo Schmitt
2025-03-19 14:57 ` [PATCH v2 2/5] iio: adc: ad4000: Add support for SPI offload Marcelo Schmitt
2025-03-20 20:47   ` David Lechner
2025-03-21 19:54     ` Marcelo Schmitt
2025-03-21 20:11       ` David Lechner
2025-03-19 14:57 ` [PATCH v2 3/5] Documentation: iio: ad4000: Add new supported parts Marcelo Schmitt
2025-03-20 20:47   ` David Lechner
2025-03-19 14:57 ` [PATCH v2 4/5] Documentation: iio: ad4000: Add IIO Device characteristics section Marcelo Schmitt
2025-03-20 20:47   ` David Lechner
2025-03-19 14:58 ` [PATCH v2 5/5] Documentation: iio: ad4000: Describe offload support Marcelo Schmitt
2025-03-20 20:48   ` David Lechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox