Ft5x06 Touch Screen With Imx6q Sabre AI Board

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

Ft5x06 Touch Screen With Imx6q Sabre AI Board

1,035 Views
nandishguruling
Contributor III

Hello  ALL,

i am trying to interface the Ft5x06 touch (ST7789S LCD) with imx6q Sabre AI board, i am getting the interrupt signal, but touch is not working, it is very urgent task can any one help me to solve this issue, Please find the attached source files, Logs and pics, your help would be very appreciated,

Thanks in advance,

Best Regards

Nandish SG.

Original Attachment has been moved to: imx6q-sabreauto.dts.zip

Original Attachment has been moved to: ft5x06_ts.c.zip

Original Attachment has been moved to: imx6qdl-sabreauto.dtsi.zip

Original Attachment has been moved to: sabrelog.txt.zip

Original Attachment has been moved to: imx6qdl.dtsi.zip

0 Kudos
5 Replies

688 Views
jimmychan
NXP TechSupport
NXP TechSupport

This may useful for you :

https://community.nxp.com/message/366950

 

please try 'evtest' to check the touch is working or not.

0 Kudos

688 Views
nandishguruling
Contributor III

Hi Jimmychan,

Thanks for your reply, i checked the 'evtest' please see the below log, when touch the LCD some prints will print on Terminal, those prints are i wrote in driver file for testing purpose, but Touch Panel is not active i mean its not change states .

root@imx6qsabreauto:/# ls       
bin   dev  home     lib         media  opt   run   sys  unit_tests  var
boot  etc  install  lost+found  mnt    proc  sbin  tmp  usr
root@imx6qsabreauto:/# cd dev/input/
root@imx6qsabreauto:/dev/input# ls
by-path  event0  event1  mice  mouse0  touchscreen0
root@imx6qsabreauto:/dev/input# hexdump event0
^C
root@imx6qsabreauto:/dev/input# hexdump event1
^C
root@imx6qsabreauto:/dev/input# hexdump touchscreen0
^C
root@imx6qsabreauto:/dev/input# evtest event0
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x38 version 0x0
Input device name: "ft5x06"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 330 (Touch)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value      0
      Min        0
      Max      239
    Event code 1 (Y)
      Value      0
      Min        0
      Max      319
    Event code 24 (Pressure)
      Value      0
      Min        0
      Max        1
    Event code 47 (?)
      Value      0
      Min        0
      Max       15
    Event code 53 (Position X)
      Value      0
      Min        0
      Max      239
    Event code 54 (Position Y)
      Value      0
      Min        0
      Max      319
    Event code 57 (Tracking ID)
      Value      0
      Min        0
      Max       12
Testing ... (interrupt to exit)
^C
root@imx6qsabreauto:/dev/input# evtest event1
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys.19"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 102 (Home)
    Event code 114 (VolumeDown)
    Event code 115 (VolumeUp)
    Event code 158 (Back)
    Event code 362 (Program)
Testing ... (interrupt to exit)

 

^C
root@imx6qsabreauto:/dev/input# evtest touchscreen0
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x38 version 0x0
Input device name: "ft5x06"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 330 (Touch)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value      0
      Min        0
      Max      239
    Event code 1 (Y)
      Value      0
      Min        0
      Max      319
    Event code 24 (Pressure)
      Value      0
      Min        0
      Max        1
    Event code 47 (?)
      Value      0
      Min        0
      Max       15
    Event code 53 (Position X)
      Value      0
      Min        0
      Max      239
    Event code 54 (Position Y)
      Value      0
      Min        0
      Max      319
    Event code 57 (Tracking ID)
      Value      0
      Min        0
      Max       12
Testing ... (interrupt to exit)
^C
root@imx6qsabreauto:/dev/input#

0 Kudos

688 Views
jimmychan
NXP TechSupport
NXP TechSupport

Have you add the tslib? Have you export the tslib environment variables?

For your reference.

https://community.nxp.com/thread/333126#446489 

https://community.nxp.com/message/830193 

0 Kudos

688 Views
nandishguruling
Contributor III

Hi Jimmychan,

I am trying to do the https://community.nxp.com/thread/333126#446489  (Yanjun Luo) answer but "tslib"  is not  there,

could you please explain elaborately, how to add and export, 

Best Regards

Nandish SG

0 Kudos

688 Views
jimmychan
NXP TechSupport
NXP TechSupport
0 Kudos