This repository was archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 496
FBTFT RPI overlays
F1zye edited this page Aug 12, 2020
·
28 revisions
How to make your own Device Tree overlay for the Raspberry Pi
Compile dtb and put it directly into it's destination:
sudo dtc -@ -I dts -O dtb -o /boot/overlays/foo.dtbo foo-overlay.dts
Load the overlay by adding this to /boot/config.txt:
dtoverlay=foo
Then reboot to load the overlay.
Refs:
- Official Raspberry Pi docs: Device Trees, Overlays and Parameters
- Info about all official overlays: /boot/overlays/README
- DT overlay source: arch/arm/boot/dts/overlays (this is for 4.19, make sure to pick the right version)
- This is from my earlier work on DT, and can be used as a source for info on displays that don't have an overlay yet: https://github.com/notro/fbtft/blob/master/dts/rpi.dts
If you have made an overlay and want to share it, add a link here. GitHub Gist can be used to store the overlay.
- JBTEK 3.5" LCD: https://github.com/acidjazz/jbtekoverlay
- Waveshare 3.2"/3.5": https://github.com/swkim01/waveshare-dtoverlays
- Elecfreaks 2.2" LCD: https://github.com/philenotfound/rpi_elecfreaks_22_tft_dt_overlay
- Adafruit 13m: https://github.com/kenrestivo/linux/blob/3d61a22b05cbf7ac2f6b620dcd45c2fb49fb9442/arch/arm/boot/dts/overlays/adafruit13m-overlay.dts
- Sainsmart 3.2": https://github.com/Flugtiger/sainsmart32-dtoverlay
- Media Center HAT by Pi Suppply - 2.83" LCD with extras: https://github.com/raspberrypi/linux/blob/rpi-4.9.y/arch/arm/boot/dts/overlays/media-center-overlay.dts
- Adafruit / SainSmart / ST7735R 1.8": https://gist.github.com/F1zye/81afbc541d6481b1bf988a2dc592a5bd