sppctl_gmx_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie πŸ’– welcome to sppctl_gmx_set(9) from the Kernel API Manual β€” aka the little kernel function whose whole job is setting a pin of a group-pinmux. It’s giving β€œsmall function, very specific task” energy and we respect it πŸ’…

✨ NAME ✨

sppctl_gmx_set β€” Set pin of group-pinmux. That’s literally the name, no cap πŸŽ€

🌸 SYNOPSIS 🌸

void sppctl_gmx_set (struct sppctl_pdata *pctl , u8 reg_off , u8 bit_off
, u8 bit_sz , u8 val );

It returns void, so there’s no return value to obsess over β€” it just does the thing 😌

πŸŽ€ ARGUMENTS πŸŽ€

The manpage is so real for this: every single argument is marked -- undescribed --. No lore, no extra details, just vibes πŸ™ˆ

  • pctl β€” -- undescribed --
  • reg_off β€” -- undescribed --
  • bit_off β€” -- undescribed --
  • bit_sz β€” -- undescribed --
  • val β€” -- undescribed --

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the mask-fields and control-fields of the group-pinmux function of SP7021 are arranged as shown below. The columns are register, mask-fields, and control-fields:

  • base[0] β†’ mask-fields (31 : 16), control-fields (15 : 0)
  • base[1] β†’ mask-fields (31 : 24), control-fields (15 : 0)
  • base[2] β†’ mask-fields (31 : 24), control-fields (15 : 0)
  • : β†’ mask-fields :, control-fields :

where mask-fields are used to protect control-fields from write-in accidentally πŸ›‘οΈ β€” yes, that’s the page’s words, and honestly it ate. Set the corresponding bits in the mask-field before you write a value into a control-field. No skipping the shield step, bestie πŸ’…

Control-fields are used to set where the function pin is going to be routed to πŸ“. A control-field consists of one or more bits β€” tiny field, big routing decisions, periodt.

πŸ’œ SEE ALSO πŸ’œ


mwah πŸ’– this cutie lives in the Kernel API Manual, source/version path ./drivers/pinctrl/sunplus, dated October 2026, and the page is literally sppctl_gmx_set(9) β€” periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from