All of lore.kernel.org
 help / color / mirror / Atom feed
* "Generic" MMIO ADC
@ 2017-06-30  8:44 Mike Looijmans
  2017-06-30 13:53   ` Jonathan Cameron
  0 siblings, 1 reply; 17+ messages in thread
From: Mike Looijmans @ 2017-06-30  8:44 UTC (permalink / raw)
  To: linux-iio@vger.kernel.org

I'm writing an IIO driver for a custom IP, which is pretty simple:

- Map the registers to memory and register IRQ routine
- To start acquisition, write a value to the config register
- On interrupt, read data register, push it into queue
- To stop, write another value to config.

Would it be useful to provide this as a generic driver in Linux, so that you 
can provide the config register and data register offsets and values in the 
devicetree? That would make it work on a lot of similar project without 
everyone coding the same thing.

And a related question: Is there a driver that's close to this?


Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail




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

end of thread, other threads:[~2017-07-09  4:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-30  8:44 "Generic" MMIO ADC Mike Looijmans
2017-06-30 13:53 ` Jonathan Cameron
2017-06-30 13:53   ` Jonathan Cameron
2017-06-30 13:59   ` Linus Walleij
2017-06-30 13:59     ` Linus Walleij
2017-06-30 15:33   ` Rob Herring
2017-06-30 15:33     ` Rob Herring
2017-07-03 12:37   ` Mike Looijmans
2017-07-03 12:37     ` Mike Looijmans
2017-07-06 18:22     ` Jonathan Cameron
2017-07-06 18:22       ` Jonathan Cameron
2017-07-06 21:37     ` Linus Walleij
2017-07-06 21:37       ` Linus Walleij
2017-07-07  7:44       ` Jonathan Cameron
2017-07-07  7:44         ` Jonathan Cameron
2017-07-09  4:11         ` Linus Walleij
2017-07-09  4:11           ` Linus Walleij

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.