Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1488235

[PATCH 0/4] Add DMA support for ti_am335x_adc driver

From Mugunthan V N <mugunthanvnm@ti.com>
Newsgroups linux.kernel
Subject [PATCH 0/4] Add DMA support for ti_am335x_adc driver
Date 2016-09-21 18:20 +0200
Message-ID <sjSpA-2NO-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The ADC has a 64 work 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 [2]).

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

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

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      | 160 ++++++++++++++++++++++++++++++++++-
 drivers/mfd/ti_am335x_tscadc.c       |   1 +
 include/linux/mfd/ti_am335x_tscadc.h |   8 ++
 5 files changed, 170 insertions(+), 3 deletions(-)

-- 
2.10.0.129.g35f6318

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] Add DMA support for ti_am335x_adc driver Mugunthan V N <mugunthanvnm@ti.com> - 2016-09-21 18:20 +0200
  [PATCH 2/4] drivers: iio: ti_am335x_adc: add dma support Mugunthan V N <mugunthanvnm@ti.com> - 2016-09-21 18:20 +0200
    Re: [PATCH 2/4] drivers: iio: ti_am335x_adc: add dma support Vignesh R <vigneshr@ti.com> - 2016-09-22 08:30 +0200
      Re: [PATCH 2/4] drivers: iio: ti_am335x_adc: add dma support Mugunthan V N <mugunthanvnm@ti.com> - 2016-09-22 13:00 +0200
        Re: [PATCH 2/4] drivers: iio: ti_am335x_adc: add dma support Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-09-22 13:20 +0200
    Re: [PATCH 2/4] drivers: iio: ti_am335x_adc: add dma support Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-09-22 09:30 +0200
      Re: [PATCH 2/4] drivers: iio: ti_am335x_adc: add dma support Mugunthan V N <mugunthanvnm@ti.com> - 2016-09-22 13:00 +0200
  [PATCH 4/4] ARM: dts: am4372: add DMA properties for tscadc Mugunthan V N <mugunthanvnm@ti.com> - 2016-09-21 18:20 +0200

csiph-web