Android9.0+imx8mini mipi to lvds issue?

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

Android9.0+imx8mini mipi to lvds issue?

6,833 Views
传策薛
Contributor V

Hi community:

Someone passed the mipi output function on imx8mini? Using the official evk board, using "fsl-imx8mm-ddr4-evk-rm67191.dts", mipi reports the following:

Any kind people come help?

[ 1.629364] imx_sec_dsim_drv 32e10000.mipi_dsi: wait pkthdr tx done time out
[ 1.629370] panel-lt-lt9211 32e10000.mipi_dsi.0: [drm:lt9211_panel_enable] *ERROR* Failed to exit sleep mode (-16)
[ 1.629375] panel-lt-lt9211 32e10000.mipi_dsi.0: [drm:lt9211_panel_enable] *ERROR* lt9211_panel_prepare failed (-16)
[ 1.629379] imx_sec_dsim_drv 32e10000.mipi_dsi: panel enable failed: -16

Labels (1)
14 Replies

5,960 Views
jieh朱
Contributor III

Hello, I am also debugging lt9211 recently, there is very little online information, you can share the driver of lt9211 to me? thank you

0 Kudos
Reply

5,960 Views
aber
Contributor III

you can write an i2c driver by referring to the microcontroller program, mainly to initialize the register.

0 Kudos
Reply

5,960 Views
nxp31
Contributor II

Reply to @Linh Nguyen

> I also face the same problem with NT35596 based MIPI DSI LCD. Actually, the first 6 MIPI DSI commands work fine (after LCD panel reset signal),

> then "wait pkthdr tx done time out" error returned on all later MIPI commands.

I added a new display (the ORIC ORC03003N-40) using the Sitronix ST7701 driver chip  to the iMX8MM EVK.

I patched the Raydium rm67191 driver by only changing the init sequence to the manufacturer command set of the new display, adjusted the pixel clock, and corrected the number of lanes in the corresponding dts and I immediately got colored stripes shown on the display.

One important observation is that the raydium driver uses

mipi_dsi_generic_write() to send mipi commands, which is working, while mipi_dsi_dcs_write_buffer() failed with "wait payload tx done time out" or ""wait pkthdr tx done time out" errors (in kernel log) after about four successful writes.

Find patches for i.MX8MM Android 10 sources below.

Apply with

cd imx-android-10/android_build/vendor/nxp-opensource/kernel_imx

git apply 0001-add-st7701-driver-shows-stripes-not-finished.patch

cd imx-android-10/android_build/device/fsl

git apply 0001-change-mipi-display-to-st7701.patch

0 Kudos
Reply

5,960 Views
LinhNguyen
Contributor III

I also face the same problem with NT35596 based MIPI DSI LCD. Actually, the first 6 MIPI DSI commands work fine (after LCD panel reset signal), then "wait pkthdr tx done time out" error returned on all later MIPI commands.

But MIPI DSI commands work fine on other type of LCD driver IC.

I'm using iMX8M Mini.

Did you solved the error? or any idea? Thank you.

0 Kudos
Reply

5,960 Views
aber
Contributor III

driver panel_enable method modifly:

ret = mipi_dsi_dcs_write(dsi, MIPI_DCS_WRITE_CONTROL_DISPLAY,
(u8[]){ 0x24 }, 1);
if (ret < 0) {
dev_err(dev, "failed to write control display: %d\n", ret);
return ret;
}

/* Set pixel format to RGB888 */
ret = mipi_dsi_dcs_set_pixel_format(dsi, 0x77);
if (ret < 0) {
DRM_DEV_ERROR(dev, "Failed to set pixel format (%d)\n", ret);
goto fail;
}

5,960 Views
aber
Contributor III

hello @传策 薛 , 8mm Driver lt9211 display screen split screen jitter encountered ?e2c36e543d2bd1db3380d478201b0f5.jpg

0 Kudos
Reply

5,240 Views
zhouyq
Contributor II

Hello, I also encountered this problem, how did you solve it?

0 Kudos
Reply

5,960 Views
daluotuo
Contributor I

hello,  on our 8mm custom board , lt9211 driver output error log " LT9211 pcr unstable".

I try to modify lt9211 drive Pcr_M value  and check pcr_stable more times ,but no use。

Have you seen the same problem?  

0 Kudos
Reply

4,483 Views
ziv_chen
Contributor I

Hi, 

Do you have source code link?

0 Kudos
Reply

5,960 Views
传策薛
Contributor V

maybe the config problem

0 Kudos
Reply

5,960 Views
aber
Contributor III

problem solved ! tks!

0 Kudos
Reply

5,960 Views
joanxie
NXP TechSupport
NXP TechSupport

did you use hdmi though mipi dsi?rm67191 is for oled, if you want to use hdmi, try to use the default dtb, like fsl-imx8mm-evk.dtb

0 Kudos
Reply

5,960 Views
传策薛
Contributor V

Our design is mipi to lvds, so I want the mipi end to always output a stable signal to the chip processing, our chip is lt9211

0 Kudos
Reply

5,960 Views
joanxie
NXP TechSupport
NXP TechSupport

as I mentioned, use fsl-imx8mm-evk.dtb, rm67191 is for oled

0 Kudos
Reply