摄像头问题啊
时间:10-02
整理:3721RD
点击:
使用OV5693和OV9760做前后摄像头。调试的时候,进不去,于是就抓LOG。现在把部分LOG贴出来,给大家分析一下。分析是I2C没有通讯成功,可是这该如何是好。请各位给小弟个意见,跪谢。
130.016876] c1 SENSOR_IO_I2C_ADDR: addr = 3c, 3c
[ 130.028472] c1 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.033477] c1 : ======dump i2c-0 reg=======
[ 130.038421] c1 : I2C_CTRL:0x5a
[ 130.041412] c1 : I2C_CMD:0x7841
[ 130.044555] c1 : I2C_DVD0:0x40
[ 130.048065] c1 : I2C_DVD1:0x0
[ 130.050964] c1 : I2C_RST:0x0
[ 130.053833] c1 : I2C_CMD_BUF:0x0
[ 130.057159] c1 : I2C_CMD_BUF_CTL:0x0
[ 130.060699] c1 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.101989] c1 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.105529] c0 cpufreq_scx35: --xing-- set 768000 khz for cpu0
[ 130.105590] c0 regu: @@@dcdc_set_voltage: regu 0xddcf412c (vddarm) 900000 = 900000 +0uV
[ 130.105651] c0 cpufreq_scx35: 1200000 --> 768000, real=768000, index=2
[ 130.127471] c1 : ======dump i2c-0 reg=======
[ 130.131683] c1 : I2C_CTRL:0x5a
[ 130.134704] c1 : I2C_CMD:0x7841
[ 130.138122] c1 : I2C_DVD0:0x40
[ 130.141082] c1 : I2C_DVD1:0x0
[ 130.144042] c1 : I2C_RST:0x0
[ 130.146942] c1 : I2C_CMD_BUF:0x0
[ 130.150115] c1 : I2C_CMD_BUF_CTL:0x0
[ 130.153717] c1 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.192443] c2 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.197570] c2 : ======dump i2c-0 reg=======
[ 130.201782] c2 : I2C_CTRL:0x5a
[ 130.204803] c2 : I2C_CMD:0x7841
[ 130.208007] c2 : I2C_DVD0:0x40
[ 130.210998] c2 : I2C_DVD1:0x0
[ 130.213928] c2 : I2C_RST:0x0
[ 130.216857] c2 : I2C_CMD_BUF:0x0
[ 130.220031] c2 : I2C_CMD_BUF_CTL:0x0
[ 130.223602] c2 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.262329] c3 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.267425] c3 : ======dump i2c-0 reg=======
[ 130.271636] c3 : I2C_CTRL:0x5a
[ 130.274658] c3 : I2C_CMD:0x7841
[ 130.277862] c3 : I2C_DVD0:0x40
[ 130.280853] c3 : I2C_DVD1:0x0
[ 130.283782] c3 : I2C_RST:0x0
[ 130.286712] c3 : I2C_CMD_BUF:0x0
[ 130.289886] c3 : I2C_CMD_BUF_CTL:0x0
[ 130.293457] c3 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.325683] c3 SENSOR: pwdn 1,pin_main 187
[ 130.329742] c3 SENSOR: set mclk org = 24, clk = 0
[ 130.334411] c3 SENSOR: set mclk X
130.016876] c1 SENSOR_IO_I2C_ADDR: addr = 3c, 3c
[ 130.028472] c1 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.033477] c1 : ======dump i2c-0 reg=======
[ 130.038421] c1 : I2C_CTRL:0x5a
[ 130.041412] c1 : I2C_CMD:0x7841
[ 130.044555] c1 : I2C_DVD0:0x40
[ 130.048065] c1 : I2C_DVD1:0x0
[ 130.050964] c1 : I2C_RST:0x0
[ 130.053833] c1 : I2C_CMD_BUF:0x0
[ 130.057159] c1 : I2C_CMD_BUF_CTL:0x0
[ 130.060699] c1 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.101989] c1 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.105529] c0 cpufreq_scx35: --xing-- set 768000 khz for cpu0
[ 130.105590] c0 regu: @@@dcdc_set_voltage: regu 0xddcf412c (vddarm) 900000 = 900000 +0uV
[ 130.105651] c0 cpufreq_scx35: 1200000 --> 768000, real=768000, index=2
[ 130.127471] c1 : ======dump i2c-0 reg=======
[ 130.131683] c1 : I2C_CTRL:0x5a
[ 130.134704] c1 : I2C_CMD:0x7841
[ 130.138122] c1 : I2C_DVD0:0x40
[ 130.141082] c1 : I2C_DVD1:0x0
[ 130.144042] c1 : I2C_RST:0x0
[ 130.146942] c1 : I2C_CMD_BUF:0x0
[ 130.150115] c1 : I2C_CMD_BUF_CTL:0x0
[ 130.153717] c1 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.192443] c2 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.197570] c2 : ======dump i2c-0 reg=======
[ 130.201782] c2 : I2C_CTRL:0x5a
[ 130.204803] c2 : I2C_CMD:0x7841
[ 130.208007] c2 : I2C_DVD0:0x40
[ 130.210998] c2 : I2C_DVD1:0x0
[ 130.213928] c2 : I2C_RST:0x0
[ 130.216857] c2 : I2C_CMD_BUF:0x0
[ 130.220031] c2 : I2C_CMD_BUF_CTL:0x0
[ 130.223602] c2 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.262329] c3 i2c i2c-0: sprd_i2c_handle_msg() rc=-1
[ 130.267425] c3 : ======dump i2c-0 reg=======
[ 130.271636] c3 : I2C_CTRL:0x5a
[ 130.274658] c3 : I2C_CMD:0x7841
[ 130.277862] c3 : I2C_DVD0:0x40
[ 130.280853] c3 : I2C_DVD1:0x0
[ 130.283782] c3 : I2C_RST:0x0
[ 130.286712] c3 : I2C_CMD_BUF:0x0
[ 130.289886] c3 : I2C_CMD_BUF_CTL:0x0
[ 130.293457] c3 SENSOR:read reg fail, ret -1, addr 0x3c, reg_addr 0xf0
[ 130.325683] c3 SENSOR: pwdn 1,pin_main 187
[ 130.329742] c3 SENSOR: set mclk org = 24, clk = 0
[ 130.334411] c3 SENSOR: set mclk X
看看是不是Cam的I2C和别的I2C冲突了?让硬件也查查电路
我找到原因了,这个是因为,调用了别的camea 驱动,宏没有用啊
哈哈