This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335 ti touchscreen driver ti_tsc.c or other file

Other Parts Discussed in Thread: DA8XX

Hi all,

I use on personnal board with am335 processor and resistive touchscreen panel. I use touchscreen driver from ti (ti_tsc.c).

It works but I have a problem.

When I use several time ts_test from tslib, my mouse pointer is not at same position between to ts_test execution.

I launch ts_test :

my mouse position is at a position (image1.png)

I close ts_test.

I launch again ts_test

my mouse position is at another position (image2.png)

...

sometime mouse position are same position, sometime not.

If I don't stop ts_test execution, mouse position offset compared to touch position is always the same whatever the touch position. 

Mouse position is determined from ti_tsc.c file before calibration with tslib. 

I don't know where to look or what's the problem to give this problem.

Any idea ?

thanks

  • Hi,

    Have you calibrated you touchscreen before you start the test?

  • Yes, I have calibrated touchscreen before start my tests.

  • Hi,

    You are using custom board, right?
    Have you checked this thread: e2e.ti.com/.../1126398 ?
    It seems that such problems may occur if your display settings (timings) in the kernel are not OK; have you checked your display settings in the kernel?

    Best Regards,
    Yordan
  • Hi,

    I try to check display settings. I use Ampire touchscreen Ampire AM-800480LTMQW-T00H and configuration was on Prime-View PM070WL4.

    I change my board configuration and da8xx-fb.c file (static struct da8xx_panel known_lcd_panels[]) to add my screen configuration. It changes only for pixel_clock.

    /* Ampire AM-800480LTMQW-T00H  */

    [5] = {

    .name = "AM-800480LTMQW-T00H",

    .width = 800,

    .height = 480,

    .hfp = 42, // I don't know what value is correct

    .hbp = 86 // I don't know what value is correct

    .hsw = 128,

    .vfp = 10, // I don't know what value is correct

    .vbp = 33, // I don't know what value is correct

    .vsw = 2,

    .pxl_clk = 30060000,

    .invert_pxl_clk = 1,

    },

    /* Prime-View PM070WL4 */

    [6] = {

    .name = "PV_PM070WL4",

    .width = 800,

    .height = 480,

    .hfp = 42,

    .hbp = 86,

    .hsw = 128,

    .vfp = 10,

    .vbp = 33,

    .vsw = 2,

    .pxl_clk = 32000000,

    .invert_pxl_clk = 1,

    },

     


    It doesn't change anything.

    thanks

  • Hi,

    I try to check display settings. I use Ampire touchscreen Ampire AM-800480LTMQW-T00H and configuration was on Prime-View PM070WL4.

    I change my board configuration and da8xx-fb.c file (static struct da8xx_panel known_lcd_panels[]) to add my screen configuration. It changes only for pixel_clock.

    /* Ampire AM-800480LTMQW-T00H */

    [5] = {

    .name = "AM-800480LTMQW-T00H",

    .width = 800,

    .height = 480,

    .hfp = 42, //I don't know what value is required

    .hbp = 86,//I don't know what value is required

    .hsw = 128,

    .vfp = 10,//I don't know what value is required

    .vbp = 33,//I don't know what value is required

    .vsw = 2,

    .pxl_clk = 30060000,

    .invert_pxl_clk = 1,

    },

    /* Prime-View PM070WL4 */

    [6] = {

    .name = "PV_PM070WL4",

    .width = 800,

    .height = 480,

    .hfp = 42,

    .hbp = 86,

    .hsw = 128,

    .vfp = 10,

    .vbp = 33,

    .vsw = 2,

    .pxl_clk = 32000000,

    .invert_pxl_clk = 1,

    },




    It doesn't change anything.

    thanks