24bit LVDS display looks like wrong color depth on imx6DL AI PDK

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

24bit LVDS display looks like wrong color depth on imx6DL AI PDK

2,045 Views
hyun-moyang
Contributor III

I have a 24bit LVDS display that I am running on PDK imx6dl AI board.

The images look like they are being displayed at the wrong color depth.

I have modified drivers/video/mxc/ldb.c to add a new entry for my

display:

static struct fb_videomode ldb_modedb[] = {

    {

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

     220, 40,

     21, 7,

     60, 10,

     FB_SYNC_CLK_LAT_FALL,

     FB_VMODE_NONINTERLACED,

     FB_MODE_IS_DETAILED,},

}

I also modified my kernel board file to add a matching entry and made

sure to specify IPU_PIX_FMT_RGB24

static struct ipuv3_fb_platform_data qmx6_fb_data[] = {

    { /*fb0*/

        .disp_dev        = "ldb",

        .interface_pix_fmt    = IPU_PIX_FMT_RGB24,

        .mode_str        = "LDB-XGA",

        .default_bpp        = 24,

        .int_clk        = false,

    },

    {

        .disp_dev        = "ldb",

        .interface_pix_fmt    = IPU_PIX_FMT_RGB24,

        .mode_str        = "LDB-XGA",

        .default_bpp        = 24,

        .int_clk        = false,

    },

    {

        .disp_dev                = "lcd",

        .interface_pix_fmt        = IPU_PIX_FMT_RGB24,

        .mode_str                = "CLAA-WVGA",

        .default_bpp            = 24,

        .int_clk                = false,

    },

}

Is there something else I need to setup in kernel in order to get a 24bit

LVDS panel working?

Labels (2)
0 Kudos
1 Reply

947 Views
igorpadykov
NXP Employee
NXP Employee

Hi Hyun-mo

you can look below

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

and check that you changed parameter

if=RGB666′ to ‘if=RGB24′ on the kernel command-line

Best regards

igor

0 Kudos