AnsweredAssumed Answered

Question about ov10640-s32v234-sbc

Question asked by 鹏 包 on Aug 27, 2018
Latest reply on Sep 4, 2018 by Kushal Shah

I applied the OV10640 quad camera after changing the graph according to the demo of the OV10635 four cameras.
After the compilation is executed, I2C0 reads 0x30 failed message.

 

root@s32v234sbc:~# ./init_demo.elf
Press Ctrl+C to terminate the demo.
Framebuffer mapped at 0x7f8456b000 1606.303576] Probing I2c client @ 0x6a on I2C bus #0.
[ 1606.308785] Generic camera I2c driver added successfully.
[ 1606.313910] Probing I2c client @ 0x40 on I2C bus #0.
[ 1606.319043] Probing I2c client @ 0x30 on I2C bus #0.
[ 1606.448222] Probing I2c client @ 0x41 on I2C bus #0.
[ 1606.453693] Probing I2c client @ 0x31 on I2C bus #0.
[ 1606.462686] Probing I2c client @ 0x42 on I2C bus #0.
[ 1606.468119] Probing I2c client @ 0x32 on I2C bus #0.
[ 1606.476458] Probing I2c client @ 0x43 on I2C bus #0.
[ 1606.481839] Probing I2c client @ 0x33 on I2C bus #0.
[ 1606.490239] Probing I2c client @ 0x44 on I2C bus #0.
[ 1606.495272] Probing I2c client @ 0x34 on I2C bus #0.
[ 1606.504080] LinuxI2cRead16:read reg error:reg=300a,val=0
[ 1606.509058] /home/calmcar-maker/disk2/NXP/S32DS/s32v234_sdk/libs/isp/cam_generic/kernel/build-v234ce-gnu-linux-d/../src/cam_ioctl.c: 438/ReadRegSingle : [Error]: Failed to read from I2C address 0x3000.

 

Then I found cam_ioctl.c
There is no related configuration of maxim ov10640

 

break;

//***********************************************************************
// *** Maxim MipiCam Start/Stop ***

//***********************************************************************
// *** OV10635 Viu ***

//***********************************************************************
// *** Maxim OV10640 ***

//***********************************************************************
// *** OV10640 MipiCam ***
case IOCTL_OV10640_CONNECT:
if(OV10640_DRV_Setup((CamI2cClient_t)aIoctlParam))
{
VDB_LOG_ERROR("Failed to connect Sony camera.\n");
lRet = CAM_DRV_FAILURE;
} // if failed to read the data
break;

case IOCTL_OV10640_DISCONNECT:
if(OV10640_DRV_Close((CamI2cClient_t)aIoctlParam))
{
VDB_LOG_ERROR("Failed to disconnect Sony camera.\n");
lRet = CAM_DRV_FAILURE;
} // if failed to read the data
break;
//***********************************************************************

default:
VDB_LOG_WARNING("Unknown ioctl command.\n");
lRet = printk("Unknown ioctl command.\n");

lRet = -ENOTTY;
break;

I2C reads 0x30 error, is it related to this configuration?
If so, where should I find a reference for this configuration?

Outcomes