Hi Team
I am getting error on LCD interface over MIPI-DSI, on IMX8MM. We are interfacing ST7796s on the processor and it is giving error of unsupported bus format.
The bus format that the LCD supports is MEDIA_BUS_FMT_RGB666_1X24_CPADHI, which I figured out from the function imx_sec_dsim_encoder_helper_atomic_check() -> bus_format = adjusted_mode->private_flags & 0xffff.
[ 8.557632] ***** RK: 124 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.557637] $$$$ bus_format: 4117, num_bus_formats = 1 $$$$
[ 8.557637]
[ 8.557639] ***** RK: 128 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.557642] ****** RK *******
[ 8.557643]
[ 8.557643]
[ 8.557643] RK: pix_clk: 13860
[ 8.557644]
[ 8.557644]
[ 8.557644] RK: bit_clk: 332640
[ 8.557773] ***** RK: 146 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.557774] ***** RK: 152 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.557776] ***** RK: 167 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.557791] imx-lcdif-crtc imx-lcdif-crtc.0: unsupported bus format: 0x1015
[ OK ] Started DNS forwarder and DHCP server.
[ 8.663423] ***** RK: 124 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.663428] $$$$ bus_format: 4117, num_bus_formats = 1 $$$$
[ 8.663428]
[ 8.663430] ***** RK: 128 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.663432] ****** RK *******
[ 8.663433]
[ 8.663433]
[ 8.663433] RK: pix_clk: 13860
[ 8.663434]
[ 8.663434]
[ 8.663434] RK: bit_clk: 332640
[ 8.663565] ***** RK: 146 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.663567] ***** RK: 152 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.663568] ***** RK: 167 imx_sec_dsim_encoder_helper_atomic_check ******
[ 8.663583] imx-lcdif-crtc imx-lcdif-crtc.0: unsupported bus format: 0x1015
[ OK ] Started Weston Wayland Compositor (on tty7).
[ OK ] Created slice User Slice of UID 0.
Starting User Runtime Directory /run/user/0...
[ OK ] Started User Runtime Directory /run/user/0.
Starting User Manager for UID 0...
[ OK ] Started User Manager for UID 0.
[ OK ] Started Session c1 of user root.
[ 9.388059] ******* RK *******
[ 9.398811]
[ 9.398811] Bus Format return: 0
[ OK ] Started Variscite Bluetooth setup service.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
[ 9.516218] ***** RK: 124 imx_sec_dsim_encoder_helper_atomic_check ******
[ 9.527050] $$$$ bus_format: 4117, num_bus_formats = 1 $$$$
[ 9.527050]
[ 9.540297] ***** RK: 128 imx_sec_dsim_encoder_helper_atomic_check ******
[ 9.550757] ****** RK *******
[ 9.561425]
[ 9.561425]
[ 9.561425] RK: pix_clk: 13860
[ 9.572274]
[ 9.572274]
[ 9.572274] RK: bit_clk: 332640
[ 9.582585] ***** RK: 146 imx_sec_dsim_encoder_helper_atomic_check ******
[ 9.592269] ***** RK: 152 imx_sec_dsim_encoder_helper_atomic_check ******
[ 9.604262] ***** RK: 167 imx_sec_dsim_encoder_helper_atomic_check ******
[ 9.611263] imx-lcdif-crtc imx-lcdif-crtc.0: unsupported bus format: 0x1015
How can I check the bus format supported by the processor and LCD module?
Hi @joanxie
We are able to resolve the issue, we had to enable the flag MIPI_DSI_CLOCK_NON_CONTINUOUS and use the RGB mode 565 and many more configuration changes. Find attached code directory.
Hi @joanxie
Does IMX8MM processor not support the bus format - 0x1015 Why are we getting this error? We need response on this ASAP. Its the issue of processor i think.
When I boot with RGB666, I get the unsupported bus format. But when I boot with RGB666_PACKED, the processor hangs and does not boot up completely. Can you help us please?
what format do you use? rgb666? as I known imx8mm has "imx-lcdif-crtc imx-lcdif-crtc.0: unsupported bus format" message, even you don't connect any displya, what's your output from the lcd? nothing or wrong color? and what bsp version do you use?
Hi @joanxie
Thanks for responding. Yes, our LCD supports RGB666 format. But our LCD is connected over MIPI-DSI interface of the SOM module. So we will have to use the LCDIF CRTC configurations?
We are not getting any display on the LCD screen. We are using BSP: zeus-fsl-5.4.3-mx8mm-v1.1 based on L5.4.3-1.0.0.
Can you please help us urgently on this. We are pretty much stucked.
did you add your own panel driver? you can refer to the rm6719, which supports MEDIA_BUS_FMT_RGB666_1x18
you also can refer to the topic as below:
Yes, we have implemented according to the same configurations as attached - rm6719, but we are getting the same error of unsupported bus format.
Please find attached updated code. Could you please help us more? Does IMX8MM not support CPADHI configuration?
Hi @joanxie
I resolved the issue of unsupported bus format