New LVDS panel support on imx6q

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

New LVDS panel support on imx6q

1,478 Views
LeviathanSteven
Contributor III

Hi,

I am working on the imx6q sabrelite board, and want to light a dual channel LVDS panel with mode 1280x1024@60 .

Are there any instructions on how to add a new  LVDS panel support on it?

I checked file 'linux-3.0.35/drivers/video/mxc/ldb.c', and found there are only three modes in the LVDS mode table ldb_modedb.

So I added a new mode to this table:

static struct fb_videomode ldb_modedb[] = {

  {

  "LDB-WXGA", 60, 1280, 800, 14065,

  40, 40,

  10, 3,

  80, 10,

  0,

  FB_VMODE_NONINTERLACED,

  FB_MODE_IS_DETAILED,},

  {

  "LDB-XGA", 60, 1024, 768, 15385,

  220, 40,

  21, 7,

  60, 10,

  0,

  FB_VMODE_NONINTERLACED,

  FB_MODE_IS_DETAILED,},

  {

  "LDB-1080P60", 60, 1920, 1080, 7692,

  100, 40,

  30, 3,

  10, 2,

  0,

  FB_VMODE_NONINTERLACED,

  FB_MODE_IS_DETAILED,},

{

  "LDB-SXGA", 60, 1280, 1024, KHZ2PICOS(108000),

  248, 48,

  38, 1,

  112, 3,

  0,

  FB_VMODE_NONINTERLACED,

  FB_MODE_IS_DETAILED,},

};

After compile the new kernel, I set the Uboot with the following configurations:

bootargs_sd=setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw ${lvds} console=tty1,115200

lvds=video=mxcfb0:dev=ldb,LDB-SXGA,if=RGB666 ldb=spl0

Then system start up, the LVDS panel failed, but with the dmesg command, I am sure we have set the timing  '1028x1024@60' to the corresponding DI.

So maybe I missed some steps, so would anyone can kindly give some suggestions? Thanks in advance!

Labels (3)
Tags (2)
1 Reply

420 Views
LeviathanSteven
Contributor III

Hi,

Actually, the source code modification in last mail is enough to support a new panel.

The LVDS panel failed duo to the  wrong voltage(5V, while not 3.3V) has been input the LVDS.

0 Kudos