STRUCT KEEMBAY_PINCTRL(9)
π struct keembay_pinctrl(9) π
okay bestie, welcome to the Kernel API Manual β this one's all about struct keembay_pinctrl, the Intel Keembay pinctrl structure. yes it's a struct, yes it's iconic, let's go π
β¨ NAME β¨
struct keembay_pinctrl β literally the Intel Keembay pinctrl structure, no cap π¦
πΈ SYNOPSIS πΈ
here's the whole vibe, character for character, don't touch:
struct keembay_pinctrl {
struct pinctrl_dev *pctrl;
void __iomem *base0;
void __iomem *base1;
struct device *dev;
struct gpio_chip chip;
const struct keembay_pin_soc *soc;
raw_spinlock_t lock;
unsigned int ngroups;
unsigned int nfuncs;
unsigned int npins;
struct keembay_gpio_irq irq[KEEMBAY_GPIO_NUM_IRQ];
int max_gpios_level_type;
int max_gpios_edge_type;
};
π Members π
okay so every single field, one by one, no skipping bc every one of these matters π«Ά
pctrlβ pointer to the pin controller device. like, the main character pointer β¨base0β the first register base addressbase1β the second register base address (yes there's two, we love a duo π)devβ pointer to the device structurechipβ the GPIO chip this pin controller usessocβ pin control configuration data based on SoClockβ a spinlock that protects the various gpio config register access. it's giving bodyguard energy ngl π₯ngroupsβ number of pin groups availablenfuncsβ number of pin functions availablenpinsβ number of GPIO pins availableirqβ stores the Interrupt sourcemax_gpios_level_typeβ stores the max level trigger typemax_gpios_edge_typeβ stores the max edge trigger type
fr fr bestie, lock is there for a reason β it protects gpio config register access. don't be out here touching registers unprotected π
π¦ SEE ALSO π¦
- Kernel file
./drivers/pinctrl/pinctrl-keembay.cstructkeembay_mux_desc(9), structkeembay_gpio_irq(9), structkeembay_pin_soc(9)
and that's the whole page, bestie, you ate that π this masterpiece lives in the kernel file ./drivers/pinctrl and it's dated October 2026 β periodt, go read the source, iykyk ππ«
π¦ 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