Bug 251390 - new kernel module for GPIO input interrupt to kevent
Summary: new kernel module for GPIO input interrupt to kevent
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-26 01:58 UTC by Oskar Holmlund
Modified: 2020-11-26 15:52 UTC (History)
0 users

See Also:


Attachments
simple kernel module for catching Interrupts and forward to a kevent (88.61 KB, patch)
2020-11-26 01:58 UTC, Oskar Holmlund
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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)