Why not USB?

USB pro's and con's

PS/2 pro's and con's

Anyway I have a lot of work to do ...

Block Diagram

This block diagram depicts what I'd like to do.

From right to left.

PS/2 Mouse

My PS/2 Mouse.

See the two resistive partitors for clock and data on the right.

It uses an A2636 chip. See here its A2636 Datasheet

A few facts:

PS/2 Protocol

For a complete description see: Mouse PS/2 Interface

On power-up the PS/2 Mouse starts in "reset mode". I.e. it doesn't send coordinates but continuosly  say:

Mouse: AA  Self-test passed
Mouse: 00  Mouse ID
Mouse: AA  Self-test passed
Mouse: 00  Mouse ID

...

To configure it, an initialization process must be done.

In such a process the mouse can be set:

At the end of the initialization process, the PS/2 Mouse will stream 4 bytes at every change of its buttons, wheel and position X or Y to the PS2MOUSE IP block. See the following example:

These 4 bytes are packed into a 32 bits word by the PS2MOUSE IP block and  read by the AXI-GPIO.

At every new 32 bits word, the AXI-GPIO generates also an interrupt which will be handled by a linux device driver.

To understand the content of the 4 bytes see Mouse PS/2 Interface

PS2MOUSEDRIVER

This is the name of the Linux Device Driver I'm developing to:

To understand how a Linux Device Driver work in this scenario, you can read this Embedded Linux Device Drivers