From: Bret Hughes <bhughes@elevating.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: linux-acpi@vger.kernel.org
Subject: Re: serial port discovery on a motion computing tablet
Date: Wed, 14 Mar 2007 18:57:23 -0500 [thread overview]
Message-ID: <45F88BE3.8060702@elevating.com> (raw)
In-Reply-To: <20070314232550.GA11970@srcf.ucam.org>
Matthew Garrett wrote:
> On Wed, Mar 14, 2007 at 01:37:55PM -0500, Bret Hughes wrote:
>
>
>> Woo hoo! I see my device it's id is TKO0001 just like the engr told me
>> it would be. At the time I had little to no idea what he was talking about.
>>
>> On to look at the code and see how that works.
>>
>
> Something like the following should work, if you haven't already got it
> figured:
>
> diff --git a/drivers/serial/8250_pnp.c b/drivers/serial/8250_pnp.c
> index d3d6b82..c7b019b 100644
> --- a/drivers/serial/8250_pnp.c
> +++ b/drivers/serial/8250_pnp.c
> @@ -340,6 +340,8 @@ static const struct pnp_device_id pnp_dev_table[] = {
> { "FUJ02B8", 0 },
> { "FUJ02B9", 0 },
> { "FUJ02BC", 0 },
> + /* TouchKO touchscreen */
> + { "TKO0001", 0 },
> /* Rockwell's (PORALiNK) 33600 INT PNP */
> { "WCI0003", 0 },
> /* Unkown PnP modems */
>
> and then just make sure that you have CONFIG_8250_PNP enabled. After
> that, it should just appear as a touchscreen. You may still need to
> perform some handshaking in the protocol interaction to get it working,
> but ideally that would be done in the X driver.
>
[root@localhost serial]# diff 8250_pnp.c.orig 8250_pnp.c 326,327c326,329
< /* Wacom tablets */
< { "WACF004", 0 },
---
> /* TouchKO tablets */
> { "TKO0001", 0 },
> /* wacom tablets */
> { "wacf004", 0 },
As you can see, that is almost exactly what I did. Once I recompiled,
the device came up attached to ttyS0 irq5 just like the windows side
does. I am struggling a bit to get to where I can send the command to
place the controller into Microtouch mode. There is a little perl prog
I got from the TouchKo site to do that and I thought I could make it
work but it is kicking my butt. The controller comes up at 38400 and if
my notes are correct, going into MT mode should drop it to 9600 and a
reconfig of the port needs to occur to continue talking to it. Right
now I cannot get any response back in perl at all.
I CAN use minicom to ping the controller and I get the expected response
'Pass' but can't figure out how to send 0x0D 0x01 FMT 0x0D. IIRC this
only has to happen once and the controller will remember what mode its
in. Once get it working in linux I bet it will be broken in Windows
until it gets reset. Hmm have to think about that. I have a feeling I
am going to have to write something to toggle this dude so we can switch
back and forth.
I'll dig in tomorrow and get the engineer back on the horn to see if he
can help. Is this something that this driver could/should do? Is there
some other place that the kernel or a module can set this up so the user
does not have to worry about it or is that beyond the scope of what is
done in kernel space?
Once I get it working I'll post again with final details just so those
that come behind me will have a chance of not reinventing the wheel but
I think as far as the acpi side goes you got me going.
Thanks again.
Bret
next prev parent reply other threads:[~2007-03-15 0:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-14 3:14 serial port discovery on a motion computing tablet Bret Hughes
2007-03-14 13:43 ` Matthew Garrett
2007-03-14 14:29 ` Bret Hughes
2007-03-14 14:35 ` Matthew Garrett
2007-03-14 15:03 ` Bret Hughes
2007-03-14 15:14 ` Matthew Garrett
[not found] ` <45F817E2.1020900@elevating.com>
2007-03-14 18:37 ` Bret Hughes
2007-03-14 23:25 ` Matthew Garrett
2007-03-14 23:57 ` Bret Hughes [this message]
2007-03-15 0:09 ` Matthew Garrett
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=45F88BE3.8060702@elevating.com \
--to=bhughes@elevating.com \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg59@srcf.ucam.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