Skip to contentSkip to conversation

riscv: dts: tenstorrent: Add Atlantis platform

PATCH New Joel Stanley 1 participant 7 messages Nov 27

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

v4 cover riscv: dts: tenstorrent: Add Atlantis platform

Add initial support for the Tenstorrent Atlantis platform, based on the Atlantis SoC featuring 8x RVA23-compliant Tenstorrent Ascalon-XG cores.

The series adds a bare bones device tree with the CPU, interrupt controllers and a UART.

Patches 1 to 5 add compatibles or extensions to existing bindings.

This version drops the aclint mtimer binding patch, which will be posted as a standalone series along with converting the relevant boards. The Atlantis device tree omits that node for now.

The series has been boot tested on QEMU and internal development platforms.

v3:
https://lore.kernel.org/linux-riscv/[email protected]/

Changes since v3:
- Drop mtimer binding document, will be posted independently
- Remove mtimer node from dtsi until binding is finalised
- Reorder properties to pass strict style checking
- Use the correct value for the timebase property
- Add cpus label to cpus node

Changes since v2:
- Fixes to prcm_rcpu and aplic dt nodes
- Drop uart1 clock override. UART now depends on a working PRCM driver
- Drop bootargs console=ttyS0 in favour of stdout-path
- Justify aclint mtimer bindings

Changes since v1:
- Rework mtimer bindings, fix reg property, update compatible and use priv spec as reference
- Drop Drew's sob from bindings patches I wrote
- Add Drew's co-developed-by to dts patch
- Correct aplic num-sources

Drew Fustini (1):
dt-bindings: riscv: add Smrnmi extension description

Joel Stanley (5):
dt-bindings: aplic: Add Tenstorrent Atlantis compatible
dt-bindings: imsics: Add Tenstorrent Atlantis compatible
dt-bindings: riscv: cpus: Add Tenstorrent Ascalon
dt-bindings: riscv: Add Tenstorrent Atlantis platform
riscv: dts: tenstorrent: Add Atlantis platform

 .../interrupt-controller/riscv,aplic.yaml     |   1 +
 .../interrupt-controller/riscv,imsics.yaml    |   1 +
 .../devicetree/bindings/riscv/cpus.yaml       |   5 +
 .../devicetree/bindings/riscv/extensions.yaml |   6 +
 .../bindings/riscv/tenstorrent.yaml           |   4 +
 arch/riscv/boot/dts/tenstorrent/Makefile      |   1 +
 .../boot/dts/tenstorrent/atlantis-evb.dts     |  29 ++
 .../boot/dts/tenstorrent/atlantis-soc.dtsi    | 467 ++++++++++++++++++
 8 files changed, 514 insertions(+)
 create mode 100644 arch/riscv/boot/dts/tenstorrent/atlantis-evb.dts
 create mode 100644 arch/riscv/boot/dts/tenstorrent/atlantis-soc.dtsi

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.47.3
#1 lore raw

PATCH v4 1/6 dt-bindings: aplic: Add Tenstorrent Atlantis compatible

Add compatible for APLIC in Tenstorrent Atlantis SoC.

---
v4: Pick up Conor's ack

---
 .../devicetree/bindings/interrupt-controller/riscv,aplic.yaml    | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml +1 -0
index 0718071444d2..d4e17861eda4 100644
@@ -29,6 +29,7 @@ properties:
       - enum:
           - qemu,aplic
           - spacemit,k3-aplic
+          - tenstorrent,atlantis-aplic
       - const: riscv,aplic
 
   reg:
Signature · 1 line
2.47.3
#2 lore raw

PATCH v4 2/6 dt-bindings: imsics: Add Tenstorrent Atlantis compatible

In reply to Joel Stanley

Add compatible for IMSICS in Tenstorrent Atlantis SoC.

---
v4: No changes
v3: No changes, pick up review tags

---
 .../devicetree/bindings/interrupt-controller/riscv,imsics.yaml   | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/riscv,imsics.yaml +1 -0
index feec122bddde..442b8870f9c5 100644
@@ -49,6 +49,7 @@ properties:
       - enum:
           - qemu,imsics
           - spacemit,k3-imsics
+          - tenstorrent,atlantis-imsics
       - const: riscv,imsics
 
   reg:
Signature · 1 line
2.47.3
#3 lore raw

PATCH v4 3/6 dt-bindings: riscv: cpus: Add Tenstorrent Ascalon

In reply to Joel Stanley

Add Tenstorrent Ascalon microarchitecture and the Tenstorrent Ascalon-XG core.

---
v4: No changes
v3: No changes, pick up review tags

---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/riscv/cpus.yaml +5 -0
index 0da219ae6769..2d2e4606a53e 100644
@@ -75,6 +75,11 @@ properties:
               - sifive,x280
           - const: sifive,rocket0
           - const: riscv
+      - items:
+          - enum:
+              - tenstorrent,ascalon-xg
+          - const: tenstorrent,ascalon
+          - const: riscv
       - const: riscv    # Simulator only
     description:
       Identifies that the hart uses the RISC-V instruction set
Signature · 1 line
2.47.3
#4 lore raw

PATCH v4 4/6 dt-bindings: riscv: add Smrnmi extension description

In reply to Joel Stanley

From: Drew Fustini <[email protected]>

Add description for the Smrnmi extension (Resumable Non-Maskable Interrupts) as ratified in 35eb3948bf0b ("Merge pull request #1492 from riscv/smrnmi-ratified") of the riscv-isa-manual.

---
v4: No changes
v3: No changes

---
 Documentation/devicetree/bindings/riscv/extensions.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/riscv/extensions.yaml +6 -0
index 79491ef8f86a..7f5d85c64f83 100644
@@ -214,6 +214,12 @@ properties:
             ratified at commit d70011dde6c2 ("Update to ratified state")
             of riscv-j-extension.
 
+        - const: smrnmi
+          description: |
+            The standard Smrnmi extension for Resumable Non-Maskable Interrupts
+            as ratified in commit 35eb3948bf0b ("Merge pull request #1492 from
+            riscv/smrnmi-ratified") of the riscv-isa-manual.
+
         - const: smstateen
           description: |
             The standard Smstateen extension for controlling access to CSRs
Signature · 1 line
2.47.3
#5 lore raw

PATCH v4 5/6 dt-bindings: riscv: Add Tenstorrent Atlantis platform

In reply to Joel Stanley

Add compatible for the Tenstorrent Atlantis platform.

---
v4: No changes
v3: No changes, pick up review tags

---
 Documentation/devicetree/bindings/riscv/tenstorrent.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/riscv/tenstorrent.yaml +4 -0
index e15359b2aab6..7fb640e38455 100644
@@ -22,6 +22,10 @@ properties:
         items:
           - const: tenstorrent,blackhole-card
           - const: tenstorrent,blackhole
+      - description: Tenstorrent Atlantis
+        items:
+          - const: tenstorrent,atlantis-evb
+          - const: tenstorrent,atlantis
 
 additionalProperties: true
 
Signature · 1 line
2.47.3
#6 lore raw

PATCH v4 6/6 riscv: dts: tenstorrent: Add Atlantis platform

In reply to Joel Stanley

Add initial support for the Tenstorrent Atlantis platform, based on the Atlantis SoC featuring 8x RVA23-compliant Tenstorrent Ascalon-XG cores.

The evb machine represents an internal bringup vehicle with just the interrupt controllers and a UART. This will be updated in time with a full featured machine once details are available.

The chosen node sets bootargs to earlycon=sbi to aid debugging early boot, as the platform may not have a bootloader to fill out the chosen node.

The m-mode IMSIC setting riscv,guest-index-bits looks strange, as m-mode devices don't have guest interrupt files. The spacing (stride) between m-mode files is the same 256KB as s-mode on Atlantis, so we set the property so software (eg OpenSBI) can derive the layout.

The SoC has a 8-way 64KB L1I, 4-way 256KB L1D, and a 24-way 12MB last level cache shared across all cores.

---
v4:
- Drop mtimer node, will add when bindings are finalised
- Add cpus label, for use by u-boot dts (Anirudh)
- Correct timebase to 100MHz
- Strict style conformance (Drew)
- cpu nodes: device_type first, standard properties before the riscv, ones
- imsic and aplic nodes: riscv, properties last
- uart nodes: blank line before status
- soc node: move compatible up, ranges after compatible
- root node: clocks before cpus
- board file: memory@0 after aliases and chosen
- dtsi: remove unnecessary dts-v1 tag

v3:
- Fix prcm_rcpu parent
- Delegate all aplic irqs
- Drop uart1 clock override
- Use earlycon=sbi, document rationale
- Fix mistakes in cache info

v2:
- Update mtimer compatible
- Add Drew's co-developed-by
- Correct aplic num-sources count

---
 arch/riscv/boot/dts/tenstorrent/Makefile      |   1 +
 .../boot/dts/tenstorrent/atlantis-evb.dts     |  29 ++
 .../boot/dts/tenstorrent/atlantis-soc.dtsi    | 467 ++++++++++++++++++
 3 files changed, 497 insertions(+)
 create mode 100644 arch/riscv/boot/dts/tenstorrent/atlantis-evb.dts
 create mode 100644 arch/riscv/boot/dts/tenstorrent/atlantis-soc.dtsi
arch/riscv/boot/dts/tenstorrent/Makefile +1 -0
index 2c81faaba462..92d8bb1a683f 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_TENSTORRENT) += blackhole-card.dtb
+dtb-$(CONFIG_ARCH_TENSTORRENT) += atlantis-evb.dtb
arch/riscv/boot/dts/tenstorrent/atlantis-evb.dts new file +29 -0
new file mode 100644
index 000000000000..b5ed5548c6c6
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+// Copyright 2026 Tenstorrent
+/dts-v1/;
+
+#include "atlantis-soc.dtsi"
+
+/ {
+	model = "Tenstorrent Atlantis development platform";
+	compatible = "tenstorrent,atlantis-evb", "tenstorrent,atlantis";
+
+	aliases {
+		serial0 = &uart1;
+	};
+
+	chosen {
+		bootargs = "earlycon=sbi";
+		stdout-path = "serial0:115200";
+	};
+
+	memory@0 {
+		device_type = "memory";
+		reg = <0x0 0x00000000 0x0 0x80000000>,
+		      <0x1 0x80000000 0x0 0x80000000>;
+	};
+};
+
+&uart1 {
+	status = "okay";
+};
arch/riscv/boot/dts/tenstorrent/atlantis-soc.dtsi new file +467 -0

467 lines not on this page · raw message

Signature · 1 line
2.47.3