IMX53 with a resistive touchscreen supplies no data.

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

IMX53 with a resistive touchscreen supplies no data.

1,311 Views
JonTrulson1z
Contributor I

Hi, I'm using an imx53 QSB, and an LVDS panel from Future Electronics along with their PIM (Panel Interface Module).

The Panel is ahttp://tianma-europe.com/downloads/tm104sbh01_f_v2.1.pdf TM104SBH01 made by Tianma, a 10.4 inch  LVDS panel with a 4-wire resistive touchscreen.

I've hooked everything up correctly and the video is fine.  However I cannot get any data from the touchscreen itself.  I am using Freescale's ltib environment.  According to my research, the device should be accessable via the built in da9052-tsi.  This driver does load ok (though it always did even before I got the touchscreen panel - the controller is built into the imx).

According to dmesg , the device should be located at /dev/input/event1.

When I run evtest /dev/input/event1 ,I get the following:

Input driver version is 1.0.0
Input device ID: bus 0x13 vendor 0x15b6 product 0x9052 version 0x101
Input device name: "da9052-tsi"
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     1023
    Event code 1 (Y)
      Value      0
      Min        0
      Max     1023
    Event code 24 (Pressure)
      Value      0
      Min        0
      Max     1023
Testing ... (interrupt to exit)


...and that's it.  The initial output looks ok, but I get no data.

Has anybody any suggestions or clues on where I might look?

TIA.

Tags (2)
0 Kudos
4 Replies

756 Views
JonTrulson1z
Contributor I

Thanks - I am using the 11.09 BSP.  Try as I might, I cannot get any data out of /dev/input/event1.  I am not sure how to determine whether the hw is working - I think the issue is with the future electronics PIM board, as that's where the tsc is connected.  Thanks for the info.  I will try once again to contact them.

0 Kudos

756 Views
xizhouwang
Contributor II

Used to set them like this

export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CALIBFILE=/etc/pointercal

in the previous BSP before run the ts_calibarate (only once)

 

The 11.09 BSP has fixed it, the latest binary image works fine without any change from the SD card. It may worth a try to make show the TS hardware is working.

0 Kudos

756 Views
JonTrulson1z
Contributor I

Hi xizhou, thanks for the response.  The evtest output you list is identical to mine.  Running ts_test:

root@freescale ~$ ts_test
/dev/touchscreen/ucb1x00: No such file or directory

If I set TS_DEVICE, and run, like so:

TSLIB_TSDEVICE=/dev/input/event1 ts_test

It draws the 'test' screen on the LCD, However there is no data.  :(

When you use the evtest program like you did above, do you see data?  Do you have TSLIB_TSDEVICE set in your environment? 

Thanks.

xizhou wang said:

Jon. The log below is from my QSB but with SEIKO LCD. What's your output when you run the ts_test?

 You should see the data log on the console and the simple test interface to draw lines on the screen.

 

root@ifxdemo ~$ evtest /dev/input/event1
Input driver version is 1.0.0
Input device ID: bus 0x13 vendor 0x15b6 product 0x9052 version 0x101
Input device name: "da9052-tsi"
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     1023
    Event code 1 (Y)
      Value      0
      Min        0
      Max     1023
    Event code 24 (Pressure)
      Value      0
      Min        0
      Max     1023
Testing ... (interrupt to exit)

 

root@ifxdemo ~$ ts_test
301.828923:    596     43    505
301.838896:    595     40    500
301.848908:    596     39    497
301.868895:    597     39    485
301.878894:    598     43    433
301.940722:    602     50      0
302.438923:    539    249    489
302.448916:    529    250    479

...

0 Kudos

756 Views
xizhouwang
Contributor II

Jon. The log below is from my QSB but with SEIKO LCD. What's your output when you run the ts_test?

 You should see the data log on the console and the simple test interface to draw lines on the screen.

 

root@ifxdemo ~$ evtest /dev/input/event1
Input driver version is 1.0.0
Input device ID: bus 0x13 vendor 0x15b6 product 0x9052 version 0x101
Input device name: "da9052-tsi"
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     1023
    Event code 1 (Y)
      Value      0
      Min        0
      Max     1023
    Event code 24 (Pressure)
      Value      0
      Min        0
      Max     1023
Testing ... (interrupt to exit)

 

root@ifxdemo ~$ ts_test
301.828923:    596     43    505
301.838896:    595     40    500
301.848908:    596     39    497
301.868895:    597     39    485
301.878894:    598     43    433
301.940722:    602     50      0
302.438923:    539    249    489
302.448916:    529    250    479

...

0 Kudos