Apologies if this the wrong sub-forum. Moderators please move as required.
I would like to write a kernel module that uses a number of gpio pins as input for push buttons and creates a Joystick input device. I am using an existing module to do this
https://github.com/recalbox/mk_arcade_joystick_rpi
But I am interested in making a similar module that uses the kernel gpio api rather than directly writing to the registers at the peripheral address.
I have made a number of searches, but I am still confused about setting the gpio pin pull-up resistors.
Is there a way to do this in the kernel module itself, or do I need to create a Device Tree Overlay to set the pull-up resistors?
My goal is to write a kernel module that will work on any Raspberry Pi model.
AndyD.
I would like to write a kernel module that uses a number of gpio pins as input for push buttons and creates a Joystick input device. I am using an existing module to do this
https://github.com/recalbox/mk_arcade_joystick_rpi
But I am interested in making a similar module that uses the kernel gpio api rather than directly writing to the registers at the peripheral address.
I have made a number of searches, but I am still confused about setting the gpio pin pull-up resistors.
Is there a way to do this in the kernel module itself, or do I need to create a Device Tree Overlay to set the pull-up resistors?
My goal is to write a kernel module that will work on any Raspberry Pi model.
AndyD.
Statistics: Posted by AndyD — Fri Dec 20, 2024 10:20 am — Replies 2 — Views 41