Bug 251390

Summary: new kernel module for GPIO input interrupt to kevent
Product: Base System Reporter: Oskar Holmlund <oskar.holmlund>
Component: kernAssignee: freebsd-arm (Nobody) <freebsd-arm>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: arm   
OS: Any   
Attachments:
Description Flags
simple kernel module for catching Interrupts and forward to a kevent none

Description Oskar Holmlund 2020-11-26 01:58:47 UTC
Created attachment 219983 [details]
simple kernel module for catching Interrupts and forward to a kevent

Tested on Beaglebone Black
Button connected on P8_8 and P8_10 (change devicetree if you want any other pins)
(Random wiring diagram: https://learn.adafruit.com/connecting-a-push-button-to-beaglebone-black/wiring )

- Compile the devicetree and place the dtbo file in /boot/dtb/overlays/BB-GPIOIITK.dtbo.
- Add to /boot/loader.conf fdt_overlays="BB-GPIOIITK.dtbo"
- Build kernel module (make) and load it kldload gpioiitk.ko
- Build test application (cc test.c)