]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: add generic functions + pins mapper
authorConor Dooley <conor.dooley@microchip.com>
Tue, 20 Jan 2026 18:15:40 +0000 (18:15 +0000)
committerLinus Walleij <linusw@kernel.org>
Wed, 21 Jan 2026 12:13:37 +0000 (13:13 +0100)
commit43722575e5cdcc6c457bfe81fae9c3ad343ea031
tree58358506adc31dbf1d001aff9b01edbe6d8e064e
parent95c1762aaf34b0d5d128f5c14a82826499c563a3
pinctrl: add generic functions + pins mapper

Add a generic function to allow creation of groups and functions at
runtime based on devicetree content, before setting up mux mappings.
It works similarly to pinconf_generic_dt_node_to_map(), and
therefore parses pinconf properties and maps those too, allowing it
to be used as the dt_node_to_map member of the pinctrl_ops struct.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/Kconfig
drivers/pinctrl/Makefile
drivers/pinctrl/pinconf.h
drivers/pinctrl/pinctrl-generic.c [new file with mode: 0644]