Questions? Call us: +1 760-918-6722

Linux driver FT5426

we are working on a project using the RZG1M starter kit with DisplayTech display [DT070BTFT-PTS1] with PCAP, Which is having the FT5426 Focal Tech Touch controller. we are using the Yocto 1.6 kernel version 3.10.
 

When I requested for drivere files I got following files in the PATH PCAP/SampleCode/Linux/

1. ft5x06_ts.c and ft5x06_ts.h
2. focaltech_ex_fun.c and focaltech_ex_fun.h

 

We have following queries:

1. The display which we are using having the FT5426, but the driver which is there in the above mentioned is named as FT5x06, Is this a correct driver for FT5426?

2. Do we have a patch file to build the driver in to linux?

3. Can you please provide us the procedure to include this driver in linux. 

4. the file focaltech_ex_fun.c contains the functionalities for upgrading the firmware for different chip variants, Do we need this to make the touch working or its just a tool to upgrade the firmware in future?

 

Regards 

Bala

Replies

engineering_seacomp's picture
engineering_seacomp
January 28, 2019

Hi,

You do not need the focaltech_ex_fun.c and focaltech_ex_fun.h, only the ft5x06_ts.c and ft5x06_ts.h.  The FT5426 is compatible with these files.

For yocto, it is best if you use what is supplied for focaltech in the kernel configuration.  Typically these are going to be drivers/input/touchscreen/edt-ft5x06 which are edt drivers.

We are using the edt-ft5x06 driver without modification.  Our device tree entries are:

&i2c3 {

    touch: ft5x06_ts@38 {

        compatible = "edt,edt-ft5x06";

        reg = <0x38>;

        interrupt-parent = <&gpio1>;

        interrupts = <4 0>;

         touchscreen-size-x = <1024>;

         touchscreen-size-y = <600>;

         status = "disabled";

     };

};

 

GBALACHA910's picture
GBALACHA910
February 18, 2019

Hi,

your suggestion for touch has worked, we could able to make the touch working in yocto2.0 (kernel4.4) with edt driver through menu config. Thank you so much.

However we are facing issue in display in yocto2.0, colours are missing and due to that texts are not visible. I think, we are missing to set the display configuration parameters in yocoto2.0 (ex freq, hdisplay, vdisplay, hsync etc). Can you please help us with procedure to make the display working in yocto 2.0

regards

Bala

engineering_seacomp's picture
engineering_seacomp
February 19, 2019

Hi,

Please use the following:

Here are the display settings for yocto linux device for the DT070BTFT.

static const struct fb_videomode custom_mode = {

                /* 1024x600 @ 60 Hz, 31.5 kHz hsync */

                NULL, 60, 1024, 600, 19512, 140, 160, 20, 12, 20, 3, 3,

                FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, FB_MODE_IS_VESA,

};

Here are the display settings for yocto linux device for the DT070BTFT.

static const struct fb_videomode custom_mode = {

                /* 1024x600 @ 60 Hz, 31.5 kHz hsync */

                NULL, 60, 1024, 600, 19512, 140, 160, 20, 12, 20, 3, 3,

                FB_VMODE_NONINTERLACED | FB_VMODE_ASPECT_16_9, FB_MODE_IS_VESA,

};

For you board design, be sure to use the following LVDS layout recommendations for IMX6 from the IMX6DQ6SDLHDG.pdf?

•Follow standard high-speed differential routing rules for signal integrity.
•Each differential pair should be length matched to ± 5 mils.
•LVDS differential pairs should have a differential impedance of 100 ohm
•Note that there are no pad control registers for the LVDS signals. So drive strength is not controllable through software.

https://www.screencast.com/t/0SMWaiFK

•The space between two adjacent differential pairs should be greater than or equal to twice the space between the two individual conductors.
•The skew between LVDS pairs should be within the minimum recommendation (± 100 mil).

 

 

GBALACHA910's picture
GBALACHA910
February 25, 2019

Hi

We tried to make the changes as you suggestedd but we are unable to find the structure name as you mentioned above(static const struct fb_videomode custom_mode).
We are using the yocto 2.0 with kernel 4.4, there we are having the driver file called panel-simple.c.
We are using the renesas RZG1M starter kit, there we have the dts file named r8a7743-skrzg1m.dts.

Can you tell how we can modifiy the dts and panel-simple.c as per your display timing values.
I attached both dts (file extension changed for r8a7743-skrzg1m.dts to r8a7743-skrzg1m.txt) and panel-simple.c files.

regards

Bala

engineering_seacomp's picture
engineering_seacomp
February 26, 2019

Hi,

There are so many different versions of linux and display drivers, that we cannot support every variant.  We have given some guidance for yocto using IMX, which is very close to what you will be implementing.  Please search the web (or in your case NXP's website) for "fb_videomode" so you can see the settings.

As an example:

https://community.nxp.com/thread/390965

Thanks,