Howdy.
In the release notes for PSP 04.01.06.patch2, it is written:
7)V4L2 capture support is available from PSP04.01.00.06_patch2 release only
- Please note that V4L2 capture driver requires I2C2 instance to be controlled from Linux side. So any of the application/driver trying to access I2C2 from any other processor wont work.
- Only one instance of V4L2 capture driver is supported with TVP7002 decoder
That's hopeful, but I am mystified regarding how one is to setup and use the 7002 as the video-in device. It would seem that
% modprobe ti81xxvin
would enable and setup the pipeline nicely on my 8148 EVM, but when I do that, I get:
i2c i2c-3: i2c_new_device.0: 0x5d
i2c i2c-3: i2c_new_device.1: I2C address 0x5d status 0
tvp7002 3-005d: tvp7002 found @ 0x5d (OMAP I2C adapter)
omap_i2c omap_i2c.3: controller timed out
omap_i2c omap_i2c.3: controller timed out
omap_i2c omap_i2c.3: controller timed out
omap_i2c omap_i2c.3: controller timed out
omap_i2c omap_i2c.3: controller timed out
tvp7002 3-005d: TVP7002 read error -110
tvp7002: probe of 3-005d failed with error -110
i2c i2c-3: i2c_new_device.2: [tvp7002] I2C address 0x5d
i2c i2c-3: i2c_new_device.3 client [tvp7002] registered with bus id 3-005d
which, when digested, is really saying that the probe routine for the 7002 was called and was unable to read a revision register on the 7002. It's not a happy day when a revision register is unreadable.
For grins, I modified the kernel's board-ti8148evm.c file which does some early probing of the I2C busses in the function ti814x_evm_i2c_init(), and added the fact that the 7002 was there (not sure why the 7002 is not mentioned in this file) to the ti814x_i2c_boardinfo1 array. That init code called the 7002 probe code which was happily able to read the revision register. However, when I then later do
% modprobe ti81xxvin
that does not work as the addition of the ti81xxvin module very much wants to do a probe for the 7002 and, well, that probe cannot succeed as the 7002's name is already in the /sys tree, so the 7002 probe fails and, thus, so does the setup of ti81xxvin.
I think the end result I am hoping for is the appearance of the name /dev/video0 so I can open that device under v4l2 as my video input device and then do interesting things. Maybe I should be thinking of looking for some other device name?
Any help you can give me for using the 7002 within the v4l2 library on the 8148 EVM is much appreciated.