mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
Add support for PiTFT 2.8" with capacitive touch
Add support for the Adafruit PiTFT Plus 320x240 2.8" TFT with Capacitive Touchscreen, using the same patterns used for the other versions of the PiTFT screens. Signed-off-by: Erik Botö <erik.boto@gmail.com>
This commit is contained in:
parent
09f35259a2
commit
e7c856ee7b
|
@ -30,6 +30,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
|
||||||
overlays/pi3-miniuart-bt.dtbo \
|
overlays/pi3-miniuart-bt.dtbo \
|
||||||
overlays/pitft22.dtbo \
|
overlays/pitft22.dtbo \
|
||||||
overlays/pitft28-resistive.dtbo \
|
overlays/pitft28-resistive.dtbo \
|
||||||
|
overlays/pitft28-capacitive.dtbo \
|
||||||
overlays/pitft35-resistive.dtbo \
|
overlays/pitft35-resistive.dtbo \
|
||||||
overlays/pps-gpio.dtbo \
|
overlays/pps-gpio.dtbo \
|
||||||
overlays/rpi-ft5406.dtbo \
|
overlays/rpi-ft5406.dtbo \
|
||||||
|
|
|
@ -204,6 +204,7 @@ modelname should be added as a MACHINE_FEATURES in local.conf like below:
|
||||||
List of currently supported models:
|
List of currently supported models:
|
||||||
* pitft22
|
* pitft22
|
||||||
* pitft28r
|
* pitft28r
|
||||||
|
* pitft28c
|
||||||
* pitft35r
|
* pitft35r
|
||||||
|
|
||||||
## Misc. display
|
## Misc. display
|
||||||
|
|
|
@ -20,6 +20,7 @@ INHIBIT_DEFAULT_DEPS = "1"
|
||||||
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
|
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
|
||||||
PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}"
|
PITFT22="${@bb.utils.contains("MACHINE_FEATURES", "pitft22", "1", "0", d)}"
|
||||||
PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}"
|
PITFT28r="${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "1", "0", d)}"
|
||||||
|
PITFT28c="${@bb.utils.contains("MACHINE_FEATURES", "pitft28c", "1", "0", d)}"
|
||||||
PITFT35r="${@bb.utils.contains("MACHINE_FEATURES", "pitft35r", "1", "0", d)}"
|
PITFT35r="${@bb.utils.contains("MACHINE_FEATURES", "pitft35r", "1", "0", d)}"
|
||||||
|
|
||||||
VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
|
VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
|
||||||
|
@ -144,6 +145,11 @@ do_deploy() {
|
||||||
echo "# Enable PITFT28r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "# Enable PITFT28r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
echo "dtoverlay=pitft28-resistive,rotate=90,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "dtoverlay=pitft28-resistive,rotate=90,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
fi
|
fi
|
||||||
|
if [ "${PITFT28c}" = "1" ]; then
|
||||||
|
echo "# Enable PITFT28c display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
echo "dtoverlay=pitft28-capacitive,rotate=90,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
echo "dtoverlay=pitft28-capacitive,touch-swapxy,touch-invx" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
fi
|
||||||
if [ "${PITFT35r}" = "1" ]; then
|
if [ "${PITFT35r}" = "1" ]; then
|
||||||
echo "# Enable PITFT35r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "# Enable PITFT35r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
echo "dtoverlay=pitft35-resistive,rotate=90,speed=42000000,fps=20" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
echo "dtoverlay=pitft35-resistive,rotate=90,speed=42000000,fps=20" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||||
|
|
Loading…
Reference in New Issue
Block a user