al177 / esp8089

Linux kernel module driver for the ESP8089 WiFi chip
GNU General Public License v2.0
180 stars 114 forks source link

Use devicetree overlay so we can properly map the reset GPIO with gpiod #57

Open al177 opened 2 months ago

al177 commented 2 months ago

Recent (6.somethingorother) kernels removed the legacy GPIO interface we used for controlling the ESP8089 reset from the Pi (or other platform). For now there's a hackish method in place to use a deprecated but not-yet-axed GPIO interface called libgpio, but this hack makes the driver Pi-specific and we can't expect that libgpio will be around for long (commit 4865180).

Create a Devicetree overlay for Raspberry Pi that can be installed alongside the DKMS, and be used as a template for other platforms. Update sdio_stub.c reset function to use gpiod instead of libgpio.