Use the Linux I2C subsystem for a two wire interface protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux