Skip to content

Commit 8e88602

Browse files
author
Drew Fustini
committed
riscv: dts: Add Tenstorrent Blackhole SoC PCIe cards
Add device tree source describing the Tenstorrent Blackhole SoC and the Blackhole P100 and P150 PCIe cards. There are no differences between the P100 and P150 cards from the perspective of an OS kernel like Linux running on the X280 cores. There is a virtual UART implemented in OpenSBI firmware that allows a console program on the PCIe host to communicate through shared memory with Linux running on the Blackhole card. CONFIG_HVC_RISCV_SBI needs to be enabled. The boot script on the host adds 'console=hvc0' so that the full boot output appears in the console program on the host. Link: https://github.com/tenstorrent/opensbi/ Link: https://github.com/tenstorrent/tt-bh-linux Reviewed-by: Joel Stanley <jms@oss.tenstorrent.com> Signed-off-by: Drew Fustini <dfustini@oss.tenstorrent.com>
1 parent d6133f7 commit 8e88602

5 files changed

Lines changed: 126 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22165,6 +22165,7 @@ L: linux-riscv@lists.infradead.org
2216522165
S: Maintained
2216622166
T: git https://github.com/tenstorrent/linux.git
2216722167
F: Documentation/devicetree/bindings/riscv/tenstorrent.yaml
22168+
F: arch/riscv/boot/dts/tenstorrent/
2216822169

2216922170
RISC-V THEAD SoC SUPPORT
2217022171
M: Drew Fustini <fustini@kernel.org>

arch/riscv/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ subdir-y += sifive
99
subdir-y += sophgo
1010
subdir-y += spacemit
1111
subdir-y += starfive
12+
subdir-y += tenstorrent
1213
subdir-y += thead
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
dtb-$(CONFIG_ARCH_TENSTORRENT) += blackhole-card.dtb
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
/dts-v1/;
3+
4+
#include "blackhole.dtsi"
5+
6+
/ {
7+
model = "Tenstorrent Blackhole";
8+
compatible = "tenstorrent,blackhole-card", "tenstorrent,blackhole";
9+
10+
memory@400030000000 {
11+
device_type = "memory";
12+
reg = <0x4000 0x30000000 0x1 0x00000000>;
13+
};
14+
};
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
// Copyright 2025 Tenstorrent AI ULC
3+
/dts-v1/;
4+
5+
/ {
6+
compatible = "tenstorrent,blackhole";
7+
#address-cells = <2>;
8+
#size-cells = <2>;
9+
10+
cpus {
11+
#address-cells = <1>;
12+
#size-cells = <0>;
13+
timebase-frequency = <50000000>;
14+
15+
cpu@0 {
16+
compatible = "sifive,x280", "sifive,rocket0", "riscv";
17+
device_type = "cpu";
18+
reg = <0>;
19+
mmu-type = "riscv,sv57";
20+
riscv,isa-base = "rv64i";
21+
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicsr",
22+
"zifencei", "zfh", "zba", "zbb", "sscofpmf";
23+
24+
cpu0_intc: interrupt-controller {
25+
compatible = "riscv,cpu-intc";
26+
#interrupt-cells = <1>;
27+
interrupt-controller;
28+
};
29+
};
30+
31+
cpu@1 {
32+
compatible = "sifive,x280", "sifive,rocket0", "riscv";
33+
device_type = "cpu";
34+
reg = <1>;
35+
mmu-type = "riscv,sv57";
36+
riscv,isa-base = "rv64i";
37+
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicsr",
38+
"zifencei", "zfh", "zba", "zbb", "sscofpmf";
39+
40+
cpu1_intc: interrupt-controller {
41+
compatible = "riscv,cpu-intc";
42+
#interrupt-cells = <1>;
43+
interrupt-controller;
44+
};
45+
};
46+
47+
cpu@2 {
48+
compatible = "sifive,x280", "sifive,rocket0", "riscv";
49+
device_type = "cpu";
50+
reg = <2>;
51+
mmu-type = "riscv,sv57";
52+
riscv,isa-base = "rv64i";
53+
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicsr",
54+
"zifencei", "zfh", "zba", "zbb", "sscofpmf";
55+
56+
cpu2_intc: interrupt-controller {
57+
compatible = "riscv,cpu-intc";
58+
#interrupt-cells = <1>;
59+
interrupt-controller;
60+
};
61+
};
62+
63+
cpu@3 {
64+
compatible = "sifive,x280", "sifive,rocket0", "riscv";
65+
device_type = "cpu";
66+
reg = <3>;
67+
mmu-type = "riscv,sv57";
68+
riscv,isa-base = "rv64i";
69+
riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicsr",
70+
"zifencei", "zfh", "zba", "zbb", "sscofpmf";
71+
72+
cpu3_intc: interrupt-controller {
73+
compatible = "riscv,cpu-intc";
74+
#interrupt-cells = <1>;
75+
interrupt-controller;
76+
};
77+
};
78+
};
79+
80+
soc {
81+
#address-cells = <2>;
82+
#size-cells = <2>;
83+
compatible = "simple-bus";
84+
ranges;
85+
86+
clint0: timer@2000000 {
87+
compatible = "tenstorrent,blackhole-clint", "sifive,clint0";
88+
reg = <0x0 0x2000000 0x0 0x10000>;
89+
interrupts-extended = <&cpu0_intc 0x3>, <&cpu0_intc 0x7>,
90+
<&cpu1_intc 0x3>, <&cpu1_intc 0x7>,
91+
<&cpu2_intc 0x3>, <&cpu2_intc 0x7>,
92+
<&cpu3_intc 0x3>, <&cpu3_intc 0x7>;
93+
};
94+
95+
plic0: interrupt-controller@c000000 {
96+
compatible = "tenstorrent,blackhole-plic", "sifive,plic-1.0.0";
97+
reg = <0x0 0x0c000000 0x0 0x04000000>;
98+
interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>,
99+
<&cpu1_intc 11>, <&cpu1_intc 9>,
100+
<&cpu2_intc 11>, <&cpu2_intc 9>,
101+
<&cpu3_intc 11>, <&cpu3_intc 9>;
102+
interrupt-controller;
103+
#interrupt-cells = <1>;
104+
#address-cells = <0>;
105+
riscv,ndev = <128>;
106+
};
107+
};
108+
};

0 commit comments

Comments
 (0)