Re: [RFC] Driver for Arduino-as-I2C-adapter

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

 



Hi,

On 2015-05-18 15:00, Alex Beregszaszi wrote:

There are many cheap I2C adapter projects (mostly USB though). One of
the simple ones (i2c-tiny-usb) is included in the kernel  [...]

I knew of the OpenSource project i2c-tiny-usb. But sadly the hardware ist not sold anywhere (At least I didn't find vendors).


As regarding to cheap serial line based adapters, there are two I have
seen before [...]

None of them seems to have kernel drivers available. So I could stick to my own homebrewn Arduino solution.


I am afraid handling serial devices within a i2c kernel driver might be
tricky and purists probably dislike the idea.

Currently there is at least one driver for such a case already in the kernel: drivers/i2c/busses/i2c-taos-evm.c

I found it by "grep serio.h" in i2c/busses/. But this driver rather only supports SMBus which is kind of subset of I2C. Or you could call it I2C with more strict requirements upon timing and protocol.

In fact this would have been the driver I would have based my work on if someone said: Go on, this is a good thing to include in the kernel.


But for now I think I will just publish the Arduino sketch and a sample implementation on how to access I2C devices with it.



greetings,
Bernhard
--
Wer nicht gelegentlich auch einmal kausalwidrige Dinge zu denken vermag,
wird seine Wissenschaft nie um eine neue Idee bereichern können.
Max Planck (1858-1947)
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux