Overview
Explore the new GPIO interface for user space in Linux with this informative conference talk. Delve into the features of the GPIO character device, introduced in Linux 4.8 as a replacement for the deprecated GPIO sysfs interface. Learn about polling for line events, finding GPIO chips and lines by name, and changing multiple line values with a single ioctl. Discover the benefits of switching to this new interface and gain insights into libgpiod, the user space tools for utilizing the character device. Understand the evolution of GPIO interfaces, from legacy to modern implementations, and explore the C API, including simple and low-level options. Get acquainted with GPIO tools like GPIO Find and GPIO daemon, and learn where to access these resources. Presented by Bartosz Golaszewski, an experienced embedded systems engineer and maintainer of libgpiod, this talk provides a comprehensive overview of the new GPIO UAPI and its practical applications in Linux-based systems.
Syllabus
Introduction
What is a GPIO
Provider and Consumer
Legacy User Space
New User Space Interface
Line
Direct
Flex
Request
Set
Events
Pulling Events
Project History
C API
Simple API
Lowlevel API
GPIO Tools
GPIO Find
GPIO daemon
Where to get
Questions
Taught by
Linux Foundation