Skip to main content

DSI

This section introduces how to use the DSI interface function on the Raspberry Pi, laying the foundation for subsequent project development.

Note: If a DSI configuration is added to config.txt, regardless of whether a DSI screen is connected, the display output will primarily use the DSI interface (i.e., if the DSI configuration is enabled and only an HDMI interface is connected (if the hardware has HDMI), the HDMI will not display the main desktop but will function as an extended display).
Note: The DSI interface is disabled by default and requires configuration in the config.txt file before use.

DSI Interface Selection

  • Enable the DSI interface (disabled by default)
  • Open the config.txt file (choose the correct path based on your system version):
    sudo nano /boot/config.txt            # For some older system versions
    sudo nano /boot/firmware/config.txt   # For most newer system versions
  • To use only DSI0 (MIPI0), add the following line:
    dtoverlay=vc4-kms-dsi-7inch,dsi0    #DSI0 (MIPI0)
  • To use only DSI1 (MIPI1), add the following line:
    dtoverlay=vc4-kms-dsi-7inch,dsi1    #DSI1 (MIPI1)
  • To use both DSI0 (MIPI0) and DSI1 (MIPI1) simultaneously, add both lines:
    dtoverlay=vc4-kms-dsi-7inch,dsi0    #DSI0 (MIPI0)
    dtoverlay=vc4-kms-dsi-7inch,dsi1 #DSI1 (MIPI1)
  • After modification, reboot the Raspberry Pi to power on the DSI screen normally
    sudo reboot