Simple PS/2 driver

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is a working PS/2 driver for Linux.

This driver exports two device nodes to /dev, psif0 and psif1 (or only one of them, depending on your configuration). It allows blocked and non-blocked read from the ports, writing is also supported, but its always blocks, i'll make it non-blocking if i need it. I haven't been able to fully test the writing part, so
please let me know if writing works for you.

It applys to the avr32 master branch at git.kenerl.org, and will most likly apply to the latest 2.6.22

I have tested it with a PCA9306 level shifter and AT keyboard and everything looks ok, but the ultimate goal is to be able to use a PS/2 mouse with Nano-X :D

If anyone tests this then please let me know how it turns out:)

Level shifter schematic:

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very cool, many thanks! Would you feel like posting this to the avr32 mailing list (kernel@avr32linux.org) for further review and discussion?

Thx,
-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I updated the wiki at avr32linux.org

Attachment(s): 

I like cats, too. Let's exchange recipes.

Last Edited: Wed. Sep 12, 2007 - 01:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How can I use this driver with DirectFB?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I haven't looked much into DirectFB, but i dont see why not.

If it has support for a /dev/psaux mouse, then this driver should work. (If the driver works with mouses that is:P still haven't tested it. but if it works with a keyboard, it should work with a mouse).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I started testing arnarmar's PSIF driver yesterday, there appears to be some kind of issue with the prescaler register. It determines the CLK inhibit pulse width. It is supposed to be low for a minimum of 100uS, but it is only going low for a few nanoseconds on my storage scope. I'm starting to wonder if this is a mistake in the datasheet, or the chip itself?

I like cats, too. Let's exchange recipes.