Integrate edt-ft5x06 Touchscreen Driver into imx6dl Boot2qt Image

Hello, I have an LCD with a Touch Controller Focaltech FT512GM, for this I need the driver edt-FT5x06. How can I integrate this driver into the boot2qt image in the easiest way?

hello @mhug and Welcome to the Toradex Community!

Could you provide the version of the Hardware and Software of your module?

Thanks and best regards,
Jaski

Module Colibri IMX6DL 512MB V1.0A
Software Boot to Qt for Embedded Linux 2.5.3

Hi @mhug

You can do a:

uname -r

After that you can download the linux-toradex kernel from http://git.toradex.com/cgit/linux-toradex.git/ and checkout the commit followed by:
+g

Now you can build the same kernel as you have on the target. By using the toolchain from Qt you should even be able to recompile the exact same version so that you can only build the required module. Do something like:

export ARCH=arm
export CROSS_COMPILE=<PATH to Qt GCC>
make colibri_imx6_defconfig
# Activate missing driver

You can find more information regarding kernel build in the following article:
https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code

Further you will have to add the touch controller to your devicetree file:
https://developer.toradex.com/device-tree-customization

It will probably look similar to something like this:

%i2c<your bus> {
	polytouch: edt-ft5x06@38 {
		compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
		reg = <0x38>;
		pinctrl-names = "default";
		pinctrl-0 = <&edt_ft5x06_pins>; // You have to modify this, this should configure your gpios
		interrupt-parent = <&gpio2>; // You have to modify this
		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;  // You have to modify this to mach the gpio interrupt
		reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; // You have to modify this
		wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; // You have to modify this
	};
};

Regards,
Stefan

Hello Stefan
I could do all the steps, but I couldn’t find the path for the QT gcc anywhere. How can I find this path?
Regards, Martin

Hi @mhug

You can point to the folder where the QT gcc from the SDK is located

Best regards,
Jaski