From: alfred steele <alfred.jaquez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Jonathan Cameron <jic23-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
LM Sensors <lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org>
Subject: Re: Use the Linux I2C subsystem for a two wire interface protocol
Date: Tue, 14 Jul 2009 15:58:03 -0500 [thread overview]
Message-ID: <528f13590907141358w17869b6fq450bf223e4f54687@mail.gmail.com> (raw)
In-Reply-To: <4A5CB908.4060404-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
Hi Jonathan,
Thanks!
> Worth noting at this point that there is already a driver for this chip
> in mainline (sht15 under hwmon - I've copied this to the lm-sensors where
> that driver has previously been discussed).
Oh ok, so its only in 2.6.30.So i believe i just need to adapt it to
the GPIOs used on my platform. Would it be sufficient to just populate
the GPIO no.s in the platform dev structure as the probe and remove
routine would still remain the same for SHT1x devices
> First thing to note is that this device is in no way using an i2c type
> comms protocol. I'd be somewhat surprised if any i2c controllers are
> generic enough to talk to it. The start condition is non standard,
I understand that. I meant the gpio bitbanging interface.
> it uses a 3 bit address (with only 000) supported, and it also has a
> fairly hideous means of indicating that the sampling process
> has finished. Basically you'd have more luck using the gpio's directly
> than through anything to do with i2c.
But i am just pondering over the fact that if they have a bitbanging
gpio interface in the i2c subsystem, why should i not be able to just
pass the protocol header as a payload(void *data) to the interface and
design the user space driver which implements SHT11 specific
start/stop transmission sequence. Please correct me if i am wrong. I
am not sure about the "end of sampling" indication though. I am still
going through the data sheet. To sum it up, the intention is code
reusablity in the sense that if we move to a different part which sits
on the I2c bus, we need not have to modify the kernel driver, just
keep the complexity in the userspace.
Thanks,
Alfred.
next prev parent reply other threads:[~2009-07-14 20:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 16:25 Use the Linux I2C subsystem for a two wire interface protocol alfred steele
[not found] ` <528f13590907140925h7aa36452o60da32d3bf941241-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-14 16:57 ` Jonathan Cameron
[not found] ` <4A5CB908.4060404-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-14 20:58 ` alfred steele [this message]
[not found] ` <528f13590907141358w17869b6fq450bf223e4f54687-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15 5:41 ` [lm-sensors] " Michael Lawnick
[not found] ` <4A5D6C0A.7030903-Mmb7MZpHnFY@public.gmane.org>
2009-07-15 14:22 ` alfred steele
[not found] ` <528f13590907150722q2a91139bve72d65cbd555b8e9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15 14:43 ` Jonathan Cameron
[not found] ` <4A5DEB12.3020602-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-15 15:46 ` alfred steele
[not found] ` <528f13590907150846o7f4e41daw4cd6e37ff3afef70-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15 15:54 ` Mark Brown
2009-07-15 17:32 ` alfred steele
[not found] ` <528f13590907151032y30ae62beo486d4e1056219983-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15 18:31 ` Jonathan Cameron
[not found] ` <4A5E206F.8000001-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-16 16:13 ` alfred steele
[not found] ` <528f13590907160913n73dcb4fcuf09f4946d7578793-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-16 16:29 ` alfred steele
[not found] ` <528f13590907160929r1385c99el6c1ed16ca1b592d2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-16 18:51 ` Jonathan Cameron
[not found] ` <4A5F76A8.8080001-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-17 21:21 ` alfred steele
[not found] ` <528f13590907171421m26bc67ecg8d0334d20365406f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-20 6:25 ` alfred steele
2009-07-21 11:57 ` J.I. 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=528f13590907141358w17869b6fq450bf223e4f54687@mail.gmail.com \
--to=alfred.jaquez-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=jic23-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.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).