Skip to content

pinctrl: rp1: enable strict pinmux mode#7522

Open
nbuchwitz wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
nbuchwitz:devel/rp1-pinmux-strict
Open

pinctrl: rp1: enable strict pinmux mode#7522
nbuchwitz wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
nbuchwitz:devel/rp1-pinmux-strict

Conversation

@nbuchwitz

Copy link
Copy Markdown
Contributor

Pins claimed for a peripheral function can be taken over through the GPIO chardev, which rewrites FUNCSEL. On Pi 5 reading the USB overcurrent pin this way trips the overcurrent latch and disables all USB ports, and requesting GPIO 42 as output cuts VBUS entirely.

Enable strict pinmux so GPIO requests on function pins are rejected. Implement function_is_gpio so pins muxed as GPIO, including hogs and legacy brcm,function maps, stay requestable. This matches the BCM2712 pinctrl-brcmstb driver.

Link: #5870

Pins claimed for a peripheral function can be taken over through the
GPIO chardev, which rewrites FUNCSEL. On Pi 5 reading the USB
overcurrent pin this way trips the overcurrent latch and disables all
USB ports, and requesting GPIO 42 as output cuts VBUS entirely.

Enable strict pinmux so GPIO requests on function pins are rejected.
Implement function_is_gpio so pins muxed as GPIO, including hogs and
legacy brcm,function maps, stay requestable. This matches the BCM2712
pinctrl-brcmstb driver.

Link: raspberrypi#5870
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
@nbuchwitz

Copy link
Copy Markdown
Contributor Author

Candidate for #5870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant