* [PATCH 0/5] ARM: dts: bcm47622: Add RNG, GPIO, I2C, DMA and crypto blocks
@ 2026-12-05 8:42 Ho Jie Feng
2026-12-05 8:42 ` [PATCH 1/5] ARM: dts: bcm47622: Add iproc rng Ho Jie Feng
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Ho Jie Feng @ 2026-12-05 8:42 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, William Zhang,
Anand Gore, Kursad Oney, Florian Fainelli,
Rafał Miłecki, Broadcom internal kernel review list
Cc: devicetree, linux-arm-kernel, linux-kernel, Ho Jie Feng
This series adds the blocks of the BCM47622 SoC family that existing
bindings already describe to bcm47622.dtsi:
- iProc RNG200 random number generator
- MMIO GPIO banks
- BSC I2C controller
- ARM PL081 DMA controller
- SPU-M crypto engine and PDC mailbox
Not included:
- WLAN
Note that on CFE-booted SoCs, the RNG may be locked to the secure world
and every read register returns 0xdeadbeef, so boards booted by CFE
should disable it.
PDC mailbox and SPU drivers does not build on ARCH_BCMBCA for now,
since bug fixes are needed for it to work correctly.
Tested on an ASUS RT-AX55 (BCM6755)
This serves as a complement to this patch:
[1] https://lore.kernel.org/linux-arm-kernel/20261204151052.393800-1-wafgo01@gmail.com/
Ho Jie Feng (5):
ARM: dts: bcm47622: Add iproc rng
ARM: dts: bcm47622: Add GPIO blocks
ARM: dts: bcm47622: Add I2C bus block
ARM: dts: bcm47622: Add ARM PL081 DMA block
ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox
arch/arm/boot/dts/broadcom/bcm47622.dtsi | 84 ++++++++++++++++++++++++
1 file changed, 84 insertions(+)
base-commit: 32c2ae169607225211092a0cfa58eb84e6fa0778
--
2.53.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/5] ARM: dts: bcm47622: Add iproc rng
2026-12-05 8:42 [PATCH 0/5] ARM: dts: bcm47622: Add RNG, GPIO, I2C, DMA and crypto blocks Ho Jie Feng
@ 2026-12-05 8:42 ` Ho Jie Feng
2026-12-05 8:42 ` [PATCH 2/5] ARM: dts: bcm47622: Add GPIO blocks Ho Jie Feng
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Ho Jie Feng @ 2026-12-05 8:42 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, William Zhang,
Anand Gore, Kursad Oney, Florian Fainelli,
Rafał Miłecki, Broadcom internal kernel review list
Cc: devicetree, linux-arm-kernel, linux-kernel, Ho Jie Feng
The BCM47622 has a standard iProc RNG200 block matching the
existing brcm,iproc-rng200 binding.
Add it to the BCM47622 DTSI file.
Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47622.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
index 485863f9c4..f7953effc1 100644
--- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
@@ -126,6 +126,12 @@ bus@ff800000 {
#size-cells = <1>;
ranges = <0 0xff800000 0x800000>;
+ rng: rng@b80 {
+ compatible = "brcm,iproc-rng200";
+ reg = <0xb80 0x28>;
+ interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
+ };
+
hsspi: spi@1000 {
#address-cells = <1>;
#size-cells = <0>;
--
2.53.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/5] ARM: dts: bcm47622: Add GPIO blocks
2026-12-05 8:42 [PATCH 0/5] ARM: dts: bcm47622: Add RNG, GPIO, I2C, DMA and crypto blocks Ho Jie Feng
2026-12-05 8:42 ` [PATCH 1/5] ARM: dts: bcm47622: Add iproc rng Ho Jie Feng
@ 2026-12-05 8:42 ` Ho Jie Feng
2026-12-05 8:42 ` [PATCH 3/5] ARM: dts: bcm47622: Add I2C bus block Ho Jie Feng
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Ho Jie Feng @ 2026-12-05 8:42 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, William Zhang,
Anand Gore, Kursad Oney, Florian Fainelli,
Rafał Miłecki, Broadcom internal kernel review list
Cc: devicetree, linux-arm-kernel, linux-kernel, Ho Jie Feng
The BCM47622 has four MMIO GPIO register banks compatible with
brcm,bcm6345-gpio.
Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47622.dtsi | 41 ++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
index f7953effc1..f0359f7ae8 100644
--- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
@@ -126,6 +126,47 @@ bus@ff800000 {
#size-cells = <1>;
ranges = <0 0xff800000 0x800000>;
+ /* GPIOs 0 .. 31 */
+ gpio0: gpio@500 {
+ compatible = "brcm,bcm6345-gpio";
+ reg = <0x500 0x04>, <0x520 0x04>;
+ reg-names = "dirout", "dat";
+ gpio-controller;
+ #gpio-cells = <2>;
+ status = "disabled";
+ };
+
+ /* GPIOs 32 .. 63 */
+ gpio1: gpio@504 {
+ compatible = "brcm,bcm6345-gpio";
+ reg = <0x504 0x04>, <0x524 0x04>;
+ reg-names = "dirout", "dat";
+ gpio-controller;
+ #gpio-cells = <2>;
+ status = "disabled";
+ };
+
+ /* GPIOs 64 .. 95 */
+ gpio2: gpio@508 {
+ compatible = "brcm,bcm6345-gpio";
+ reg = <0x508 0x04>, <0x528 0x04>;
+ reg-names = "dirout", "dat";
+ gpio-controller;
+ #gpio-cells = <2>;
+ status = "disabled";
+ };
+
+ /* GPIOs 96 .. 107 */
+ gpio3: gpio@50c {
+ compatible = "brcm,bcm6345-gpio";
+ reg = <0x50c 0x04>, <0x52c 0x04>;
+ reg-names = "dirout", "dat";
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <12>;
+ status = "disabled";
+ };
+
rng: rng@b80 {
compatible = "brcm,iproc-rng200";
reg = <0xb80 0x28>;
--
2.53.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/5] ARM: dts: bcm47622: Add I2C bus block
2026-12-05 8:42 [PATCH 0/5] ARM: dts: bcm47622: Add RNG, GPIO, I2C, DMA and crypto blocks Ho Jie Feng
2026-12-05 8:42 ` [PATCH 1/5] ARM: dts: bcm47622: Add iproc rng Ho Jie Feng
2026-12-05 8:42 ` [PATCH 2/5] ARM: dts: bcm47622: Add GPIO blocks Ho Jie Feng
@ 2026-12-05 8:42 ` Ho Jie Feng
2026-12-05 8:42 ` [PATCH 4/5] ARM: dts: bcm47622: Add ARM PL081 DMA block Ho Jie Feng
2026-12-05 8:42 ` [PATCH 5/5] ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox Ho Jie Feng
4 siblings, 0 replies; 7+ messages in thread
From: Ho Jie Feng @ 2026-12-05 8:42 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, William Zhang,
Anand Gore, Kursad Oney, Florian Fainelli,
Rafał Miłecki, Broadcom internal kernel review list
Cc: devicetree, linux-arm-kernel, linux-kernel, Ho Jie Feng
The BCM47622 has a Broadcom peripheral BSC I2C master controller
matching the brcm,brcmper-i2c compatible.
Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47622.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
index f0359f7ae8..d4da9de269 100644
--- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
@@ -199,6 +199,15 @@ nandcs: nand@0 {
};
};
+ i2c0: i2c@2100 {
+ compatible = "brcm,brcmper-i2c";
+ reg = <0x2100 0x60>;
+ interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
uart0: serial@12000 {
compatible = "arm,pl011", "arm,primecell";
reg = <0x12000 0x1000>;
--
2.53.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/5] ARM: dts: bcm47622: Add ARM PL081 DMA block
2026-12-05 8:42 [PATCH 0/5] ARM: dts: bcm47622: Add RNG, GPIO, I2C, DMA and crypto blocks Ho Jie Feng
` (2 preceding siblings ...)
2026-12-05 8:42 ` [PATCH 3/5] ARM: dts: bcm47622: Add I2C bus block Ho Jie Feng
@ 2026-12-05 8:42 ` Ho Jie Feng
2026-12-05 8:42 ` [PATCH 5/5] ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox Ho Jie Feng
4 siblings, 0 replies; 7+ messages in thread
From: Ho Jie Feng @ 2026-12-05 8:42 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, William Zhang,
Anand Gore, Kursad Oney, Florian Fainelli,
Rafał Miłecki, Broadcom internal kernel review list
Cc: devicetree, linux-arm-kernel, linux-kernel, Ho Jie Feng
The BCM47622 includes the same ARM PL081 DMA controller as the BCM63178
and BCM6855.
Add it to the BCM47622 DTSI file.
Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47622.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
index d4da9de269..182ec9bcd3 100644
--- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
@@ -208,6 +208,19 @@ i2c0: i2c@2100 {
status = "disabled";
};
+ pl081_dma: dma-controller@11000 {
+ compatible = "arm,pl081", "arm,primecell";
+ /* The magic B105F00D info is missing */
+ arm,primecell-periphid = <0x00041081>;
+ reg = <0x11000 0x1000>;
+ interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
+ memcpy-burst-size = <256>;
+ memcpy-bus-width = <32>;
+ clocks = <&periph_clk>;
+ clock-names = "apb_pclk";
+ #dma-cells = <2>;
+ };
+
uart0: serial@12000 {
compatible = "arm,pl011", "arm,primecell";
reg = <0x12000 0x1000>;
--
2.53.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 5/5] ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox
2026-12-05 8:42 [PATCH 0/5] ARM: dts: bcm47622: Add RNG, GPIO, I2C, DMA and crypto blocks Ho Jie Feng
` (3 preceding siblings ...)
2026-12-05 8:42 ` [PATCH 4/5] ARM: dts: bcm47622: Add ARM PL081 DMA block Ho Jie Feng
@ 2026-12-05 8:42 ` Ho Jie Feng
2026-12-05 9:05 ` sashiko-bot
4 siblings, 1 reply; 7+ messages in thread
From: Ho Jie Feng @ 2026-12-05 8:42 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, William Zhang,
Anand Gore, Kursad Oney, Florian Fainelli,
Rafał Miłecki, Broadcom internal kernel review list
Cc: devicetree, linux-arm-kernel, linux-kernel, Ho Jie Feng
The BCM47622 integrates an SPU-M symmetric crypto offload engine and
the iProc PDC DMA mailbox that feeds it, matching the existing
brcm,spum-crypto and brcm,iproc-pdc-mbox bindings.
Add both nodes to the BCM47622 DTSI file.
Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>
---
arch/arm/boot/dts/broadcom/bcm47622.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
index 182ec9bcd3..60e1f556a1 100644
--- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
@@ -102,6 +102,21 @@ psci {
method = "smc";
};
+ pdc: mailbox@8001c000 {
+ compatible = "brcm,iproc-pdc-mbox";
+ reg = <0x8001c000 0x448>;
+ interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
+ #mbox-cells = <1>;
+ brcm,rx-status-len = <4>;
+ brcm,use-bcm-hdr;
+ };
+
+ crypto@8001d000 {
+ compatible = "brcm,spum-crypto";
+ reg = <0x8001d000 0x64>;
+ mboxes = <&pdc 0>;
+ };
+
axi@81000000 {
compatible = "simple-bus";
#address-cells = <1>;
--
2.53.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 5/5] ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox
2026-12-05 8:42 ` [PATCH 5/5] ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox Ho Jie Feng
@ 2026-12-05 9:05 ` sashiko-bot
0 siblings, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-12-05 9:05 UTC (permalink / raw)
To: Ho Jie Feng; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] ARM: dts: bcm47622: PDC and SPU-M drivers unselectable under
ARCH_BCMBCA
- [Medium] dts: bcm47622: brcm,rx-status-len set to 4 instead of 32 for
SPU-M PDC
- [Low] dts: bcm47622: MMIO mailbox and crypto nodes placed directly
under root
--
commit 9b37dffc02320c47556912541d2497ae711c3692
Author: Ho Jie Feng <hjf3108@gmail.com>
ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox
This commit adds the iProc PDC mailbox and SPU-M symmetric crypto engine
nodes to the BCM47622 devicetree include file.
> diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
> index 182ec9bcd3411..60e1f556a1654 100644
> --- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi
> +++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi
> @@ -102,6 +102,21 @@ psci {
> method = "smc";
> };
>
> + pdc: mailbox@8001c000 {
> + compatible = "brcm,iproc-pdc-mbox";
> + reg = <0x8001c000 0x448>;
> + interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
> + #mbox-cells = <1>;
> + brcm,rx-status-len = <4>;
> + brcm,use-bcm-hdr;
[Severity: Medium]
Should brcm,rx-status-len be 32 instead of 4 here?
Every other in-tree PDC/FA2 node paired with brcm,spum-crypto and
brcm,use-bcm-hdr (in ns2.dtsi, bcm-nsp.dtsi, and the binding example)
uses 32, matching PDC_SPUM_RESP_HDR_LEN in bcm-pdc-mailbox.c rather than
the 4-byte trailing SPU_RX_STATUS_LEN.
With 4, pdc_rx_buf_pool_create() sizes pdc_resp_hdr_len to 12 bytes
instead of 40 and pdc_ring_init() programs RcvOffset to 4. If BCM47622
hardware prepends a 32-byte DMA RX status header like other SPU-M PDC
integrations, RX metadata will spill into dst_sg and corrupt responses.
> + };
> +
> + crypto@8001d000 {
> + compatible = "brcm,spum-crypto";
> + reg = <0x8001d000 0x64>;
> + mboxes = <&pdc 0>;
> + };
[Severity: Medium]
Can the matching drivers for these nodes be selected on ARCH_BCMBCA?
bcm947622.dtb is built under ARCH_BCMBCA, which does not select
ARCH_BCM_IPROC. CRYPTO_DEV_BCM_SPU depends on ARCH_BCM_IPROC and
BCM_PDC_MBOX depends on ARCH_BCM_IPROC || COMPILE_TEST, so a standalone
ARCH_BCMBCA build cannot enable these drivers without Kconfig updates.
> +
> axi@81000000 {
> compatible = "simple-bus";
> #address-cells = <1>;
[Severity: Low]
Would it be better to place mailbox@8001c000 and crypto@8001d000 inside
a simple-bus container node rather than directly under the root node?
Documentation/devicetree/bindings/writing-bindings.rst recommends
placing all MMIO devices under a bus node, matching axi@81000000 and the
other BCMBCA SoC DTSI files.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205084221.1564842-1-hjf3108@gmail.com?part=5
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-12-05 9:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 8:42 [PATCH 0/5] ARM: dts: bcm47622: Add RNG, GPIO, I2C, DMA and crypto blocks Ho Jie Feng
2026-12-05 8:42 ` [PATCH 1/5] ARM: dts: bcm47622: Add iproc rng Ho Jie Feng
2026-12-05 8:42 ` [PATCH 2/5] ARM: dts: bcm47622: Add GPIO blocks Ho Jie Feng
2026-12-05 8:42 ` [PATCH 3/5] ARM: dts: bcm47622: Add I2C bus block Ho Jie Feng
2026-12-05 8:42 ` [PATCH 4/5] ARM: dts: bcm47622: Add ARM PL081 DMA block Ho Jie Feng
2026-12-05 8:42 ` [PATCH 5/5] ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox Ho Jie Feng
2026-12-05 9:05 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox