IMX8mp mipi dsi in command mode

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

IMX8mp mipi dsi in command mode

168 Views
persandberg
Contributor II

Hi,

We have a cutom board with iMX8MP and a AMOLED display with a CH13721C controller. We have video mode working but would like to use command mode and use the internal frame buffer in the display controller to show a static image on the display.
From the reference manual of iMX8mp in table 13-26 a initialization sequence is described of how to get command mode woring but I can not get it to work. I can also not find a Linux driver that fully utilyze the command mode.
Any help is much appreciated.

Skärmbild 2025-12-01 152150.png

0 Kudos
Reply
2 Replies

123 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

For this you may refer to the Linux driver:

https://github.com/nxp-imx/linux-imx/blob/lf-6.12.y/drivers/video/fbdev/mxc/mipi_dsi.c#L472

 

Best regards/Saludos,
Aldo.

0 Kudos
Reply

45 Views
persandberg
Contributor II

Thanks for responding!

Are the registers used in mipi_dsi.c the same as the ones in iMX8MP?

Have I understand it correctlly that the internal bus (S-i80) in the CPU writes to the FIFO if command mode is activated by setting bit 31 in DSIM_RGB_STATUS?

Pleas let me know if you need more information.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2252349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8mp%20mipi%20dsi%20in%20command%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20have%20a%20cutom%20board%20with%20iMX8MP%20and%20a%20AMOLED%20display%20with%20a%20CH13721C%20controller.%20We%20have%20video%20mode%20working%20but%20would%20like%20to%20use%20command%20mode%20and%20use%20the%20internal%20frame%20buffer%20in%20the%20display%20controller%20to%20show%20a%20static%20image%20on%20the%20display.%3CBR%20%2F%3EFrom%20the%20reference%20manual%20of%20iMX8mp%20in%20table%2013-26%20a%20initialization%20sequence%20is%20described%20of%20how%20to%20get%20command%20mode%20woring%20but%20I%20can%20not%20get%20it%20to%20work.%20I%20can%20also%20not%20find%20a%20Linux%20driver%20that%20fully%20utilyze%20the%20command%20mode.%3CBR%20%2F%3EAny%20help%20is%20much%20appreciated.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sk%C3%A4rmbild%202025-12-01%20152150.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sk%C3%A4rmbild%202025-12-01%20152150.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sk%C3%A4rmbild%202025-12-01%20152150.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sk%C3%A4rmbild%202025-12-01%20152150.png%22%20style%3D%22width%3A%20602px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368023i4ADC9ED1108F29AE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sk%C3%A4rmbild%202025-12-01%20152150.png%22%20alt%3D%22Sk%C3%A4rmbild%202025-12-01%20152150.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2254523%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8mp%20mipi%20dsi%20in%20command%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254523%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20this%20you%20may%20refer%20to%20the%20Linux%20driver%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.12.y%2Fdrivers%2Fvideo%2Ffbdev%2Fmxc%2Fmipi_dsi.c%23L472%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.12.y%2Fdrivers%2Fvideo%2Ffbdev%2Fmxc%2Fmipi_dsi.c%23L472%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257236%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8mp%20mipi%20dsi%20in%20command%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257236%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20responding!%3C%2FP%3E%3CP%3EAre%20the%20registers%20used%20in%20mipi_dsi.c%20the%20same%20as%20the%20ones%20in%20iMX8MP%3F%3C%2FP%3E%3CP%3EHave%20I%20understand%20it%20correctlly%20that%20the%20internal%20bus%20(S-i80)%20in%20the%20CPU%20writes%20to%20the%20FIFO%20if%20command%20mode%20is%20activated%20by%20setting%20bit%2031%20in%26nbsp%3BDSIM_RGB_STATUS%3F%3C%2FP%3E%3CP%3EPleas%20let%20me%20know%20if%20you%20need%20more%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E