2009-03-17 02:57:38     SCCB(I2C) driver on GPIO not working

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-03-17 02:57:38     SCCB(I2C) driver on GPIO not working


Message: 71072   


I had emulated SCCB (I2C) interface to a camera module on gpio pins in the 2006 uclinux release. I was using the pflags gpio device interface.


When I try running the same emulation code on the new kernel it fails to communicate with the module. I did make the necessary changes on the gpio front i.e. using the simple-gpio driver now. I have checked the gpio seperately and it works.


The SCCB code has a lot of timing sensitive code. Could it be that the previous pflags gpio interface and simple-gpio interface take different amount to time and hence is messing up the SCCB interface?






2009-03-17 04:16:21     SCCB(I2C) driver on GPIO not working

Michael Hennerich (GERMANY)

Message: 71084   




What you describe is a No-Go.


Use the kernel level gpio-based bitbang i2c driver

in conjunction with the user space i2c device interface.


There are some examples in