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.

Linux/TSC2013-Q1: tsc2013 can not work good on the amlogic m805

Part Number: TSC2013-Q1

Tool/software: Linux

hi:

    we use tsc2013-q1 on the mcu amlogic m805 to use the touchscreen.

    In the driver probe,i configure follow 

CFG[62] = 0xa58c
CFG[6a] = 0x0
CFG[72] = 0xb81c

and when touch ,i set the control byte this mode

regmap_raw_write(tsc2013->regmap,0x84,&err,0);

when the os boot,i touch the touchscreen,i read the x1,x2,y1,y2,z1,z2,ix,iy by this function

regmap_read(tsc2013->regmap,0x01,&x1);
regmap_read(tsc2013->regmap,0x09,&x2);
regmap_read(tsc2013->regmap,0x11,&y1);
regmap_read(tsc2013->regmap,0x19,&y2);
regmap_read(tsc2013->regmap,0x21,&ix);
regmap_read(tsc2013->regmap,0x29,&iy);
regmap_read(tsc2013->regmap,0x31,&z1);
regmap_read(tsc2013->regmap,0x39,&z2);

i touch the five point,and debug the value

central point

[ 362.943039@1] [huzz]x1=2019,x2=2019,y1=2008,y2=2008,ix= 279,iy= 614,z1=1271,z2=3560
[ 362.923054@1] [huzz]x1=2019,x2=2019,y1=2008,y2=2008,ix= 279,iy= 614,z1=1271,z2=3560
top left corner
[ 403.603312@1] [huzz]x1=3939,x2=3942,y1= 455,y2= 458,ix= 279,iy= 614,z1=1827,z2=3408
[ 403.623013@1] [huzz]x1=3939,x2=3942,y1= 455,y2= 458,ix= 279,iy= 614,z1=1827,z2=3408
top right corner
[ 442.734165@1] [huzz]x1= 178,x2= 177,y1= 923,y2= 921,ix= 279,iy= 614,z1= 83,z2=3520
[ 442.753042@1] [huzz]x1= 178,x2= 177,y1= 923,y2= 921,ix= 279,iy= 614,z1= 83,z2=352
left bottom
[ 473.407590@1] [huzz]x1=3975,x2=3973,y1=3838,y2=3832,ix= 279,iy= 615,z1=2092,z2=4037
[ 473.423043@1] [huzz]x1=3975,x2=3973,y1=3838,y2=3832,ix= 279,iy= 615,z1=2092,z2=4037

right bottom
[ 527.683138@1] [huzz]x1= 160,x2= 162,y1=3856,y2=3863,ix= 278,iy= 614,z1= 201,z2=3976
[ 527.623171@0] [huzz]x1= 160,x2= 162,y1=3856,y2=3863,ix= 278,iy= 615,z1= 202,z2=3976

the x,y value is wrong,not get the true value.

How can I modify to work correctly?

PS:the touch screen work good when it work with am335x.

m805 touch schematic diagram

am335x