← DriversDRIVERS 5.3

GPIO & Simple Hardware

Not yet catalogued — the descriptor-based GPIO API, and the first place interrupts meet a driver in this phase. 5 bytes.

What this topic will cover

  • The gpiod API — descriptor-based GPIO sourced from device tree, direction, get/set.
  • An LED driver pattern — an output GPIO controlled through a char or sysfs interface.
  • A button-plus-IRQ pattern — gpiod_to_irq combined with request_irq.
  • Software debouncing with timers/jiffies, and exposing controls via sysfs attributes (device_create_file, show/store).

Not yet catalogued — check back once this topic is underway.

Notes from readers

Comments — via GitHub