Difference between revisions of "TSC2102 Linux driver"

From ArmadeusWiki
Jump to: navigation, search
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/tsc2102_full.ko
+
  # 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:
* Touchscreen interface: [[tslib]]
+
* 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

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:

To check driver fonctionnality immediatly, touch the screen and check that tsc2102 interrupts count is increasing:

# cat /proc/interrupts

Links