Skip to content

Commit 657cbf9

Browse files
hanzydLinus Walleij
authored andcommitted
pinctrl: bcm: Add STB family pin controller driver
This driver provide pin muxing and configuration functionality for BCM2712 SoC used by RPi5. According to [1] this chip is an instance of the one used in Broadcom STB product line. [1] https://lore.kernel.org/lkml/f6601f73-cb22-4ba3-88c5-241be8421fc3@broadcom.com/ Cc: Jonathan Bell <jonathan@raspberrypi.com> Cc: Phil Elwell <phil@raspberrypi.com> Signed-off-by: Ivan T. Ivanov <iivanov@suse.de> Reviewed-by: Phil Elwell <phil@raspberrypi.com> Signed-off-by: Andrea della Porta <andrea.porta@suse.com> [linusw: Enable also for ARCH_BCM2835] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 0733389 commit 657cbf9

6 files changed

Lines changed: 1306 additions & 0 deletions

File tree

drivers/pinctrl/bcm/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ config PINCTRL_BCM63268
106106
help
107107
Say Y here to enable the Broadcom BCM63268 GPIO driver.
108108

109+
config PINCTRL_BRCMSTB
110+
tristate "Broadcom STB product line pin controller driver"
111+
depends on OF && (ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST)
112+
select PINMUX
113+
select PINCONF
114+
select GENERIC_PINCONF
115+
help
116+
Enable pin muxing and configuration functionality
117+
for Broadcom STB product line chipsets.
118+
119+
source "drivers/pinctrl/bcm/Kconfig.stb"
120+
109121
config PINCTRL_IPROC_GPIO
110122
bool "Broadcom iProc GPIO (with PINCONF) driver"
111123
depends on OF_GPIO && (ARCH_BCM_IPROC || COMPILE_TEST)

drivers/pinctrl/bcm/Kconfig.stb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
if PINCTRL_BRCMSTB
3+
4+
config PINCTRL_BCM2712
5+
tristate "BCM2712 SoC pin controller driver"
6+
help
7+
Driver for BCM2712 integrated pin controller,
8+
commonly found on Raspberry Pi 5.
9+
10+
endif

drivers/pinctrl/bcm/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ obj-$(CONFIG_PINCTRL_BCM6358) += pinctrl-bcm6358.o
1111
obj-$(CONFIG_PINCTRL_BCM6362) += pinctrl-bcm6362.o
1212
obj-$(CONFIG_PINCTRL_BCM6368) += pinctrl-bcm6368.o
1313
obj-$(CONFIG_PINCTRL_BCM63268) += pinctrl-bcm63268.o
14+
obj-$(CONFIG_PINCTRL_BRCMSTB) += pinctrl-brcmstb.o
15+
obj-$(CONFIG_PINCTRL_BCM2712) += pinctrl-brcmstb-bcm2712.o
1416
obj-$(CONFIG_PINCTRL_IPROC_GPIO) += pinctrl-iproc-gpio.o
1517
obj-$(CONFIG_PINCTRL_CYGNUS_MUX) += pinctrl-cygnus-mux.o
1618
obj-$(CONFIG_PINCTRL_NS) += pinctrl-ns.o

0 commit comments

Comments
 (0)