Skip to contentSkip to conversation

Add support for Blaize BLZP1600 SoC

PATCH Applied Nikolaos Pasaloukos 6 participants 13 messages Dec 4, 2024 – Dec 13, 2024

Subsystems (4)
lore
Share & tools
lore

Nikolaos Pasaloukos

author maintainer
#0 lore raw

v5 cover Add support for Blaize BLZP1600 SoC

Blaize, Inc. (www.blaize.com) is a SoC designer and manufacturer with integrated programmable Graph-Streaming-Processors for AI and ML. This series adds support for the Blaize BLZP1600 SoC.

The SoC can run as either a PCIe based accelerator in a host system, or as a stand alone SoC running Linux on its integrated dual core ARM Cortex A53 cluster.

The SoC includes a suite of peripherals, support for which will be added later.

This first series is just the basics to get the upstream kernel to boot with a UART console and ARM SCMI based clocks and resets.

Resending V5 with tags applied and 'From' fixed.

V5 changes:
* Add more information on patches and on files
* Rename arch to ARCH_BLAIZE

V4 changes:
* Add maintainer for blaize in arm64 dts
* Fix Blaize schema & dts code style
* Add range and reserved-memory as suggested

V3 changes:
* Removed unnecessary dt-bindings
* Update SoBs

V2 changes:
* Update SoBs
* make dtbs_check has no warnings
* Fix dts names and removed dead code
* DTS is separated from anything else

---
Nikolaos Pasaloukos (6):
dt-bindings: Add Blaize vendor prefix
dt-bindings: arm: blaize: Add Blaize BLZP1600 SoC
arm64: Add Blaize BLZP1600 SoC family
arm64: dts: Add initial support for Blaize BLZP1600 CB2
arm64: defconfig: Enable Blaize BLZP1600 platform
MAINTAINER: Add entry for Blaize SoC

 Documentation/devicetree/bindings/arm/blaize.yaml  |  40 ++++
 .../devicetree/bindings/vendor-prefixes.yaml       |   2 +
 MAINTAINERS                                        |   9 +
 arch/arm64/Kconfig.platforms                       |   5 +
 arch/arm64/boot/dts/Makefile                       |   1 +
 arch/arm64/boot/dts/blaize/Makefile                |   2 +
 arch/arm64/boot/dts/blaize/blaize-blzp1600-cb2.dts |  83 +++++++++
 .../arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi |  23 +++
 arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi    | 205 +++++++++++++++++++++
 arch/arm64/configs/defconfig                       |   1 +
 10 files changed, 371 insertions(+)

---
base-commit: 83d67c257f4d045ff477309b5617d931f9a7be66
change-id: 20241111-blaize-blzp1600_init_board_support-1128194ca976

Best regards,

Signature · 1 line
Nikolaos Pasaloukos <[email protected]>
author maintainer
#1 lore raw

PATCH v5 1/6 dt-bindings: Add Blaize vendor prefix

Blaize, Inc. (www.blaize.com) is a SoC manufacturer with integrated programmable Graph-Streaming-Processors for AI and ML.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index b320a39de7fe40ce4d97ed3ea264a5971a3428dd..809086061a1992567ca6c5d404fbcee8a33ee300 100644
@@ -216,6 +216,8 @@ patternProperties:
     description: Shenzhen BigTree Tech Co., LTD
   "^bitmain,.*":
     description: Bitmain Technologies
+  "^blaize,.*":
+    description: Blaize, Inc.
   "^blutek,.*":
     description: BluTek Power
   "^boe,.*":
Signature · 1 line
2.43.0
author maintainer
#2 lore raw

PATCH v5 2/6 dt-bindings: arm: blaize: Add Blaize BLZP1600 SoC

In reply to Nikolaos Pasaloukos

Add device tree bindings for the Blaize BLZP1600 CB2 development board (carrier board). This board integrates a Blaize BLZP1600 SoM (System on Module) which is based on the Blaize BLZP1600 SoC.

The Blaize BLZP1600 SoC integrates a dual core ARM Cortex A53 cluster and a Blaize Graph Streaming Processor for AI and ML workloads, plus a suite of connectivity and other peripherals.

---
 Documentation/devicetree/bindings/arm/blaize.yaml | 40 +++++++++++++++++++++++
 1 file changed, 40 insertions(+)
Documentation/devicetree/bindings/arm/blaize.yaml new file +40 -0
new file mode 100644
index 0000000000000000000000000000000000000000..af39e2756407baacee3030f6909cf2aa7dc5776c
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/blaize.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Blaize Platforms
+
+maintainers:
+  - James Cowgill <[email protected]>
+  - Matt Redfearn <[email protected]>
+  - Neil Jones <[email protected]>
+  - Nikolaos Pasaloukos <[email protected]>
+
+description: |
+  Blaize Platforms using SoCs designed by Blaize Inc.
+
+  The products based on the BLZP1600 SoC:
+
+  - BLZP1600-SoM: SoM (System on Module)
+  - BLZP1600-CB2: Development board CB2 based on BLZP1600-SoM
+
+  BLZP1600 SoC integrates a dual core ARM Cortex A53 cluster
+  and a Blaize Graph Streaming Processor for AI and ML workloads,
+  plus a suite of connectivity and other peripherals.
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - description: Blaize BLZP1600 based boards
+        items:
+          - enum:
+              - blaize,blzp1600-cb2
+          - const: blaize,blzp1600
+
+additionalProperties: true
+
+...
Signature · 1 line
2.43.0
author maintainer
#3 lore raw

PATCH v5 3/6 arm64: Add Blaize BLZP1600 SoC family

In reply to Nikolaos Pasaloukos

Add ARCH_BLAIZE SoC family to the arm64 architecture to support the BLZP1600 System-On-Module and the Carrier-Board-2 development board.

---
 arch/arm64/Kconfig.platforms | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/Kconfig.platforms +5 -0
index 6c6d11536b42ec6e878db8d355c17994c2500d7b..08dd5b3b2d7381a01bd5c4347c29202edff3495f 100644
@@ -101,6 +101,11 @@ config ARCH_BITMAIN
 	help
 	  This enables support for the Bitmain SoC Family.
 
+config ARCH_BLAIZE
+	bool "Blaize SoC Platforms"
+	help
+	  This enables support for the Blaize SoC family
+
 config ARCH_EXYNOS
 	bool "Samsung Exynos SoC family"
 	select COMMON_CLK_SAMSUNG
Signature · 1 line
2.43.0
author maintainer
#4 lore raw

PATCH v5 4/6 arm64: dts: Add initial support for Blaize BLZP1600 CB2

In reply to Nikolaos Pasaloukos

Add support for the Blaize CB2 development board based on the BLZP1600 SoC. This consists of a Carrier-Board-2 and a System-on-Module.

Both BLZP1600 SoM and CB2 are available as products. CB2 (Pathfinder) has multiple peripherals like UART, I2C, SPI, GPIO, CSI (camera), DSI (display), USB-3.0 and Ethernet.

Enable support for the Cryptocell, UART and I2C which are already fully supported by the drivers.

The blaize-blzp1600.dtsi is the common part for the SoC, blaize-blzp1600-som.dtsi is the common part for the SoM and blaize-blzp1600-cb2.dts is the board specific file.

---
 arch/arm64/boot/dts/Makefile                       |   1 +
 arch/arm64/boot/dts/blaize/Makefile                |   2 +
 arch/arm64/boot/dts/blaize/blaize-blzp1600-cb2.dts |  83 +++++++++
 .../arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi |  23 +++
 arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi    | 205 +++++++++++++++++++++
 5 files changed, 314 insertions(+)
arch/arm64/boot/dts/Makefile +1 -0
index 21cd3a87f385309c3a655a67a3bee5f0abed7545..79b73a21ddc22b17308554e502f8207392935b45 100644
@@ -10,6 +10,7 @@ subdir-y += apm
 subdir-y += apple
 subdir-y += arm
 subdir-y += bitmain
+subdir-y += blaize
 subdir-y += broadcom
 subdir-y += cavium
 subdir-y += exynos
arch/arm64/boot/dts/blaize/Makefile new file +2 -0
new file mode 100644
index 0000000000000000000000000000000000000000..7e10b3199e6c73b64c826fef1aa4058c7b3e898b
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0+
+dtb-$(CONFIG_ARCH_BLAIZE) += blaize-blzp1600-cb2.dtb
arch/arm64/boot/dts/blaize/blaize-blzp1600-cb2.dts new file +83 -0

83 lines not on this page · raw message

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +23 -0
new file mode 100644
index 0000000000000000000000000000000000000000..bfdff5953edd95341440aa98569a019adcc0425d
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2024 Blaize, Inc. All rights reserved.
+ */
+
+#include "blaize-blzp1600.dtsi"
+
+/ {
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x0 0x1 0x0>;
+	};
+};
+
+/* i2c4 bus is available only on the SoM, not on the board */
+&i2c4 {
+	clock-frequency = <100000>;
+	status = "okay";
+};
+
+&uart0 {
+	status = "okay";
+};
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +205 -0

205 lines not on this page · raw message

Signature · 1 line
2.43.0
author maintainer
#5 lore raw

PATCH v5 5/6 arm64: defconfig: Enable Blaize BLZP1600 platform

In reply to Nikolaos Pasaloukos

Enable ARCH_BLAIZE to support the BLZP1600 SoC and the CB2 development board.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 5fdbfea7a5b295c4569f34773394ffe6eda778e9..4921669f89ae0a89e0c1489a2a4359be9698e5a2 100644
@@ -44,6 +44,7 @@ CONFIG_ARCH_BCM_IPROC=y
 CONFIG_ARCH_BCMBCA=y
 CONFIG_ARCH_BRCMSTB=y
 CONFIG_ARCH_BERLIN=y
+CONFIG_ARCH_BLAIZE=y
 CONFIG_ARCH_EXYNOS=y
 CONFIG_ARCH_SPARX5=y
 CONFIG_ARCH_K3=y
Signature · 1 line
2.43.0
author maintainer
#6 lore raw

PATCH v5 6/6 MAINTAINER: Add entry for Blaize SoC

In reply to Nikolaos Pasaloukos

Add MAINTAINERS entry for Blaize SoC platform with a list of maintainers.

---
 MAINTAINERS | 9 +++++++++
 1 file changed, 9 insertions(+)
MAINTAINERS +9 -0
index 273a84483b74543b510de7b08804bbd1f6514358..43846a23f9d990ae9fe066e65ed2bdd36376e327 100644
@@ -2238,6 +2238,15 @@ F:	arch/arm64/boot/dts/bitmain/
 F:	drivers/clk/clk-bm1880.c
 F:	drivers/pinctrl/pinctrl-bm1880.c
 
+ARM/BLAIZE ARCHITECTURE
+M:	James Cowgill <[email protected]>
+M:	Matt Redfearn <[email protected]>
+M:	Neil Jones <[email protected]>
+M:	Nikolaos Pasaloukos <[email protected]>
+S:	Maintained
+F:	Documentation/devicetree/bindings/arm/blaize.yaml
+F:	arch/arm64/boot/dts/blaize/
+
 ARM/CALXEDA HIGHBANK ARCHITECTURE
 M:	Andre Przywara <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
Signature · 1 line
2.43.0
maintainer Acked-by on v5 6/6
#7 lore raw

Re: [PATCH v5 6/6] MAINTAINER: Add entry for Blaize SoC

Quoted 13 lines · Nikolaos Pasaloukos

Add MAINTAINERS entry for Blaize SoC platform with a list of maintainers.

---
 MAINTAINERS | 9 +++++++++
 1 file changed, 9 insertions(+)
MAINTAINERS +0 -0
index 273a84483b74543b510de7b08804bbd1f6514358..43846a23f9d990ae9fe066e65ed2bdd36376e327 100644

MAINTAINERS F: arch/arm64/boot/dts/bitmain/ · line 2245

Quoted 8 lines
MAINTAINERS +5 -0
@@ -2238,6 +2238,15 @@ F:	arch/arm64/boot/dts/bitmain/
 F:	drivers/clk/clk-bm1880.c
 F:	drivers/pinctrl/pinctrl-bm1880.c
 
+ARM/BLAIZE ARCHITECTURE
+M:	James Cowgill <[email protected]>
+M:	Matt Redfearn <[email protected]>
+M:	Neil Jones <[email protected]>
+M:	Nikolaos Pasaloukos <[email protected]>

Just to be clear: this is list of active maintainers, so all above are supposed to perform reviews or maintainer duties. This is not credits/managers/I-need-to-please-someone list.

With the assumption these are active maintainers:

They should also ack it to confirm they understand the burden.

Best regards,
Krzysztof

maintainer Acked-by
#8 lore raw

Re: [PATCH v5 6/6] MAINTAINER: Add entry for Blaize SoC

Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Nikolaos Pasaloukos

Add MAINTAINERS entry for Blaize SoC platform with a list of maintainers.

---
  MAINTAINERS | 9 +++++++++
  1 file changed, 9 insertions(+)
MAINTAINERS +0 -0
index 273a84483b74543b510de7b08804bbd1f6514358..43846a23f9d990ae9fe066e65ed2bdd36376e327 100644
@@ -2238,6 +2238,15 @@ F:	arch/arm64/boot/dts/bitmain/
  F:	drivers/clk/clk-bm1880.c
  F:	drivers/pinctrl/pinctrl-bm1880.c
 
Quoted 8 lines

MAINTAINERS F: arch/arm64/boot/dts/bitmain/ · line 2245

Quoted 5 lines
MAINTAINERS +5 -0
+ARM/BLAIZE ARCHITECTURE
+M:	James Cowgill <[email protected]>
+M:	Matt Redfearn <[email protected]>
+M:	Neil Jones <[email protected]>
+M:	Nikolaos Pasaloukos <[email protected]>

Just to be clear: this is list of active maintainers, so all above are supposed to perform reviews or maintainer duties. This is not credits/managers/I-need-to-please-someone list.

Hi Krzysztof,

Yes, I will be an active maintainer of the board upstream.

Quoted 6 lines

With the assumption these are active maintainers:

They should also ack it to confirm they understand the burden.

A question about process: should Niko resend V5 with all of the acks?

Thanks,

Matt

Quoted 4 lines

Best regards,
Krzysztof

#9 lore raw

Re: [PATCH v5 6/6] MAINTAINER: Add entry for Blaize SoC

Quoted 9 lines · Matt Redfearn
Quoted 4 lines

They should also ack it to confirm they understand the burden.

A question about process: should Niko resend V5 with all of the acks?

Normally not, here however after finished review expectation was to send it to soc tree (I think Arnd described the process).

Best regards,
Krzysztof

maintainer Acked-by
#10 lore raw

Re: [PATCH v5 6/6] MAINTAINER: Add entry for Blaize SoC

In reply to Krzysztof Kozlowski
Quoted 27 lines · Krzysztof Kozlowski
Quoted 13 lines · Nikolaos Pasaloukos

Add MAINTAINERS entry for Blaize SoC platform with a list of maintainers.

---
 MAINTAINERS | 9 +++++++++
 1 file changed, 9 insertions(+)
MAINTAINERS +0 -0
index 273a84483b74543b510de7b08804bbd1f6514358..43846a23f9d990ae9fe066e65ed2bdd36376e327 100644

MAINTAINERS F: arch/arm64/boot/dts/bitmain/ · line 2245

Quoted 8 lines
MAINTAINERS +5 -0
@@ -2238,6 +2238,15 @@ F:	arch/arm64/boot/dts/bitmain/
 F:	drivers/clk/clk-bm1880.c
 F:	drivers/pinctrl/pinctrl-bm1880.c
 
+ARM/BLAIZE ARCHITECTURE
+M:	James Cowgill <[email protected]>
+M:	Matt Redfearn <[email protected]>
+M:	Neil Jones <[email protected]>
+M:	Nikolaos Pasaloukos <[email protected]>

Just to be clear: this is list of active maintainers, so all above are supposed to perform reviews or maintainer duties. This is not credits/managers/I-need-to-please-someone list.

Quoted 5 lines

With the assumption these are active maintainers:

They should also ack it to confirm they understand the burden.

James

maintainer Acked-by
#11 lore raw

Re: [PATCH v5 6/6] MAINTAINER: Add entry for Blaize SoC

In reply to Krzysztof Kozlowski
Quoted 26 lines · Krzysztof Kozlowski
Quoted 13 lines · Nikolaos Pasaloukos

Add MAINTAINERS entry for Blaize SoC platform with a list of maintainers.

---
  MAINTAINERS | 9 +++++++++
  1 file changed, 9 insertions(+)
MAINTAINERS +0 -0
index 273a84483b74543b510de7b08804bbd1f6514358..43846a23f9d990ae9fe066e65ed2bdd36376e327 100644

MAINTAINERS F: arch/arm64/boot/dts/bitmain/ · line 2245

Quoted 8 lines
MAINTAINERS +5 -0
@@ -2238,6 +2238,15 @@ F:	arch/arm64/boot/dts/bitmain/
  F:	drivers/clk/clk-bm1880.c
  F:	drivers/pinctrl/pinctrl-bm1880.c
 
+ARM/BLAIZE ARCHITECTURE
+M:	James Cowgill <[email protected]>
+M:	Matt Redfearn <[email protected]>
+M:	Neil Jones <[email protected]>
+M:	Nikolaos Pasaloukos <[email protected]>

Just to be clear: this is list of active maintainers, so all above are supposed to perform reviews or maintainer duties. This is not credits/managers/I-need-to-please-someone list.

Quoted 9 lines

With the assumption these are active maintainers:

They should also ack it to confirm they understand the burden.

Best regards,
Krzysztof

Cheers,

Neil

Quoted 35 lines · Krzysztof Kozlowski
Quoted 13 lines · Nikolaos Pasaloukos

Add MAINTAINERS entry for Blaize SoC platform with a list of maintainers.

---
  MAINTAINERS | 9 +++++++++
  1 file changed, 9 insertions(+)
MAINTAINERS +0 -0
index 273a84483b74543b510de7b08804bbd1f6514358..43846a23f9d990ae9fe066e65ed2bdd36376e327 100644

MAINTAINERS F: arch/arm64/boot/dts/bitmain/ · line 2245

Quoted 8 lines
MAINTAINERS +5 -0
@@ -2238,6 +2238,15 @@ F:	arch/arm64/boot/dts/bitmain/
  F:	drivers/clk/clk-bm1880.c
  F:	drivers/pinctrl/pinctrl-bm1880.c
 
+ARM/BLAIZE ARCHITECTURE
+M:	James Cowgill <[email protected]>
+M:	Matt Redfearn <[email protected]>
+M:	Neil Jones <[email protected]>
+M:	Nikolaos Pasaloukos <[email protected]>

Just to be clear: this is list of active maintainers, so all above are supposed to perform reviews or maintainer duties. This is not credits/managers/I-need-to-please-someone list.

With the assumption these are active maintainers:

They should also ack it to confirm they understand the burden.

Best regards,
Krzysztof

#12 lore raw
In reply to Nikolaos Pasaloukos
This series was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 9 lines · On Wed, 04 Dec 2024 16:05:23 +0000 you wrote:

Blaize, Inc. (www.blaize.com) is a SoC designer and manufacturer with integrated programmable Graph-Streaming-Processors for AI and ML. This series adds support for the Blaize BLZP1600 SoC.

The SoC can run as either a PCIe based accelerator in a host system, or as a stand alone SoC running Linux on its integrated dual core ARM Cortex A53 cluster.

[...]

Here is the summary with links:
- [v5,1/6] dt-bindings: Add Blaize vendor prefix

    https://git.kernel.org/soc/soc/c/1fa9ce7e525d
  - [v5,2/6] dt-bindings: arm: blaize: Add Blaize BLZP1600 SoC
    https://git.kernel.org/soc/soc/c/f156403c2c8d
  - [v5,3/6] arm64: Add Blaize BLZP1600 SoC family
    https://git.kernel.org/soc/soc/c/c0b454a51755
  - [v5,4/6] arm64: dts: Add initial support for Blaize BLZP1600 CB2
    https://git.kernel.org/soc/soc/c/2e976f19d9c2
  - [v5,5/6] arm64: defconfig: Enable Blaize BLZP1600 platform
    https://git.kernel.org/soc/soc/c/b0837ce07980
  - [v5,6/6] MAINTAINER: Add entry for Blaize SoC
    https://git.kernel.org/soc/soc/c/d4c0d167b1f6

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html