[Buildroot] Integrating ft6x06 touchscreen driver

Peter Seiderer ps.report at gmx.net
Mon Oct 26 19:46:49 UTC 2015


Hello David,

On Sat, 24 Oct 2015 09:34:07 +0000 (UTC), David PICARD <davepiq at yahoo.fr> wrote:

> 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].


> 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-0002.bin>


More information about the buildroot mailing list