pinctrl: bcm283x: Add GPIO pull-up/down control for BCM2835 and BCM2711
authorCibil Pankiras <cibil.pankiras@egym.com>
Thu, 13 Nov 2025 23:45:32 +0000 (00:45 +0100)
committerPeter Robinson <pbrobinson@gmail.com>
Tue, 25 Nov 2025 09:22:12 +0000 (09:22 +0000)
commit2c39d975f87cfcce3805bff34918708bf7491b25
tree7f82fc50174bab5af21f3e1522fb33b0a3aa7407
parent46e0ac55e56638d2543fc5a4c1ed28470095233e
pinctrl: bcm283x: Add GPIO pull-up/down control for BCM2835 and BCM2711

This patch adds support for configuring GPIO pull-up and pull-down
resistors in the BCM283x pinctrl driver. It implements the brcm,pull
device tree property to control pin bias settings.

The implementation follows the hardware-specific pull control
mechanisms:
- BCM2835: two-step GPPUD register sequence
- BCM2711: direct per-pin control registers

This enables device tree configurations to specify pull-up, pull-down,
or no bias for individual GPIO pins.

Tested on Raspberry Pi boards with both BCM2835 and BCM2711 SoCs.

Signed-off-by: Cibil Pankiras <cibil.pankiras@egym.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
arch/arm/mach-bcm283x/include/mach/gpio.h
drivers/pinctrl/broadcom/pinctrl-bcm283x.c