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:
8
board/arcade.dts
Normal file
8
board/arcade.dts
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "broadcom/bcm2711-rpi-4-b.dts"
|
||||
|
||||
/ {
|
||||
gpio-keyboard {
|
||||
compatible = "arcade,gpio-keyboard";
|
||||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
4
board/skeleton-device-table.txt
Normal file
4
board/skeleton-device-table.txt
Normal 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 - - - - -
|
||||
22
board/skeleton/etc/init.d/S20driver-setup
Normal file
22
board/skeleton/etc/init.d/S20driver-setup
Normal 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
|
||||
Reference in New Issue
Block a user