From: Hugo Villeneuve Date: Thu, 31 Oct 2024 15:35:48 +0000 (-0400) Subject: rpi: add GPIO keys X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=adf5a3b317c25fe184138b11b841b17df865a6f5;p=yocto%2Fmeta-hvmpd.git rpi: add GPIO keys --- diff --git a/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend b/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend index ea3d705..67e5cdb 100644 --- a/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend +++ b/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend @@ -22,4 +22,12 @@ do_deploy:append() { # Enable hvmpd overlay: echo "dtoverlay=hvmpd" >> $CONFIG + + # Important: no whistespace... + echo "dtoverlay=gpio-key,gpio=23,active_low=0,gpio_pull=up,label=play,keycode=164" >> $CONFIG + echo "dtoverlay=gpio-key,gpio=24,active_low=0,gpio_pull=up,label=left,keycode=105" >> $CONFIG + echo "dtoverlay=gpio-key,gpio=12,active_low=0,gpio_pull=up,label=down,keycode=108">> $CONFIG + echo "dtoverlay=gpio-key,gpio=16,active_low=0,gpio_pull=up,label=enter,keycode=28">> $CONFIG + echo "dtoverlay=gpio-key,gpio=7,active_low=0,gpio_pull=up,label=right,keycode=106">> $CONFIG + echo "dtoverlay=gpio-key,gpio=8,active_low=0,gpio_pull=up,label=up,keycode=103">> $CONFIG }