STRUCT ZYNQ_PINCTRL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct zynq_pinctrl(9) ✨

okay bestie, so this page lives in the Kernel API Manual and it's literally all about struct zynq_pinctrl β€” the driver data struct. that's it, that's the whole vibe. let's get into it 🫢


🌸 NAME 🌸

struct zynq_pinctrl β€” driver data. yes, that's genuinely it. it's the driver data struct, no cap πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the struct in all its glory, copy it exactly bestie:

struct zynq_pinctrl {
    struct pinctrl_dev *pctrl;
    struct regmap *syscon;
    u32 pctrl_offset;
    const struct zynq_pctrl_group *groups;
    unsigned int ngroups;
    const struct zynq_pinmux_function *funcs;
    unsigned int nfuncs;
 };

πŸ’– Members πŸ’–

okay so these are the fields and what each one is doing β€” every single one matters, don't skip πŸ‘‘

  • pctrl β€” the pinctrl device. main character energy right there ✨
  • syscon β€” the syscon regmap. that's where the registers live πŸ—ΊοΈ
  • pctrl_offset β€” the offset for pinctrl into the syscon space. like, where in the syscon space the pinctrl stuff actually sits πŸ“
  • groups β€” the pingroups 🧚
  • ngroups β€” the number of groups. (yes, it's the count for groups, you clocked it πŸ”₯)
  • funcs β€” the pinmux functions πŸ¦‹
  • nfuncs β€” the number of funcs. (same deal, count for funcs πŸ’œ)

πŸ”₯ SEE ALSO πŸ”₯

go look at these, iykyk:

  • Kernel file ./drivers/pinctrl/pinctrl-zynq.c struct zynq_pinmux_function(9)

fr fr bestie, if you're touching this struct you're already deep in the pinctrl-zynq trenches. slay πŸ’…

and that's the page! no notes, ate and left no crumbs πŸ‘‘

sign-off cuteness: this one's from ./drivers/pinctrl, dated October 2026 β€” bestie, go read the real source too, mwah πŸ“πŸ’–

πŸ“¦ where this page comes from