Skip to content

Conversation

@pelwell
Copy link
Contributor

@pelwell pelwell commented Nov 27, 2025

In order to prevent confusing problems where pin configuration is not
be applied, an upcoming change to the overlaycheck utility will add a
check that all added pin groups are in some way referenced by the
overlay. Before that can be done, it is necessary to ensure that all
existing overlays pass that test.

This patch modifies some overlays by adding the required "pinctrl-0"
properties, but for others that are just setting GPIOs to inputs and
outputs, where those same GPIOs are declared by -gpios properties,
it is better to drop the pin groups and let the GPIO subsystem set up
the GPIOs as required. Removing this duplication may be helpful in the
future should we ever decide to enable the exclusive GPIO vs pinctrl
locking (.strict in struct pinmux_ops).

See: https://forums.raspberrypi.com/viewtopic.php?t=393742

Fix the whitespace before making any other changes.

Signed-off-by: Phil Elwell <[email protected]>
@pelwell
Copy link
Contributor Author

pelwell commented Nov 27, 2025

raspberrypi/utils#155 is the corresponding change to overlaycheck that requires this PR to be merged first.

In order to prevent confusing problems where pin configuration is not
be applied, an upcoming change to the overlaycheck utility will add a
check that all added pin groups are in some way referenced by the
overlay. Before that can be done, it is necessary to ensure that all
existing overlays pass that test.

This patch modifies some overlays by adding the required "pinctrl-0"
properties, but for others that are just setting GPIOs to inputs and
outputs, where those same GPIOs are declared by <name>-gpios properties,
it is better to drop the pin groups and let the GPIO subsystem set up
the GPIOs as required. Removing this duplication may be helpful in the
future should we ever decide to enable the exclusive GPIO vs pinctrl
locking (.strict in struct pinmux_ops).

See: https://forums.raspberrypi.com/viewtopic.php?t=393742

Signed-off-by: Phil Elwell <[email protected]>
@pelwell pelwell merged commit 7c7adad into raspberrypi:rpi-6.12.y Nov 27, 2025
12 of 13 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Dec 2, 2025
kernel: configs: Add CONFIG_INPUT_PWM_BEEPER=m
See: raspberrypi/linux#7154

kernel: Correcting GT928 GPIO configuration for CFA050-PI-M touchscreen
See: raspberrypi/linux#7152

kernel: overlays: Ensure that defined pin groups are used
See: raspberrypi/linux#7158
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Dec 2, 2025
kernel: configs: Add CONFIG_INPUT_PWM_BEEPER=m
See: raspberrypi/linux#7154

kernel: Correcting GT928 GPIO configuration for CFA050-PI-M touchscreen
See: raspberrypi/linux#7152

kernel: overlays: Ensure that defined pin groups are used
See: raspberrypi/linux#7158
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