Skip to content

Commit

Permalink
Merge tag 'soc-new-6.14' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/soc/soc

Pull new SoC support from Arnd Bergmann:
 "Two new SoC families are added here, with devicetree files and a
  little bit of infrastructure to allow booting:

   - Blaize BLZP1600 is an AI chip using custom GSP (Graph Streaming
     Processor) cores for computation, and two small Cortex-A53 cores
     that run the operating system.

   - SpacemiT K1 is a 64-bit RISC-V chip, using eight custom RVA22
     compatible CPU cores with vector support.

     Also marketed at AI applications, it has a much slower NPU compared
     to BLZP1600, but in turn focuses on the CPU performance"

* tag 'soc-new-6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
  riscv: dts: spacemit: move aliases to board dts
  riscv: dts: spacemit: add pinctrl property to uart0 in BPI-F3
  riscv: defconfig: enable SpacemiT SoC
  riscv: dts: spacemit: add Banana Pi BPI-F3 board device tree
  riscv: dts: add initial SpacemiT K1 SoC device tree
  riscv: add SpacemiT SoC family Kconfig support
  dt-bindings: serial: 8250: Add SpacemiT K1 uart compatible
  dt-bindings: interrupt-controller: Add SpacemiT K1 PLIC
  dt-bindings: timer: Add SpacemiT K1 CLINT
  dt-bindings: riscv: add SpacemiT K1 bindings
  dt-bindings: riscv: Add SpacemiT X60 compatibles
  MAINTAINERS: setup support for SpacemiT SoC tree
  MAINTAINER: Add entry for Blaize SoC
  arm64: defconfig: Enable Blaize BLZP1600 platform
  arm64: dts: Add initial support for Blaize BLZP1600 CB2
  arm64: Add Blaize BLZP1600 SoC family
  dt-bindings: arm: blaize: Add Blaize BLZP1600 SoC
  dt-bindings: Add Blaize vendor prefix
  • Loading branch information
Linus Torvalds committed Jan 24, 2025
2 parents 1e8f6db + 0bcf3ac commit 4e517a6
Show file tree
Hide file tree
Showing 22 changed files with 921 additions and 1 deletion.
40 changes: 40 additions & 0 deletions Documentation/devicetree/bindings/arm/blaize.yaml
Original file line number Diff line number Diff line change
@@ -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 <james.cowgill@blaize.com>
- Matt Redfearn <matt.redfearn@blaize.com>
- Neil Jones <neil.jones@blaize.com>
- Nikolaos Pasaloukos <nikolaos.pasaloukos@blaize.com>

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

...
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ properties:
- enum:
- canaan,k210-plic
- sifive,fu540-c000-plic
- spacemit,k1-plic
- starfive,jh7100-plic
- starfive,jh7110-plic
- const: sifive,plic-1.0.0
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/riscv/cpus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ properties:
- sifive,u7
- sifive,u74
- sifive,u74-mc
- spacemit,x60
- thead,c906
- thead,c908
- thead,c910
Expand Down
28 changes: 28 additions & 0 deletions Documentation/devicetree/bindings/riscv/spacemit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/riscv/spacemit.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: SpacemiT SoC-based boards

maintainers:
- Yangyu Chen <cyy@cyyself.name>
- Yixun Lan <dlan@gentoo.org>

description:
SpacemiT SoC-based boards

properties:
$nodename:
const: '/'
compatible:
oneOf:
- items:
- enum:
- bananapi,bpi-f3
- const: spacemit,k1

additionalProperties: true

...
4 changes: 3 additions & 1 deletion Documentation/devicetree/bindings/serial/8250.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ properties:
- mediatek,mt7623-btif
- const: mediatek,mtk-btif
- items:
- const: mrvl,mmp-uart
- enum:
- mrvl,mmp-uart
- spacemit,k1-uart
- const: intel,xscale-uart
- items:
- enum:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/timer/sifive,clint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ properties:
- enum:
- canaan,k210-clint # Canaan Kendryte K210
- sifive,fu540-c000-clint # SiFive FU540
- spacemit,k1-clint # SpacemiT K1
- starfive,jh7100-clint # StarFive JH7100
- starfive,jh7110-clint # StarFive JH7110
- starfive,jh8100-clint # StarFive JH8100
Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/vendor-prefixes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ patternProperties:
description: Shenzhen BigTree Tech Co., LTD
"^bitmain,.*":
description: Bitmain Technologies
"^blaize,.*":
description: Blaize, Inc.
"^blutek,.*":
description: BluTek Power
"^boe,.*":
Expand Down
18 changes: 18 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2309,6 +2309,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 <james.cowgill@blaize.com>
M: Matt Redfearn <matt.redfearn@blaize.com>
M: Neil Jones <neil.jones@blaize.com>
M: Nikolaos Pasaloukos <nikolaos.pasaloukos@blaize.com>
S: Maintained
F: Documentation/devicetree/bindings/arm/blaize.yaml
F: arch/arm64/boot/dts/blaize/

ARM/CALXEDA HIGHBANK ARCHITECTURE
M: Andre Przywara <andre.przywara@arm.com>
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
Expand Down Expand Up @@ -20274,6 +20283,15 @@ F: drivers/perf/riscv_pmu.c
F: drivers/perf/riscv_pmu_legacy.c
F: drivers/perf/riscv_pmu_sbi.c

RISC-V SPACEMIT SoC Support
M: Yixun Lan <dlan@gentoo.org>
L: linux-riscv@lists.infradead.org
S: Maintained
T: git https://github.com/spacemit-com/linux
F: arch/riscv/boot/dts/spacemit/
N: spacemit
K: spacemit

RISC-V THEAD SoC SUPPORT
M: Drew Fustini <drew@pdp7.com>
M: Guo Ren <guoren@kernel.org>
Expand Down
5 changes: 5 additions & 0 deletions arch/arm64/Kconfig.platforms
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/blaize/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0+
dtb-$(CONFIG_ARCH_BLAIZE) += blaize-blzp1600-cb2.dtb
83 changes: 83 additions & 0 deletions arch/arm64/boot/dts/blaize/blaize-blzp1600-cb2.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2024 Blaize, Inc. All rights reserved.
*/

/dts-v1/;

#include "blaize-blzp1600-som.dtsi"

/ {
model = "Blaize BLZP1600 SoM1600P CB2 Development Board";

compatible = "blaize,blzp1600-cb2", "blaize,blzp1600";

aliases {
serial0 = &uart0;
};

chosen {
stdout-path = "serial0:115200";
};
};

&i2c0 {
clock-frequency = <100000>;
status = "okay";
};

&i2c1 {
clock-frequency = <100000>;
status = "okay";
};

&i2c3 {
clock-frequency = <100000>;
status = "okay";

gpio_expander: gpio@74 {
compatible = "ti,tca9539";
reg = <0x74>;
gpio-controller;
#gpio-cells = <2>;
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 */
};

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 */
};
};
23 changes: 23 additions & 0 deletions arch/arm64/boot/dts/blaize/blaize-blzp1600-som.dtsi
Original file line number Diff line number Diff line change
@@ -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";
};
Loading

0 comments on commit 4e517a6

Please sign in to comment.