Skip to contentSkip to conversation

Integrating ft6x06 touchscreen driver

Buildroot David PICARD 2 participants 2 messages Oct 24, 2015 – Oct 26, 2015

lore
Share & tools
lore
#0 lore raw

Hi,
I could successfully build a system for the RPi B+ and Adafruit's PiTFT 2.8" capacitive touchscreen. The frame buffer works, and I can see my test Qt5 app on the TFT. Happy week for a noob !

So far, so good. But I'm stuck at the touchscreen part. I saw a driver (ft6x06) in Adafruit's git tree, but I don't really know how to use it. So, I'd be pleased if you could give me some guidelines. Alternatively, I could use a USB mouse. But I although I could see an entry in /dev/input, the pointer would not show up on the TFT device.
Thanks,David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151024/d17cd602/attachment.html>

#1 lore raw

Hello David,

Quoted 4 lines · David PICARD

Hi,
I could successfully build a system for the RPi B+ and Adafruit's PiTFT 2.8" capacitive touchscreen. The frame buffer works, and I can see my test Qt5 app on the TFT. Happy week for a noob !

So far, so good. But I'm stuck at the touchscreen part. I saw a driver (ft6x06) in Adafruit's git tree, but I don't really know how to use it. So, I'd be pleased if you could give me some guidelines.

See attached patch against buildroot which adds ft6x06 support for the rpi linux kernel (works for me), you have to add:

	BR2_LINUX_KERNEL_PATCH="board/raspberrypi/linux-4.1.5-rpi

to your buildroot config (and rebuild the linux kernel) and add:

CONFIG_TOUCHSCREEN_FT6X06=m

to your linux kernel config. The patches port the adafruit patches to the linux-4.1.5 kernel tree.

But a newer version (supporting device tree configuration) is coming soon, see [1].

Quoted 2 lines

Alternatively, I could use a USB mouse. But I although I could see an entry in /dev/input, the pointer would not show up on the TFT device. Thanks,David.

No mouse cursor with a qt5 application, but I get the mouse/touch events....

Basic check with

	$ cat /dev/input/event0 | hexdump
or
	$ evtest
or
	$ /usr/lib/qt/examples/touch/fingerpaint/fingerpaint -platform linuxfb:fb=/dev/fb1

Regards,
Peter

[1] http://lkml.iu.edu/hypermail/linux/kernel/1510.0/00403.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-raspberrypi-add-ft6x06_ts-support.patch
Type: text/x-patch
Size: 39363 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151026/82c3dcc6/attachment.bin>