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.

Linux/DRA72XEVM: How the Dra718 evm board display on a rgb565 lcd by VOUT2 port

Part Number: DRA72XEVM

Tool/software: Linux

Hi,

SDK: ti-processor-sdk-linux-automotive-dra7xx-evm-03.02.00.03-installer

linux: linux-4.4.45

I want to display pictures on my dra718 custom board, data_lines = 16, pixelformat = rgb565, port = VOUT2, but vout2 can not output anything except pixclk and hsyncckl.

linux recompose as follow:

 <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)

<*> OMAP DRM

(2)   Number of CRTCs

<*>   OMAP2+ Display Subsystem support  --->

[*]   DPI support

OMAPDRM External Display Device Drivers  ---> 

<*> Generic DPI panel

and dtb recompose:

at dra72-evm-common.dtsi selcet lcd_fpd node's status="okay"

 

debug:

using modetest command, 

Connectors:
id encoder status name size (mm) modes encoders
32 31 connected unknown-1 0x0 1 31
modes:
name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
720x480 56 720 800 848 910 480 492 498 533 flags: nhsync, nvsync; type: preferred, driver
props:
1 EDID:
flags: immutable blob
blobs:

value:
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0

and using ksmcube -a ,nothing output on the lcd.

kmscube -c 31
trying to load module omapdrm...success.
### Display [0]: CRTC = 34, Connector = 32
Mode chosen [720x480] : Clock => 27000, Vertical refresh => 56, Type => 72
Horizontal => 720, 800, 848, 910, 0
Vertical => 480, 492, 498, 533, 0
### Primary display => ConnectorId = 32, Resolution = 720x480
failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
loaded module : gbm_pvr.so
found valid GBM backend : gbm_pvr.so
Using display 0x1 with EGL version 1.4
EGL Version "1.4 build 1.14@3699939 (MAIN)"
EGL Vendor "Imagination Technologies"
EGL Extensions "EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import"
^CHandling signal number = 2
Cleanup of GL, GBM and DRM completed

and using oscilloscope, the pixclk is 27MHZ, hsync-clk is 27kHZ, vsync-clk=0, data_line is 0HZ.

and the DSS controler register is as follow:

DISPC_CONTROL2 0x58001238 = 0x109

DISPC_CONFIG2 0x58001620 = 0x0

DISPC_TIMING_H2 0x58001400 = 0x3d04f2f

DISPC_TIMING_V2 0x58001404 = 0x2300c05

DISPC_POL_FREQ2 0x58001408 = 0x73000

DISPC_DIVISOR2 0x5800140C = 0x10006

DISPC_SIZE_LCD2  0x580013CC = 0x1df02cf

DISPC_DATA2_CYCLE1 0x580013C0 = 0x0

DISPC_DATA2_CYCLE2 0x580013C4 = 0x0

DISPC_DATA2_CYCLE3 0x580013C8 = 0x0

DISPC_CPR2_COEF_R 0x580013BC = 0x0

DISPC_CPR2_COEF_G 0x580013B8 = 0x0

DISPC_CPR2_COEF_B0x580013B4 = 0x0

what i need to do to make vout2 output vsync-clk? and display pictures on vout2?

  • Can you confirm if the pad/pin mux of Vsync and data lines have been taken cared?
    with regard to the register dump of DSS controller, have you compared with the M4 team to see if those are all good(same to the M4 case)?
  • hi,
    our custom board can output rgb565 pictrue by vout2 now, but finaly the pictrues will output to adv7393 to generate cvbs signal, so,the vout2 should work on Interlaced mode, rather than on Progressive mode.
    using the sdk,linux4.4.45, vout2 port only can work on Progressive mode. can i recompose the dtb file about dss, to let vout2 port working on Interlaced mode? Or recompose the linux file ?
  • Hi, liu
    our custom board can output rgb565 pictrue signal by vout2 now, but finaly the pictrues will output to adv7393 to generate cvbs signal, so,the vout2 should work on Interlaced mode, rather than on Progressive mode. so the board dss module should working on Interlaced mode.
    Please tell me, is the sdk of linux4.4.45 supporting this board dss working on Interlaced mode, i cannot find any files which art useful in linux4.4.45 to drive vout2 working on Interlaced mode.
    On linux4.4.45, the DISPC_GFX_BA_0 and DISPC_GFX_BA_1 register's value is the same, so it do not output the odd field and even field.