mx6q LVDS+HDMI show ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mx6q LVDS+HDMI show ?

1,188 Views
huang_dexiang
Contributor II

how to display lvds + hdmi at the same time on Linux?

We want to display the same content on LVDS0 and HDMI based on mx6q_sabresd board. Our LVDS lcd is 1024x768-16bpp.

We modified the file board-mx6q_sabresd.c in the kernel file as following:

static struct fsl_mxc_hdmi_platform_data hdmi_data = {

  .init = hdmi_init,

  .enable_pins = hdmi_enable_ddc_pin,

  .disable_pins = hdmi_disable_ddc_pin,

  .phy_reg_vlev = 0x0294,

  .phy_reg_cksymtx = 0x800d,

};

static struct fsl_mxc_hdmi_core_platform_data hdmi_core_data = {

  .ipu_id = 1,

  .disp_id = 0,

};

static struct fsl_mxc_lcd_platform_data lcdif_data = {

  .ipu_id = 0,

  .disp_id = 0,

  .default_ifmt = IPU_PIX_FMT_RGB565,

};

static struct fsl_mxc_ldb_platform_data ldb_data = {

  .ipu_id = 1,

  .disp_id = 1,

  .ext_ref = 1,

  .mode = LDB_SEP1,

  .sec_ipu_id = 1,

  .sec_disp_id = 0,

};

static struct ipuv3_fb_platform_data sabresd_fb_data[] = {

  { /*fb0*/

  .disp_dev = "ldb",

  .interface_pix_fmt = IPU_PIX_FMT_RGB666,

  .mode_str =  "LDB-NEC-XGA",

  .default_bpp = 16,

  .int_clk = false,

  .late_init = false,

  },

  {

    .disp_dev = "ldb",

    .interface_pix_fmt = IPU_PIX_FMT_RGB666,

    .mode_str = "LDB-LG-LP101",

    .default_bpp = 16,

    .int_clk = false,

    .late_init = false,

    }, 

{

  .disp_dev = "hdmi",

  .interface_pix_fmt = IPU_PIX_FMT_RGB24,

  .mode_str = "1920x1080M@60",

  .default_bpp = 32,

  .int_clk = false,

  .late_init = false,

  },   

    {

  .disp_dev = "lcd",

  .interface_pix_fmt = IPU_PIX_FMT_RGB565,

  .mode_str = "CLAA-WVGA",

  .default_bpp = 16,

  .int_clk = false,

  .late_init = false,

  } ,

};

and our uboot argument is :

setenv bootargs_emmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=mxcfb0:dev=ldb,LDB-NEC-XGA,if=RGB666 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24 ldb=dul0'

the result is as the pictures attached.

Can any one give me some tips?

Labels (2)
0 Kudos
2 Replies

527 Views
igorpadykov
NXP Employee
NXP Employee

Hi huand

for lvds + hdmi one can look at

https://community.freescale.com/docs/DOC-93449

for new lcd one needs to adjust timings, as in example

https://community.freescale.com/thread/355690

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

527 Views
huang_dexiang
Contributor II

Hi,igorpadykov. We need to show our UI and video on the LVDS and HDMI at the same time. We don't use android,our UI is based on MiniGUI library,and we play the video based on the vpu library released by fsl. The links mentioned in your reply don't work for our case. I have posted the bootup argument,it is same as the link says.

0 Kudos