Hi All,
I'm using I.MX6 sabresd formy layer and qt wayland for my OS system.
I'm using 4.3 inch which the resolution is 480X272.
I've modify the dts file to match my panel.
my panel can show things out but with the wrong resolution.
I using below commend to see the resolution in my OS system.
cat /sys/devices/soc0/fb@0/graphics/fb0/modes
And It shows this to me.
800x480p-57
I don't know why it will happend?
I certainly sure that I'm giving 480X272 to my dts file.
Is that freescale cannot support the resolution(480X272)?
Or I have to setting anything else?
Finally, I found the solution.
In this file "linux-imx/4.1.15-r0/git/drivers/video/fbdev/mxc/mxc_lcdif.c" I have to redefined the default resolution of lcd.
Below is what I had modify.
#include "../../../../include/dt-bindings/panel/tm043.h"
.
.
.
static struct fb_videomode lcdif_modedb[] = {
#if 0
{
/* 800x480 @ 57 Hz , pixel clk @ 27MHz */
"CLAA-WVGA", 57, 800, 480, 37037, 40, 60, 10, 10, 20, 10,
FB_SYNC_CLK_LAT_FALL,
FB_VMODE_NONINTERLACED,
0,},
{
/* 800x480 @ 60 Hz , pixel clk @ 32MHz */
"SEIKO-WVGA", 60, 800, 480, 29850, 89, 164, 23, 10, 10, 10,
FB_SYNC_CLK_LAT_FALL,
FB_VMODE_NONINTERLACED,
0,},
#endif{///*LCD winmate frank add 480x272 @ 60 Hz , pixel clk @ 9MHz */
DISP_NAME,PANEL_REFRESH,
PANEL_XRES, PANEL_YRES,
PANEL_PIXCLOCK,
PANEL_LEFT_MARGIN,
PANEL_RIGHT_MARGIN,
PANEL_UPPER_MARGIN,
PANEL_LOWER_MARGIN,
PANEL_HSYNC_LEN,
PANEL_VSYNC_LEN,
FB_SYNC_EXT,
FB_VMODE_NONINTERLACED,
0,},
};
"../../../../include/dt-bindings/panel/tm043.h" is the file that I add myself to defined different panel value.