From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Jonathan Cameron <jic23@cam.ac.uk>, linux-iio@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Subject: Help with fitting unusual devices into IIO framework
Date: Mon, 15 Jul 2013 21:54:02 +0000 [thread overview]
Message-ID: <51E46F7A.9020400@cogentembedded.com> (raw)
Hello.
Recently I have posted a driver for drivers/misc/ driving a pair of
devices: Renesas R-Car Gyro-ADC and speed-pulse interfaces [1]. Arnd
Bergmann, one of the maintainers told me that such driver would fit
better into the IIO infrastructure. I have studied this infrastructure
for some time and only found in it a place for the Gyro-ADC interface.
Let me describe the devices to be driven in some detail. Gyro-ADC
i/f is an interface to multichannel serial ADC (of 3 certain models)
which can also calculate and average of each 8 samples and sum up 10 of
these average values. Speed-pulse interface can count PWM-type input
signal pulses and period between them. Though being two separate
devices, these two have to be driven together because of the shared
start/stop register (located in Gyro-ADC i/f still) and the clock with
1.25 ms period supplied from the Gyro-ADC i/f to the speed-pulse i/f;
at the same time speed-pulse i/f generates interrupt with 100 ms period
to be used by both interfaces.
At this time, only speed-pulse interface support is required,
Gyro-ADC can be largely ignored (though it has to be initialized).
Perhaps we could add a new I/O channel type for speed-pulse i/f? What's
your thoughts?
[1] marc.info/?l=linux-kernel&m\x137367311823027
WBR, Sergei
next reply other threads:[~2013-07-15 21:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-15 21:54 Sergei Shtylyov [this message]
2013-07-16 8:31 ` Help with fitting unusual devices into IIO framework Jonathan Cameron
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=51E46F7A.9020400@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=linux-sh@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 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).