All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Looijmans <mike.looijmans@topic.nl>
To: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: "Generic" MMIO ADC
Date: Fri, 30 Jun 2017 10:44:42 +0200	[thread overview]
Message-ID: <b60def9a-45dc-bf97-e059-abbe105648b2@topic.nl> (raw)

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




             reply	other threads:[~2017-06-30 13:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30  8:44 Mike Looijmans [this message]
2017-06-30 13:53 ` "Generic" MMIO ADC 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b60def9a-45dc-bf97-e059-abbe105648b2@topic.nl \
    --to=mike.looijmans@topic.nl \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.