How can I replace eGalax touch driver with FT5x06 (FT5206) on LOLLIPOP 5.0.0?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I replace eGalax touch driver with FT5x06 (FT5206) on LOLLIPOP 5.0.0?

2,493 Views
atakan
Contributor II

Hello,

I have a Sabre SD Board with its default 10" Hannstar touchscreen. Now I connected a new touchscreen and its touch driver is FocalTech FT5206.

On Android L5.0.0 source, there is a driver "edt-ft5x06.c" and i want to make it work. Only SDA, SCL and INT pins are connected to Sabre, WAKE pin is not.

I tried to edit "imx6qdl-sabresd.dtsi" file:

...

&i2c3 {

        clock-frequency = <100000>;

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_i2c3_2>;

        status = "okay";

        egalax_ts@38 {

                compatible = "eeti,egalax_ts";

                reg = <0x38>;

                interrupt-parent = <&gpio6>;

                interrupts = <7 2>;

                wakeup-gpios = <&gpio6 7 0>;

        };

        ...

};

...

Then i can observe the ACK response of FT5206 from oscilloscope. And also:

input: eGalax Touch Screen as /devices/soc0/soc.1/2100000.aips-bus/21a8000.i2c/i2c-2/2-0038/input/input0

But of course i don't expect it to work with this driver.

So i tried this:

...

&i2c3 {

        clock-frequency = <100000>;

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_i2c3_2>;

        status = "okay";

        edt-ft5x06@38 {

                compatible = "edt,edt-ft5x06";

                reg = <0x38>;

                interrupt-parent = <&gpio6>;

                interrupts = <7 2>;

        };

        ...

};

...

But after "make", there is no "edt-ft5x06.o" file generated in "kernel_imx/drivers/input/touchscreen" folder, but "egalax_ts.o" is still there.

What should i do next?

Thank you!

Labels (3)
Tags (4)
0 Kudos
Reply
1 Reply

1,096 Views
igorpadykov
NXP Employee
NXP Employee

Hi atakan

seems this touchscreen is already integrated to boundary devices releases

as Nitrogen 6x boards have it :

linux-imx6/ft5x06_ts.c at boundary-imx-l5.0.0_1.0.0-ga · boundarydevices/linux-imx6 · GitHub

Sabrelite: New FT5x06 touch screen and swapped Y (input_set_abs_params)

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply