hi all,
I am using beagle xm board 2.6.32 kernel. In that i want to enable the i2c2 for interfacing the camera sensor ov5640. for that i have made some changes in the mt9v113 board file and driver file because the i2c address for ov5640 and mt9v113 are same so for enabling the i2c i used mt9v113
i have got the camera xclk 24mhz successfully but enabling the i2c2 the sensor get registered first and it gets unregistered you find this clearly in the log
ERROR:
[ 53.876068] Linux video capture interface: v2.00
[ 53.880798] OVIYA MT9V113 INITOVIYA MT9V113 PROBE ++++++++++
[ 53.886413] mt9v113 2-003c: Registered to v4l2 master omap34xxcam!!
[ 53.893157] omap-iommu omap-iommu.0: isp: version 1.1
[ 53.899475] vpfe_init
[ 53.902374] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 54.019500] mmci-omap-hs mmci-omap-hs.1: err -16 configuring card detect
[ 54.026519] Registered led device: beagleboard::usr0
[ 54.031677] Registered led device: beagleboard::usr1
[ 54.038177] Registered led device: beagleboard::pmu_stat
[ 54.045166] usbcore: registered new interface driver usbhid
[ 54.050811] usbhid: USB HID core driver
[ 54.054840] Advanced Linux Sound Architecture Driver Version 1.0.21.
[ 54.061676] usbcore: registered new interface driver snd-usb-audio
[ 54.129425] usb 2-2: new high speed USB device using ehci-omap and address 2
[ 54.144561] No device for DAI omap-mcbsp-dai-0
[ 54.149047] No device for DAI omap-mcbsp-dai-1
[ 54.153564] No device for DAI omap-mcbsp-dai-2
[ 54.158020] No device for DAI omap-mcbsp-dai-3
[ 54.162506] No device for DAI omap-mcbsp-dai-4
[ 54.166992] OMAP3 Beagle SoC init
[ 54.171112] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 54.182495] ALSA device list:
[ 54.185546] #0: omap3beagle (twl4030)
[ 54.189483] oprofile: using arm/armv7
[ 54.193389] TCP cubic registered
[ 54.196655] NET: Registered protocol family 17
[ 54.201202] NET: Registered protocol family 15
[ 54.205749] lib80211: common routines for IEEE802.11 drivers
[ 54.211486] ThumbEE CPU extension supported.
[ 54.215820] Power Management for TI OMAP3.
[ 54.220611] SmartReflex driver initialized
[ 54.224761] OVIYA IF CPU IS 3630 CAMERA DRIVER INIT
[ 54.229644] omap3beaglelmb: Driver registration complete
[ 54.242889] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 54.251068] registered taskstats version 1
[ 54.304412] Console: switching to colour frame buffer device 80x30
[ 54.317565] usb 2-2: New USB device found, idVendor=0424, idProduct=9514
[ 54.324371] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 54.331573] regulator_init_complete: incomplete constraints, leaving VAUX3 on
[ 54.339324] hub 2-2:1.0: USB hub found
[ 54.343231] regulator_init_complete: incomplete constraints, leaving VDAC on
[ 54.350372] hub 2-2:1.0: 5 ports detected
[ 54.354736] OVIYA IOCTL S POWEROVIYA IOCTL V4L2 POWER ONOVIYA ENABLE_MCLK CURR_MCLK= 216000000 DPLL4_M5= 216000000 RATIO= 1MT9V113 OVIYA PWDN>>>>>>>>>>>>1MT9V113 OVIYA RST>>>>>>>>>>>>0OVIYA XCLOCK DIVISOR= 0 CCLK= 0 CLKSEL= 0 mclk 48000000 XCLK
[ 54.429748] OVIYA XCLOCK DIVISOR= 2 CCLK= 24000000 CLKSEL= 0 mclk 48000000 XCLK 24000000
[ 54.472412] MT9V113 OVIYA PWDN>>>>>>>>>>>>0MT9V113 OVIYA RST>>>>>>>>>>>>>> 1
[ 55.487976] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 55.496551] OVIYA FUNCTION READREG REG=0x300a ADDR=0x3c LEN=2 BUF=0
[ 55.496582] ERR=-110 VAL=0
[ 56.511413] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 56.519805] OVIYA FUNCTION READREG REG=0x300b ADDR=0x3c LEN=2 BUF=0
ERR=-110 VAL=0
[ 56.527526] OVIYA MT9V113 VAL=0 CHIP ID=0x300a 0x300b
[ 56.533050] mt9v113 2-003c: chip id mismatch read 0x0, expecting 0x5640
[ 56.539703] mt9v113 2-003c: Unable to detect decoder
[ 56.544799] OVIYA IOCTL S POWEROVIYA IOCTL V4L2 POWER ONOVIYA ENABLE_MCLK CURR_MCLK= 48000000 DPLL4_M5= 48000000 RATIO= 1MT9V113 OVIYA PWDN>>>>>>>>>>>>1MT9V113 OVIYA RST>>>>>>>>>>>>0OVIYA XCLOCK DIVISOR= 0 CCLK= 0 CLKSEL= 0 mclk 48000000 XCLK
[ 56.618835] OVIYA XCLOCK DIVISOR= 2 CCLK= 24000000 CLKSEL= 0 mclk 48000000 XCLK 24000000
[ 56.661499] MT9V113 OVIYA PWDN>>>>>>>>>>>>0MT9V113 OVIYA RST>>>>>>>>>>>>>> 1
[ 57.675476] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 57.684051] OVIYA FUNCTION READREG REG=0x300a ADDR=0x3c LEN=2 BUF=0
[ 57.684051] ERR=-110 VAL=0
[ 58.698913] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 58.707336] OVIYA FUNCTION READREG REG=0x300b ADDR=0x3c LEN=2 BUF=0
ERR=-110 VAL=0
[ 58.715026] OVIYA MT9V113 VAL=0 CHIP ID=0x300a 0x300b
[ 58.720550] mt9v113 2-003c: chip id mismatch read 0x0, expecting 0x5640
[ 58.727203] mt9v113 2-003c: Unable to detect decoder
[ 58.732299] OVIYA IOCTL S POWEROVIYA IOCTL V4L2 POWER ONOVIYA ENABLE_MCLK CURR_MCLK= 48000000 DPLL4_M5= 48000000 RATIO= 1MT9V113 OVIYA PWDN>>>>>>>>>>>>1MT9V113 OVIYA RST>>>>>>>>>>>>0OVIYA XCLOCK DIVISOR= 0 CCLK= 0 CLKSEL= 0 mclk 48000000 XCLK
[ 58.806304] OVIYA XCLOCK DIVISOR= 2 CCLK= 24000000 CLKSEL= 0 mclk 48000000 XCLK 24000000
[ 58.848968] MT9V113 OVIYA PWDN>>>>>>>>>>>>0MT9V113 OVIYA RST>>>>>>>>>>>>>> 1
[ 59.862945] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 59.871551] OVIYA FUNCTION READREG REG=0x300a ADDR=0x3c LEN=2 BUF=0
[ 59.871551] ERR=-110 VAL=0
[ 60.886413] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 60.894836] OVIYA FUNCTION READREG REG=0x300b ADDR=0x3c LEN=2 BUF=0
ERR=-110 VAL=0
[ 60.902526] OVIYA MT9V113 VAL=0 CHIP ID=0x300a 0x300b
[ 60.908050] mt9v113 2-003c: chip id mismatch read 0x0, expecting 0x5640
[ 60.914703] mt9v113 2-003c: Unable to detect decoder
[ 60.919799] OVIYA IOCTL S POWEROVIYA IOCTL V4L2 POWER ONOVIYA ENABLE_MCLK CURR_MCLK= 48000000 DPLL4_M5= 48000000 RATIO= 1MT9V113 OVIYA PWDN>>>>>>>>>>>>1MT9V113 OVIYA RST>>>>>>>>>>>>0OVIYA XCLOCK DIVISOR= 0 CCLK= 0 CLKSEL= 0 mclk 48000000 XCLK
[ 60.993804] OVIYA XCLOCK DIVISOR= 2 CCLK= 24000000 CLKSEL= 0 mclk 48000000 XCLK 24000000
[ 61.036468] MT9V113 OVIYA PWDN>>>>>>>>>>>>0MT9V113 OVIYA RST>>>>>>>>>>>>>> 1
[ 62.050476] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 62.059051] OVIYA FUNCTION READREG REG=0x300a ADDR=0x3c LEN=2 BUF=0
[ 62.059082] ERR=-110 VAL=0
[ 63.073883] i2c_omap i2c_omap.2: controller timed out waiting for start condition to finish
[ 63.082305] OVIYA FUNCTION READREG REG=0x300b ADDR=0x3c LEN=2 BUF=0
ERR=-110 VAL=0
[ 63.090026] OVIYA MT9V113 VAL=0 CHIP ID=0x300a 0x300b
[ 63.095520] mt9v113 2-003c: chip id mismatch read 0x0, expecting 0x5640
[ 63.102203] mt9v113 2-003c: Unable to detect decoder
[ 63.107330] omap_vout omap_vout: probed for an unknown device
[ 63.113708] Waiting 1sec before mounting root device...
[ 63.144256] mmc0: new high speed SDHC card at address aaaa
[ 63.150054] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
[ 63.154785] mmcblk0: p1 p2 p3
[ 63.402191] usb 2-2.1: new high speed USB device using ehci-omap and address 3
[ 63.527435] usb 2-2.1: New USB device found, idVendor=0424, idProduct=ec00
[ 63.534362] usb 2-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 63.544342] smsc95xx v1.0.4
[ 63.598510] usb0: register 'smsc95xx' at usb-ehci-omap.0-2.1, smsc95xx USB 2.0 Ethernet, f6:09:9f:2f:b4:5a
[ 64.142395] EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
[ 64.167755] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 64.174713] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 64.183471] devtmpfs: mounted
[ 64.186492] Freeing init memory: 192K
[ 64.191223] Failed to execute /init. Attempting defaults...
INIT: version 2.86 booting
Please wait: booting...
Starting udev