linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Add DMA support for ti_am335x_adc driver
@ 2016-10-05  9:04 Mugunthan V N
  2016-10-05  9:04 ` [PATCH v3 1/4] mfd: ti_am335x_tscadc: store physical address Mugunthan V N
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Mugunthan V N @ 2016-10-05  9:04 UTC (permalink / raw)
  To: linux-iio
  Cc: Tony Lindgren, Rob Herring, Mark Rutland, Russell King,
	Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Lee Jones, Vignesh R, Andrew F . Davis,
	linux-omap, devicetree, linux-arm-kernel, linux-kernel,
	Sekhar Nori, Peter Ujfalusi, John Syne, Mugunthan V N

The ADC has a 64 word depth fifo length which holds the ADC data
till the CPU reads. So when a user program needs a large ADC data
to operate on, then it has to do multiple reads to get its
buffer. Currently if the application asks for 4 samples per
channel with all 8 channels are enabled, kernel can provide only
3 samples per channel when all 8 channels are enabled (logs at
[1]). So with DMA support user can request for large number of
samples at a time (logs at [1]).

Tested the patch on AM437x-gp-evm and AM335x Boneblack with the
patch [2] to enable ADC and pushed a branch for testing [3]

Changes from v2:
* Fixed an issue on handling of error return from dma_request_chan().

Changes from Initial version:
* Changed DMA api from dma_request_slave_channel_compat() to
  dma_request_chan()
* Changed variable names to have more clear information as per
  comments from Peter.

[1] - http://pastebin.ubuntu.com/23278405/
[2] - http://pastebin.ubuntu.com/23211494/
[3] - git://git.ti.com/~mugunthanvnm/ti-linux-kernel/linux.git iio-dma-v2

Mugunthan V N (4):
  mfd: ti_am335x_tscadc: store physical address
  drivers: iio: ti_am335x_adc: add dma support
  ARM: dts: am33xx: add DMA properties for tscadc
  ARM: dts: am4372: add DMA properties for tscadc

 arch/arm/boot/dts/am33xx.dtsi        |   2 +
 arch/arm/boot/dts/am4372.dtsi        |   2 +
 drivers/iio/adc/ti_am335x_adc.c      | 148 ++++++++++++++++++++++++++++++++++-
 drivers/mfd/ti_am335x_tscadc.c       |   1 +
 include/linux/mfd/ti_am335x_tscadc.h |   8 ++
 5 files changed, 158 insertions(+), 3 deletions(-)

-- 
2.10.0.372.g6fe1b14

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

end of thread, other threads:[~2016-11-09 22:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05  9:04 [PATCH v3 0/4] Add DMA support for ti_am335x_adc driver Mugunthan V N
2016-10-05  9:04 ` [PATCH v3 1/4] mfd: ti_am335x_tscadc: store physical address Mugunthan V N
2016-10-05  9:04 ` [PATCH v3 2/4] drivers: iio: ti_am335x_adc: add dma support Mugunthan V N
2016-10-05  9:26   ` Peter Ujfalusi
2016-11-05 17:33     ` Jonathan Cameron
2016-10-09  8:30   ` Jonathan Cameron
2016-10-19  8:52     ` Mugunthan V N
2016-10-22 17:47       ` Jonathan Cameron
2016-10-05  9:04 ` [PATCH v3 3/4] ARM: dts: am33xx: add DMA properties for tscadc Mugunthan V N
2016-10-09  8:34   ` Jonathan Cameron
2016-11-05 17:35   ` Jonathan Cameron
2016-11-09 22:23     ` Tony Lindgren
2016-10-05  9:04 ` [PATCH v3 4/4] ARM: dts: am4372: " Mugunthan V N

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).