这是发布在Hackaday并开源在Github上的一款项目,使用树莓派CM4的DSI接口驱动7寸1920*1280分辨率的LCD屏幕。
板上有:
- 标准的RPi 40-pin插座用于外设和集成
- 用于连接显示器的4-lane MIPI DSI接口
- 用于连接触摸屏的I2C接口
- micro-SD卡座
- USB 2.0 host连接器
- PCM音频放大器,有3W的功率输出
- USB-C供电连接器
- micro-USB连接器用于刷新板上的eMMC
- 通用的按键
- 电源和状态指示LED
- 安装固定的座
Github上关于如何使用和配置该板卡的介绍:
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.
Setup
-
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.