All of lore.kernel.org
 help / color / mirror / Atom feed
* Use the Linux I2C subsystem for a two wire interface protocol
@ 2009-07-14 16:25 alfred steele
       [not found] ` <528f13590907140925h7aa36452o60da32d3bf941241-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 30+ messages in thread
From: alfred steele @ 2009-07-14 16:25 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi,
I was looking at  the implementation of the i2 dev interface and the
bitbanging interface supplied by kernel v 2.6.24.  What i intend to do
is use the i2c kernel subsystem to write a userspace driver(using the
dev - ioctl interface) for a sensor SHT11 which uses a two wire
interface and a protocol with a packet structure which is different
from traditional I2C.

>From the header files and the API's therein, it looks like the
bitbanging interface should allow any  protocol header to be passed
as a "payload"(void *data) to the linux kernel i2c bitbanging driver
using gpio api.  Please let me know if this is a correct approach if
we intend to write a sensore driver with a proprietary 2 wire
interface protocol.

This would allow us to write  a user-space driver which is more
generic for the sensor and that can be changed to a I2C driver if the
GPIOs are later or tied in hardware to a  dedicated I2C controller. We
are using the mx31 pdk

Please let me know.
-Alfred.

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

end of thread, other threads:[~2009-07-21 11:57 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-07-14 16:57     ` [lm-sensors] Use the Linux I2C subsystem for a two wire Jonathan Cameron
     [not found]     ` <4A5CB908.4060404-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-14 20:58       ` Use the Linux I2C subsystem for a two wire interface protocol alfred steele
2009-07-14 20:58         ` [lm-sensors] Use the Linux I2C subsystem for a two wire alfred steele
     [not found]         ` <528f13590907141358w17869b6fq450bf223e4f54687-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15  5:41           ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol Michael Lawnick
2009-07-15  5:41             ` [lm-sensors] Use the Linux I2C subsystem for a two Michael Lawnick
     [not found]             ` <4A5D6C0A.7030903-Mmb7MZpHnFY@public.gmane.org>
2009-07-15 14:22               ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol alfred steele
2009-07-15 14:22                 ` [lm-sensors] Use the Linux I2C subsystem for a two wire alfred steele
     [not found]                 ` <528f13590907150722q2a91139bve72d65cbd555b8e9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15 14:43                   ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol Jonathan Cameron
2009-07-15 14:43                     ` [lm-sensors] Use the Linux I2C subsystem for a two wire Jonathan Cameron
     [not found]                     ` <4A5DEB12.3020602-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-15 15:46                       ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol alfred steele
2009-07-15 15:46                         ` [lm-sensors] Use the Linux I2C subsystem for a two wire alfred steele
     [not found]                         ` <528f13590907150846o7f4e41daw4cd6e37ff3afef70-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15 15:54                           ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol Mark Brown
2009-07-15 15:54                             ` [lm-sensors] Use the Linux I2C subsystem for a two Mark Brown
2009-07-15 17:32                       ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol alfred steele
     [not found]                         ` <528f13590907151032y30ae62beo486d4e1056219983-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-15 18:31                           ` Jonathan Cameron
2009-07-15 18:31                             ` [lm-sensors] Use the Linux I2C subsystem for a two wire Jonathan Cameron
     [not found]                             ` <4A5E206F.8000001-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-16 16:13                               ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol alfred steele
2009-07-16 16:13                                 ` [lm-sensors] Use the Linux I2C subsystem for a two wire alfred steele
     [not found]                                 ` <528f13590907160913n73dcb4fcuf09f4946d7578793-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-16 16:29                                   ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol alfred steele
2009-07-16 16:29                                     ` [lm-sensors] Use the Linux I2C subsystem for a two wire alfred steele
     [not found]                                     ` <528f13590907160929r1385c99el6c1ed16ca1b592d2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-16 18:51                                       ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol Jonathan Cameron
2009-07-16 18:51                                         ` [lm-sensors] Use the Linux I2C subsystem for a two wire Jonathan Cameron
     [not found]                                         ` <4A5F76A8.8080001-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org>
2009-07-17 21:21                                           ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol alfred steele
2009-07-17 21:21                                             ` [lm-sensors] Use the Linux I2C subsystem for a two wire alfred steele
     [not found]                                             ` <528f13590907171421m26bc67ecg8d0334d20365406f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-20  6:25                                               ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol alfred steele
2009-07-20  6:25                                                 ` [lm-sensors] Use the Linux I2C subsystem for a two wire alfred steele
2009-07-21 11:57                                               ` [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol J.I. Cameron
2009-07-21 11:57                                                 ` [lm-sensors] Use the Linux I2C subsystem for a two wire J.I. Cameron

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.