GPIO LED FUNCTIONS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… GPIO/LED functions(9) ✨

okay so this is the Kernel API Manual page, and literally the whole vibe is: we're driving pins. pull up a chair bestie 🫢

πŸŽ€ the whole point

Here we control the 6 bidirectional GPIO pins provided by the hw. That's it, that's the job. We can set a GPIO pin to be an input or an output pin on the GPIO control register β€” and then read or set its status from the GPIO data input/output registers. in πŸ‘ put πŸ‘ out πŸ‘ registers. slay.

We also control the two LED pins provided by the hw:

  • LED_0 is our "power" LED πŸ”₯
  • LED_1 is our "network activity" LED πŸ¦‹

but honestly, many scenarios are available from hw β€” the hw has range, iykyk.

Also! Vendors might provide LEDs connected to the GPIO pins (not me checking the vendor docs 😭), and we handle them through the LED subsystem on led.c. periodt.


🌈 SEE ALSO 🌈

Kernel file ./drivers/net/wireless/ath/ath5k/gpio.c ✨


go read those too bestie, they're the whole friend group πŸ’–

and that's the page!! courtesy of ./drivers/net/wireless/ath/ath5k, dated October 2026, living under the title GPIO/LED functions(9) β€” see you in the next one, mwah πŸ’‹πŸ‘‘

πŸ“¦ where this page comes from