gpio-keyboard-driver: Add driver

Adds the gpio keyboard driver to the BSP. The driver probes but fails to
find device tree information it is looking for.

Signed-off-by: Nicholas Mello <nick@nmello.dev>
This commit is contained in:
2026-02-07 00:28:04 -06:00
parent d26b18451d
commit d35fabb64f
9 changed files with 67 additions and 2 deletions

8
board/arcade.dts Normal file
View File

@@ -0,0 +1,8 @@
#include "broadcom/bcm2711-rpi-4-b.dts"
/ {
gpio-keyboard {
compatible = "arcade,gpio-keyboard";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};

View File

@@ -0,0 +1,4 @@
# <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
/etc d 755 0 0 - - - - -
/etc/init.d d 755 0 0 - - - - -
/etc/init.d/S20driver-setup f 755 0 0 - - - - -

View File

@@ -0,0 +1,22 @@
#!/bin/sh
start() {
modprobe gpio_keyboard_driver
}
stop() {
rmmod gpio_keyboard_driver
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
esac