Difference between revisions of "TSC2102 Linux driver"
From ArmadeusWiki
m (→Usage) |
(→Usage) |
||
Line 16: | Line 16: | ||
==Usage== | ==Usage== | ||
# insmod /mnt/host/lib/modules/spi_imx.ko | # insmod /mnt/host/lib/modules/spi_imx.ko | ||
− | # insmod /mnt/host/lib/modules/ | + | # insmod /mnt/host/lib/modules/tsc2102.ko |
# insmod /mnt/host/lib/modules/evdev.ko | # insmod /mnt/host/lib/modules/evdev.ko | ||
# insmod /mnt/host/lib/modules/tsc2102_ts.ko | # insmod /mnt/host/lib/modules/tsc2102_ts.ko | ||
− | * Hwmon interface: | + | Then: |
− | * | + | * get temperature and voltage with Hwmon interface: |
− | * ALSA interface: http://www.alsa-project.org/ | + | * use touchscreen interface with [[tslib]] |
+ | * play sounds through ALSA interface: http://www.alsa-project.org/ | ||
+ | |||
+ | To check driver fonctionnality immediatly, touch the screen and check that tsc2102 interrupts count is increasing: | ||
+ | # cat /proc/interrupts | ||
==Links== | ==Links== |
Revision as of 15:21, 26 August 2007
Contents
Installation
$ make linux-menuconfig
Architecture
Touchscreen (tsc2102_ts.ko) | HWmon | ALSA |
---|---|---|
TSC2102 Main driver (tsc2102.ko) | ||
Linux API |
Usage
# insmod /mnt/host/lib/modules/spi_imx.ko # insmod /mnt/host/lib/modules/tsc2102.ko # insmod /mnt/host/lib/modules/evdev.ko # insmod /mnt/host/lib/modules/tsc2102_ts.ko
Then:
- get temperature and voltage with Hwmon interface:
- use touchscreen interface with tslib
- play sounds through ALSA interface: http://www.alsa-project.org/
To check driver fonctionnality immediatly, touch the screen and check that tsc2102 interrupts count is increasing:
# cat /proc/interrupts
Links
- http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=log;t=7 (search for TSC2102)
- http://osdir.com/ml/linux.ports.arm.omap/2006-08/msg00183.html
- Touchscreen usage on Blackfin
- Compiling TSlib
- http://www.opentom.org/Tslib
- http://www.openembedded.org/filebrowser/org.openembedded.packaged-staging/packages/tslib