[U-Boot] Supporting SCCB protocol

Detlev Zundel dzu at denx.de
Wed Jun 8 09:54:01 CEST 2011


Hi John,

> That's correct! I should elaborate it. It should be (Serial Camera Control
> Bus) protocol developed by omnivision.
> I am using a OV2715 sensor and I need to access the registers of the said
> sensor, I have to modify the I2C read/write in uboot to support the SCCB
> transactions.

So SCCB is really only another name for I2C or are there differences in
the protocol?

If the first holds, then the infrastructure is already thereand you
should be able to use the i2c commands.  If the latter then you really
shoudl come up with your own "sccb" driver.  Probably basing it on
drivers.i2c/soft_i2c.c would be a good idea.

> Here's my question:
> If my sensor has power and a clock, does it response to the I2C probe or I
> have to modify it too?. Right now, If I run iprobe, it did not detect my
> sensor and not sure what it caused.

This should be discoverable by reading the manuals of the sensor.  If
this is at all like I2C, then it should definitely answer when its clock
and data pins are driven by I2C.  Did you check with an oscilloscope
that you really are talking to the chip?

Cheers
  Detlev

-- 
-- Question authority!
-- Yeah, says who?
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de


More information about the U-Boot mailing list