STRUCT SPRD_PIN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct sprd_pin(9) ✨

Okay bestie, gather round πŸ’– so this is struct sprd_pin from the Kernel API Manual β€” literally the glow-up of one single pin's whole description. It's giving "mini character sheet for a GPIO" and honestly? Iconic. No cap.


🌸 NAME 🌸

struct sprd_pin β€” represent one pin's description ✨

Like, one pin. One vibe. She contains multitudes (of fields) πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct sprd_pin {
    const char *name;
    unsigned int number;
    enum pin_type type;
    unsigned long reg;
    unsigned long bit_offset;
    unsigned long bit_width;
 };

She's small but she's doing the work, periodt πŸ’…


πŸ‘‘ Members πŸ‘‘

Every field, every detail, we do NOT skip πŸ’œ

  • name β€” pin name 🏷️ like her whole government name, a const char *
  • number β€” pin number πŸ”’ the numeric ID she clocks in with, an unsigned int
  • type β€” pin type, can be GLOBAL_CTRL_PIN/COMMON_PIN/MISC_PIN 🌈 she's got range, she's an enum pin_type
  • reg β€” pin register address πŸ“ where she actually lives, an unsigned long
  • bit_offset β€” bit offset in pin register 🎯 how far in she's parked
  • bit_width β€” bit width in pin register πŸ“ how much register space she's claiming, respectfully
ngl the layout is so clean it's kind of a serve 🫢

🧚 SEE ALSO 🧚

The friend group πŸ’– go read these next, iykyk:

  • Kernel file ./drivers/pinctrl/sprd/pinctrl-sprd.c
  • struct sprd_pin_group(9)
  • struct sprd_pinctrl_soc_info(9)
  • struct sprd_pinctrl(9)

πŸ’€ Sign-off πŸ’€

And that's the whole page, bestie β€” no crumbs left πŸ“ Straight from ./drivers/pinctrl/sprd, dated October 2026, and honestly? She ate πŸ”₯πŸ‘‘ Go be the main character of your own pinctrl driver βœ¨πŸ’…

πŸ“¦ where this page comes from