Simple devicetree definition for a gpio keypad for connected to a BeagleBone Black and using the gpio-keys driver. The keypad is connected this way: P8_07 -> KEY_TOP P8_08 -> KEY_LEFT P8_09 -> KEY_RIGHT P8_10 -> KEY_BOTTOM The .dts file depends on definitions from bb.org-overlays, to download it execute the following commands: $ cd ~ $ git clone https://github.com/beagleboard/bb.org-overlays.git To compile and install the devicetree overlay execute the following commands: $ make && sudo make install And add an entry with the DT overlay to /boot/uEnv.txt, for example: uboot_overlay_addr1=/lib/firmware/bbb-gpio-keypad-00A0.dtbo Copyright (C) 2018 Antonio Ospite