Skip to content

Hardware & Kernel DRM Driver for RPI DSI Displays.

License

Notifications You must be signed in to change notification settings

zhy404777/RPI_DSI_Displays

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPI_DSI_Displays

Hardware & Kernel DRM Driver for RPI DSI Displays.
Note: This repository is still under development. Feel free to open issues if you have any questions or suggestions.
Simplified Chinese(简体中文)

Why DSI?

Compared from SPI/DPI panels,DSI panels has taken these advantages:

  • High refresh rate(~60fps)
  • Easy to wire
  • Consume less gpio resources
  • Low power consumption

Limitation

Circuit

Due to the circuit design of Raspberry Pi boards, the current (RPi 4b) on-board DSI connector only routes out 2 DSI lanes, with a maximum resolution of 720p.
If you want to drive a panel with more than 2 lanes, you may need to consider the compute module.

RPiOS

You must enable DRM first in order to use this driver.
In Raspberry Pi OS releases after 2022-1-28, DRM is enabled by default.
Old releases of RPiOS may not support DRM,so use latest version of RPiOS is recommended.

How to use

Note: If the raspberrypi-kernel-headers package is not installed, then use of this setup script will automatically install it and install the latest kernel from apt source. If you do not wish to upgrade, you must download the kernel headers that match your kernel version and build this driver on your own.
Clone this repository on your Raspberry Pi:

git clone https://github.com/CNflysky/RPI_DSI_Drivers
cd RPI_DSI_Drivers/

Then run:

sudo ./lcd.sh

if you want to get adapters,take a look at adaptersdirectory.
You can view it on OSHWHub too:Link(Chinese version only)

Port your own panel driver

Here
Translated from my blog,may not 100% accurate.

Supported(Or WIP) Panel

Part Number Diagonal Resolution Interface Connector TP Note
W280BF036I 2.8 Inch VGA(480x640) DSI 1 Lane 24p Connector None
W500IE020 5.0 Inch FWVGA(480x854) DSI 2 Lane 30p Connector None Working in progress

Gallery

W280BF036I

w280bf036i_neofetch w280bf036i_htop w280bf036i_vim w280bf036i_cmatrix w280bf036i_ufotest

About

Hardware & Kernel DRM Driver for RPI DSI Displays.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 76.7%
  • Shell 22.0%
  • Makefile 1.3%