The MIPI DSI panel is encountering problems while transitioning from BSP 5 to BSP 6 on the Verdin 8M

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

The MIPI DSI panel is encountering problems while transitioning from BSP 5 to BSP 6 on the Verdin 8M

跳至解决方案
1,143 次查看
Rabeb
Contributor II

Hi,

 I am currently involved in the migration process from BSP 5.x to BSP 6.5. I am utilizing the VerdIn8mm on a customized board. However, I am encountering difficulties in loading the display driver with BSP 6, as I am receiving error messages.

Rabeb_0-1718033046698.png

Any ideas on how to fix this problem with BSP6? It was working fine with BSP5. Thank you

 

0 项奖励
回复
1 解答
1,091 次查看
Rabeb
Contributor II

Hello @AldoG ,thank you for your answer. I fixed the problem by creating a patch for the /gpu/drm/bridge/sec-dsim.c file. Here’s what I did.

I replaced this lines :

 

mvporch |= MVPORCH_SET_MAINVBP(vmode->vback_porch) | MVPORCH_SET_STABLEVFP(vmode->vfront_porch) | MVPORCH_SET_CMDALLOW(0x0);

 

with this lines

 

mvporch |= MVPORCH_SET_MAINVBP(vmode->vback_porch) | MVPORCH_SET_STABLEVFP(vmode->vfront_porch - 15) | MVPORCH_SET_CMDALLOW(0xf);

 

Then i added MIPI_DSI_MODE_VSYNC_FLUSH to dsi->mode_flags when setting mode, typically inside the panel driver.

在原帖中查看解决方案

2 回复数
1,099 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

I believe that you are using Toradex BSP, correct?
If so, I would recommend to also contact their support channel for assitance on this regard.

For the issue on the logs it reports that it failed to attach the bridge, have you compared for any driver changes between version, especifically on the device tree bindings.

Best regards/Saludos,
Aldo.

0 项奖励
回复
1,092 次查看
Rabeb
Contributor II

Hello @AldoG ,thank you for your answer. I fixed the problem by creating a patch for the /gpu/drm/bridge/sec-dsim.c file. Here’s what I did.

I replaced this lines :

 

mvporch |= MVPORCH_SET_MAINVBP(vmode->vback_porch) | MVPORCH_SET_STABLEVFP(vmode->vfront_porch) | MVPORCH_SET_CMDALLOW(0x0);

 

with this lines

 

mvporch |= MVPORCH_SET_MAINVBP(vmode->vback_porch) | MVPORCH_SET_STABLEVFP(vmode->vfront_porch - 15) | MVPORCH_SET_CMDALLOW(0xf);

 

Then i added MIPI_DSI_MODE_VSYNC_FLUSH to dsi->mode_flags when setting mode, typically inside the panel driver.