LVDS panel flicker issues on imx8mq

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

LVDS panel flicker issues on imx8mq

2,805 Views
asabil
Contributor I

Hi,

We have been struggling with screen flickering issues with a 1024x600 LVDS panel on an imx8mq based SOM.

This issue appears both with the DCSS controller as well as the LCDIF controller. The conversion from MIPI-DSI to LVDS is done through the sn65dsi83 chip from TI.

The issues exists both when using the 4.14.78 as well as the 4.14.98 BSP release. The official 4.14.98 release refuses to set the proper clocks, but after receiving a set of patches from NXP we were able to get the Linux DRM subsystem to initialise properly, however even with the provided patches the screen flickering persisted.

After a long investigation, we found out that by applying the following patch to 4.14.98, the screen flicker disappears completely: 

diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 8ab58946c379..b0dc538c8554 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -602,8 +602,9 @@ static void __init imx8mq_clocks_init(struct device_node *ccm_node)   clk_set_parent(clks[IMX8MQ_CLK_AUDIO_AHB], clks[IMX8MQ_SYS2_PLL_500M]);     /* config video_pll1 clock */ - clk_set_parent(clks[IMX8MQ_VIDEO_PLL1_REF_SEL], clks[IMX8MQ_CLK_27M]); - clk_set_rate(clks[IMX8MQ_VIDEO_PLL1], 593999999); +        clk_set_parent(clks[IMX8MQ_VIDEO_PLL1_REF_SEL], clks[IMX8MQ_CLK_25M]); +        clk_set_rate(clks[IMX8MQ_VIDEO_PLL1], 500000000);

We are unsure about this change and why it would be necessary?

Thanks,

Ali

Labels (1)
0 Kudos
5 Replies

2,226 Views
asabil
Contributor I

Hi Diego,

The patchset can be seen here:

Comparing 861f4fee8f04615dd1079f38d7cb8f21a5807d25..0ac29edb6a5759c8f86c82bfa1a1e7204fd96e1e · koper... 

The internal NXP ticket IDs is: MLK-21958 (We received 13 sequential patches)

This was provided to us through our chip supplier.

Best,

Ali

0 Kudos

2,226 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Let me try the solution before reporting this internally.

Best regards,

Diego.

0 Kudos

2,226 Views
diegoadrian
NXP Employee
NXP Employee

I was reviewing the patches and the fsl-imx8mq.dtsi differs from the one that we have. Are you using our EVK board?

Best regards,

Diego.

0 Kudos

2,226 Views
hahuonga2
Contributor I

Hi diegoadrian,

I'm facing the quite same problem with asabil.

The hardware (bridge: SN65DSI83-q1, imx8mq) and software are the same as him.

The Linux version is 4.14.98-2.0.0-ga, MIPI core controller is DCSS. 

So, Diego, could you please tell me your run/test result based on Ali's solution?

0 Kudos

2,226 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

You mentioned that you received a patch from NXP. Do you have the whole patch? Or is just what you posted? Furthermore, could you please tell the person who provided you the patch?

Best regards,

Diego.

0 Kudos