Skip to contentSkip to conversation

Add support for Blaize BLZP1600 SoC

PATCH In review Niko Pasaloukos 3 participants 13 messages Apr 6, 2023 – Apr 12, 2023

Subsystems (6)
lore
Share & tools
lore

Niko Pasaloukos

author maintainer
#0 lore raw

cover Add support for Blaize BLZP1600 SoC

Adds basic support for the Blaize BLZP1600 SoC. This SoC contains two cores of Cortex-A53 CPUs, one Blaize Graph Streaming Processor (GSP) and several other IPs.

Nikolaos Pasaloukos (5):
dt-bindings: Add Blaize vendor prefix
dt-bindings: arm: blaize: Add Blaize BLZP1600 SoC
dt-bindings: reset: Add binding constants for BLZP1600
dt-bindings: clock: Add binding constants for BLZP1600
arm64: Add initial support for Blaize BLZP1600 CB2

 .../devicetree/bindings/arm/blaize.yaml       |  28 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/Kconfig.platforms                  |   5 +
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/blaize/Makefile           |   2 +
 .../dts/blaize/blaize-blzp1600-som-cb.dtsi    | 217 +++++
 .../dts/blaize/blaize-blzp1600-som-cb2.dts    | 103 ++
 .../boot/dts/blaize/blaize-blzp1600-som.dtsi  | 104 ++
 .../boot/dts/blaize/blaize-blzp1600.dtsi      | 894 ++++++++++++++++++
 arch/arm64/configs/defconfig                  |   1 +
 .../dt-bindings/clock/blaize,blzp1600-clk.h   |  67 ++
 .../dt-bindings/reset/blaize,blzp1600-reset.h |  76 ++
 12 files changed, 1500 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/blaize.yaml
 create mode 100644 arch/arm64/boot/dts/blaize/Makefile
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi
 create mode 100644 include/dt-bindings/clock/blaize,blzp1600-clk.h
 create mode 100644 include/dt-bindings/reset/blaize,blzp1600-reset.h
Signature · 1 line
2.25.1
author maintainer
#1 lore raw

PATCH 1/5 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 70ffb3780621..21a91f3b9e27 100644
@@ -190,6 +190,8 @@ patternProperties:
     description: Beckhoff Automation GmbH & Co. KG
   "^bitmain,.*":
     description: Bitmain Technologies
+  "^blaize,.*":
+    description: Blaize, Inc.
   "^blutek,.*":
     description: BluTek Power
   "^boe,.*":
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH 1/5] dt-bindings: Add Blaize vendor prefix

Quoted 10 lines · Niko Pasaloukos

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

Four people were working on one pattern in vendor prefixes? I have doubts, because this is very trivial patch.

Best regards,
Krzysztof

author maintainer
#3 lore raw

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

In reply to Niko Pasaloukos

Add device tree bindings for the Blaize BLZP1600 CB2 development board.

---
 .../devicetree/bindings/arm/blaize.yaml       | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/blaize.yaml
Documentation/devicetree/bindings/arm/blaize.yaml new file +28 -0
new file mode 100644
index 000000000000..739115ba1fec
@@ -0,0 +1,28 @@
+# 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 Device Tree Bindings
+
+maintainers:
+  - James Cowgill <[email protected]>
+  - Matt Redfearn <[email protected]>
+  - Neil Jones <[email protected]>
+  - Nikolaos Pasaloukos <[email protected]>
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - description: Blaize BLZP1600 based Boards
+        items:
+          - enum:
+              - blaize,blzp1600-som-cb2
+          - const: blaize,blzp1600
+
+additionalProperties: true
+
+...
Signature · 1 line
2.25.1
#4 lore raw

Re: [PATCH 2/5] dt-bindings: arm: blaize: Add Blaize BLZP1600 SoC

Quoted 21 lines · Niko Pasaloukos

Add device tree bindings for the Blaize BLZP1600 CB2 development board.

---
 .../devicetree/bindings/arm/blaize.yaml       | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/blaize.yaml
Documentation/devicetree/bindings/arm/blaize.yaml new file +0 -0
new file mode 100644
index 000000000000..739115ba1fec

Documentation/devicetree/bindings/arm/blaize.yaml line 7

Quoted 7 lines
Documentation/devicetree/bindings/arm/blaize.yaml new file +7 -0
@@ -0,0 +1,28 @@
+# 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 Device Tree Bindings

If four of people were working on this, I would expect that at least one person would point that it's not correct name. Start from recent bindings. Drop Device Tree Bindings.

Quoted 6 lines
Documentation/devicetree/bindings/arm/blaize.yaml new file +6 -0
+
+maintainers:
+  - James Cowgill <[email protected]>
+  - Matt Redfearn <[email protected]>
+  - Neil Jones <[email protected]>
+  - Nikolaos Pasaloukos <[email protected]>

Documentation/devicetree/bindings/arm/blaize.yaml line 23

Quoted 10 lines
Documentation/devicetree/bindings/arm/blaize.yaml new file +10 -0
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - description: Blaize BLZP1600 based Boards
+        items:
+          - enum:
+              - blaize,blzp1600-som-cb2

som is not a board. You miss board compatible or this is a bit misleading.

Best regards,
Krzysztof

author maintainer
#5 lore raw

PATCH 3/5 dt-bindings: reset: Add binding constants for BLZP1600

In reply to Niko Pasaloukos

Add SCMI reset IDs which are used on Blaize BLZP1600 SoC.

---
 .../dt-bindings/reset/blaize,blzp1600-reset.h | 76 +++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 include/dt-bindings/reset/blaize,blzp1600-reset.h
include/dt-bindings/reset/blaize,blzp1600-reset.h new file +76 -0
new file mode 100644
index 000000000000..ff1de6b1bd5c
@@ -0,0 +1,76 @@
+/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
+/*
+ * Copyright (C) 2022, Blaize, Inc.
+ */
+
+#ifndef DT_BINDING_RESET_BLZP1600_H
+#define DT_BINDING_RESET_BLZP1600_H
+
+#define BLZP1600_A53_C0_HARD_RST	0
+#define BLZP1600_A53_C0_SOFT_RST	1
+#define BLZP1600_A53_C1_HARD_RST	2
+#define BLZP1600_A53_C1_SOFT_RST	3
+#define BLZP1600_A53_L2_CACHE_RST	4
+#define BLZP1600_A53_DBG_RST		5
+#define BLZP1600_GIC_RST		6
+#define BLZP1600_CRYPTO_RST		7
+#define BLZP1600_GSP_RST		9
+#define BLZP1600_DRAM_A_SYS_RST		10
+#define BLZP1600_DRAM_A_DDRC_RST	11
+#define BLZP1600_DRAM_A_PRST		12
+#define BLZP1600_DRAM_A_ARST		13
+#define BLZP1600_DRAM_A_PHY_RST		14
+#define BLZP1600_DRAM_A_PWRON_RST	15
+#define BLZP1600_DRAM_A_PHY_PRST	16
+#define BLZP1600_DRAM_B_SYS_RST		17
+#define BLZP1600_DRAM_B_DDRC_RST	18
+#define BLZP1600_DRAM_B_PRST		19
+#define BLZP1600_DRAM_B_ARST		20
+#define BLZP1600_DRAM_B_PHY_RST		21
+#define BLZP1600_DRAM_B_PWRON_RST	22
+#define BLZP1600_DRAM_B_PHY_PRST	23
+#define BLZP1600_USB_RST		24
+#define BLZP1600_USB_PHY_RST		25
+#define BLZP1600_CAN0_RST		26
+#define BLZP1600_CAN1_RST		27
+#define BLZP1600_CAN2_RST		28
+#define BLZP1600_ETH_MAC_RST		29
+#define BLZP1600_SDIO0_RST		30
+#define BLZP1600_SDIO1_RST		31
+#define BLZP1600_SDIO2_RST		32
+#define BLZP1600_SD_CARD_RST		34
+#define BLZP1600_CSI0_CTRL_RST		35
+#define BLZP1600_CSI0_VDMA_RST		36
+#define BLZP1600_CSI1_CTRL_RST		37
+#define BLZP1600_CSI1_VDMA_RST		38
+#define BLZP1600_CSI2_CTRL_RST		39
+#define BLZP1600_CSI2_VDMA_RST		40
+#define BLZP1600_CSI3_CTRL_RST		41
+#define BLZP1600_CSI3_VDMA_RST		42
+#define BLZP1600_CSID_CTRL_RST		43
+#define BLZP1600_CSID_VDMA_RST		44
+#define BLZP1600_DSI_CTRL_RST		45
+#define BLZP1600_DSI_VDMA_RST		46
+#define BLZP1600_DMA_RST		49
+#define BLZP1600_QSPI_PRST		50
+#define BLZP1600_QSPI_RST		51
+#define BLZP1600_I2S_TX_RST		52
+#define BLZP1600_I2S_RX_RST		53
+#define BLZP1600_I2C0_RST		54
+#define BLZP1600_I2C1_RST		55
+#define BLZP1600_I2C2_RST		56
+#define BLZP1600_I2C3_RST		57
+#define BLZP1600_I2C4_RST		58
+#define BLZP1600_UART0_RST		59
+#define BLZP1600_UART1_RST		60
+#define BLZP1600_SPIS_PRST		61
+#define BLZP1600_SPIS_RST		62
+#define BLZP1600_TIMER_RST		63
+#define BLZP1600_TSENSOR_RST		64
+#define BLZP1600_VIDEO_E_RST		65
+#define BLZP1600_VIDEO_E_REORDER_RST	66
+#define BLZP1600_VIDEO_D_RST		68
+#define BLZP1600_VIDEO_D_REORDER_RST	69
+#define BLZP1600_VIDEO_D_L2_RST		70
+
+#endif
Signature · 1 line
2.25.1
#6 lore raw

Re: [PATCH 3/5] dt-bindings: reset: Add binding constants for BLZP1600

Quoted 20 lines · Niko Pasaloukos

Add SCMI reset IDs which are used on Blaize BLZP1600 SoC.

---
 .../dt-bindings/reset/blaize,blzp1600-reset.h | 76 +++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 include/dt-bindings/reset/blaize,blzp1600-reset.h
include/dt-bindings/reset/blaize,blzp1600-reset.h new file +0 -0
new file mode 100644
index 000000000000..ff1de6b1bd5c

include/dt-bindings/reset/blaize,blzp1600-reset.h line 1

Quoted 1 line
include/dt-bindings/reset/blaize,blzp1600-reset.h new file +1 -0
@@ -0,0 +1,76 @@
+/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */

Why 2.0+? Unusual choice. Do you really need it?

Quoted 43 lines
include/dt-bindings/reset/blaize,blzp1600-reset.h new file +43 -0
+/*
+ * Copyright (C) 2022, Blaize, Inc.
+ */
+
+#ifndef DT_BINDING_RESET_BLZP1600_H
+#define DT_BINDING_RESET_BLZP1600_H
+
+#define BLZP1600_A53_C0_HARD_RST	0
+#define BLZP1600_A53_C0_SOFT_RST	1
+#define BLZP1600_A53_C1_HARD_RST	2
+#define BLZP1600_A53_C1_SOFT_RST	3
+#define BLZP1600_A53_L2_CACHE_RST	4
+#define BLZP1600_A53_DBG_RST		5
+#define BLZP1600_GIC_RST		6
+#define BLZP1600_CRYPTO_RST		7
+#define BLZP1600_GSP_RST		9
+#define BLZP1600_DRAM_A_SYS_RST		10
+#define BLZP1600_DRAM_A_DDRC_RST	11
+#define BLZP1600_DRAM_A_PRST		12
+#define BLZP1600_DRAM_A_ARST		13
+#define BLZP1600_DRAM_A_PHY_RST		14
+#define BLZP1600_DRAM_A_PWRON_RST	15
+#define BLZP1600_DRAM_A_PHY_PRST	16
+#define BLZP1600_DRAM_B_SYS_RST		17
+#define BLZP1600_DRAM_B_DDRC_RST	18
+#define BLZP1600_DRAM_B_PRST		19
+#define BLZP1600_DRAM_B_ARST		20
+#define BLZP1600_DRAM_B_PHY_RST		21
+#define BLZP1600_DRAM_B_PWRON_RST	22
+#define BLZP1600_DRAM_B_PHY_PRST	23
+#define BLZP1600_USB_RST		24
+#define BLZP1600_USB_PHY_RST		25
+#define BLZP1600_CAN0_RST		26
+#define BLZP1600_CAN1_RST		27
+#define BLZP1600_CAN2_RST		28
+#define BLZP1600_ETH_MAC_RST		29
+#define BLZP1600_SDIO0_RST		30
+#define BLZP1600_SDIO1_RST		31
+#define BLZP1600_SDIO2_RST		32
+#define BLZP1600_SD_CARD_RST		34
+#define BLZP1600_CSI0_CTRL_RST		35
+#define BLZP1600_CSI0_VDMA_RST		36
+#define BLZP1600_CSI1_CTRL_RST		37

include/dt-bindings/reset/blaize,blzp1600-reset.h line 54

Quoted 10 lines
include/dt-bindings/reset/blaize,blzp1600-reset.h new file +10 -0
+#define BLZP1600_CSI1_VDMA_RST		38
+#define BLZP1600_CSI2_CTRL_RST		39
+#define BLZP1600_CSI2_VDMA_RST		40
+#define BLZP1600_CSI3_CTRL_RST		41
+#define BLZP1600_CSI3_VDMA_RST		42
+#define BLZP1600_CSID_CTRL_RST		43
+#define BLZP1600_CSID_VDMA_RST		44
+#define BLZP1600_DSI_CTRL_RST		45
+#define BLZP1600_DSI_VDMA_RST		46
+#define BLZP1600_DMA_RST		49

You have some gaps here. These are IDs, so they do not have gaps.

Best regards,
Krzysztof

author maintainer
#7 lore raw

PATCH 4/5 dt-bindings: clock: Add binding constants for BLZP1600

In reply to Niko Pasaloukos

Add SCMI clock IDs which are used on Blaize BLZP1600 SoC.

---
 .../dt-bindings/clock/blaize,blzp1600-clk.h   | 67 +++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 include/dt-bindings/clock/blaize,blzp1600-clk.h
include/dt-bindings/clock/blaize,blzp1600-clk.h new file +67 -0
new file mode 100644
index 000000000000..bcc8ff513b28
@@ -0,0 +1,67 @@
+/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
+/*
+ * Copyright (C) 2022, Blaize, Inc.
+ */
+
+#ifndef DT_BINDING_CLK_BLZP1600_H
+#define DT_BINDING_CLK_BLZP1600_H
+
+/* Simple clock-gates */
+#define BLZP1600_CPU_CLK	0
+#define BLZP1600_CRYPTO_CLK	7
+#define BLZP1600_GSP_CLK	9
+#define BLZP1600_USB_CLK	24
+#define BLZP1600_USB_PHY_CLK	25
+#define BLZP1600_CAN0_CLK	26
+#define BLZP1600_CAN1_CLK	27
+#define BLZP1600_CAN2_CLK	28
+#define BLZP1600_ETH_MAC_CLK	29
+#define BLZP1600_SDIO0_CLK	30
+#define BLZP1600_SDIO1_CLK	31
+#define BLZP1600_SDIO2_CLK	32
+#define BLZP1600_SD_CARD_CLK	34
+#define BLZP1600_CSI0_CTRL_CLK	35
+#define BLZP1600_CSI0_VDMA_CLK	36
+#define BLZP1600_CSI1_CTRL_CLK	37
+#define BLZP1600_CSI1_VDMA_CLK	38
+#define BLZP1600_CSI2_CTRL_CLK	39
+#define BLZP1600_CSI2_VDMA_CLK	40
+#define BLZP1600_CSI3_CTRL_CLK	41
+#define BLZP1600_CSI3_VDMA_CLK	42
+#define BLZP1600_CSID_CTRL_CLK	43
+#define BLZP1600_CSID_VDMA_CLK	44
+#define BLZP1600_DSI_CTRL_CLK	45
+#define BLZP1600_DSI_VDMA_CLK	46
+#define BLZP1600_I2S_CODEC_CLK	48
+#define BLZP1600_DMA_CLK	49
+#define BLZP1600_QSPI_PCLK	50
+#define BLZP1600_QSPI_CLK	51
+#define BLZP1600_I2S_TX_CLK	52
+#define BLZP1600_I2S_RX_CLK	53
+#define BLZP1600_I2C0_CLK	54
+#define BLZP1600_I2C1_CLK	55
+#define BLZP1600_I2C2_CLK	56
+#define BLZP1600_I2C3_CLK	57
+#define BLZP1600_I2C4_CLK	58
+#define BLZP1600_UART0_CLK	59
+#define BLZP1600_UART1_CLK	60
+#define BLZP1600_SPIS_PCLK	61
+#define BLZP1600_SPIS_CLK	62
+#define BLZP1600_TSENSOR_CLK	64
+#define BLZP1600_VIDEO_E_CLK	65
+#define BLZP1600_VIDEO_D_CLK	68
+/* Special clock-gates */
+#define BLZP1600_NIC_CLK	69
+#define BLZP1600_NIC_HALF_CLK	70
+#define BLZP1600_ETH_MAC_M_CLK	71
+#define BLZP1600_I2S_MASTER_CLK	72
+/* Clock sources */
+#define BLZP1600_SRC_XTAL_CLK	100
+#define BLZP1600_SRC_PLL0_CLK	101
+#define BLZP1600_SRC_PLL1_CLK	102
+#define BLZP1600_SRC_PLL2_CLK	103
+#define BLZP1600_SRC_I2S_CLK	104
+#define BLZP1600_SRC_CSID_CLK	105
+#define BLZP1600_SRC_DSI_CLK	106
+
+#endif
Signature · 1 line
2.25.1
#8 lore raw

Re: [PATCH 4/5] dt-bindings: clock: Add binding constants for BLZP1600

Quoted 9 lines · Niko Pasaloukos

Add SCMI clock IDs which are used on Blaize BLZP1600 SoC.

Quoted 3 lines
---
 .../dt-bindings/clock/blaize,blzp1600-clk.h   | 67 +++++++++++++++++++
 1 file changed, 67 insertions(+)

Missing device schema.

include/dt-bindings/clock/blaize,blzp1600-clk.h line 1

Quoted 9 lines
 create mode 100644 include/dt-bindings/clock/blaize,blzp1600-clk.h
include/dt-bindings/clock/blaize,blzp1600-clk.h new file +1 -0
new file mode 100644
index 000000000000..bcc8ff513b28
@@ -0,0 +1,67 @@
+/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */

Same question as for reset.

include/dt-bindings/clock/blaize,blzp1600-clk.h line 11

Quoted 10 lines
include/dt-bindings/clock/blaize,blzp1600-clk.h new file +10 -0
+/*
+ * Copyright (C) 2022, Blaize, Inc.
+ */
+
+#ifndef DT_BINDING_CLK_BLZP1600_H
+#define DT_BINDING_CLK_BLZP1600_H
+
+/* Simple clock-gates */
+#define BLZP1600_CPU_CLK	0
+#define BLZP1600_CRYPTO_CLK	7

Same problems as for reset.

Best regards,
Krzysztof

author maintainer
#9 lore raw

PATCH 5/5 arm64: Add initial support for Blaize BLZP1600 CB2

In reply to Niko Pasaloukos

Adds support for the Blaize CB2 development board based on BLZP1600 SoC. This consists of a Carrier-Board and a SoM.

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-som-cb2.dts is the board specific file.

---
 arch/arm64/Kconfig.platforms                  |   5 +
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/blaize/Makefile           |   2 +
 .../dts/blaize/blaize-blzp1600-som-cb.dtsi    | 217 +++++
 .../dts/blaize/blaize-blzp1600-som-cb2.dts    | 103 ++
 .../boot/dts/blaize/blaize-blzp1600-som.dtsi  | 104 ++
 .../boot/dts/blaize/blaize-blzp1600.dtsi      | 894 ++++++++++++++++++
 arch/arm64/configs/defconfig                  |   1 +
 8 files changed, 1327 insertions(+)
 create mode 100644 arch/arm64/boot/dts/blaize/Makefile
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi
arch/arm64/Kconfig.platforms +5 -0
index 333d0af650d2..ab89cb7e557f 100644
@@ -94,6 +94,11 @@ config ARCH_BITMAIN
 	help
 	  This enables support for the Bitmain SoC Family.
 
+config ARCH_BLAIZE_BLZP1600
+	bool "Blaize BLZP1600 SoC Platforms"
+	help
+	  This enables support for the Blaize BLZP1600 SoC family
+
 config ARCH_EXYNOS
 	bool "ARMv8 based Samsung Exynos SoC family"
 	select COMMON_CLK_SAMSUNG
arch/arm64/boot/dts/Makefile +1 -0
index 7b107fa7414b..d2fd6ab437ac 100644
@@ -9,6 +9,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 000000000000..968c0d687897
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_BLAIZE_BLZP1600) += blaize-blzp1600-som-cb2.dtb
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi new file +217 -0

217 lines not on this page · raw message

arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts new file +103 -0

103 lines not on this page · raw message

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +104 -0

104 lines not on this page · raw message

arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +894 -0

894 lines not on this page · raw message

arch/arm64/configs/defconfig +1 -0
index 851e8f9be06d..6eab5c65476e 100644
@@ -39,6 +39,7 @@ CONFIG_ARCH_BCM2835=y
 CONFIG_ARCH_BCMBCA=y
 CONFIG_ARCH_BCM_IPROC=y
 CONFIG_ARCH_BERLIN=y
+CONFIG_ARCH_BLAIZE_BLZP1600=y
 CONFIG_ARCH_BRCMSTB=y
 CONFIG_ARCH_EXYNOS=y
 CONFIG_ARCH_K3=y
Signature · 1 line
2.25.1
#10 lore raw

Re: [PATCH 5/5] arm64: Add initial support for Blaize BLZP1600 CB2

Quoted 14 lines · Niko Pasaloukos

Adds support for the Blaize CB2 development board based on BLZP1600 SoC. This consists of a Carrier-Board and a SoM.

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-som-cb2.dts is the board specific file.

Quoted 9 lines
---
 arch/arm64/Kconfig.platforms                  |   5 +
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/blaize/Makefile           |   2 +
 .../dts/blaize/blaize-blzp1600-som-cb.dtsi    | 217 +++++
 .../dts/blaize/blaize-blzp1600-som-cb2.dts    | 103 ++
 .../boot/dts/blaize/blaize-blzp1600-som.dtsi  | 104 ++
 .../boot/dts/blaize/blaize-blzp1600.dtsi      | 894 ++++++++++++++++++
 arch/arm64/configs/defconfig                  |   1 +

DTS cannot go with defconfig or other pieces. DTS is separate, always.

Quoted 242 lines
 8 files changed, 1327 insertions(+)
 create mode 100644 arch/arm64/boot/dts/blaize/Makefile
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi
arch/arm64/Kconfig.platforms +5 -0
index 333d0af650d2..ab89cb7e557f 100644
@@ -94,6 +94,11 @@ config ARCH_BITMAIN
 	help
 	  This enables support for the Bitmain SoC Family.
 
+config ARCH_BLAIZE_BLZP1600
+	bool "Blaize BLZP1600 SoC Platforms"
+	help
+	  This enables support for the Blaize BLZP1600 SoC family
+
 config ARCH_EXYNOS
 	bool "ARMv8 based Samsung Exynos SoC family"
 	select COMMON_CLK_SAMSUNG
arch/arm64/boot/dts/Makefile +1 -0
index 7b107fa7414b..d2fd6ab437ac 100644
@@ -9,6 +9,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 000000000000..968c0d687897
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_BLAIZE_BLZP1600) += blaize-blzp1600-som-cb2.dtb
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi new file +192 -0
new file mode 100644
index 000000000000..be09759f48f9
@@ -0,0 +1,217 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2023 Blaize, Inc. All rights reserved.
+ */
+
 
+#include "blaize-blzp1600-som.dtsi"
+#include <dt-bindings/net/ti-dp83867.h>
+
+/ {
+	aliases {
+		ethernet = &gmac;
+	};
+
+	sound: sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "BLZP1600-TLV320AIC3100";
+		simple-audio-card,widgets =
+			"Microphone", "Microphone Jack",
+			"Headphone", "Headphone Jack";
+		simple-audio-card,routing =
+			"MIC1LP", "Microphone Jack",
+			"MIC1RP", "Microphone Jack",
+			"MIC1LP", "MICBIAS",
+			"MIC1RP", "MICBIAS",
+			"Headphone Jack", "HPL",
+			"Headphone Jack", "HPR";
+
+		simple-audio-card,format = "i2s";
+		simple-audio-card,bitclock-master = <&sound0_master>;
+		simple-audio-card,frame-master = <&sound0_master>;
+
+		simple-audio-card,cpu {
+			sound-dai = <&i2s_slave>;
+		};
+
+		sound0_master: simple-audio-card,codec {
+			sound-dai = <&audio_codec>;
+			clocks = <&scmi_clk BLZP1600_I2S_CODEC_CLK>;
+			system-clock-frequency = <12500000>;
+			/* board specific crystal/oscillator */
+			assigned-clocks = <&scmi_clk BLZP1600_SRC_I2S_CLK>;
+			assigned-clock-rates = <24576000>;
+		};
+	};
+
+	regulators {
+		vmmc_sd: regulator-sdio0-en {
+			compatible = "regulator-fixed";
+			regulator-name = "mmc-reg-en";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			gpio = <&gpio0 23 GPIO_ACTIVE_HIGH>;
+			enable-active-high;
+			startup-delay-us = <100000>;
+		};
+
+		vmmc_io: regulator-sdio0-io {
+			compatible = "regulator-gpio";
+			regulator-name = "mmc-reg-io";
+			regulator-ramp-delay = <10000>;
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3300000>;
+			gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
+			states = <1800000 0x0 3300000 0x1>;
+		};
+	};
+};
+
+&canfd0 {
+	status = "okay";
+};
+
+&dsi_panel_0 {
+	reset-gpio = <&gpio0 9 GPIO_ACTIVE_LOW>;
+};
+
+&gmac {
+	status = "okay";
+	snps,reset-delays-us = <0 10000 50000>;
+	snps,reset-gpio = <&gpio0 12 GPIO_ACTIVE_LOW>;
+	phy-handle = <&phy0>;
+	phy-mode = "rgmii-id";
+
+	mdio {
+		compatible = "snps,dwmac-mdio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		phy0: ethernet-phy@0 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <0>;
+			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+			ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_6_B_NIB>;
+		};
+	};
+};
+
+&gpio0 {
+	status = "okay";
+	gpio-line-names = "PERST_N",		/* GPIO_0 */
+			  "LM96063_ALERT_N",	/* GPIO_1 */
+			  "INA3221_PV",		/* GPIO_2 */
+			  "INA3221_CRIT",	/* GPIO_3 */
+			  "INA3221_WARN",	/* GPIO_4 */
+			  "INA3221_TC",		/* GPIO_5 */
+			  "QSPI0_RST_N",	/* GPIO_6 */
+			  "LM96063_TCRIT_N",	/* GPIO_7 */
+			  "DSI_TCH_INT",	/* GPIO_8 */
+			  "DSI_RST",		/* GPIO_9 */
+			  "DSI_BL",		/* GPIO_10 */
+			  "DSI_INT",		/* GPIO_11 */
+			  "ETH_RST",		/* GPIO_12 */
+			  "CSI0_RST",		/* GPIO_13 */
+			  "CSI0_PWDN",		/* GPIO_14 */
+			  "CSI1_RST",		/* GPIO_15 */
+			  "CSI1_PWDN",		/* GPIO_16 */
+			  "CSI2_RST",		/* GPIO_17 */
+			  "CSI2_PWDN",		/* GPIO_18 */
+			  "CSI3_RST",		/* GPIO_19 */
+			  "CSI3_PWDN",		/* GPIO_20 */
+			  "ADAC_RST",		/* GPIO_21 */
+			  "SD_SW_VDD",		/* GPIO_22 */
+			  "SD_PON_VDD",		/* GPIO_23 */
+			  "GPIO_EXP_INT",	/* GPIO_24 */
+			  "BOARD_ID_0",		/* GPIO_25 */
+			  "SDIO1_SW_VDD",	/* GPIO_26 */
+			  "SDIO1_PON_VDD",	/* GPIO_27 */
+			  "SDIO2_SW_VDD",	/* GPIO_28 */
+			  "SDIO2_PON_VDD",	/* GPIO_29 */
+			  "BOARD_ID_1",		/* GPIO_30 */
+			  "BOARD_ID_2";		/* GPIO_31 */
+};
+
+&i2c0 {
+	clock-frequency = <100000>;
+	status = "okay";
+};
+
+&i2c1 {
+	clock-frequency = <100000>;
+	status = "okay";
+};
+
+&i2c2 {
+	clock-frequency = <100000>;
+	status = "okay";
+
+	audio_codec: audio-codec@18 {
+		compatible = "ti,tlv320aic3100";
+		reg = <0x18>;
+		#sound-dai-cells = <0>;
+		ai3x-micbias-vg = <1>;          /* 2.0V */
+		reset-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
+	};
+};
+
+&i2c3 {
+	clock-frequency = <100000>;
+	status = "okay";
+
+	gpio_expander: gpio@74 {
+		compatible = "ti,tca9539";
+		reg = <0x74>;
+		gpio-controller;
+		#gpio-cells = <2>;
+	};
+};
+
+&i2s_master {
+	status = "okay";
+};
+
+&i2s_slave {
+	status = "okay";
+};
+
+&sd {
+	wp-inverted;
+	no-sdio;
+	no-mmc;
+	card-detect-delay = <200>;
+	vmmc-supply = <&vmmc_sd>;
+	vqmmc-supply = <&vmmc_io>;
+	status = "okay";
+};
+
+&sdio0 {
+	no-sd;
+	no-sdio;
+	non-removable;
+	wp-inverted;

arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi line 202

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi new file +10 -0
+	status = "okay";
+	no-3-3-v;
+};
+
+&spim {
+	//spidev@2 {
+	//	compatible = "spidev";
+	//	spi-max-frequency = <100>;
+	//	reg = <2>;
+	//};

Don't add dead code to Linux kernel.

arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi line 212

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi new file +10 -0
+};
+
+&spis {
+	//status = "okay";
+	//
+	//slave {
+	//	compatible = "spidev";
+	//	status = "okay";
+	//	spi-max-frequency = <100>;
+	//};

Same problems.

Quoted 14 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi new file +5 -0
+};
+
+&usb3 {
+	status = "okay";
+};
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts new file +3 -0
new file mode 100644
index 000000000000..09925db3c58a
@@ -0,0 +1,103 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2023 Blaize, Inc. All rights reserved.

arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts line 13

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts new file +10 -0
+ */
+
+/dts-v1/;
+
+#include "blaize-blzp1600-som-cb.dtsi"
+
+/ {
+	model = "Blaize BLZP1600 SoM1600P CB2 Development Board";
+
+	compatible = "blaize,blzp1600-som-cb2", "blaize,blzp1600";

SoM or board? I commented about this in your bindings patch, so now it visible more that it is wrong.

Quoted 67 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts new file +67 -0
+
+	regulators {
+		vmmc_sdio1: regulator-sdio1-en {
+			compatible = "regulator-fixed";
+			regulator-name = "mmc-sdio1-en";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>;
+			enable-active-high;
+			startup-delay-us = <100000>;
+		};
+
+		vmmc_sdio1_io: regulator-sdio1-io {
+			compatible = "regulator-gpio";
+			regulator-name = "mmc-sdio1-io";
+			regulator-ramp-delay = <10000>;
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <3300000>;
+			gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
+			states = <1800000 0x0 3300000 0x1>;
+		};
+	};
+};
+
+&gpio_expander {
+	gpio-line-names = "RSP_PIN_7",	/* GPIO_0 */
+			  "RSP_PIN_11",	/* GPIO_1 */
+			  "RSP_PIN_13",	/* GPIO_2 */
+			  "RSP_PIN_15",	/* GPIO_3 */
+			  "RSP_PIN_27",	/* GPIO_4 */
+			  "RSP_PIN_29",	/* GPIO_5 */
+			  "RSP_PIN_31",	/* GPIO_6 */
+			  "RSP_PIN_33",	/* GPIO_7 */
+			  "RSP_PIN_37",	/* GPIO_8 */
+			  "RSP_PIN_16",	/* GPIO_9 */
+			  "RSP_PIN_18",	/* GPIO_10 */
+			  "RSP_PIN_22",	/* GPIO_11 */
+			  "RSP_PIN_28",	/* GPIO_12 */
+			  "RSP_PIN_32",	/* GPIO_13 */
+			  "RSP_PIN_36",	/* GPIO_14 */
+			  "TP31";	/* GPIO_15 */
+};
+
+&i2c3 {
+	gpio_expander_m2: gpio@75 {
+		compatible = "ti,tca9539";
+		reg = <0x75>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		gpio-line-names = "M2_W_DIS1_N",	/* GPIO_0 */
+				  "M2_W_DIS2_N",	/* GPIO_1 */
+				  "M2_UART_WAKE_N",	/* GPIO_2 */
+				  "M2_COEX3",		/* GPIO_3 */
+				  "M2_COEX_RXD",	/* GPIO_4 */
+				  "M2_COEX_TXD",	/* GPIO_5 */
+				  "M2_VENDOR_PIN40",	/* GPIO_6 */
+				  "M2_VENDOR_PIN42",	/* GPIO_7 */
+				  "M2_VENDOR_PIN38",	/* GPIO_8 */
+				  "M2_SDIO_RST_N",	/* GPIO_9 */
+				  "M2_SDIO_WAKE_N",	/* GPIO_10 */
+				  "M2_PETN1",		/* GPIO_11 */
+				  "M2_PERP1",		/* GPIO_12 */
+				  "M2_PERN1",		/* GPIO_13 */
+				  "UIM_SWP",		/* GPIO_14 */
+				  "UART1_TO_RSP";	/* GPIO_15 */
+	};
+};

arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts line 90

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts new file +10 -0
+
+&sdio1 {
+	no-mmc;
+	no-sd;
+	non-removable;
+	vmmc-supply = <&vmmc_sdio1>;
+	vqmmc-supply = <&vmmc_sdio1_io>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	//status = "okay";

Don't add dead code.

arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts line 93

Quoted 3 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts new file +3 -0
+	keep-power-in-suspend;
+	no-3-3-v;
+	// Override bits 0-SDR50, 1-SDR104, 2-DDR50 to respect the dtb properties

Why? What do you want to respect? How?

Quoted 21 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts new file +10 -0
+	sdhci-caps-mask = <0x7 0x0>;
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr50;
+
+	mwifiex: wifi@1 {
+		compatible = "brcm,bcm4329-fmac";
+		reg = <1>;
+	};
+};
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +5 -0
new file mode 100644
index 000000000000..39790ae19a2c
@@ -0,0 +1,104 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2023 Blaize, Inc. All rights reserved.
+ */
+

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi line 15

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +10 -0
+#include "blaize-blzp1600.dtsi"
+
+/ {
+	memory@1000 {
+		device_type = "memory";
+		reg = <0x0 0x00001000 0xfffff000>;
+	};
+
+	aliases {
+		serial0 = &uart0;

This is property of the board usualy, not SoC. Although I am not sure what's this file about - there is already SoM DTSI.

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi line 19

Quoted 4 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +4 -0
+	};
+
+	chosen {
+		bootargs = "earlycon";

Nope, that's not for DTS in mainline.

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi line 32

Quoted 13 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +13 -0
+		stdout-path = "serial0:115200";
+	};
+};
+
+&gsp {
+	blaize,power-limit-peak = <27001>;	/* Power in mW */
+};
+
+&i2c4 {
+	clock-frequency = <100000>;
+	status = "okay";
+
+	hwmon-ina3221@40 {

Node names should be generic.
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi line 42

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +10 -0
+		compatible = "ti,ina3221";
+		reg = <0x40>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		input@0 {
+			reg = <0x0>;
+			label = "dual-rail1-1v1-1v8";
+			shunt-resistor-micro-ohms = <1000>;
+		};

Blank line.

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi line 47

Quoted 5 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +5 -0
+		input@1 {
+			reg = <0x1>;
+			label = "single-rail1-0v8";
+			shunt-resistor-micro-ohms = <25000>;
+		};

Ditto

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi line 55

Quoted 8 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +8 -0
+		input@2 {
+			reg = <0x2>;
+			label = "dual-rail2-1v1-1v8";
+			shunt-resistor-micro-ohms = <1000>;
+		};
+	};
+
+	hwmon-lm96063@4c {

Node names should be generic.
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi line 67

Quoted 12 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +12 -0
+		compatible = "national,lm96163";
+		reg = <0x4c>;
+	};
+};
+
+&spim {
+	status = "okay";
+
+	flash@0 {
+		compatible = "jedec,spi-nor";
+		spi-max-frequency = <1000000>;
+		reg = <0>;

Blank line.

Quoted 97 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi new file +37 -0
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			fip@0 {
+				label = "fip";
+				reg = <0x0000000 0xe0000>;
+				read-only;
+			};
+
+			uboot-env@e0000 {
+				label = "u-boot-env";
+				reg = <0xe0000 0x10000>;
+			};
+
+			dtb@f0000 {
+				label = "dtb";
+				reg = <0xf0000 0x10000>;
+			};
+
+			image@100000 {
+				label = "linux";
+				reg = <0x100000 0x800000>;
+			};
+
+			rfs@900000 {
+				label = "rfs";
+				reg = <0x900000 0x3700000>;
+			};
+		};
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +54 -0
new file mode 100644
index 000000000000..5641a95795dc
@@ -0,0 +1,894 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2023 Blaize, Inc. All rights reserved.
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/reset/blaize,blzp1600-reset.h>
+#include <dt-bindings/clock/blaize,blzp1600-clk.h>
+
+/ {
+	interrupt-parent = <&gic>;
+	#address-cells = <2>;
+	#size-cells = <1>;
+
+	cpus {
+		#address-cells = <2>;
+		#size-cells = <0>;
+
+		cpu0: cpu@0 {
+			compatible = "arm,cortex-a53";
+			device_type = "cpu";
+			enable-method = "psci";
+			reg = <0x0 0x0>;
+			next-level-cache = <&l2>;
+		};
+
+		cpu1: cpu@1 {
+			compatible = "arm,cortex-a53";
+			device_type = "cpu";
+			enable-method = "psci";
+			reg = <0x0 0x1>;
+			next-level-cache = <&l2>;
+		};
+
+		l2: l2-cache0 {
+			compatible = "cache";
+			cache-level = <2>;
+		};
+	};
+
+	timer {
+		compatible = "arm,armv8-timer";
+		interrupts = /* Physical Secure PPI */
+			     <GIC_PPI 13 (GIC_CPU_MASK_RAW(0x3) |
+					  IRQ_TYPE_LEVEL_LOW)>,
+			     /* Physical Non-Secure PPI */
+			     <GIC_PPI 14 (GIC_CPU_MASK_RAW(0x3) |
+					  IRQ_TYPE_LEVEL_LOW)>,
+			     /* Hypervisor PPI */
+			     <GIC_PPI 10 (GIC_CPU_MASK_RAW(0x3) |
+					  IRQ_TYPE_LEVEL_LOW)>,
+			     /* Virtual PPI */
+			     <GIC_PPI 11 (GIC_CPU_MASK_RAW(0x3) |

arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi line 64

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +10 -0
+					  IRQ_TYPE_LEVEL_LOW)>;
+	};
+
+	psci {
+		compatible = "arm,psci-1.0", "arm,psci-0.2";
+		method = "smc";
+	};
+
+	hwmon {
+		compatible = "blaize,blzp1600-hwmon";

Undocumented comaptible.

Quoted 27 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +27 -0
+		clocks = <&scmi_clk BLZP1600_TSENSOR_CLK>;
+		resets = <&scmi_rst BLZP1600_TSENSOR_RST>;
+	};
+
+	pmu {
+		compatible = "arm,cortex-a53-pmu";
+		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
+			     <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-affinity = <&cpu0>, <&cpu1>;
+	};
+
+	sram@0 {
+		/*
+		 * On BLZP1600 there is no general purpose (non-secure) SRAM.
+		 * A small DDR memory space has been reserved for general use.
+		 */
+		compatible = "mmio-sram";
+		reg = <0x0 0x00000000 0x00001000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0 0x0 0x00000000 0x1000>;
+
+		/* SCMI reserved buffer space on DDR space */
+		scmi0_shm: scmi-sram@800 {
+			compatible = "arm,scmi-shmem";
+			reg = <0x800 0x80>;
+		};

arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi line 101

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +10 -0
+	};
+
+	firmware {
+		scmi {
+			compatible = "arm,scmi-smc";
+			arm,smc-id = <0x82002000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			status = "okay";

Drop status.

arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi line 107

Quoted 6 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +6 -0
+			shmem = <&scmi0_shm>;
+
+			scmi_clk: protocol@14 {
+				reg = <0x14>;
+				#clock-cells = <1>;
+			};

Missing blank line.

Quoted 5 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +5 -0
+			scmi_rst: protocol@16 {
+				reg = <0x16>;
+				#reset-cells = <1>;
+			};
+		};

arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi line 122

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +10 -0
+	};
+
+	soc {
+		compatible = "simple-bus";
+		#address-cells = <2>;
+		#size-cells = <1>;
+		ranges;
+
+		spim: spi@200300000 {
+			compatible = "snps,dw-apb-ssi";

Just to be sure - there are no dtbs_check warnings? That should be your important requirement. It's a lot, a lot of work to remove them later.

Quoted 20 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +20 -0
+			reg = <0x2 0x00300000 0x10000>;
+			clocks =  <&scmi_clk BLZP1600_QSPI_CLK>,
+				  <&scmi_clk BLZP1600_QSPI_PCLK>;
+			clock-names = "ssi_clk", "pclk";
+			resets = <&scmi_rst BLZP1600_QSPI_RST>,
+				 <&scmi_rst BLZP1600_QSPI_PRST>;
+			reset-names = "spi", "pspi";
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+			reg-io-width = <4>;
+			num-cs = <3>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		gic: interrupt-controller@200410000 {
+			compatible = "arm,gic-400";
+			#interrupt-cells = <3>;
+			#address-cells = <0>;
+			interrupt-controller;

arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi line 152

Quoted 10 lines
arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi new file +10 -0
+			reg = <0x2 0x00410000 0x20000>,
+			      <0x2 0x00420000 0x20000>,
+			      <0x2 0x00440000 0x20000>,
+			      <0x2 0x00460000 0x20000>;
+			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_RAW(0x3) |
+						 IRQ_TYPE_LEVEL_LOW)>;
+		};
+
+		public_soc_registers: syscon@200490000 {
+			compatible = "blaize,blzp1600-sys", "syscon";

Undocumented comaptible.

I will stop review. I don't think your submission is ready for upstream.

Best regards,
Krzysztof

maintainer
#11 lore raw

Re: [PATCH 5/5] arm64: Add initial support for Blaize BLZP1600 CB2

In reply to Niko Pasaloukos
Quoted 14 lines · Niko Pasaloukos

Adds support for the Blaize CB2 development board based on BLZP1600 SoC. This consists of a Carrier-Board and a SoM.

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-som-cb2.dts is the board specific file.

Quoted 15 lines
---
 arch/arm64/Kconfig.platforms                  |   5 +
 arch/arm64/boot/dts/Makefile                  |   1 +
 arch/arm64/boot/dts/blaize/Makefile           |   2 +
 .../dts/blaize/blaize-blzp1600-som-cb.dtsi    | 217 +++++
 .../dts/blaize/blaize-blzp1600-som-cb2.dts    | 103 ++
 .../boot/dts/blaize/blaize-blzp1600-som.dtsi  | 104 ++
 .../boot/dts/blaize/blaize-blzp1600.dtsi      | 894 ++++++++++++++++++
 arch/arm64/configs/defconfig                  |   1 +
 8 files changed, 1327 insertions(+)
 create mode 100644 arch/arm64/boot/dts/blaize/Makefile
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som-cb2.dts
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi
 create mode 100644 arch/arm64/boot/dts/blaize/blaize-blzp1600.dtsi

New platforms should be free of warnings from 'make dtbs_check'. Please run and fix if you have not, and confirm that in the commit message.

Rob

#12 lore raw
In reply to Niko Pasaloukos
Quoted 10 lines · Niko Pasaloukos

Adds basic support for the Blaize BLZP1600 SoC. This SoC contains two cores of Cortex-A53 CPUs, one Blaize Graph Streaming Processor (GSP) and several other IPs.

Nikolaos Pasaloukos (5):
dt-bindings: Add Blaize vendor prefix
dt-bindings: arm: blaize: Add Blaize BLZP1600 SoC
dt-bindings: reset: Add binding constants for BLZP1600
dt-bindings: clock: Add binding constants for BLZP1600
arm64: Add initial support for Blaize BLZP1600 CB2

You miss maintainers entry. Cc soc@kernel when your submission is ready, because now it is too early.

Best regards,
Krzysztof