Skip to content

imx8m change display mipi dsi

Richard Hu edited this page Mar 26, 2020 · 6 revisions

Change default display to 5-inch MIPI-DSI panel (ILI9881 controller)

Step 1. Change to load the DTB with enabled MIPI 5-inch panel under u-boot prompt

Method 1. Set up u-boot environment variable of fdt_file

For i.MX8MQ/i.MX8MM:

Please refer to:

Change DTB for i.MX8MQ

Change DTB for i.MX8MM

Method 2. Change to load the DTB with enabled MIPI via uENV.txt (Yocto 2.2 doesn't support)

Use mfgtool to mount eMMC as usb storage on host PC. Then open uEnv.txt file in first FAT partition.

Assign 'mipi5' for 'display' parameter in uEnv.txt

display=mipi5
bootcmd_mmc=run loadimage;run mmcboot;
uenvcmd=run bootcmd_mmc

To specify the resolution for HDMI output:

display=hdmi
displayinfo=video=HDMI-A-1:1280x720@60
mmcargs=setenv bootargs console=${console} root=${mmcroot} cma=${cma_size} ${displayinfo}
bootcmd_mmc=run loadimage;run mmcboot;
uenvcmd=run bootcmd_mmc

Step 2. Change resolution settings in weston.ini to correct coordinate of touch panel for 5 inch MIPI panel

[output]
#name=HDMI-A-1
#mode=1920x1080@60
#transform=90
name=DSI-1
transform=90
mode=720x1280@60
[shell]
#size=1920x1080