Need advice for i.MX6Q and TFT-LCD via lvds

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Need advice for i.MX6Q and TFT-LCD via lvds

跳至解决方案
1,329 次查看
vladimirlegosta
Contributor I

Hello!

I have a problem with connecting TFT-LCD panel to our i.mx6 custom board (with yocto) via lvds.
The panel has resolution 1280 x 1024, but hactive 428.

With settings bellow I have a picture with correct height 1024, but wrong width. The picture is stretched.
        display-timings {
            t_lvds: t_lvds_default {
                clock-frequency = <30200000>;
                hactive = <428>;
                vactive = <1024>;
                hback-porch = <5>;
                hfront-porch = <34>;
                vback-porch = <2>;
                vfront-porch = <51>;
                hsync-len = <1>;
                vsync-len = <3>;
                /*hsync-active = <0>;
                vsync-active = <0>;
                de-active = <1>;
                pixelclk-active = <0>;*/
            };

What is the way to send three dots per clock?
Is it possible? With device tree or with Linux driver?

Thank You!

标签 (1)
0 项奖励
回复
1 解答
1,193 次查看
joanxie
NXP TechSupport
NXP TechSupport

I checked your data sheet on page6, refer to the timings chart,  it seems that imx6q couldn't support this typeTFT, for 24bits, normally imx6q support rgb in one clock,you can refer to the document as below:

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

refer to your lcd timings, you should change on your application level, on the driver level, you can set rgb888

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,193 次查看
joanxie
NXP TechSupport
NXP TechSupport

since your lcd resolution is 1280 x 1024,why did you set hactive to 428? how about set this to 1280? any improved?

0 项奖励
回复
1,193 次查看
vladimirlegosta
Contributor I

Settings 1280 x 1024 give the same result.

Because this monochrome matrix needs 428 clocks to draw 1280 pixels (page 6).
In one clock it draws 3 pixels, but the data isn't updated, so it put one pixel three times.
I think, I need to modify the picture. The picture is colored, where one pixel is 24bit R8G8B8. So I need to transform it to monochrome, where one pixel is 8bit and in one clock there will be 3*8bit pixels.
I think, this can be done in application. And I'm interesting, if it is possible with IPU driver (may be mofided driver).

0 项奖励
回复
1,194 次查看
joanxie
NXP TechSupport
NXP TechSupport

I checked your data sheet on page6, refer to the timings chart,  it seems that imx6q couldn't support this typeTFT, for 24bits, normally imx6q support rgb in one clock,you can refer to the document as below:

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

refer to your lcd timings, you should change on your application level, on the driver level, you can set rgb888

0 项奖励
回复
1,193 次查看
vladimirlegosta
Contributor I

Thank You for the answer!
We came to similar conclusions, to experiment with application

0 项奖励
回复