linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: marek.vasut@gmail.com (Marek Vasut)
To: linux-arm-kernel@lists.infradead.org
Subject: colibri PXA320 and UCB1400 - touch screen troubles
Date: Wed, 11 Aug 2010 11:07:29 +0200	[thread overview]
Message-ID: <201008111107.29839.marek.vasut@gmail.com> (raw)
In-Reply-To: <AANLkTimL7kt0-Do9VQUQvktHfsvdKjm_NJ-eDbxcAu2m@mail.gmail.com>

Dne St 11. srpna 2010 10:54:08 Yuri Ludkevich napsal(a):
> 2010/8/11 Marek Vasut <marek.vasut@gmail.com>
> 
> > Dne St 11. srpna 2010 09:43:30 Yuri Ludkevich napsal(a):
> > 
> > Hi, it looks like the IRQ was misdetected probably. Check the following
> > two patches (and possibly the vpac270 source file, the "Audio and
> > Touchscreen" section will give you an idea how to force IRQ line to the
> > driver).
> 
> BTW do you know which GPIO used for UCB1400 interrupt?

Please keep the lists CCed. And no, I have no idea which GPIO it is, but if you 
check the Colibri 320 datasheet (available from toradex website) and the kernel 
source for pxa320 colibri, you should be able to get quite a small set of GPIOs 
and you can try which of these it is (echo "GPIO_NUMBER" > 
/sys/class/gpio/export ; echo "in" > /sys/class/gpio/gpioGPIO_NUMBER/direction ; 
cat /sys/class/gpio/gpioGPIO_NUMBER/value ). You can use the thing in braces for 
multiple GPIOs too ... first export them all and set direction and then read 
them (in a loop for example). Of course, when you touch the panel, the GPIO will 
toggle and so it will do when you release the pen.

Cheers
> 
> > http://git.kernel.org/?p=linux/kernel/git/marex/pxa-
> > 
> > linux-2.6.git;a=commitdiff;h=417eb54b3aba8f9aa1707fa1dae606ccaeb94599;hp=
> > 94616fcb8d6e5e51391f34463afafaad3bd20da6
> > 
> > http://git.kernel.org/?p=linux/kernel/git/marex/pxa-
> > 
> > linux-2.6.git;a=commitdiff;h=ced7f2ca8e8d99ec35ff34841c6e6a307a115fa0;hp=
> > 417eb54b3aba8f9aa1707fa1dae606ccaeb94599
> > 
> > Thanks for fast reply!
> 
> I  had seen vpac270 couple minuts ago source - as  I understand I need to
> know which GPIO is used for irq to specify it in ucb1400_data  structure..
> But Toradex does not provide any schematics...

http://www.toradex.com/Products/Colibri_Modules/Colibri_PXA320 The do, but not 
the module schematics unfortunatelly. You can use the way outlined above, it 
should do what you need and should be easy.

Cheers
> 
> With best regards, Yuri.

  parent reply	other threads:[~2010-08-11  9:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTimZeDeS+44=BfchT0gwK5NDLhzLSX1vua8oFBQp@mail.gmail.com>
2010-08-11  8:42 ` colibri PXA320 and UCB1400 - touch screen troubles Marek Vasut
     [not found]   ` <AANLkTimL7kt0-Do9VQUQvktHfsvdKjm_NJ-eDbxcAu2m@mail.gmail.com>
2010-08-11  9:07     ` Marek Vasut [this message]
2010-08-11  9:45       ` Daniel Mack
     [not found]         ` <AANLkTim+kNyEL2s0k9wLoctRMKDWoaYy66y=adhog1wc@mail.gmail.com>
2010-08-11 10:02           ` Daniel Mack
2010-08-11 10:08             ` Yuri Ludkevich
2010-08-11 10:12               ` Daniel Mack
2010-08-11 10:46                 ` Yuri Ludkevich
2010-08-11 10:51                   ` Daniel Mack
2010-08-11 10:55                     ` Marek Vasut
2010-08-11 11:10                       ` Yuri Ludkevich
2010-08-11 11:24                         ` Daniel Mack
2010-08-11 12:32                           ` Yuri Ludkevich
2010-08-11 12:35                             ` Daniel Mack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201008111107.29839.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).