pinconf_gen...se_dt_pinmux(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pinconf_gen...se_dt_pinmux β€” from the Kernel API Manual, bestie

okay so first thing, the title of this whole thing is pinconf_gen...se_dt_pinmux(9) and it lives in the Kernel API Manual, and yes the function name is genuinely that long β€” it got abbreviated in the header because even the manpage was like "bestie I cannot". the full name is in the NAME section below, we're getting there 🫢


✨ NAME ✨

pinconf_generic_parse_dt_pinmux β€” and that's it. that's the whole entry. no little dash-description, no tagline, nothing. she gave us the name and left the chat πŸ’€ (so fr fr, everything you need is in DESCRIPTION, keep scrolling)


🌸 SYNOPSIS 🌸

int pinconf_generic_parse_dt_pinmux (struct device_node *np , struct device *dev , unsigned int **pid , unsigned int **pmux , unsigned int *npins );

it returns an int, it takes five things, and it's giving "trust me I know what I'm doing" main character energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” the node that's holding the pinmux properties. this is the source of truth, the one with the goods πŸ“¦
  • dev β€” the pincontrol core device. hi bestie, say hi to the core device πŸ‘‹
  • pid β€” an array with pin identity entries. the "who am I" of each pin πŸ’…
  • pmux β€” an array with pin mux value entries. the "what am I doing" of each pin ✨
  • npins β€” the number of pins. the headcount, the guest list, the vibe check on how many we're dealing with πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she parses the pinmux properties into generic pin mux values. that's the whole job. clean, simple, iconic 🌈

and here's the part you're gonna wanna screenshot β€” the pinmux property layout:

  • mux value β†’ bits [0,7]
  • pin identity β†’ bits [8,31]

ikr?? the low bits are the mux value and the high bits are the pin identity, all packed into one number together like they're sharing a twin bed πŸ™ˆ so [0,7] is your first byte for the mux, and [8,31] is everything above it for the identity. no cap, that's the spec, write it down πŸ“


πŸ”₯ SEE ALSO πŸ”₯

all four, all linked, go click around, that's your homework for tonight πŸ“


and that's the page, bestie!! πŸ’œ she's filed under ./drivers/pinctrl, she's dated October 2026, and she came to us from the Kernel API Manual β€” go forth and parse those pinmux properties, you're gonna slay πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from