Problems with touchscreen driver

6 views
Skip to first unread message

MasterX

unread,
May 25, 2008, 4:36:20 PM5/25/08
to Virtual Cogs
Hi everyone,

Did anybody managed to successfully run touchscreen driver module
tsc2100.ko?
I tried the following:

1. Loaded tsc2100.ko module by "insmod tsc2100.ko". It successfully
loaded with the following output:

Interrupt request: int=155 name=tsc2100: TSC2100: GPIO Init
TSC2100: Amp off
input: tsc2100_ts as /class/input/input1
TI-TSC2100 TouchScreen Driver initialized
TSC2100: Audio Init
Interrupt request: int=40 name=DMA: Interrupt request: int=41
name=DMA: <7>CLASS: registering class device: ID = 'pcmC0D0p'
TI-TSC2100 ALSA Audio Driver initialized
touchscreen timeout_workaround=1 timeout_regdump=0
AUDMUX_HPCR1=0x7000 AUDMUX_PPCR1=0xc3001000 PCCR0=0x750a627f
SSI1_SCR=0x39
SSI1_SRCR=0x2cd SSI1_STCR=0x2ed SSI1_STCCR=0xf700
SSI1_SFCSR=0x810064

2. Now I have set of processes in /proc/ti-tsc2100 folder and can
access information from touchscreen simply by:
cat /proc/ti-tsc2100/touchscreen/coordinates

3. Then, to access touchscreen as a device, I have created:
mknod /dev/input0 c 13 0
But when I try to access /dev/input0, it gives the following error
message:
"/dev/input0: No such device". I tried different minor numbers from 0
till 10 - still the same. Major number is definitely 13 - I checked in
driver sources.

What is the reason for this problem? Maybe, I miss something?

MasterX

unread,
May 26, 2008, 1:10:46 PM5/26/08
to Virtual Cogs
Forgot to add that audio driver works well - i.e. after I inserted
tsc2100.ko module,
I can access device /dev/audio. For example, typing "cat /dev/audio"
will produce
---
snd_tsc2100_capture_open(): returning success
TSC2100: PCM_HW_PARAMS
TSC2100: Capture prepare (Rate=8000)
TSC2100: Capture trigger
TSC2100: Capture trigger
---

But /dev/input0 doesn't work.

MasterX

unread,
May 27, 2008, 5:48:03 AM5/27/08
to Virtual Cogs
Ok, problem is solved.
I modified tsc2100 sources, and figured out that it requires minor
number 64 for touchscreen driver.
So, after I created "mknod /dev/input0 c 13 64", everything works
well, and I managed to
successfully run touchscreen utilities from TSLIB package.


> Forgot to add that audio driver works well - i.e. after I inserted
> tsc2100.ko module,
> I can access device /dev/audio. For example, typing "cat /dev/audio"
> will produce
> ---
> snd_tsc2100_capture_open(): returning success
> TSC2100: PCM_HW_PARAMS
> TSC2100: Capture prepare (Rate=8000)
> TSC2100: Capture trigger
> TSC2100: Capture trigger
> ---
>
> But /dev/input0 doesn't work.
>
>
Reply all
Reply to author
Forward
0 new messages