Pin control subsystem
Pinctrl and the device tree
The GPIO subsystem
The descriptor-based GPIO interface
GPIO descriptor mapping - the device tree
Allocating and using GPIO
Putting it all together
The GPIO interface and the device tree
GPIO mapping to IRQ in the device tree
GPIO and sysfs
Exporting a GPIO from kernel code