Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configure D-Pad
Thanks for the speedy replies guys!

I’m looking for a permanent way to do it, and ideally would have the audio intact as well.

I’ve had a read through and started making my own DTS file, but have been very bogged down with work so it may take a little while before I can report back with results...
Thanks Wink
Ok so I’ve managed to get the button sending button presses by modifying the DTS file as per your earlier post, thanks Flavor Smile  The blog post and the linux codes page you posted were very helpful, and somehow for me the audio still works  Dodgy Big Grin

However, now I am trying to configure it so that the D-Pad moves the mouse cursor.
Just replacing the linux codes in the DTS file with, for example, Rel_X+1 doesn’t seem to work - I get a syntax error  message when I try to compile the dtbo file from the dts file, and in any case, the input device doesn’t seem to be configure to send EV_REL data (as a USB mouse input device does).

Do you have any pointers on how I can configure the device tree overlay so that it can move the mouse cursor?

Apologies if my message is a jumble, I’m very new to tinkering with linux!!!
Further searching reveals that the kernel has a driver “gpio_mouse”, and I assume I must substitute “gpio_keys” in the “compatible = “gpio_keys”” section of the DTS file, then configure the GPIO lines accordingly...

I’ve found the “gpio_mouse” driver at:

But am unsure exactly how to modify the DTS file so that gpio pins 6, 5, 4 and 17 control mouse movement, pins 16 and 24 are left and right mouse clicks, and the rest of the pins are key presses as in your original DTS file Flavor.

Any help with how to do this would be much appreciated!!!

Forum Jump:

Users browsing this thread: 1 Guest(s)