This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3874 LCD on VOUT1

Other Parts Discussed in Thread: AM3874

Hi,

I'm trying to get an LCD connected to VOUT1 on our custom AM3874 board running Android 4.0 ICS from the Rowboat project. I have previously verified the display timing on VOUT0 on the 8148 evm. board, with the following rc.syslink:

insmod /system/bin/syslink/syslink.ko
/system/bin/syslink/slaveloader_release startup VPSS-M3 /system/bin/syslink/ti814x_hdvpss_1G.xem3
insmod /system/lib/modules/2.6.37+/kernel/drivers/video/ti81xx/vpss/vpss.ko sbufaddr=0xA0200000 debug=1 timeout=0
insmod /system/lib/modules/2.6.37+/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko debug=1
insmod /system/lib/modules/2.6.37+/kernel/drivers/video/ti81xx/ti81xxhdmi/ti81xxhdmi.ko debug=1
echo 0 > /sys/devices/platform/vpss/graphics0/enabled
echo 1:dvo2 > /sys/devices/platform/vpss/graphics0/nodes
echo vcompmux:dvo2 > /sys/devices/platform/vpss/video0/nodes
echo 0 > /sys/devices/platform/vpss/display1/enabled
echo 33260,800/0/256/0,480/0/45/0,1 > /sys/devices/platform/vpss/display1/timings
echo triplediscrete,rgb888 > /sys/devices/platform/vpss/display1/output
echo 1 > /sys/devices/platform/vpss/display1/enabled
echo 1 > /sys/devices/platform/vpss/graphics0/enabled

Our board has 512MB of memory, so I have switched to the ti814x_hdvpss_512M.xem3 firmware, changed sbufaddr to 0x8DE00000, notifyk.vpssm3_sva to 0x8DB00000 and modified the DMM_LISA_MAP values as specified in the VPSS user guide. I have also set up the pinmux for the VOUT1 pins in u-boot.

I have changed the rc.syslink script to the following (ti81xxhdmi.ko is no longer loaded):

insmod /system/bin/syslink/syslink.ko
/system/bin/syslink/slaveloader_release startup VPSS-M3 /system/bin/syslink/ti814x_hdvpss_512M.xem3
insmod /system/lib/modules/2.6.37+/kernel/drivers/video/ti81xx/vpss/vpss.ko sbufaddr=0x8DE00000 timeout=0 debug=1
insmod /system/lib/modules/2.6.37+/kernel/drivers/video/ti81xx/ti81xxfb/ti81xxfb.ko debug=1
echo 0 > /sys/devices/platform/vpss/graphics0/enabled
echo 1:hdmi > /sys/devices/platform/vpss/graphics0/nodes
echo vcompmux:hdmi > /sys/devices/platform/vpss/video0/nodes
echo 0 > /sys/devices/platform/vpss/display0/enabled
echo 33260,800/0/256/0,480/0/45/0,1 > /sys/devices/platform/vpss/display0/timings
echo triplediscrete,rgb888 > /sys/devices/platform/vpss/display0/output
echo 1 > /sys/devices/platform/vpss/display0/enabled
echo 1 > /sys/devices/platform/vpss/graphics0/enabled

The board boots up fine and I can start the rc.syslink service, but nothing happens on neither the VOUT1 data nor clock pins. However, the VOUT0 port is started up, with a 148.5 MHz pixel clock. This is the output when I run /system/bin/syslink/rc.syslink start:

root@android:/ # /system/bin/syslink/rc.syslink start                          
SysLink version : 2.00.00.78
SysLink module created on Date:Jun 27 2012 Time:14:49:29
Attached to slave procId 2.
Loaded file /system/bin/syslink/ti814x_hdvpss_512M.xem3 on slave procId 2.
Started slave procId 2.
VPSS_GRPX : please open fb0 node first.
VPSS_GRPX : please open fb0 node first.
/dev/mem opened.
Memory mapped at address 0x40144000.
Value at address 0x48180F04 (0x40144f04): 0x1
Written 0x0; readback 0x0
/dev/mem opened.
Memory mapped at address 0x400a4000.
Value at address 0x48180900 (0x400a4900): 0x2
Written 0x2; readback 0x2
/dev/mem opened.
Memory mapped at address 0x401d2000.
Value at address 0x48180920 (0x401d2920): 0x70000
Written 0x2; readback 0x2
init: untracked pid 513 exited
request_suspend_state: wakeup (0->0) at 106363748004 (1970-01-01 00:01:46.361242955 UTC)
init: untracked pid 491 exited
init: untracked pid 492 exited
Loaded PowerVR consumer services.

Have I missed something in the rc.syslink script? This question mentions a bug in the M3 firmware which overrules the pinmux settings:

http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/146722/649603.aspx

Do I have to work around this somehow?

Thanks.

-Jeppe