A pin already requested line means that one pin has two claims in the device tree, and the driver that failed is only the one that asked second. The most likely cause is a second enabled node that references the same pin, often inherited from a reference-design include file. Read the two names in the message first: the name after “by” is the current holder and the name after “for” is the requester, and the form of each name tells you which cause applies.
A driver fails to probe and the log shows a pin already requested line from the pin controller. The line names a pin and two parties, but not which claim is the mistake. This guide covers the causes of the pin already requested error, how to tell them apart on a running board, and the device tree change for each.
The message: what “pin already requested” means
The kernel prints these formats, in this order, taken from the source at v7.3.5 with placeholders in angle brackets.
<driver> <pinctrl-device>: pin <pin-name> already requested by <holder>; cannot claim for <requester>
<driver> <pinctrl-device>: error -EINVAL: pin-<number> (<requester>)
<driver> <pinctrl-device>: error -EINVAL: could not request pin <number> (<pin-name>) from group <group> on device <pinctrl-name>
<driver> <consumer-device>: error -EINVAL: Error applying setting, reverse things backThe first two lines look like this on a Qualcomm SC8280XP board, as quoted in a kernel patch series for the Qualcomm pin controllers. The holder is a regulator device and the requester is a GPIO line, which is cause 2 below.
[ 5.095688] sc8280xp-tlmm f100000.pinctrl: pin GPIO_25 already requested by regulator-edp-3p3; cannot claim for f100000.pinctrl:570
[ 5.107822] sc8280xp-tlmm f100000.pinctrl: error -EINVAL: pin-25 (f100000.pinctrl:570)The first two lines come from pin_request() in drivers/pinctrl/pinmux.c. That function records one multiplexing holder and one GPIO holder for every pin. When a request arrives for a pin whose holder has a different name, it prints the line and returns -EINVAL, not -EBUSY. The third line comes from pinmux_enable_setting() in the same file and adds the pin group being applied. The fourth comes from pinctrl_commit_state() in drivers/pinctrl/core.c. It is the only line printed against the device that failed, so a log search for that device misses the other three.
Groups, functions and states are explained in the TECH VEDA post on the subsystem, The pinctrl Subsystem: How Linux Multiplexes and Configures SoC Pins.
Quick diagnosis
When pin already requested appears, classify the two names before opening the device tree. A name such as regulator-edp-3p3 is a device. A name with a colon and a number at the end, such as f100000.pinctrl:570, is a GPIO line: the GPIO chip label followed by the GPIO number. A holder equal to the pin controller’s own device name is a hog.
| Cause | How to confirm | Fix |
|---|---|---|
| 1. Two device nodes claim the same pin | Holder and requester are both device names; pinmux-pins in debugfs shows the holder’s group | Remove the pin group from the node that should not have it, or disable that node |
| 2. A GPIO is requested on a pin that is already multiplexed | Requester has the label:number form; the pinmux-pins header contains (strict) | Remove the pin from the multiplexing group and keep the GPIO property, or the reverse |
| 3. A hog on the pin controller node holds the pin | Holder equals the pin controller device name in the line prefix | Remove the pin from the hog group on the pin controller node |
| 4. The pin is held as a GPIO and a device asks for its function | Holder has the label:number form on a strict controller; /sys/kernel/debug/gpio names the consumer | Remove the GPIO reference or the pin group, whichever the board does not need |
Cause 1: two device nodes claim the same pin
When a device applies a pin control state, the core records the device name as the holder of every pin in the group. A second device whose state contains any of those pins is refused. The comparison is made per pin, so two differently named groups that share one pin are enough. The second claim usually arrives from a file you did not write: an include file that enables a peripheral your board does not fit, or an overlay.
To confirm, read the ownership table on the board, with debugfs mounted at /sys/kernel/debug. The directory is named after the pin controller device, with the driver’s registered name appended when the two differ.
root@pine64-plus:~# cat /sys/kernel/debug/pinctrl/*/pinmux-pins
root@pine64-plus:~# cat /sys/kernel/debug/pinctrl/*/pingroupsThe pinmux-pins row for the pin gives the holder with the function and group it applied. The pingroups file lists the pins inside every group. Then search the compiled device tree for the groups that contain the pin.
raghu@techveda.org:~$ dtc -I dtb -O dts -o board.dts board.dtb
raghu@techveda.org:~$ grep -n "pinctrl-0" board.dtsThe fix is to remove the group from the node that should not hold it, or to set that node’s status to "disabled" in the board file. Decompile the result again and confirm the claim has gone.
Warning: check the schematic before you choose which node keeps the pin. Enabling an output function on a pin that another chip on the board also drives can damage hardware.
Cause 2: a GPIO is requested on a pin that is already multiplexed
Here the requester has the label:number form and the holder is a device. A driver asked for a GPIO, the pin controller was asked to reserve the underlying pin, and the pin already carried a multiplexing claim. The pin already requested line is printed for this combination only when the pin controller driver sets the strict flag in its pinmux_ops. At v7.3.5 the Allwinner, STM32 and Qualcomm drivers set it; the pinctrl-single, i.MX, Rockchip, BCM2835, Samsung and Renesas drivers do not.
The common form sits inside one node: the node lists a pin in its pinctrl-0 group and also names the same pin in a GPIO property such as cs-gpios or reset-gpios. The driver then appears to be in conflict with itself.
To confirm, read the first two lines of the ownership table, then the GPIO ranges.
root@pine64-plus:~# head -n 2 /sys/kernel/debug/pinctrl/*/pinmux-pins
root@pine64-plus:~# cat /sys/kernel/debug/pinctrl/*/gpio-rangesA strict controller prints Format: pin (name): mux_owner|gpio_owner (strict) hog? as the second line. The gpio-ranges file gives the GPIO number range and pin range of each GPIO chip, so you can turn the number after the colon into a line offset and search the device tree for the GPIO property that references it.
The fix is to keep one claim. If the line is used as a GPIO, remove that pin from the multiplexing group and keep the GPIO property. If the pin belongs to the peripheral function, remove the GPIO property.
Cause 3: a hog on the pin controller node holds the pin
A pin controller node can carry a pinctrl-0 property of its own. The core applies that state when the controller registers and records the pin controller’s device name as the holder. The name after “by” is then the device name in the prefix of the line.
To confirm, list the mapping table and look for entries whose device and controlling device are the same.
root@pine64-plus:~# cat /sys/kernel/debug/pinctrl/pinctrl-mapsEach entry prints a device line, a state line and a controlling device line, followed by the group and function. The fix is in the pin controller node, not in the device that failed: remove the pin from the hog group, or remove the hog if the board does not need it.
Cause 4: the pin is held as a GPIO and a device asks for its function
This is the reverse of cause 2. A GPIO consumer or a gpio-hog node under the GPIO controller took the line first, and a peripheral then asked for the same pin in its group. Only a strict controller reports it. The holder string names the line, not the driver that requested it.
To confirm, read the GPIO library’s own table, which lists each requested line with its consumer label.
root@pine64-plus:~# cat /sys/kernel/debug/gpioThe fix is to decide which use the board needs and remove the other reference. From Linux 6.18 the check has changed and this combination may no longer be reported; see Versions.
If none of these
If the two names fit no cause above, capture the order in which pins were requested. pin_request() has a debug message, request pin <number> (<pin-name>) for <owner>, for every request. On a kernel built with CONFIG_DYNAMIC_DEBUG, add dyndbg="file pinmux.c +p" to the kernel command line and boot again. The log then shows every claim on the pin in order, including the first one, which succeeded without a message.
The absence of the pin already requested message does not prove the absence of an overlap. On a controller that is not strict, a multiplexing claim and a GPIO claim on one pin both succeed, and pinmux-pins shows a name in both columns for that pin.
If the cause is still unclear, ask on the linux-gpio mailing list at vger.kernel.org. Send the four log lines, the pinmux-pins row and the kernel version.
Versions
The first line has the same text at v5.10.274, v5.15.225, v6.1.192, v6.6.162, v6.12.118, v6.18.64, v7.3.5 and v7.4-rc4. The following lines differ.
- In the 5.10, 5.15, 6.1 and 6.6 longterm series the second line is
pin-<number> (<requester>) status -22, and the third line has noerrorprefix and contains two spaces beforeon device. - From mainline 6.9, which includes the 6.12 and 6.18 longterm series, both lines are printed through
dev_err_probe()and start witherror -EINVAL:. The prefix readserror -22:on a kernel built withoutCONFIG_SYMBOLIC_ERRNAME. - From mainline 7.1 the fourth line carries the same prefix. In 7.0 and older, including every current longterm series, it has none.
- From mainline 6.18,
pin_request()consults a newfunction_is_gpiocallback. Both conflict checks are skipped when the pin has no recorded multiplexing setting, or when the driver reports that the current function is a GPIO function. The v6.17 source does not contain this logic. Going by the 6.18 source, cause 4 is reported on 6.17 and older kernels and not on 6.18 and newer ones. - The
strictflag is per driver and per version. The Allwinner and STM32 drivers set it at v5.10.274. The Qualcomm driver sets it at v6.18.64 and v7.3.5 and does not at v6.12.118. On a vendor kernel, check thepinmux-pinsheader on the board.
Key takeaways
- The name after “by” holds the pin and the name after “for” asked second.
- A name ending in a colon and a number is a GPIO line, and a holder equal to the pin controller device name is a hog.
- For a pin already requested error, the
pinmux-pinsfile in debugfs shows the present holder, function and group of the pin. - Only strict pin controllers print pin already requested for an overlap between a GPIO and a peripheral function.
Frequently asked questions
Why does a pin already requested conflict return -EINVAL and not -EBUSY?
The function that detects the conflict, pin_request(), returns -EINVAL for it. That value passes out of the consumer’s probe, so the error code alone does not identify a pin conflict.
The holder in the message ends with a colon and a number. Which device is that?
It is not a device. It is a GPIO line, written as the GPIO chip label followed by the GPIO number. The driver that requested the line is not named in the message. The file /sys/kernel/debug/gpio lists each requested line with its consumer label.
Two nodes use the same pin and no pin already requested line appears. Why?
If one claim is a peripheral function and the other is a GPIO, the overlap is reported only by pin controller drivers that set the strict flag. On other controllers both claims succeed, and the pinmux-pins file shows a name in both the multiplexing column and the GPIO column for that pin.
References
- Linux kernel source, drivers/pinctrl/pinmux.c at v7.3.5
- Linux kernel source, drivers/pinctrl/core.c at v7.3.5
- Linux kernel source, drivers/pinctrl/devicetree.c at v7.3.5
- Linux kernel source, include/linux/pinctrl/pinmux.h at v7.3.5
- Linux kernel documentation, Documentation/driver-api/pin-control.rst at v7.3.5
- Bartosz Golaszewski, “pinctrl: introduce the concept of a GPIO pin function category”, patch series v6, 28 August 2025
- kernel.org release list, read on 23 November 2026




