Difference between revisions of "TSC2102 Linux driver"

From ArmadeusWiki
Jump to: navigation, search
(Usage)
(Usage)
Line 27: Line 27:
 
To check driver fonctionnality immediatly, touch the screen and check that tsc2102 interrupts count is increasing:
 
To check driver fonctionnality immediatly, touch the screen and check that tsc2102 interrupts count is increasing:
 
  # cat /proc/interrupts
 
  # cat /proc/interrupts
 +
          CPU0
 +
26:          0        MPU  IMX-uart
 +
29:        17        MPU  IMX-uart
 +
30:        22        MPU  IMX-uart
 +
35:        12        MPU  imx-mmc
 +
39:        14        MPU  I2C_IMX
 +
40:        16        MPU  imx-spi.2
 +
41:          0        MPU  imx-spi.1
 +
59:      3682        MPU  i.MX Timer Tick
 +
60:          0        MPU  DMA
 +
61:          0        MPU  DMA
 +
110:        0        GPIO  eth0
 +
'''168:        0        GPIO  tsc2102'''
 +
Err:        0
 +
#
  
 
==Links==
 
==Links==

Revision as of 17:30, 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
          CPU0
26:          0         MPU  IMX-uart
29:         17         MPU  IMX-uart
30:         22         MPU  IMX-uart
35:         12         MPU  imx-mmc
39:         14         MPU  I2C_IMX
40:         16         MPU  imx-spi.2
41:          0         MPU  imx-spi.1
59:       3682         MPU  i.MX Timer Tick
60:          0         MPU  DMA
61:          0         MPU  DMA
110:         0        GPIO  eth0
168:         0        GPIO  tsc2102
Err:         0
#

Links