From: William v. A. <wvo...@ie...> - 2010-07-08 21:33:32
|
OK, I've finally gotten some more time to work on this ... I created a board-overo-camera.c file based on board-omap3evm-camera.c, changing very little other than removing the mux-related stuff and altering the definition of the decoder's reset pin so that it maps to the GPIO we tied it to. Also changed the i2c slave address of the decoder to 0x5d to match our board. However, I still don't see /dev/video0 populated on boot. I hooked a logic analyzer up to the i2c pins and the only traffic I see during boot is going to slave address 0x51, which seems to be an EEPROM on the Tobi board. After inserting a bunch of printk statements into the functions in board-overo-camera.c, I could see that the functions tvp5146_set_prv_data and tvp5146_power_set are never called, the latter of which looks like it does most of the setup. Am I correct in assuming that these functions are supposed to be called automatically by v4l2? Or do I need to do something in the init function to kick off the process? Currently, the init function only calls omap3evmdc_mdc_config and i2c_register_board_info, both successfully. Thanks, -- William von Achen > Assuming you have things properly configured in the > board-overo-camera.c file (which you need to create based on the > board-omap3evm-camera.c file)... The overo will try to talk to the > tvp5146 over the i2c connection, and if it finds it correctly, it will > create a /dev/video0. If you connected a GPIO line to the reset of > your TVP5146, you will also need to make sure it's set correctly. > > I hope your tvp5146 board also connected the vs and hs sync signals > because the isp code expects them to be active. If you didn't > anticipate this, then you may need to hack the code in isp.c and > ispccdc.c to work without the HS_VS interrupts (ie work with only VD0 > interrupts). You can see a current discussion of this issue here: > http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/p/52192/192701.aspx > > Please followup with your results-- I have my tvp5150 working, but its > still getting timeouts that I haven't been able to clear up. Not sure > if it is hardware or software. > > -chris > > |