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.

Touch screen detected but no interrupts observed

Other Parts Discussed in Thread: ADS7846, TSC2046, OMAP3530

I am  using Beagle board Xm Rev B with TSC2046 touchscreen controller and used the ads7846.c and made few changes in the board-omap3beagle.c. i followed the earlier posts and corrected all the previous problems but still problem is not solved .The results of getevent and getevent -p are :

***getevent***
root@android:/ # getevent
add device 1: /dev/input/event1
  name: "ADS7846 Touchscreen"
add device 2: /dev/input/event3
  name: "Logitech USB-PS/2 Optical Mouse"
could not get driver version for /dev/input/mouse0, Not a typewriter
add device 3: /dev/input/event0
  name: "gpio-keys"
add device 4: /dev/input/event2
  name: "twl4030_pwrbutton"


  ***getevent -p***
root@android:/ # getevent -p
could not get driver version for /dev/input/mice, Not a typewriter
add device 1: /dev/input/event1
  name: "ADS7846 Touchscreen"
  events:
  input props:
<not available
add device 2: /dev/input/event3
  name: "Logitech USB-PS/2 Optical Mouse"
  events:
  KEY (0001): 0110 0111 0112
  REL (0002): 0000 0001 0008
  MSC (0004): 0004
  input props:
<not available
could not get driver version for /dev/input/mouse0, Not a typewriter
add device 3: /dev/input/event0
  name: "gpio-keys"
  events:
  KEY (0001): 009e* 00ac*
  input props:
<not available
add device 4: /dev/input/event2
  name: "twl4030_pwrbutton"
  events:
  KEY (0001): 0074
  input props:
<not available 

Can anybody help me. 

Thanks and regards

 

  • sorry  all, i did one mistake but correcting it i got the events but touch screen still not working

    please help me

    Thaks and regards

    Subrat Kumar Ojha 

  • Hello Subrat,

    May you please detail the problem? No touch data or incorrect touch data? How did you command the TSC?

    Regards,
    Wendy F.

  • Hi wedy ,

    Thanks for reply.

    I am using the same command of ads7846 as it matches with my touch screen controller.Problem is that I get every thing as per the previous post using getevent and getevent -p 

    for touch screen but no the interrupts.....

    I am not sure but mux initialization  can be a problem.

    Problem solved:

    1. No supply problem

    2.getevent -p problem not showing me the event solved 

    GPIO = 133//PenIRQ

    MUX -Initialization: 

    static struct omap_board_mux board_mux[] __initdata = {
     
     OMAP3_MUX(SDMMC2_CLK, OMAP_MUX_MODE1 | OMAP_PIN_INPUT_PULLUP),
      OMAP3_MUX(SDMMC2_CMD, OMAP_MUX_MODE1 | OMAP_PIN_INPUT),
      OMAP3_MUX(SDMMC2_DAT0, OMAP_MUX_MODE1 | OMAP_PIN_OUTPUT),
     OMAP3_MUX(SDMMC2_DAT1, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
      OMAP3_MUX(SDMMC2_DAT3, OMAP_MUX_MODE1 | OMAP_PIN_INPUT),
     { .reg_offset = OMAP_MUX_TERMINATOR },


    }

    Please check  these and let me know if any changes or area where to modify.

    Thanks and regards

    Subrat Ojha 

  • Hello Subrat,

    It seems a problem with the processor's setup. Have you discussed it with TI's OMAP group?

    Just for your reference, I am attaching a TSC2046 OMAP driver, which tested working with Linux OS.

    Regards,
    Wendy F.

    Drivers4OMAP2430.zip
  • Hi Wendy,

    Thanks for ur reply.I analysed the code provided by u  and when run it come with errors. Also i am  using OMAP3530. Will this code will be useful for it.

    Can u send me some headers that were found missing

    1.mux.h

    2.omap2_mcspi.h

    3 .hardware.h

    4.bus.h

    5.power_companion.h

    Some Macros Undefined:

    OMAP23xx_TS_DEVID

    OMAP_BUS_L4

    OMAP2_McSPI_CH0

    Please let me know about these.

    Thanks and regards

    Subrat Kumar Ojha 

     

  • Hello Subrat,

    The TSC2046/OMAP2430/Linux source code sent to you yesterday is for your reference only and it can not run as is at a different OMAP platform. As you can see, all of the files you listed are related to the OMAP2430 platform. To get the OMAP2430 SDP to run the TSC2046/OMAP2430/Linux driver, you may get in touch with TI's OMAP group.

    There are thousands different kinds of uCs and hundreds different kinds of OSs, and thus our TSC group can not develop drivers for all of them.  Besides, even through you is provided with a TSC driver that was designed for your uC and OS, you may still need to modify the code in some degree because you may use different hardware pins/port at your specific system.

    We do not have any TSC2046 driver for OMAP3530, and the closest is a TSC2046/OMAP3430/Window driver, which you can downloaded from TI website http://www.ti.com/tool/tsc2046-wce5-drv.

    Regards,
    Wendy F.

  • Hi wendy

    Thanks for ur help. Finally i solved the problem . I got the interrupts.The issue was with the proper order for mux enabling and board initialization. So that was solved.

    But i got a new problem.

    If i press any menu at the top , the menu at the down is selected and activated . can u suggest me what can be the cause for this   problem.

    Waiting for  reply

    Thanks again

    Thanks and regards

    Subrat Kumar Ojha