This repository contains a PCB design and drivers for Raspberry Pi CM4 Сarrier with Hi-Res MIPI Display project.
For details, see https://hackaday.io/project/176098-raspberry-pi-cm4-arrier-with-hi-res-mipi-display
The display used is JDI LT070ME05000 with Goodix touch input driver IC. The project also uses MCP23008 IO expander to save some GPIO pins.
Raspberry Pi only supports its official 7-inch MIPI DSI display with FKMS(Fake/Firmware KMS) out of the box. To make the display work, we need to use full KMS and Linux kernel driver for the panel.
The PCB design is contained in the KiCAD directory.
-
Install the latest Raspberry PI OS image, either on SD card (with CM4 Lite) or onto eMMC. With Lite version, you can use SD card instruction, otherwise use eMMC instruction.
The jumper that enables boot from usb is located near the micro-USB connector on the PCB. -
Mount
boot
partition onto your computer. -
Enable and connect the serial console.
- Add
enable_uart=1
to the config.txt file onboot
partition. - Use the serial interface to connect to Raspberry Pi: elinux.org instruction.
- Add
-
Enable USB port.
By default, to conserve power, USB is not enabled on CM4.
To enable, adddtoverlay=dwc2,dr_mode=host
to config.txt. -
Boot your Raspberry Pi and connect it to the internet. If you have a module without Wi-Fi, you need a USB Wi-Fi or Ethernet adapter. If Wi-Fi doesn't work, and you are receiving the message like "Could not communicate with wpa_supplicant" from raspi-config when trying to set up wireless network, you may need to add the following
allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
to /etc/network/interfaces and then reboot.
-
On the Raspberry Pi,
- Install git and dkms:
sudo apt-get update sudo apt-get install git dkms
- Clone the repository and install the drivers
git clone https://github.com/renetec-io/cm4-panel-jdi-lt070me05000.git cd cm4-panel-jdi-lt070me05000 ./setup.sh
-
Enable display driver.
Add the following in the end of /boot/config.txt:dtparam=i2c_vc=on lcd_ignore=1 dtoverlay=vc4-kms-v3d-pi4,noaudio dtoverlay=cm4-dsi-lt070me05000
-
Enable sound.
Add the following to /boot/config.txt:# Sound configuration dtparam=audio=on dtoverlay=hifiberry-dac dtoverlay=i2s-mmap
-
Reboot.