pcs_quirk_m...inctrl_cells(9)
π pcs_quirk_missing_pinctrl_cells(9) β like, the Kernel API Manual page, bestie π
okay so this is a page from the Kernel API Manual, and the function's full name is pcs_quirk_missing_pinctrl_cells (the header up top got a lil truncated as pcs_quirk_m...inctrl_cells(9) β she's shy, it happens π). Pull up a chair, we're doing legacy device-tree binding today.
β¨ NAME β¨
pcs_quirk_missing_pinctrl_cells β handles the legacy binding situation π«Ά
πΈ SYNOPSIS πΈ
int pcs_quirk_missing_pinctrl_cells (struct pcs_device *pcs , struct device_node *np , int cells );
like literally that's the whole signature, no cap β¨
π¦ ARGUMENTS π¦
pcsβ the pinctrl driver instance itself, the main character of this whole operation πnpβ the device tree node we're looking at π³cellsβ number of cells, just a count, that's it, that's the whole vibe π’
π DESCRIPTION π
so the tea is: this function handles the legacy binding β meaning the old-school case where there's no #pinctrl-cells property at all π
and here's the rule, bestie, write it down: it should always be two for pinctrl-single,bit-per-mux, and one for everybody else. periodt. π
β οΈ also a lil warning from the original: "At some point we may want to consider removing this." so yeah, she's on borrowed time, don't get too attached π
π₯ SEE ALSO π₯
Kernel file ./drivers/pinctrl/pinctrl-single.c, plus literally the entire friend group:
struct pcs_func_vals(9)struct pcs_conf_vals(9)struct pcs_conf_type(9)struct pcs_function(9)struct pcs_gpiofunc_range(9)struct pcs_data(9)struct pcs_soc_data(9)struct pcs_device(9)pcs_add_pin(9)pcs_allocate_pin_table(9)pcs_add_function(9)pcs_get_pin_by_offset(9)pcs_parse_one_pinctrl_entry(9)pcs_dt_node_to_map(9)pcs_irq_free(9)pcs_free_resources(9)struct pcs_interrupt(9)pcs_irq_set(9)pcs_irq_mask(9)pcs_irq_unmask(9)pcs_irq_set_wake(9)pcs_irq_handle(9)pcs_irq_handler(9)pcs_irq_chain_handler(9)pcs_irq_init_chained_handler(9)
mwah π that's the page! shoutout to ./drivers/pinctrl for hosting her, and happy October 2026 reading, bestie β go forth and quirk responsibly π§ββοΈβ
π¦ 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