GPIO LED FUNCTIONS(9)
π 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_0is our "power" LED π₯LED_1is 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 β¨
ath5k_hw_set_ledstate(9)ath5k_hw_set_gpio_input(9)ath5k_hw_set_gpio_output(9)ath5k_hw_get_gpio(9)ath5k_hw_set_gpio(9)ath5k_hw_set_gpio_intr(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms