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.

How to enable touchscreen in beagleboard xm under android by using controller tsc2007?

Other Parts Discussed in Thread: TSC2007, ADS7846, AM1808

Hi,

I am currently using a 7 inch touchscreen with tsc2007 controller under android jb environment for bb xm.

I did some research and find some instructions for ads7846 controller, e.g.,  http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_PortingGuides#Touchscreen, and http://e2e.ti.com/support/embedded/android/f/509/t/128893.aspx. Unfortunately, I have not found any info. regarding tsc2007 controller, or how to modify the file 'board-omap3evm.c'.

Can anybody be helpful for this?

  • Hello,

    We have not tried tsc2007 touchscreen integration. However I found a useful guide for tsc2007 driver integration to a similar board based on AM1808 http://calixtosystems.googlecode.com/files/Note%20on%20Enabling%20Touch%20Screen%20on%20AM1808%20SOM%20and%20EVM%20using%20TSC2007.pdf

    Regards,

    Arun

  • Hi, Arun,

    Thanks for your reply. First please forgive me if I ask stupid questions since I am a newbie. I looked through the document you suggested and figured out that the doc contains the following steps:

    1. gedit ~/rowboat-android/kernel/arch/arm/mach-davinci/include/mach/mux.h

    add DA850_GPIO8_12 for lcd PIN MUX

    2. geany ~/rowboat-android/kernel/arch/arm/mach-davinci/da850.c

    add the PIN-MUX configuration of GPIO8_12

    3. Modify board-da850-evm.c

    Unfortunately, I find the following problems:

    1. there is no lcd pin mux in mux.h under mach-omap2 folder

    2. there is no file similar to da850.c under mach-omap2 folder

    3. the only similar file I can find is the evm file, which is the board-da850-evm.c file. But I am not sure whether it is enough to modify only this file?

    In addition, after the modification of the kernel, I need only update the uImage file without re-build the android rootfs, is there right?

    Your prompt assistance is greatly appreciated.

  • Hello,

    You can find the corresponding files for mach-omap2

    mux34xx.h and board-omap3beagle.c

    You just need to modify kernel uImage for integrating this touchscreen.

    Regards,

    Arun

  • Hi, Arun,

    Unfortunately I find a lot of difference between the files you provided and the files in the pdf file.

    I bet it could be difficult for me to successfully enable the tsc2007 touch function from davinci to omap3. 

    I happened to find the following patch for a tsc2007 based touchscreen under android ics for bb xm:

    http://code.google.com/p/rowboat/issues/attachmentText?id=135&aid=1350001000&name=ulcd-esc-boston-2011-110925.patch&token=MHQbk2FiQtN1O0K-5ygHun8Uct0%3A1380840269606

    Here is the plan I want to have a try. Can you please give me some suggestion for me to avoid stupid mistake?

    I want to change the  

    /kernel/arch/arm/mach-omap2/board-omap3beagle.c file following the patch which is provided between line 971 and line  1230 in the above patch, since it is the only file in the directory kernel/arch/arm.

    Can you please be helpful to 

    1. take a look at line 971 and line  1230 in the patch

    http://code.google.com/p/rowboat/issues/attachmentText?id=135&aid=1350001000&name=ulcd-esc-boston-2011-110925.patch&token=MHQbk2FiQtN1O0K-5ygHun8Uct0%3A1380840269606

    to see whether there is something I need to take extra care for?

    2. search '+++' and highlight all in the patch to see whether there is other file I need to change as well?

    3. whether my plan is feasible for a newbie?

    Thank you so much.

  • Hello,

    Go ahead with your plan. Take only tsc2007 specific for now.

    Regards,

    Arun