Skip to content

pjx3/cm4-panel-jdi-lt070me05000

 
 

Repository files navigation

Overview

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

  1. 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.

  2. Mount boot partition onto your computer.

  3. Enable and connect the serial console.

    1. Add enable_uart=1 to the config.txt file on boot partition.
    2. Use the serial interface to connect to Raspberry Pi: elinux.org instruction.
  4. Enable USB port.
    By default, to conserve power, USB is not enabled on CM4.
    To enable, add dtoverlay=dwc2,dr_mode=host to config.txt.

  5. 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.

  6. On the Raspberry Pi,

    1. Install git and dkms:
    sudo apt-get update
    sudo apt-get install git dkms
    
    1. 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
    
  7. 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   
    
  8. Enable sound.
    Add the following to /boot/config.txt:

    # Sound configuration   
    dtparam=audio=on   
    dtoverlay=hifiberry-dac   
    dtoverlay=i2s-mmap   
    
  9. Reboot.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.5%
  • Shell 4.6%
  • Makefile 1.9%