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.

Problem in Touch screen

Other Parts Discussed in Thread: ADS7846, WL1271, TVP5146M2

Hi All,

         I m using HT70JF i2c  based Touchscreen with  7" inch LCD Display , But its not communicating with LCD ,

 Where we need  to change the board file ?

How to link the LCD with Touch Screen .when i touch the touch screen its shown the following interrupt .Can you Please give the Solution for this .

#
# ==========irq=============
[ 2189.585906]
[ 2189.585906]  FINGER 1 the coordinates read = b0 98 0 f2
[ 2189.592834]  FINGER 2:the coordinates read = 0 0 0 f0
[ 2189.598480]  REG_EVENT_STATUS read = 43
[ 2189.602905]  **** event_stack = 0 0 0 0 ==========irq=============
[ 2189.610260]
[ 2189.610260]  FINGER 1 the coordinates read = b0 98 0 f0
[ 2189.617156]  FINGER 2:the coordinates read = 0 0 0 f2
[ 2189.622772]  REG_EVENT_STATUS read = 7
[ 2189.627136]  **** event_stack = 0 0 0 0 ==========irq=============
[ 2189.634307]
[ 2189.634307]  FINGER 1 the coordinates read = b0 98 0 f3
[ 2189.641235]  FINGER 2:the coordinates read = 0 0 0 2
[ 2189.646667]  REG_EVENT_STATUS read = 11
[ 2189.651458]  **** event_stack = 26 0 0 0
[ 2189.657592]  FINGER 1 the coordinates read = ff ff ff 3
[ 2189.663146]  FINGER 2 the coordinates read = ff ff ff 2
[ 2189.668670]  FINGER 3 the coordinates read = ff ff ff f
[ 2189.674224]  FINGER 4 the coordinates read = ff ff ff 7 F x1 = 4095, y1 = 4095
[ 2189.681945] F x2 = 4095, y2 = 4095
[ 2189.685485] F x3 = 4095, y3 = 4095
[ 2189.689025] F x4 = 4095, y4 = 4095
[ 2189.692596] ==========irq=============
[ 2189.697479]
[ 2189.697479]  FINGER 1 the coordinates read = ff ff ff 3
[ 2189.704376]  FINGER 2:the coordinates read = ff ff ff 2
[ 2189.710418]  REG_EVENT_STATUS read = 10
[ 2189.715026]  **** event_stack = 46 15 84 0
[ 2189.721313]  FINGER 1 the coordinates read = ff ff ff 3
[ 2189.726867]  FINGER 2 the coordinates read = ff ff ff 2
[ 2189.732421]  FINGER 3 the coordinates read = ff ff ff f
[ 2189.737976]  FINGER 4 the coordinates read = ff ff ff 7 F x1 = 4095, y1 = 4095
[ 2189.745697] F x2 = 4095, y2 = 4095
[ 2189.749237] F x3 = 4095, y3 = 4095
[ 2189.752777] F x4 = 4095, y4 = 4095
[ 2189.756347] ==========irq=============
[ 2189.761138]
[ 2189.761138]  FINGER 1 the coordinates read = ff ff ff 3
[ 2189.768005]  FINGER 2:the coordinates read = ff ff ff 2
[ 2189.774047]  REG_EVENT_STATUS read = 10
[ 2189.778656]  **** event_stack = 16 b0 98 0
[ 2189.784942]  FINGER 1 the coordinates read = ff ff ff 3
[ 2189.790496]  FINGER 2 the coordinates read = ff ff ff 2
[ 2189.796051]  FINGER 3 the coordinates read = ff ff ff f
[ 2189.801574]  FINGER 4 the coordinates read = ff ff ff 7 F x1 = 4095, y1 = 4095
[ 2189.809326] F x2 = 4095, y2 = 4095
[ 2189.812866] F x3 = 4095, y3 = 4095
[ 2189.816406] F x4 = 4095, y4 = 4095

Thanks in advance
Bhagavath Ram
  • Hi Bhagavath,

    First you need to check whether you receive interrupts from touch screen. You can use "cat /proc/interrupts" command for this.

    Next You need to check whether touch events are reported by the kernel input subsystem. You can use "getevent" utility at android terminal.

    If you get events for all touch instances with a nonzero, you can assure that the events will reach Android Event hub and the Input Manager.

    Finally just need to calibrate the x,y values. You can follow the ads7646.c example done for the OMAP3EVM.

  • Hi Arun

                                 Can you Please check get event ,interrupt & log file as below ..   

    -------getevent-------

    add device 1: /dev/input/event2
      name:     "7k_ffa_keypad"
    add device 2: /dev/input/event1
      name:     "ssd2531_input"                        /// our TOUCH SCREEN
    could not get driver version for /dev/input/mice, Not a typewriter
    add device 3: /dev/input/event0
      name:     "TWL4030 Keypad"
    add device 4: /dev/input/event3
      name:     "twl4030_pwrbutton"

    -----------Interrupt-----------

    CPU0
      7:          0        INTC  TWL4030-PIH
     11:          0        INTC  prcm
     12:       2142        INTC  DMA
     20:          0        INTC  gpmc
     21:       3716        INTC  SGX ISR
     24:          0        INTC  omap-iommu.0, OMAP3 ISP
     25:        532        INTC  OMAP DSS
     37:       3962        INTC  gp timer
     56:        522        INTC  omap_i2c
     57:          2        INTC  omap_i2c
     61:       5852        INTC  omap_i2c
     72:         67        INTC  serial idle, OMAP UART0
     73:          0        INTC  serial idle
     74:          0        INTC  serial idle
     77:          0        INTC  ehci_hcd:usb1
     80:          0        INTC  serial idle
     83:       6729        INTC  mmc0
     86:        144        INTC  mmc1
     92:          0        INTC  musb-hdrc.0
     93:          0        INTC  musb-hdrc.0
    203:        285        GPIO  ssd2531
    335:          0        GPIO  ads7846
    369:          0     twl4030  twl4030_keypad
    376:          0     twl4030  twl4030_pwrbutton
    379:          0     twl4030  rtc0
    384:          0     twl4030  mmc0
    Err:          0

    ------------------------LOG File--------------------


    Texas Instruments X-Loader 1.46 (Oct 21 2011 - 08:35:44)
    Starting X-loader on MMC
    Reading boot sector

    218408 Bytes Read from MMC
    Starting OS Bootloader from MMC...
    Starting OS Bootloader...


    U-Boot 2010.06-dirty (Feb 03 2012 - 12:10:06)

    OMAP34xx/35xx-GP ES2.1, CPU-OPP2 L3-165MHz
    OMAP3 EVM board + LPDDR/NAND
    I2C:   ready
    DRAM:  128 MiB
    NAND:  HW ECC [Kernel/FS layout] selected
    1024 MiB
    *** Warning - bad CRC or NAND, using default environment

    In:    serial
    Out:   serial
    Err:   serial
    Read back SMSC id 0xffff0000
    Die ID #251400029ff80000016842c81602702a
    Net:   No ethernet found.
    Hit any key to stop autoboot:  0
    mmc1 is available
    reading boot.scr

    458 bytes read
    Running bootscript from mmc ...
    ## Executing script at 82000000
    reading uImage

    3276584 bytes read
    ***** Kernel: /dev/mmcblk0p1/uImage *****
    ***** RootFS: /dev/mmcblk0p2 *****
    ## Booting kernel from Legacy Image at 82000000 ...
       Image Name:   Linux-2.6.37-g06ebbba-dirty
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3276520 Bytes = 3.1 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 2.6.37-g06ebbba-dirty (root@dataway-EP45-DQ6) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)2
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    [    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: OMAP3 EVM
    [    0.000000] Reserving 8388608 bytes SDRAM for VRAM
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
    [    0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 62976
    [    0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstM
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 248MB = 248MB total
    [    0.000000] Memory: 244140k/244140k available, 18004k reserved, 0K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .init : 0xc0008000 - 0xc0040000   ( 224 kB)
    [    0.000000]       .text : 0xc0040000 - 0xc0641000   (6148 kB)
    [    0.000000]       .data : 0xc0642000 - 0xc0690740   ( 314 kB)
    [    0.000000] NR_IRQS:409
    [    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
    [    0.000000] Reprogramming SDRC clock to 400000000 Hz
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
    [    0.000000] Total of 96 interrupts on 1 active controller
    [    0.000000] GPMC revision 5.0
    [    0.000000] Trying to install interrupt handler for IRQ402
    [    0.000000] Trying to install interrupt handler for IRQ403
    [    0.000000] Trying to install interrupt handler for IRQ404
    [    0.000000] Trying to install interrupt handler for IRQ405
    [    0.000000] Trying to install interrupt handler for IRQ406
    [    0.000000] Trying to install interrupt handler for IRQ407
    [    0.000000] Trying to install interrupt handler for IRQ408
    [    0.000000] Trying to install type control for IRQ409
    [    0.000000] Trying to set irq flags for IRQ409
    [    0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
    [    0.000000] pid_max: default: 32768 minimum: 301
    [    0.000000] Security Framework initialized
    [    0.000000] Mount-cache hash table entries: 512
    [    0.000000] CPU: Testing write buffer coherency: ok
    [    0.000000] regulator: core version 0.5
    [    0.000000] regulator: dummy:
    [    0.000000] NET: Registered protocol family 16
    [    0.000000] OMAP GPIO hardware version 2.5
    [    0.000000] OMAP GPIO hardware version 2.5
    [    0.000000] OMAP GPIO hardware version 2.5
    [    0.000000] OMAP GPIO hardware version 2.5
    [    0.000000] OMAP GPIO hardware version 2.5
    [    0.000000] OMAP GPIO hardware version 2.5
    [    0.000000] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.000000] OMAP DMA hardware revision 5.0
    [    0.030151] bio: create slab <bio-0> at 0
    [    0.031524] regulator: vwl1271: 1800 mV
    [    0.033203] SCSI subsystem initialized
    [    0.036254] usbcore: registered new interface driver usbfs
    [    0.036651] usbcore: registered new interface driver hub
    [    0.036895] usbcore: registered new device driver usb
    [    0.046203] omap_i2c omap_i2c.1: bus 1 rev4.0 at 2600 kHz
    [    0.049346] twl4030: PIH (irq 7) chaining IRQs 368..375
    [    0.049377] twl4030: power (irq 373) chaining IRQs 376..383
    [    0.049957] twl4030: gpio (irq 368) chaining IRQs 384..401
    [    0.055847] regulator: VIO: 1800 mV normal standby
    [    0.056610] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
    [    0.057342] regulator: VDAC: 1800 mV normal standby
    [    0.058074] regulator: VAUX2_4030: 2800 mV normal standby
    [    0.058807] regulator: VPLL2: 1800 mV normal standby
    [    0.059570] regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby
    [    0.060302] regulator: VAUX3: 2800 mV normal standby
    [    0.060791] omap_device: omap_i2c.2: new worst case activate latency 0: 30517
    [    0.069641] omap_i2c omap_i2c.2: bus 2 rev4.0 at 400 kHz
    [    0.085266] omap_i2c omap_i2c.3: bus 3 rev4.0 at 400 kHz
    [    0.085876] omap_device: omap_i2c.3: new worst case deactivate latency 0: 30517
    [    0.087249] Advanced Linux Sound Architecture Driver Version 1.0.23.
    [    0.088073] Bluetooth: Core ver 2.15
    [    0.088317] NET: Registered protocol family 31
    [    0.088317] Bluetooth: HCI device and connection manager initialized
    [    0.088348] Bluetooth: HCI socket layer initialized
    [    0.088836] Switching to clocksource 32k_counter
    [    0.216339] WL1271: BT_EN GPIO initialized
    [    0.216583] musb-hdrc: version 6.0, otg (peripheral+host), debug=0
    [    0.216705] musb-hdrc musb-hdrc.0: dma type: dma-inventra
    [    0.217071] musb-hdrc musb-hdrc.0: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
    [    0.217681] NET: Registered protocol family 2
    [    0.217864] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.218322] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.218536] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.218688] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.218719] TCP reno registered
    [    0.218719] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.218750] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.218963] NET: Registered protocol family 1
    [    0.219299] RPC: Registered udp transport module.
    [    0.219329] RPC: Registered tcp transport module.
    [    0.219329] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.219573] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.226531] omap3evm camera init done successfully...
    [    0.226806] omap-iommu omap-iommu.0: isp registered
    [    0.227111] AM37x/DM37x  Linux PSP version 04.02.00.07 (OMAP3EVM)
    [    0.383666] ashmem: initialized
    [    0.384155] VFS: Disk quotas dquot_6.5.2
    [    0.384246] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.385162] JFFS2 version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
    [    0.385803] msgmni has been set to 476
    [    0.387329] io scheduler noop registered
    [    0.387359] io scheduler deadline registered
    [    0.387481] io scheduler cfq registered (default)
    [    0.448516] OMAP DSS rev 2.0
    [    0.448608] OMAP DISPC rev 3.0
    [    0.448638] OMAP VENC rev 2
    [    0.448944] OMAP DSI rev 1.0
    [    0.778106] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.780151] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
    [    1.458099] console [ttyO0] enabled
    [    1.462158] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
    [    1.470001] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
    [    1.477813] omap_uart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
    [    1.497161] brd: module loaded
    [    1.506011] loop: module loaded
    [    1.512145] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.518951] omap2-nand driver initializing
    [    1.523620] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb3 (Micron )
    [    1.530609] Creating 5 MTD partitions on "omap2-nand.0":
    [    1.536224] 0x000000000000-0x000000080000 : "X-Loader-NAND"
    [    1.544097] 0x000000080000-0x0000001c0000 : "U-Boot-NAND"
    [    1.551971] 0x0000001c0000-0x000000280000 : "Boot Env-NAND"
    [    1.559692] 0x000000280000-0x000000780000 : "Kernel-NAND"
    [    1.569000] 0x000000780000-0x000040000000 : "File System - NAND"
    [    2.000061] OneNAND driver initializing
    [    2.004211] omap2-onenand omap2-onenand: Cannot request GPMC CS
    [    2.010437] omap2-onenand: probe of omap2-onenand failed with error -16
    [    2.019195] smsc911x: Driver version 2008-10-21.
    [    2.024566] usbcore: registered new interface driver asix
    [    2.030456] usbcore: registered new interface driver cdc_ether
    [    2.036804] usbcore: registered new interface driver net1080
    [    2.042968] usbcore: registered new interface driver cdc_subset
    [    2.049346] usbcore: registered new interface driver zaurus
    [    2.055450] usbcore: registered new interface driver zd1201
    [    2.061309] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    3.073333] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
    [    3.079376] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
    [    3.087280] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
    [    3.104675] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
    [    3.110778] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    3.117950] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.125518] usb usb1: Product: OMAP-EHCI Host Controller
    [    3.131134] usb usb1: Manufacturer: Linux 2.6.37-g06ebbba-dirty ehci_hcd
    [    3.138183] usb usb1: SerialNumber: ehci-omap.0
    [    3.143951] hub 1-0:1.0: USB hub found
    [    3.147918] hub 1-0:1.0: 3 ports detected
    [    3.182983] Initializing USB Mass Storage driver...
    [    3.188415] usbcore: registered new interface driver usb-storage
    [    3.194732] USB Mass Storage support registered.
    [    3.199829] usbcore: registered new interface driver usbtest
    [    3.205780] android init
    [    3.208526] android_probe pdata: c0652ad4
    [    3.212951] android_bind
    [    3.216369] android_usb gadget: android_usb ready
    [    3.221313] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    3.226959] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [    3.234832] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    3.242004] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.249572] usb usb2: Product: MUSB HDRC host driver
    [    3.254821] usb usb2: Manufacturer: Linux 2.6.37-g06ebbba-dirty musb-hcd
    [    3.261871] usb usb2: SerialNumber: musb-hdrc.0
    [    3.267639] hub 2-0:1.0: USB hub found
    [    3.271636] hub 2-0:1.0: 1 port detected
    [    3.276611] f_adb init
    [    3.279113] android_register_function adb
    [    3.283294] adb_bind_config
    [    3.287170] f_mass_storage init
    [    3.290710] android_register_function usb_mass_storage
    [    3.296142] f_mtp init
    [    3.298614] android_register_function mtp
    [    3.303436] mice: PS/2 mouse device common for all mice
    [    3.309906] input: TWL4030 Keypad as /devices/platform/omap/omap_i2c.1/i2c-1/1-004a/twl4030_keypad/input/input0
    [    3.322998] =====ssd2531_driver=====
    [    3.327148]
    [    3.327148] WRITE FAILED 1
    [    3.331817]
    [    3.331817] WRITE SUCCESS 1
    [    3.336517]
    [    3.336517] WRITE SUCCESS 1
    [    3.341278]
    [    3.341278] WRITE SUCCESS 1
    [    3.345977]
    [    3.345977] WRITE SUCCESS 1
    [    3.350738]
    [    3.350738] WRITE SUCCESS 1
    [    3.355499]
    [    3.355499] WRITE SUCCESS 1
    [    3.360198]
    [    3.360198] WRITE SUCCESS 1
    [    3.364807]
    [    3.364807] WRITE SUCCESS 1
    [    3.369384]
    [    3.369384] WRITE SUCCESS 1
    [    3.374084]
    [    3.374084] WRITE SUCCESS 1
    [    3.378723]
    [    3.378723] WRITE SUCCESS 1
    [    3.383331]
    [    3.383331] WRITE SUCCESS 1
    [    3.387969]
    [    3.387969] WRITE SUCCESS 1
    [    3.392547]
    [    3.392547] WRITE SUCCESS 1
    [    3.397216]
    [    3.397216] WRITE SUCCESS 1
    [    3.401855]
    [    3.401855] WRITE SUCCESS 1
    [    3.406433]
    [    3.406433] WRITE SUCCESS 1
    [    3.411102]
    [    3.411102] WRITE SUCCESS 1
    [    3.415679]
    [    3.415679] WRITE SUCCESS 1
    [    3.420349]
    [    3.420349] WRITE SUCCESS 1
    [    3.424987]
    [    3.424987] WRITE SUCCESS 1
    [    3.429565]
    [    3.429565] WRITE SUCCESS 1
    [    3.434234]
    [    3.434234] WRITE SUCCESS 1
    [    3.438812]
    [    3.438812] WRITE SUCCESS 1
    [    3.443481]
    [    3.443481] WRITE SUCCESS 1
    [    3.448059]
    [    3.448059] WRITE SUCCESS 1
    [    3.452728]
    [    3.452728] WRITE SUCCESS 1
    [    3.457366]
    [    3.457366] WRITE SUCCESS 1
    [    3.461944]
    [    3.461944] WRITE SUCCESS 1
    [    3.466613]
    [    3.466613] WRITE SUCCESS 1
    [    3.471191]
    [    3.471191] WRITE SUCCESS 1
    [    3.475860]
    [    3.475860] WRITE SUCCESS 1
    [    3.480499]
    [    3.480499] WRITE SUCCESS 1
    [    3.485076]
    [    3.485076] WRITE SUCCESS 1
    [    3.489746]
    [    3.489746] WRITE SUCCESS 1
    [    3.494323]
    [    3.494323] WRITE SUCCESS 1
    [    3.498992]
    [    3.498992] WRITE SUCCESS 1
    [    3.503631]
    [    3.503631] WRITE SUCCESS 1
    [    3.508209]
    [    3.508209] WRITE SUCCESS 1
    [    3.512878]
    [    3.512878] WRITE SUCCESS 1
    [    3.517456]
    [    3.517456] WRITE SUCCESS 1
    [    3.522125]
    [    3.522125] WRITE SUCCESS 1
    [    3.526763]
    [    3.526763] WRITE SUCCESS 1
    [    3.531341]
    [    3.531341] WRITE SUCCESS 1
    [    3.536010]
    [    3.536010] WRITE SUCCESS 1
    [    3.540588]
    [    3.540588] WRITE SUCCESS 1
    [    3.545257]
    [    3.545257] WRITE SUCCESS 1
    [    3.549835]
    [    3.549865] WRITE SUCCESS 1
    [    3.554443]
    [    3.554443] WRITE SUCCESS 1
    [    3.559204]
    [    3.559204]  value read from the 23 reg is 0 0
    [    4.071899]
    [    4.071899]  value read from the 23 reg is 2 2
    [    4.078399]
    [    4.078399]  value read from the 23 reg is 0 0
    [    4.384460] input: ssd2531_input as /devices/virtual/input/input1
    [    4.391632] input: 7k_ffa_keypad as /devices/virtual/input/input2
    [    4.399536] ads7846 spi1.0: touchscreen, irq 335
    [    4.405059] input: ADS7846 Touchscreen as /devices/platform/omap2_mcspi.1/spi1.0/input/input3
    [    4.415832] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input4
    [    4.429260] using rtc device, twl_rtc, for alarms
    [    4.434112] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
    [    4.441009] twl_rtc twl_rtc: Power up reset detected.
    [    4.446777] twl_rtc twl_rtc: Enabling TWL-RTC.
    [    4.452117] i2c /dev entries driver
    [    4.457366] Linux media interface: v0.10
    [    4.461700] Linux video capture interface: v2.00
    [    4.467254] omap3isp supply VDD_CSIPHY1 not found, using dummy regulator
    [    4.474365] omap3isp supply VDD_CSIPHY2 not found, using dummy regulator
    [    4.481567] omap3isp omap3isp: Revision 15.0 found
    [    4.486633] omap-iommu omap-iommu.0: isp: version 1.1
    [    4.550109] mt9t111 2-003c: Unable to detectmt9t111sensor
    [    4.557281] isp_register_subdev_group: Unable to register subdev mt9t111
    [    4.564544] i2c i2c-3: Failed to register i2c client tvp5146m2 at 0x5c (-16)
    [    4.571990] isp_register_subdev_group: Unable to register subdev tvp5146m2
    [    4.579711] usbcore: registered new interface driver uvcvideo
    [    4.585754] USB Video Class driver (v1.0.0)
    [    4.590301] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
    [    4.598541] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    [    4.605407] device-mapper: uevent: version 1.0.3
    [    4.610809] device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
    [    4.619781] Bluetooth: HCI UART driver ver 2.2
    [    4.624450] Bluetooth: HCI H4 protocol initialized
    [    4.629516] Bluetooth: HCILL protocol initialized
    [    4.634521] cpuidle: using governor ladder
    [    4.638854] cpuidle: using governor menu
    [    4.646667] mmci-omap-hs.1 supply vmmc_aux not found, using dummy regulator
    [    4.656280] usbcore: registered new interface driver usbhid
    [    4.662170] usbhid: USB HID core driver
    [    4.667022] logger: created 64K log 'log_main'
    [    4.672027] logger: created 256K log 'log_events'
    [    4.677276] logger: created 64K log 'log_radio'
    [    4.682312] logger: created 64K log 'log_system'
    [    4.688385] usbcore: registered new interface driver snd-usb-audio
    [    4.696258] OMAP3 EVM SoC init
    [    4.782928] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
    [    4.789764] asoc: wl1271bt <-> omap-mcbsp-dai.0 mapping ok
    [    4.797882] ALSA device list:
    [    4.801055]   #0: omap3evm
    [    4.803894] oprofile: hardware counters not available
    [    4.809204] oprofile: using timer interrupt.
    [    4.813812] nf_conntrack version 0.5.0 (3814 buckets, 15256 max)
    [    4.820617] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    4.826354] TCP cubic registered
    [    4.829742] Initializing XFRM netlink socket
    [    4.834259] NET: Registered protocol family 17
    [    4.838958] NET: Registered protocol family 15
    [    4.843750] Bluetooth: L2CAP ver 2.15
    [    4.847656] Bluetooth: L2CAP socket layer initialized
    [    4.852966] Bluetooth: SCO (Voice Link) ver 0.6
    [    4.857727] Bluetooth: SCO socket layer initialized
    [    4.862945] Bluetooth: RFCOMM TTY layer initialized
    [    4.868072] Bluetooth: RFCOMM socket layer initialized
    [    4.873504] Bluetooth: RFCOMM ver 1.11
    [    4.877410] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    4.882995] Bluetooth: BNEP filters: protocol multicast
    [    4.888519] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    4.895141] Registering the dns_resolver key type
    [    4.900177] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    4.909698] ThumbEE CPU extension supported.
    [    4.919311] Power Management for TI OMAP3.
    [    4.929138] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
    [    4.937438] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
    [    4.945892] SmartReflex Class3 initialized
    [    4.954467] clock: disabling unused clocks to save power
    [    4.961029] platform iva.0: omap_voltage_scale: Already at the requestedrate 800000000
    [    4.969329] platform mpu.0: omap_voltage_scale: Already at the requestedrate 1000000000
    [    5.028289] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    5.036895] omap_vout omap_vout: Buffer Size = 3686400
    [    5.056671] omap_vout omap_vout: : registered and initialized video device 15
    [    5.064147] omap_vout omap_vout: Buffer Size = 3686400
    [    5.070556] omap_vout omap_vout: : registered and initialized video device 16
    [    5.078216] mmc0: new high speed SDHC card at address 1234
    [    5.084533] Waiting 1sec before mounting root device...
    [    5.090209] mmcblk0: mmc0:1234 SA04G 3.67 GiB
    [    5.097137]  mmcblk0: p1 p2 p3
    [    5.218811] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    5.260314] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    5.272674] mmc1: new SDIO card at address 0001
    [    6.106109] EXT3-fs: barriers not enabled
    [   14.265655] kjournald starting.  Commit interval 5 seconds
    [   14.994506] EXT3-fs (mmcblk0p2): using internal journal
    [   14.999969] EXT3-fs (mmcblk0p2): recovery complete
    [   15.013519] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [   15.020751] VFS: Mounted root (ext3 filesystem) on device 179:2.
    [   15.027099] Freeing init memory: 224K
    [   15.242065] platform iva.0: omap_voltage_scale: Already at the requestedrate 800000000
    [   15.250366] platform mpu.0: omap_voltage_scale: Already at the requestedrate 1000000000
    [   15.276611] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
    [   15.415435] enabling adb
    [   15.418975] adb_open
    # [   15.598815] Compat-wireless backport release: compat-wireless-2011-04-26-3-g6542f4c
    [   15.606903] Backport based on wl12xx.git v2.6.35-33527-g1bbadc2
    [   15.749420] cfg80211: Calling CRDA to update world regulatory domain
    [   25.975708] warning: `zygote' uses 32-bit capabilities (legacy support in use)



  • Hi Bhagavath,

    It seems you get interrupts from Touch Screen as indicated by this line in cat /proc/interrupts

    203:        285        GPIO  ssd2531

    But when you do getevent, you should be able to get some events from /dev/input/event1

    Check the driver code, whether it is receiving touch screen data and passing to the input subsystem by input-> report

  • Hi Arun,

              we have done following  changes in driver code as below, Touch screen is i2c based ,While touch the Screen ,its not getting x,y events.

      static struct i2c_board_info __initdata omap3evm_i2c_boardinfo1[] = {
            {
                    I2C_BOARD_INFO("ssd2531", 0x5c),
            },


    omap_register_i2c_bus(3, 400,omap3evm_i2c_boardinfo1,ARRAY_SIZE(omap3evm_i2c_boardinfo1));

    can you please tell the issue.

    Thanks & Regards

    Bhagavath Ram


  • Hi Arun,

              we have done following  changes in driver code as below, Touch screen is i2c based ,While touch the Screen ,its not getting x,y events.

      static struct i2c_board_info __initdata omap3evm_i2c_boardinfo1[] = {
            {
                    I2C_BOARD_INFO("ssd2531", 0x5c),
            },


    omap_register_i2c_bus(3, 400,omap3evm_i2c_boardinfo1,ARRAY_SIZE(omap3evm_i2c_boardinfo1));

    can you please tell me where the changes to do.

    Thanks & Regards

    Bhagavath Ram


  • Hi Arun

                        When i touch the touch screen it crashed.

            Can you  Please  help me to solve this issue.

    ] er.ServerThread (1224): /proc/1214/oom_adj is deprecated, please use /proc/1214/oom_score_adj instead.
    [   97.054199] ==========irq=============
    [   97.058898] Unable to handle kernel NULL pointer dereference at virtual address 00000018
    [   97.067352] pgd = c0004000
    [   97.070190] [00000018] *pgd=00000000
    [   97.073913] Internal error: Oops: 17 [#1]
    [   97.078094] last sysfs file: /sys/devices/system/cpu/cpu0/

    cpufreq/stats/time_in_state
    [   97.086303] Modules linked in: wl12xx mac80211 omaplfb cfg80211 pvrsrvkm compat
    [   97.093994] CPU: 0    Not tainted  (2.6.37-g06ebbba-dirty #27)
    [   97.100097] PC is at input_handle_event+0x268/0x500
    [   97.105194] LR is at input_event+0x6c/0x78
    [   97.109466] pc : [<c03281fc>]    lr : [<c0328578>]    psr: 20000093
    [   97.109466] sp : cf161ec8  ip : 00000018  fp : cf161efc
    [   97.121459] r10: 00000003  r9 : 00000000  r8 : 00000001
    [   97.126922] r7 : 0000001b  r6 : cf274c00  r5 : 00000013  r4 : 00000000
    [   97.133758] r3 : 00000018  r2 : 00000000  r1 : cf274c7c  r0 : ffffffd1
    [   97.140563] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    [   97.148284] Control: 10c5387d  Table: 84908019  DAC: 00000017
    [   97.154296]
    [   97.154296] PC: 0xc032817c:
    [   97.158752] 817c  e7913103 e1a03233 e3130001 0a0000a3 e358002f 1a000005 e3570000 ba000054
    [   97.167297] 819c  e59030f4 e1570003 b58070f8 ea000050 e2480030 e350000a 83a04000 93a04001
    [   97.175872] 81bc  e3540000 059620fc 03a03018 002c2893 0a000006 e59610f0 e3510000 0a00002d
    [   97.184448] 81dc  e59630f8 e3a0202c e0231392 e083c100 e35c0000 0a000027 e59620fc e3a03018
    [   97.193023] 81fc  e59c1000 e0232893 e593200c e3520000 0a00001d e0823fa2 e1a000c3 e0603001
    [   97.201599] 821c  e1570003 da000002 e0813000 e1570003 ba000030 e0623001 e1570003 da000009
    [   97.210174] 823c  e0813002 e1570003 aa000006 e3a03003 e0237193 e2832003 e3530000 b1a03002
    [   97.218750] 825c  e1a07143 ea000008 e3e03001 e0231293 e1570003 da000004 e0813082 e1570003
    [   97.227325]
    [   97.227325] LR: 0xc03284f8:
    [   97.231781] 84f8  e58d6000 ebfffea4 e121f004 e24bd018 e89da870 e1a0c00d e92dd9f0 e24cb004
    [   97.240356] 8518  e24dd00c e351001f e1a04001 e1a06000 e1a07002 e1a08003 8a000011 e5903014
    [   97.248931] 8538  e201201f e1a03233 e3130001 0a00000c e10f5000 f10c0080 e1a00001 e1a02008
    [   97.257476] 8558  e1a01007 ebfd7544 e1a00006 e1a02004 e1a03007 e3a01000 e58d8000 ebfffe86
    [   97.266052] 8578  e121f005 e24bd020 e89da9f0 e1a0c00d e92dd830 e24cb004 e351002c e1a0c000
    [   97.274627] 8598  e1a04001 e1a00002 13e00015 189da830 e1a0200d e3c23d7f e3c3303f e5933008
    [   97.283203] 85b8  e29c202c 30d22003 33a03000 e3530000 1a000005 e1a0100c e1a02004 ebfc1e1a
    [   97.291778] 85d8  e3500000 13e0000d e89da830 ebfc2755 e3e0000d e89da830 e1a0c00d e92dd800
    [   97.300354]
    [   97.300354] SP: 0xcf161e48:
    [   97.304809] 1e48  00000080 00000061 00041333 00000002 00000000 ffffffff cf161eb4 cf274c00
    [   97.313385] 1e68  0000001b 00000001 cf161efc cf161e80 c04c11ac c003f274 ffffffd1 cf274c7c
    [   97.321960] 1e88  00000000 00000018 00000000 00000013 cf274c00 0000001b 00000001 00000000
    [   97.330535] 1ea8  00000003 cf161efc 00000018 cf161ec8 c0328578 c03281fc 20000093 ffffffff
    [   97.339111] 1ec8  ffff9aa2 0000002a cf161f2c 00000003 00000013 cf274c00 00000001 0000001b
    [   97.347656] 1ee8  c0337314 00000000 cf161f2c cf161f00 c0328578 c0327fa0 0000001b c0074524
    [   97.356231] 1f08  cf161f24 c06dd644 0000001b 00000000 00000005 cf012800 cf161f54 cf161f30
    [   97.364807] 1f28  c0337490 c0328518 c0654754 001b0315 c06546d8 c06dd64c c0654654 cf119740
    [   97.373382]
    [   97.373382] FP: 0xcf161e7c:
    [   97.377838] 1e7c  c003f274 ffffffd1 cf274c7c 00000000 00000018 00000000 00000013 cf274c00
    [   97.386413] 1e9c  0000001b 00000001 00000000 00000003 cf161efc 00000018 cf161ec8 c0328578
    [   97.394989] 1ebc  c03281fc 20000093 ffffffff ffff9aa2 0000002a cf161f2c 00000003 00000013
    [   97.403564] 1edc  cf274c00 00000001 0000001b c0337314 00000000 cf161f2c cf161f00 c0328578
    [   97.412139] 1efc  c0327fa0 0000001b c0074524 cf161f24 c06dd644 0000001b 00000000 00000005
    [   97.420715] 1f1c  cf012800 cf161f54 cf161f30 c0337490 c0328518 c0654754 001b0315 c06546d8
    [   97.429260] 1f3c  c06dd64c c0654654 cf119740 cf161f8c cf161f58 c008c90c c0337320 cf161f7c
    [   97.437835] 1f5c  0000000a c008adc0 cf119740 c0654654 00000009 c0654654 c0654654 cf119750
    [   97.446411]
    [   97.446411] R1: 0xcf274bfc:
    [   97.450866] 4bfc  00000000 c05f1b46 00000000 00000000 00000000 00000000 0000000b 00000000
    [   97.459442] 4c1c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.468017] 4c3c  00000000 00000400 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.476593] 4c5c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.485168] 4c7c  01000003 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.493743] 4c9c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.502288] 4cbc  c0325644 c032751c 00000000 00000000 00000000 00000000 00000000 c06a05c0
    [   97.510864] 4cdc  c0327618 cf274c00 ffffffff 000000fa 00000021 00000000 00000000 00000000
    [   97.519439]
    [   97.519439] R6: 0xcf274b80:
    [   97.523895] 4b80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.532470] 4ba0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.541046] 4bc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.549621] 4be0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.558197] 4c00  c05f1b46 00000000 00000000 00000000 00000000 0000000b 00000000 00000000
    [   97.566772] 4c20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.575317] 4c40  00000400 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [   97.583892] 4c60  00000000 00000000 00000000 00000000 00000000 00000000 00000000 01000003
    [   97.592468] Process kworker/0:1 (pid: 443, stack limit = 0xcf1602f0)
    [   97.599121] Stack: (0xcf161ec8 to 0xcf162000)
    [   97.603668] 1ec0:                   ffff9aa2 0000002a cf161f2c 00000003 00000013 cf274c00
    [   97.612213] 1ee0: 00000001 0000001b c0337314 00000000 cf161f2c cf161f00 c0328578 c0327fa0
    [   97.620758] 1f00: 0000001b c0074524 cf161f24 c06dd644 0000001b 00000000 00000005 cf012800
    [   97.629302] 1f20: cf161f54 cf161f30 c0337490 c0328518 c0654754 001b0315 c06546d8 c06dd64c
    [   97.637878] 1f40: c0654654 cf119740 cf161f8c cf161f58 c008c90c c0337320 cf161f7c 0000000a
    [   97.646423] 1f60: c008adc0 cf119740 c0654654 00000009 c0654654 c0654654 cf119750 cf160000
    [   97.654968] 1f80: cf161fbc cf161f90 c008d298 c008c6f8 00000000 cf161fcc cf02fee0 cf119740
    [   97.663513] 1fa0: c008d0e4 00000000 00000000 00000000 cf161ff4 cf161fc0 c0091700 c008d0f0
    [   97.672058] 1fc0: cf02fee0 00000000 cf119740 00000000 cf161fd0 cf161fd0 cf02fee0 c0091674
    [   97.680603] 1fe0: c007a15c 00000013 00000000 cf161ff8 c007a15c c0091680 06210471 4a100180
    [   97.689147] Backtrace:
    [   97.691711] [<c0327f94>] (input_handle_event+0x0/0x500) from [<c0328578>] (input_event+0x6c/0x78)
    [   97.701019] [<c032850c>] (input_event+0x0/0x78) from [<c0337490>] (ssd2531_do_work+0x17c/0x250)
    [   97.710083]  r8:cf012800 r7:00000005 r6:00000000 r5:0000001b r4:c06dd644
    [   97.717132] [<c0337314>] (ssd2531_do_work+0x0/0x250) from [<c008c90c>] (process_one_work+0x220/0x38c)
    [   97.726776]  r7:cf119740 r6:c0654654 r5:c06dd64c r4:c06546d8
    [   97.732696] [<c008c6ec>] (process_one_work+0x0/0x38c) from [<c008d298>] (worker_thread+0x1b4/0x2d0)
    [   97.742156] [<c008d0e4>] (worker_thread+0x0/0x2d0) from [<c0091700>] (kthread+0x8c/0x94)
    [   97.750610] [<c0091674>] (kthread+0x0/0x94) from [<c007a15c>] (do_exit+0x0/0x63c)
    [   97.758453]  r7:00000013 r6:c007a15c r5:c0091674 r4:cf02fee0
    [   97.764373] Code: e35c0000 0a000027 e59620fc e3a03018 (e59c1000)
    [   97.770812] ---[ end trace 199f2d19d71dd041 ]---
    [   97.775634] Kernel panic - not syncing: Fatal exception
    [   97.781127] Backtrace:
    [   97.783691] [<c004e390>] (dump_backtrace+0x0/0x110) from [<c04befcc>] (dump_stack+0x18/0x1c)
    [   97.792510]  r7:c0328200 r6:cf161cd7 r5:c03281fe r4:c068fa68
    [   97.798461] [<c04befb4>] (dump_stack+0x0/0x1c) from [<c04bf030>] (panic+0x60/0x184)
    [   97.806488] [<c04befd0>] (panic+0x0/0x184) from [<c004e750>] (die+0x2b0/0x304)
    [   97.814025]  r3:00000001 r2:cf161c98 r1:00000000 r0:c05ab0dc
    [   97.819976] [<c004e4a0>] (die+0x0/0x304) from [<c00519e4>] (__do_kernel_fault+0x6c/0x8c)
    [   97.828460] [<c0051978>] (__do_kernel_fault+0x0/0x8c) from [<c04c3230>] (do_page_fault+0x28c/0x2b0)
    [   97.837921]  r9:00000000 r8:00000018 r7:00000018 r6:cf161e80 r5:c064466c
    [   97.844787] r4:c06445fc
    [   97.847534] [<c04c2fa4>] (do_page_fault+0x0/0x2b0) from [<c003f2a4>] (do_DataAbort+0x3c/0x9c)
    [   97.856475] [<c003f268>] (do_DataAbort+0x0/0x9c) from [<c04c11ac>] (__dabt_svc+0x4c/0x60)
    [   97.865020] Exception stack(0xcf161e80 to 0xcf161ec8)
    [   97.870300] 1e80: ffffffd1 cf274c7c 00000000 00000018 00000000 00000013 cf274c00 0000001b
    [   97.878875] 1ea0: 00000001 00000000 00000003 cf161efc 00000018 cf161ec8 c0328578 c03281fc
    [   97.887420] 1ec0: 20000093 ffffffff
    [   97.891082]  r8:00000001 r7:0000001b r6:cf274c00 r5:cf161eb4 r4:ffffffff
    [   97.898101] [<c0327f94>] (input_handle_event+0x0/0x500) from [<c0328578>] (input_event+0x6c/0x78)
    [   97.907409] [<c032850c>] (input_event+0x0/0x78) from [<c0337490>] (ssd2531_do_work+0x17c/0x250)
    [   97.916503]  r8:cf012800 r7:00000005 r6:00000000 r5:0000001b r4:c06dd644
    [   97.923553] [<c0337314>] (ssd2531_do_work+0x0/0x250) from [<c008c90c>] (process_one_work+0x220/0x38c)
    [   97.933197]  r7:cf119740 r6:c0654654 r5:c06dd64c r4:c06
    thanks
    Bhagavath Ram
  • Hi Bhagavath,

    Some parameter passed to input_handle_event from ssd2531_do_work is incorrect. The parameter is expected to be a valid address but it is not.

    You need to review the code in ssd2531_do_work to find out the wrong parameter and fix it. Once that is fixed, I believe you will get events when you run getevent.

  • Hello Arun ,

                Thank for your reply , if i comment the MULTI TOUCH (#define MULTITOUCH) its crash,    if i remove the comment  touch screen is not working.

    Thanks

    Bhagavath Ram

  • Hello Arun,

    We have enabled MULTI TOUCH option in the driver and now , we are able to see the interrupts while touching .

    But we are not able to interact with either of the application appearing on the screen . We are able to see event getting formed regarding the touch panel (/dev/input/event1).

    Certain clarifications we require , please help us on this

    1. The driver file we have is for Linux OS , and touch screen is working with TI's latest linux SDK.

    Will this driver will work for Android also ?

    2. Do we need to modify the driver for ANDROID ?

    If yes what changes we need to configure ?

    3. Any Changes are required in Android filesystem to enable our touch screen ?

    Thanks

    Bhagavath Ram

  • Hi Bhagavath,

    Android Event Hub detects all input devices registered under /dev/input/*

    If the driver works fine on Linux SDK, then "getevent" utility in Android FS should also give the events.

    Can you confirm your "getevent" android FS is working ?

    Regarding

    1. The driver file we have is for Linux OS , and touch screen is working with TI's latest linux SDK.

    Will this driver will work for Android also ? YES

    2. Do we need to modify the driver for ANDROID ?

    If yes what changes we need to configure ? NO

    3. Any Changes are required in Android filesystem to enable our touch screen ? Only calibration for resistive touch screens

  • Hello Arun

                Get event is working but Touch screen is not sync with the application appear on the LCD . following is the log regarding the get event

    ----getevent-------
    add device 1: /dev/input/event2
      name:     "7k_ffa_keypad"
    add device 2: /dev/input/event1
      name:     "ssd2531_input"
    could not get driver version for /dev/input/mice, Not a typewriter
    add device 3: /dev/input/event0
      name:     "TWL4030 Keypad"
    add device 4: /dev/input/event3
      name:     "twl4030_pwrbutton"
    [  118.665435] ==========irq=============
    [  118.669708] 
    [  118.669708]  REG_EVENT_STATUS read = 10 
    [  118.675567]  **** event_stack = 15 0 0 0 B4 ANDING===========event_type=0============
    [  118.683929] ===========event_type=5============
    /dev/input/event1: 0003 0035 000[  118.692687] ==========irq=============
    00000
    /dev/inpu[  118.697418] 
    [  118.697418]  REG_EVENT_STATUS read = 3 t/event1: 0003 0
    [  118.704223]  **** event_stack = 0 0 0 0 036 00000000
    /dB4 ANDING===========event_type=0============
    ev/input/event1:[  118.714904] ===========event_type=0============
     0003 0030 00000[  118.721008] ==========irq=============
    001
    /dev/input/[  118.726837] 
    [  118.726837]  REG_EVENT_STATUS read = 3 event1: 0000 000
    [  118.733489]  **** event_stack = 0 0 0 0 2 00000000
    /devB4 ANDING===========event_type=0============
    /input/event1: 0[  118.744110] ===========event_type=0============
    003 0035 0000002[  118.750274] ==========irq=============
    8
    /dev/input/ev[  118.755889] 
    [  118.755889]  REG_EVENT_STATUS read = 5 ent1: 0003 0036 
    [  118.762695]  **** event_stack = 0 0 0 0 0000009a
    /dev/iB4 ANDING===========event_type=0============
    nput/event1: 000[  118.773406] ===========event_type=0============
    [  118.779571] ==========irq=============
    /dev/input/even[  118.785125] 
    [  118.785125]  REG_EVENT_STATUS read = 10 t1: 0000 0002 00
    [  118.792022]  **** event_stack = 16 0 0 0 000000
    /dev/inpB4 ANDING===========event_type=0============
    ut/event1: 0000 [  118.802886] ===========event_type=6============
    0000 00000000
    /dev/input/event1: 0003 0030 00000000
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    [  266.201538] ==========irq=============
    [  266.205810] 
    [  266.205810]  REG_EVENT_STATUS read = 1 
    [  266.211517]  **** event_stack = 0 0 0 0 B4 ANDING===========event_type=0============
    [  266.219787] ===========event_type=0============
    [  266.247253] ==========irq=============
    [  266.251434] 
    [  266.251464]  REG_EVENT_STATUS read = 10 
    [  266.257293]  **** event_stack = 15 71 11 1 B4 ANDING===========event_type=0============
    [  266.265838] ===========event_type=5============
    /dev/input/event1: 0003 0035 000[  266.274536] ==========irq=============
    00071
    /dev/inpu[  266.279571] 
    [  266.279571]  REG_EVENT_STATUS read = 1 t/event1: 0003 0
    [  266.286315]  **** event_stack = 0 0 0 0 036 00000111
    /dB4 ANDING===========event_type=0============
    ev/input/event1:[  266.297027] ===========event_type=0============
     0003 0030 00000[  266.303161] ==========irq=============
    001
    /dev/input/[  266.308776] 
    [  266.308776]  REG_EVENT_STATUS read = 1 event1: 0000 000
    [  266.315551]  **** event_stack = 0 0 0 0 2 00000000
    /devB4 ANDING===========event_type=0============
    /input/event1: 0[  266.326263] ===========event_type=0============
    000 0000 0000000[  266.332397] ==========irq=============
    0
    [  266.337951] 
    [  266.337982]  REG_EVENT_STATUS read = 10 
    [  266.343902]  **** event_stack = 16 71 11 1 B4 ANDING===========event_type=0============
    [  266.352447] ===========event_type=6============
    [  266.358612] ==========irq=============
    /dev/input/event[  266.363342] 
    [  266.363342]  REG_EVENT_STATUS read = 11 1: 0003 0035 000
    [  266.369842]  **** event_stack = 15 83 11 1 0007c
    /dev/inB4 ANDING===========event_type=0============
    put/event1: 0003[  266.380798] ===========event_type=5============
     0036 00000111
    [  266.388305] ==========irq=============
    /dev/input/event1: 0003 0030 000[  266.394622] 
    [  266.394622]  REG_EVENT_STATUS read = 13 00001
    /dev/inpu
    [  266.400878]  **** event_stack = 25 0 2 0 t/event1: 0000 0B4 ANDING===========event_type=0============
    002 00000000
    /d[  266.411651] ===========event_type=5============
    ev/input/event1:[  266.419158] ==========irq=============
     0003 0030 00000[  266.424194] 
    [  266.424194]  REG_EVENT_STATUS read = 11 000
    /dev/input/
    [  266.430328]  **** event_stack = 17 97 13 1 event1: 0000 000B4 ANDING===========event_type=0============
    2 00000000
    /dev[  266.441284] ===========event_type=7============
    /input/event1: 0000 0000 0000000[  266.448852] ==========irq=============
    0
    /dev/input/ev[  266.455322] 
    [  266.455322]  REG_EVENT_STATUS read = 13 ent1: 0003 0035 
    [  266.461334]  **** event_stack = 17 71 d1 0 00000086
    /dev/iB4 ANDING===========event_type=0============
    nput/event1: 000[  266.472290] ===========event_type=7============
    3 0036 00000112
    /dev/input/even[  266.480529] ==========irq=============
    t1: 0003 0030 00000001
    /dev/inp[  266.487121] 
    [  266.487152]  REG_EVENT_STATUS read = 13 ut/event1: 0000 
    [  266.493865]  **** event_stack = 17 54 a3 0 0002 00000000
    /B4 ANDING===========event_type=0============
    dev/input/event1[  266.504821] ===========event_type=7============
    : 0003 0035 00000000
    /dev/input[  266.512390] ==========irq=============
    /event1: 0003 00[  266.518615] 
    [  266.518615]  REG_EVENT_STATUS read = 10 36 00000002
    /de
    [  266.524719]  **** event_stack = 17 3f 7a 0 v/input/event1: B4 ANDING===========event_type=0============
    0003 0030 000000[  266.535797] ===========event_type=7============
    01
    /dev/input/event1: 0000 0002[  266.543853] ==========irq=============
     00000000
    /dev/[  266.550018] 
    [  266.550018]  REG_EVENT_STATUS read = 11 input/event1: 00
    [  266.555908]  **** event_stack = 17 2f 5b 0 00 0000 00000000B4 ANDING===========event_type=0============
    /dev/input/e[  266.566864] ===========event_type=7============
    vent1: 0003 0035 00000090
    /dev/[  266.574371] ==========irq=============
    input/event1: 00[  266.580627] 
    [  266.580627]  REG_EVENT_STATUS read = 11 03 0036 00000111
    [  266.586914]  **** event_stack = 17 23 4d 0 
    /dev/input/eveB4 ANDING===========event_type=0============
    nt1: 0003 0030 0[  266.597869] ===========event_type=7============
    0000001
    /dev/in[  266.605346] ==========irq=============
    put/event1: 0000[  266.609527] 
    [  266.609558]  REG_EVENT_STATUS read = 10  0002 00000000
    [  266.616424]  **** event_stack = 17 1a 39 0 /dev/input/eventB4 ANDING===========event_type=0============
    1: 0003 0035 000[  266.627441] ===========event_type=7============
    00000
    /dev/inpu[  266.634857] ==========irq=============
    t/event1: 0003 0[  266.639099] 
    [  266.639129]  REG_EVENT_STATUS read = 10 036 00000002
    /d
    [  266.646057]  **** event_stack = 17 e 23 0 ev/input/event1:B4 ANDING===========event_type=0============
     0003 0030 00000[  266.656921] ===========event_type=7============
    001
    /dev/input/[  266.664367] ==========irq=============
    event1: 0000 0002 00000000
    /dev[  266.669891] 
    [  266.669891]  REG_EVENT_STATUS read = 11 /input/event1: 0
    [  266.677093]  **** event_stack = 16 e 23 0 000 0000 0000000B4 ANDING===========event_type=0============
    0
    /dev/input/[  266.687927] ===========event_type=6============
    event1: 0003 0035 0000003f
    /dev[  266.695434] ==========irq=============
    /input/event1: 0[  266.701721] 
    [  266.701721]  REG_EVENT_STATUS read = 11 003 0036 0000007
    [  266.708007]  **** event_stack = 26 bc 18 1 a
    /dev/input/evB4 ANDING===========event_type=0============
    ent1: 0003 0030 [  266.718933] ===========event_type=6============
    00000001
    /dev/i[  266.726348] ==========irq=============
    nput/event1: 000[  266.731231] 
    [  266.731231]  REG_EVENT_STATUS read = 10 0 0002 00000000
    [  266.737609]  **** event_stack = 15 e3 f 1 
                                                 /dev/input/evenB4 ANDING===========event_type=0============
    t1: 0000 0000 00[  266.748443] ===========event_type=5============
    000000
    /dev/i[  266.755950] ==========irq=============
    [  266.761444] 03 0035 00000013
    [  266.761444]  REG_EVENT_STATUS read = 11 
                                               /dev/input/even
    [  266.768615]  **** event_stack = 17 f8 10 1 t1: 0003 0036 00B4 ANDING===========event_type=0============
    00002a
    /dev/inp[  266.779541] ===========event_type=7============
    ut/event1: 0003 [  266.786804] ==========irq=============
    0030 00000001
    /[  266.791229] 
    [  266.791229]  REG_EVENT_STATUS read = 10 dev/input/event1
    [  266.798126]  **** event_stack = 16 f8 10 1 : 0000 0002 0000B4 ANDING===========event_type=0============
    0000
    /dev/input[  266.809143] ===========event_type=6============
    /event1: 0003 00[  266.816650] ==========irq=============
    35 000000bc
    /de[  266.821868] 
    [  266.821868]  REG_EVENT_STATUS read = 10 v/input/event1: 
    [  266.827819]  **** event_stack = 15 45 12 11 0003 0036 000001B4 ANDING===========event_type=0============
    18
    /dev/input/e[  266.838836] ===========event_type=5============
    vent1: 0003 0030[  266.846313] ==========irq=============
     00000001
    /dev/input/event1: 00[  266.852264] 
    [  266.852294]  REG_EVENT_STATUS read = 10 00 0002 00000000
    [  266.858947]  **** event_stack = 17 56 14 11 
    /dev/input/eveB4 ANDING===========event_type=0============
    nt1: 0000 0000 0[  266.869964] ===========event_type=7============
    0000000
    /dev/in[  266.877380] ==========irq=============
    put/event1: 0003[  266.881683] 
    [  266.881713]  REG_EVENT_STATUS read = 10  0035 000000c6
    [  266.888580]  **** event_stack = 16 56 14 11 /dev/input/eventB4 ANDING===========event_type=0============
    1: 0003 0036 000[  266.899627] ===========event_type=6============
    00114
    /dev/inpu[  266.907043] ==========irq=============
    t/event1: 0003 0[  266.911926] 
    [  266.911956]  REG_EVENT_STATUS read = 10 030 00000001
    /d
    [  266.918304]  **** event_stack = 15 c7 16 11 ev/input/event1:B4 ANDING===========event_type=0============
     0000 0002 00000[  266.929321] ===========event_type=5============
    000
    /dev/input/[  266.936767] ==========irq=============
    event1: 0000 0000 00000000
    /d[  266.942840] 
    [  266.942840]  REG_EVENT_STATUS read = 10 ev/input/event1:
    [  266.949401]  **** event_stack = 16 c7 16 11  0003 0035 00000B4 ANDING===========event_type=0============
    0e3
    /dev/input/[  266.960418] ===========event_type=6============
    event1: 0003 0036 0000010f
    /dev/input/event1: 0003 0030 00000001
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0035 000000f2
    /dev/input/event1: 0003 0036 0000010f
    /dev/input/event1: 0003 0030 00000001
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0035 00000150
    /dev/input/event1: 0003 0036 00000113
    /dev/input/event1: 0003 0030 00000001
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0035 0000015b
    /dev/input/event1: 0003 0036 00000115
    /dev/input/event1: 0003 0030 00000001
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0003 0030 00000000
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0030 00000000
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0035 000001c7
    /dev/input/event1: 0003 0036 00000116
    /dev/input/event1: 0003 0030 00000001
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0030 00000000
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0035 00000145
    /dev/input/event1: 0003 0036 00000112
    /dev/input/event1: 0003 0030 00000001
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0030 00000000
    /dev/input/event1: 0000 0002 00000000
    /dev/input/event1: 0000 0000 00000000
    /dev/input/event1: 0003 0035 000001c7
    /dev/input/event1: 0003 0036 00000116
    /dev/input/event1: 0003 0030 00000001
    Thanks
    Bhagavath ram
  • You might also want to go through the Google documentation on touchscreens:

    http://source.android.com/tech/input/touch-devices.html