How can I display 1024x768 resolution data on LVDS display in I.MX8QM board

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

How can I display 1024x768 resolution data on LVDS display in I.MX8QM board

895 次查看
mallibeerala
Contributor III

Hi,

How can I display 1024x768 resolution data on LVDS display in I.MX8QM board.

I am able to display 1920x1200 resolution data on LVDS display.

Dtb file: imx8qm-mek-jdi-wuxga-lvds1-panel.dtb

Kernel Version - 5.15.32

Here for different resolutions I am changing compatible filed in lvds1_panel.

for 1920x1200 resolution, compatible = "jdi, tx26d202vm0bwa" -> working

for 1024x768 resolution, compatible = "innolux, g121x1-l03" -> not working

Please help us to resolve this Issue.

Thanks,
Mallikarjuna

0 项奖励
7 回复数

875 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Can you share your changes and timing?

0 项奖励

868 次查看
mallibeerala
Contributor III

Hi Zhiming,

I am using below timings.

static const struct drm_display_mode innolux_g121x1_l03_mode = {
.clock = 65000,
.hdisplay = 1024,
.hsync_start = 1024 + 0,
.hsync_end = 1024 + 1,
.htotal = 1024 + 0 + 1 + 320,
.vdisplay = 768,
.vsync_start = 768 + 38,
.vsync_end = 768 + 38 + 1,
.vtotal = 768 + 38 + 1 + 0,
.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
};

static const struct panel_desc innolux_g121x1_l03 = {
.modes = &innolux_g121x1_l03_mode,
.num_modes = 1,
.bpc = 6,
.size = {
.width = 246,
.height = 185,
            },
.delay = {
.enable = 200,
.unprepare = 200,
.disable = 400,
           },
};

Thanks,
Mallikarjuna

0 项奖励

853 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You need modify lvds-channel node:

fsl,data-mapping = "spwg";
fsl,data-width = <24>;

The data-width of your panel should be 18 and you need also confirm the data-mapping. 

0 项奖励

842 次查看
mallibeerala
Contributor III

Hi,

I am setting LVDS node as below settings and I configured my LVDS display as 8bit Input Mode

&ldb2 {
status = "okay";
fsl,dual-channel;

lvds-channel@0 {
fsl,data-mapping = "spwg";
fsl,data-width = <24>;
status = "okay";

port@1 {
reg = <1>;

lvds1_out: endpoint {
remote-endpoint = <&panel_lvds1_in>;
};
};
};
};

please find the attached dtsi file.

Thanks,
Mallikarjuna

0 项奖励

839 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You set bpc=6 in timing, you can try bpc=8

Zhiming_Liu_0-1691559963130.png

 

0 项奖励

823 次查看
mallibeerala
Contributor III

Hi,

I am able to display on LVDS display but displaying in SPLIT screen.

how can I disable split screen.

Kernel  Version: 5.15.32.

Thanks,
Mallikarjuna

0 项奖励

789 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @mallibeerala 

Have you add  "fsl,dual-channel" property in your ldb node?

Best Regards

Zhiming

0 项奖励