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.

AM335X: serial touchscreen

Other Parts Discussed in Thread: AM3358

MCU:AM3358

SDK:6.0\

I changed the data frame of touchit213.c for drive my serial touchscreen,and then set the port  protocal and device ID in user space. But the return of ioctl(fd,SPIOCSTYPE,&devt) is -1 

part of code  :

#define SERIO_MD 0x3f

.........

unsigned long devt = SERIO_MD | (SERIO_ANY << 8) | (SERIO_ANY << 16);

ioctl(fd,SPIOCSTYPE,&devt)