Hello!
I have a TMX320DM355 Evalution Module 702065 Rev C 30 Nov 07 and I have to connect CMOS MT9M131 C12STC.
I slightly modify mt9001.h, defined my register and, when I run module, I get an error:
I2C write failed<6>
I2C write failed<6>
I2C write failed<6>
I2C write failed<6>
My debug in dmesg:
Starting mt9m131_i2c_init
Stoping mt9m131_i2c_init with err = 0
Starting mt9m131_i2c_cleanup
Stoping mt9m131_i2c_cleanup
Starting mt9m131_i2c_init
Stoping mt9m131_i2c_init with err = 0
Starting mt9m131_i2c_cleanup
Stoping mt9m131_i2c_cleanup
Starting mt9m131_i2c_init
Stoping mt9m131_i2c_init with err = 0
Starting mt9m131_i2c_cleanup
Stoping mt9m131_i2c_cleanup
Starting mt9m131_i2c_init
Starting mt9m131_i2c_probe_adapter
Stoping mt9m131_i2c_probe_adapter
Starting mt9m131_attache_client
mt9m131_attache_client addr = 5d
mt9m131_attache_client driver = bf001908
mt9m131_attache_client adapter = c02fa4f8
Stoping mt9m131_attache_client with err = -16
Succesfully register mt9m131_i2c_registration = 1.
I2C write failed<7>Stoping mt9m131_init<7>Stoping mt9m131_i2c_init with err = 0
How I can solve this problem?
I have modified driver/media/video/davinci/mt9t001.c by inserting printk(KERN_DEBUG) message.
But after reboot I see in dmesg only output mt9t001_i2c_init:
dmesg | grep mt9t001
Starting mt9t001_i2c_init
Stoping mt9t001_i2c_init
I have tryed with and without parametrs v4l2_video_capture=device:MT9T031.
My boot options:
DM355 EVM # printenv
bootdelay=3
baudrate=115200
bootfile="uImage"
bootargs=console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=yaffs2 ip=off mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE dac
bootcmd=nboot 0x80700000 0 0x400000;bootm
stdin=serial
stdout=serial
stderr=serial
videostd=ntsc
videomode=video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc v4l2_video_capture=device:MT9T031
Thank you and excuse me for my bad english.