Using GPIO as an IRQ in a Device Driver |
As an example of using a GPIO as an IRQ in a Linux kernel device driver, see how the Goodix touchscreen interrupts are configured in rootfs.dts.STM32F7:
Refer to the kernel device driver in drivers/input/touchscreen/goodix.c for illustration of how As a related topic, refer to drivers/usb/dwc3/dwc3-pci.c for an example of how a GPIO is used from a device driver:
The example above works with the cs-gpios node in the DTS. Refer to the description of the for gpiod_*() functions in linux/Documentation/gpio/consumer.txt. |