All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: input: ti_am335x_adc: Add continuous sampling and trigger support round 3
@ 2013-07-26 23:51 Zubair Lutfullah
       [not found] ` <1374882674-18403-1-git-send-email-zubair.lutfullah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2013-07-26 23:51 ` [PATCH 2/2] iio: ti_am335x_adc: Add continuous sampling and trigger support Zubair Lutfullah
  0 siblings, 2 replies; 19+ messages in thread
From: Zubair Lutfullah @ 2013-07-26 23:51 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, linux-kernel, linux-input, gregkh, Russ.Dill

ADC and TSC share an IRQ line. Patch one is simple and adds shared irq support on the TSC side.

The second patch adds continuous sampling support to the am335x_adc driver.

It has been submitted previously. This is round 3.

Previously:
- Submitted as a series of patches and bug fixes.
- The driver would continuously push samples into a buffer exposed to userspace.
- Extra sysfs attributes for selecting continuous mode or one shot mode.
- No trigger functionality.
- Reading from /dev/iio required patching the provided generic_buffer.c iio test application to bypass trigger.
- Only one channel could be read at a time.
- And even then, samples were skipped as the FIFO was read incorrectly.

Now: 
- All bug fixes merged together in one patch.
- Stuck closely to the IIO ABI this time.
- Added trigger support.
- Fixed channel scanning where only one channel could be read into the buffer at a time.
- Now all enabled channels in the scan_elements folder are pushed to the userspace properly without skipping any samples.
- generic_buffer.c test application can read samples without any modification.
- A sysfs trigger starts acquisition.

This has been tested on the Beaglebone Black running the am335x processor.
The patches apply on the iio branch fixes-togreg.

Patil, Rachna (1):
  input: ti_tsc: Enable shared IRQ for TSC

Zubair Lutfullah (1):
  iio: ti_am335x_adc: Add continuous sampling and trigger support

 drivers/iio/adc/ti_am335x_adc.c           |  334 +++++++++++++++++++++++------
 drivers/input/touchscreen/ti_am335x_tsc.c |   18 +-
 include/linux/mfd/ti_am335x_tscadc.h      |   13 +-
 3 files changed, 299 insertions(+), 66 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2013-08-05 22:43 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 23:51 [PATCH 0/2] iio: input: ti_am335x_adc: Add continuous sampling and trigger support round 3 Zubair Lutfullah
     [not found] ` <1374882674-18403-1-git-send-email-zubair.lutfullah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-07-26 23:51   ` [PATCH 1/2] input: ti_tsc: Enable shared IRQ for TSC Zubair Lutfullah
2013-07-26 23:51     ` Zubair Lutfullah
2013-08-04 11:08     ` Jonathan Cameron
2013-08-05 16:12       ` Dmitry Torokhov
     [not found]         ` <20130805161256.GA8794-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2013-08-05 17:02           ` Zubair Lutfullah :
2013-08-05 17:02             ` Zubair Lutfullah :
2013-08-05 17:40             ` Dmitry Torokhov
     [not found]               ` <20130805174031.GA20093-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2013-08-05 19:21                 ` Zubair Lutfullah :
2013-08-05 19:21                   ` Zubair Lutfullah :
2013-08-05 22:42             ` Russ Dill
2013-08-05 22:42               ` Russ Dill
2013-08-05 22:42               ` Russ Dill
2013-07-26 23:51 ` [PATCH 2/2] iio: ti_am335x_adc: Add continuous sampling and trigger support Zubair Lutfullah
     [not found]   ` <1374882674-18403-3-git-send-email-zubair.lutfullah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-08-04 11:05     ` Jonathan Cameron
2013-08-04 11:05       ` Jonathan Cameron
     [not found]       ` <51FE357C.2040401-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-08-04 13:11         ` Zubair Lutfullah :
2013-08-04 13:11           ` Zubair Lutfullah :
     [not found]           ` <51FE8107.4020201@kernel.org>
2013-08-04 15:42             ` Zubair Lutfullah :

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.