I have a custom board with a TFT on the VID1 pins (not VID0 as on the EVM). I can use the display fine by specifying the output to 800x480-60 and 1:hdmi for the nodes.
I also have a FPGA sending me 720p on the VIN0 pins, however, when I try to capture it, I never get any frames.
I had to 'hack' a fake v2l_subdev driver, as the current framework forces you to use an i2c video driver, which I don't have/need.
When I use saLoopbackScale, the initialisation appears to go fine, but the display just shows a frame of single color, and it never actually captures anything (it stops, and has to be interrupted with control-c). I tried to use mplayer too, but that actually hangs the board completely.
The pin mux for the VIN0 are done properly...
How can I debug that problem? I do appear to have CLK/HSYNC/VSYNC coming in just fine... just no capture.
DM814X prcm_config_app version: 2.0.0.1
Doing PRCM settings...
PRCM for IVHD0 is in Progress, Please wait.....
BW Phy Addr : 0x48180600 Data : 0x00000001
AW Phy Addr : 0x48180600 Data : 0x00000002
Phy Addr : 0x48180c04 Data : 0x00000037
BW Phy Addr : 0x48180620 Data : 0x00070000
AW Phy Addr : 0x48180620 Data : 0x00070002
BW Phy Addr : 0x48180624 Data : 0x00030000
AW Phy Addr : 0x48180624 Data : 0x00010002
Phy Addr : 0x48180600 Data : 0x00000102
BW Phy Addr : 0x48180c10 Data : 0x00000007
AW Phy Addr : 0x48180c10 Data : 0x00000003
Phy Addr : 0x48180c14 Data : 0x00000004
BW Phy Addr : 0x58088000 Data : 0xbb366941
AW Phy Addr : 0x58088000 Data : 0xeafffffe
BW Phy Addr : 0x58098000 Data : 0xb00350e0
AW Phy Addr : 0x58098000 Data : 0xeafffffe
BW Phy Addr : 0x48180c10 Data : 0x00000003
AW Phy Addr : 0x48180c10 Data : 0x00000000
Phy Addr : 0x48180c14 Data : 0x00000007
PRCM for IVHD0 is Done Successfully
PRCM Initialization completed
SysLink version : 2.20.02.20
SysLink module created on Date:Mar 22 2013 Time:15:43:22
FIRMWARE: I2cInit will be done by M3
FIRMWARE: Memory map bin file not passed
Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>]
===Mandatory arguments===
<Processor Id> 0: DSP, 1: Video-M3, 2: Vpss-M3
<Location of Firmware> firmware binary file
<start|stop> to start/stop the firmware
===Optional arguments===
-mmap input memory map bin file name
-i2c 0: i2c init not done by M3, 1(default): i2c init done by M3
FIRMWARE: isI2cInitRequiredOnM3: 1
FIRMWARE: Default memory configuration is used
Firmware Loader debugging not configured
Default FL_DEBUG: warning
Allowed FL_DEBUG levels: error, warning, info, debug, log
MemCfg: DCMM (Dynamically Configurable Memory Map) Version : 2.1.2.1
FIRMWARE: 1 start Successful
Loading HDVPSS Firmware
FIRMWARE: I2cInit will be done by M3
FIRMWARE: Memory map bin file not passed
Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>]
===Mandatory arguments===
<Processor Id> 0: DSP, 1: Video-M3, 2: Vpss-M3
<Location of Firmware> firmware binary file
<start|stop> to start/stop the firmware
===Optional arguments===
-mmap input memory map bin file name
-i2c 0: i2c init not done by M3, 1(default): i2c init done by M3
FIRMWARE: isI2cInitRequiredOnM3: 1
FIRMWARE: Default memory configuration is used
Firmware Loader debugging not configured
Default FL_DEBUG: warning
Allowed FL_DEBUG levels: error, warning, info, debug, log
MemCfg: DCMM (Dynamically Configurable Memory Map) Version : 2.1.2.1
FIRMWARE: 2 start Successful
VPSS_FVID2: M3 firmware version 0x1000145 is newer,driver may not work properly.
VPSS_DCTRL: venc mode(800x480-60) is not supported.
Console: switching to colour frame buffer device 240x67
Configuring fb0 to LCD
/ # modprobe ti81xxvo
/ # modprobe ti81xxvin
***: Registering non-i2c v2l subdev
***: vps_fpga_select_video_decoder 0
***: vps_fpga_set_mode 13
ti81xxvin ti81xxvin: registered sub device FPGA In
ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized
/ # echo 0 >/sys/devices/platform/vpss/graphics0/enabled
/ # saLoopBackScale
VPSS_GRPX : (0)- venc 4 not running.
sh: write error: Invalid argument
Driver Name: ti81xxvin
Drivefpga: vps_fpga_set_mode 9
r bus info: TI81xx Platform
Driver is capable of doing capture
saLoopBackScale:
Mode set is 720P60
Driver Name:
Driver bus info: Tɾ
=============================================================
Capture Format:
=============================================================
fmt.type = 1
fmt.width = 1280
fmt.height = 720
fmt.pixelformat = 1448695129
fmt.bytesperline = 2560
fmt.sizeimage = 1843200
=============================================================
=============================================================
Display Format:
=============================================================
fmt.type = 2
fmt.width = 1280
fmt.height = 720
fmt.pixelformat = 1448695129
fmt.bytesperline = 2560
fmt.sizeimage = 1843200
=============================================================
^C