Thread (20 messages) 20 messages, 6 authors, 2025-08-27

Re: [PATCH v3 2/3] pinctrl: bcm: Add STB family pin controller driver

From: Stanimir Varbanov <hidden>
Date: 2025-08-19 07:40:52
Also in: linux-devicetree, linux-gpio

Hi Andrea,

On 8/11/25 5:46 PM, Andrea della Porta wrote:
From: "Ivan T. Ivanov" <redacted>

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/ (local)

Cc: Jonathan Bell <redacted>
Cc: Phil Elwell <redacted>
Signed-off-by: Ivan T. Ivanov <redacted>
Reviewed-by: Phil Elwell <redacted>
Signed-off-by: Andrea della Porta <andrea.porta@suse.com>
---
 drivers/pinctrl/bcm/Kconfig           |   13 +
 drivers/pinctrl/bcm/Makefile          |    1 +
 drivers/pinctrl/bcm/pinctrl-brcmstb.c | 1197 +++++++++++++++++++++++++
 3 files changed, 1211 insertions(+)
 create mode 100644 drivers/pinctrl/bcm/pinctrl-brcmstb.c
<snip>
+static int brcmstb_pinctrl_probe(struct platform_device *pdev)
+{
+	struct device *dev = &pdev->dev;
+	struct device_node *np = dev->of_node;
+	const struct brcmstb_pdata *pdata;
+	const struct of_device_id *match;
+	struct brcmstb_pinctrl *pc;
+	const char **names;
+	int num_pins, i;
+
+	match = of_match_node(brcmstb_pinctrl_match, np);
The 'match' variable is needless, you can drop it.
+	pdata = match->data;
+
<snip>

~Stan

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help