-

CommentStreams:945c65d757a614ca11f5148697e3d459

From Geekworm Wiki
< 2.8 inch Touch Screen for Pi zero
Revision as of 11:12, 11 January 2025 by 75.28.21.198 (talk) (Migrated comment #5448)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

For Raspbian Bookworm (the most recent) you should be able to just add the following to your config.txt:

dtoverlay=vc4-kms-dpi-panel,mzp280,rotate=270 dtoverlay=spi0-0cs dtoverlay=ads7846,penirq=27,xmin=200,xmax=3850,ymin=200,ymax=3850

The first dtoverlay to add vc4-kms-dpi-panel is required to bring up the display itself and requires us to also enable vc4-kms-v3d (which I think is the default now anyway). The second dtoverlay allows us to use the SPI bus without a CS pin (which is taken currently by the DPI display), and the third dtoverlay lets us enable the touch screen.

For some reason, the touch screen has 1 axis inverted currently, and while the mainline driver supports such scenarios the device tree overlay does not.