linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] iio: adc: ad4000: Add SPI offload support
@ 2025-03-27 21:24 Marcelo Schmitt
  2025-03-27 21:24 ` [PATCH v4 1/4] iio: adc: ad4000: Add support for SPI offload Marcelo Schmitt
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Marcelo Schmitt @ 2025-03-27 21:24 UTC (permalink / raw)
  To: linux-iio, linux-doc, linux-kernel
  Cc: jic23, lars, Michael.Hennerich, corbet, dlechner,
	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.

Change log v3 -> v4
[IIO driver]
- No longer changing spi_device CS timing parameters.
- SPI offload messages now set only one transfer.
- Degraded offload_xfers from array to single entry field.
- Adjusted ad4000_spi_offload_setup() comment.
- Dropped t_quiet1_ns since it's not used anymore.
- Fixed include order.
- Fixed typo: withouth -> without.
[Documentation]
- Picked up review tags.
- Made phrase about SPI offload engine more generic.
- Complemented SPI offload section with supported wiring configurations.

Change log v2 -> v3
- Dropped patch 1 of v2 series and reverted buffer endianness and SPI transfer
  bits_per_word configurations to the way they were in v1.
- Removed dummy transfer in ad4000_prepare_offload_turbo_message().
- Unified offload message preparation.
- Removed spi->cs_hold.value to use cs_inactive to set CNV/CS high time.
- Adjusted max sample rate for AD7983 and AD7984.
- Dropped AD4000_TCONV_NS and made all time related constants a time_spec field.
- Removed _offl param from _CHANNELS() macros and added a comment about that.
- Commented IIO_BE check in ad4000_prepare_3wire_mode_message().
- Now using predisable to balance with postenable.
- Put spi/offload/consumer.h include right after spi/spi.h.
- Removed unrelated brackets in info_mask_separate_available assignment
- Added blank line after if.

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
- Document why the first buffer sample is invalid when offloading
- Added blank line before a 'simple return'.

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


Marcelo Schmitt (4):
  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 |  91 ++++++++-
 drivers/iio/adc/Kconfig      |   7 +-
 drivers/iio/adc/ad4000.c     | 382 +++++++++++++++++++++++++++++++----
 3 files changed, 444 insertions(+), 36 deletions(-)


base-commit: 9f36acefb2621d980734a5bb7d74e0e24e0af166
prerequisite-patch-id: 3d517eef53a799adba5922815fe684b913e36773
-- 
2.47.2


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

end of thread, other threads:[~2025-04-12 10:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 21:24 [PATCH v4 0/4] iio: adc: ad4000: Add SPI offload support Marcelo Schmitt
2025-03-27 21:24 ` [PATCH v4 1/4] iio: adc: ad4000: Add support for SPI offload Marcelo Schmitt
2025-04-09 17:22   ` David Lechner
2025-04-10 15:08     ` Marcelo Schmitt
2025-04-12 10:28       ` Jonathan Cameron
2025-03-27 21:24 ` [PATCH v4 2/4] Documentation: iio: ad4000: Add new supported parts Marcelo Schmitt
2025-03-27 21:25 ` [PATCH v4 3/4] Documentation: iio: ad4000: Add IIO Device characteristics section Marcelo Schmitt
2025-03-27 21:25 ` [PATCH v4 4/4] Documentation: iio: ad4000: Describe offload support Marcelo Schmitt
2025-04-06  9:26 ` [PATCH v4 0/4] iio: adc: ad4000: Add SPI " Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).