I2C of sensor SOC_CAMERA
hello. I'm developping a driver and I need develop a sensor with soc_camera library, well , I have a problem with the sensor because I can't read correctly of it, I use these instructions when I register the driver:
static int __init ov7670_module_init(void)
{
return i2c_add_driver(&ov7670_soc_i2c_driver); }
and in function probe of sensor.
...
if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))
...i2c_set_clientdata(client, priv);
...
ret = soc_camera_device_register(icd);
I don't know why I can't read well of this sensor...the sensor return values incorrect and bad (as "fffffffb") the address I2C is correct, can someone help me? can be that I haven't important function in the driver or in the configuration board?
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Hi
Quoted 9 lines · Carlos Lavin
hello. I'm developping a driver and I need develop a sensor with
soc_cameralibrary, well , I have a problem with the sensor because I can't read correctly of it, I use these instructions when I register the driver:
static int__initov7670_module_init(void)
{return i2c_add_driver(&ov7670_soc_i2c_driver); }
Quoted 7 lines
and in function probe of sensor.
...
if (!i2c_check_functionality(adapter,I2C_FUNC_SMBUS_BYTE_DATA))
...i2c_set_clientdata(client, priv);
...
ret =soc_camera_device_register(icd);
If you're using this function, then you're using a very old kernel.
Quoted 4 lines
I don't know why I can't read well of this sensor...the sensor return values incorrect and bad (as "fffffffb") the address I2C is correct, can someone help me? can be that I haven't important function in the driver or in the configuration board?
You should upgrade to the newest kernel, best to the Linus' git tree and port your driver to it. Then the most common reason for non-working I2C is not started master clock on the interface. I would look in that direction.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list