mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/8] Add support for MIPS P8700
@ 2026-11-03 15:11 Aleksa Paunovic via B4 Relay
  2026-11-03 15:11 ` [PATCH v2 1/8] dt-bindings: vendor-prefixes: Add GlobalFoundries, Inc Aleksa Paunovic via B4 Relay
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic, Conor Dooley

The MIPS P8700 is a multi-core RISC-V microprocessor system, supporting
both single-cluster and multi-cluster configurations. [1]
This series adds full description of the platform,
including the Boston FPGA board configured with a P8700 bitfile.

The P8700 cores support the RV64GCZba_Zbb (G = IMAFD) Standard ISA,
with a caveat: the A extension is only partially supported, and all ZAAMO
extension instructions are emulated on the SBI level. The device tree
intentionally does not reflect this fact. Vladimir Kondratiev's series
improves performance by directly substituting AMO instructions with LR/SC. [4]
The two patchsets do not depend on one another.

The board itself is the same board as 'img,boston', configured with a different
bitfile [3]. The Boston board has been supported since commit 6e62a888029b
("MIPS: generic: Support MIPS Boston development boards") (thanks to Maciej for finding the ref).

GlobalFoundries has acquired MIPS [2] and the vendor prefix
for all newly added MIPS RISC-V hardware reflects that fact.

I tested this series both on QEMU and a Boston board
configured with a single P8700 CPU,
after applying the necessary U-Boot and OpenSBI changes
to match the 'compatible' strings and the changed MTIMER register order.
We are planning to upstream these as well.

Links:
[1] https://mips.com/wp-content/uploads/2025/11/P8700-F_Programmers_Reference_Manual-TM.pdf
[2] https://gf.com/news-and-events/news/globalfoundries-completes-acquisition-of-mips/
[3] https://training.mips.com/cps_mips/Examples/MD00901_Boot-MIPS_Example_Boot_Code_for_MIPS_Cores.pdf
[4] https://lore.kernel.org/all/20261026-lrsc-only-v3-0-ec29c8190fb1@mobileye.com/

Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
Changes in v2:
- Patch 1: Replace "MIPS Technology" with "MIPS Technologies".
- Patch 3: Name the FPGA used and add the versioned bitfile compatible.
- Patch 5: Drop hart indexes from MSWI.
- Patch 6: Swap mtimecmp and mtime, require reg-names both for mtime and mtimecmp on P8700.
- Original patch 7: Dropped.
- Patch 7 (previously 8): Remove additional harts that are not
  present in the bitfile I have. Reflect changes made in patches 3, 5 and 6.
  Remove riscv,cbom-block-size. Drop undocumented compatibles. Other minor changes.
- Link to v1: https://lore.kernel.org/r/20260914-p8700-dts-v1-0-3267f14ebce1@htecgroup.com

---
Aleksa Paunovic (8):
      dt-bindings: vendor-prefixes: Add GlobalFoundries, Inc.
      dt-bindings: riscv: cpus: add gf,mips-p8700
      dt-bindings: riscv: Add MIPS Boston board compatible
      dt-bindings: interrupt-controller: Add MIPS P8700 APLIC
      dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI
      dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER
      riscv: dts: gf: Initial support for the P8700 Boston board
      riscv: defconfig: Enable GF SoCs

 .../bindings/interrupt-controller/riscv,aplic.yaml |   1 +
 .../thead,c900-aclint-mswi.yaml                    |  11 ++
 Documentation/devicetree/bindings/riscv/cpus.yaml  |   1 +
 Documentation/devicetree/bindings/riscv/gf.yaml    |  33 +++++
 .../bindings/timer/thead,c900-aclint-mtimer.yaml   |  35 ++++++
 .../devicetree/bindings/vendor-prefixes.yaml       |   4 +-
 arch/riscv/Kconfig.socs                            |   6 +
 arch/riscv/boot/dts/Makefile                       |   1 +
 arch/riscv/boot/dts/gf/Makefile                    |   2 +
 arch/riscv/boot/dts/gf/p8700-boston.dts            | 135 +++++++++++++++++++++
 arch/riscv/boot/dts/gf/p8700.dtsi                  |  82 +++++++++++++
 arch/riscv/configs/defconfig                       |   1 +
 12 files changed, 311 insertions(+), 1 deletion(-)
---
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
change-id: 20260325-p8700-dts-41788f014227

Best regards,
-- 
Aleksa Paunovic <aleksa.paunovic@htecgroup.com>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 1/8] dt-bindings: vendor-prefixes: Add GlobalFoundries, Inc.
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 15:11 ` [PATCH v2 2/8] dt-bindings: riscv: cpus: add gf,mips-p8700 Aleksa Paunovic via B4 Relay
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic, Conor Dooley

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

GlobalFoundries acquired MIPS. All MIPS RISC-V
compatibles should be labeled with the 'gf' prefix in the future.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index ba2002969373433b1f48118872c46cf7bcfff276..eea7f86ebed0d038c53cd3c22d2dd71514224475 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -668,6 +668,8 @@ patternProperties:
     description: Genexis BV/AB
   "^geniatech,.*":
     description: Geniatech, Inc.
+  "^gf,.*":
+    description: GlobalFoundries, Inc.
   "^giantec,.*":
     description: Giantec Semiconductor, Inc.
   "^giantplus,.*":
@@ -1104,7 +1106,7 @@ patternProperties:
   "^minix,.*":
     description: MINIX Technology Ltd.
   "^mips,.*":
-    description: MIPS Technology (deprecated, use 'mti' or 'img')
+    description: MIPS Technologies Inc. (deprecated, use 'mti', 'img', or 'gf')
     deprecated: true
   "^miramems,.*":
     description: MiraMEMS Sensing Technology Co., Ltd.

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 2/8] dt-bindings: riscv: cpus: add gf,mips-p8700
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
  2026-11-03 15:11 ` [PATCH v2 1/8] dt-bindings: vendor-prefixes: Add GlobalFoundries, Inc Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 21:46   ` Conor Dooley
  2026-11-03 15:11 ` [PATCH v2 3/8] dt-bindings: riscv: Add MIPS Boston board compatible Aleksa Paunovic via B4 Relay
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Document the MIPS P8700 compatible.

Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml
index 0da219ae6769767a9b7f41f179a3559ae7160d69..c7f1cf1db6eef5b25403d53bca7cffd9bc1f2240 100644
--- a/Documentation/devicetree/bindings/riscv/cpus.yaml
+++ b/Documentation/devicetree/bindings/riscv/cpus.yaml
@@ -48,6 +48,7 @@ properties:
               - amd,mbv64
               - andestech,ax45mp
               - canaan,k210
+              - gf,mips-p8700
               - nuclei,ux900
               - sifive,bullet0
               - sifive,e5

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 3/8] dt-bindings: riscv: Add MIPS Boston board compatible
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
  2026-11-03 15:11 ` [PATCH v2 1/8] dt-bindings: vendor-prefixes: Add GlobalFoundries, Inc Aleksa Paunovic via B4 Relay
  2026-11-03 15:11 ` [PATCH v2 2/8] dt-bindings: riscv: cpus: add gf,mips-p8700 Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 21:43   ` Conor Dooley
  2026-11-03 15:11 ` [PATCH v2 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC Aleksa Paunovic via B4 Relay
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Document the MIPS Boston board compatible with a P8700 bitfile.

Co-developed-by: Djordje Todorovic <djordje.todorovic@htecgroup.com>
Signed-off-by: Djordje Todorovic <djordje.todorovic@htecgroup.com>
Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 Documentation/devicetree/bindings/riscv/gf.yaml | 33 +++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/Documentation/devicetree/bindings/riscv/gf.yaml b/Documentation/devicetree/bindings/riscv/gf.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fbb405abe9b94e3fd40ec61fd50942a30374b7ec
--- /dev/null
+++ b/Documentation/devicetree/bindings/riscv/gf.yaml
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/riscv/gf.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: GlobalFoundries MIPS SoC-based boards
+
+maintainers:
+  - Djordje Todorovic <djordje.todorovic@htecgroup.com>
+  - Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
+
+description:
+  GlobalFoundries MIPS SoC-based boards
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - description: |
+          Boston FPGA development board with a MIPS P8700 bitfile
+
+          The Boston board carries a Xilinx XC7V2000T FPGA and fixed
+          peripherals: a Xilinx AXI PCIe root port, an Intel EG20T PCH,
+          a UART and an ASCII LCD.
+        items:
+          - const: gf,mips-p8700-boston-rtl-5057225-202410011144
+          - const: gf,mips-p8700-boston
+
+additionalProperties: true
+
+...

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
                   ` (2 preceding siblings ...)
  2026-11-03 15:11 ` [PATCH v2 3/8] dt-bindings: riscv: Add MIPS Boston board compatible Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 21:46   ` Conor Dooley
  2026-11-03 15:11 ` [PATCH v2 5/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI Aleksa Paunovic via B4 Relay
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Document the aplic compatible for the MIPS P8700.

Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml b/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml
index 0718071444d29fbfa36283fc9666e8cecd6f77e7..9b986aa1a1c62316a1fd08fe535075111601b80e 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml
@@ -27,6 +27,7 @@ properties:
   compatible:
     items:
       - enum:
+          - gf,mips-p8700-aplic
           - qemu,aplic
           - spacemit,k3-aplic
       - const: riscv,aplic

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 5/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
                   ` (3 preceding siblings ...)
  2026-11-03 15:11 ` [PATCH v2 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 21:51   ` Conor Dooley
  2026-11-03 15:11 ` [PATCH v2 6/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER Aleksa Paunovic via B4 Relay
                   ` (3 subsequent siblings)
  8 siblings, 1 reply; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Document the aclint mswi compatible for the MIPS P8700.

Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 .../bindings/interrupt-controller/thead,c900-aclint-mswi.yaml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml
index 62fd220e126e650e3800d8eee2a749fdbbde6108..ca91b650caab8927b3a4ed91f1f7f142e3790a97 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml
@@ -21,6 +21,7 @@ properties:
           - enum:
               - anlogic,dr1v90-aclint-mswi
           - const: nuclei,ux900-aclint-mswi
+      - const: gf,mips-p8700-aclint-mswi
 
   reg:
     maxItems: 1
@@ -46,4 +47,14 @@ examples:
                             <&cpu4intc 3>;
       reg = <0x94000000 0x00010000>;
     };
+
+  - |
+    mswi@16150000 {
+        compatible = "gf,mips-p8700-aclint-mswi";
+        reg = <0x16150000 0x4000>;
+        interrupts-extended = <&cpu1intc 3>,
+                              <&cpu2intc 3>,
+                              <&cpu3intc 3>,
+                              <&cpu4intc 3>;
+    };
 ...

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 6/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
                   ` (4 preceding siblings ...)
  2026-11-03 15:11 ` [PATCH v2 5/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 21:49   ` Conor Dooley
  2026-11-03 15:11 ` [PATCH v2 7/8] riscv: dts: gf: Initial support for the P8700 Boston board Aleksa Paunovic via B4 Relay
                   ` (2 subsequent siblings)
  8 siblings, 1 reply; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Document the MIPS P8700 ACLINT MTIMER.
Extend support for both mtimecmp and mtime registers
within the ACLINT MTIMER, identified via reg-names.

Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 .../bindings/timer/thead,c900-aclint-mtimer.yaml   | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
index cf7c82e980f674afcf59fc726742dc4f49c1a820..40acb651c27b7eaa8a20caa8bbc225b350088810 100644
--- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
+++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
@@ -21,14 +21,19 @@ properties:
           - enum:
               - anlogic,dr1v90-aclint-mtimer
           - const: nuclei,ux900-aclint-mtimer
+      - const: gf,mips-p8700-aclint-mtimer
 
   reg:
+    minItems: 1
     items:
       - description: MTIMECMP Registers
+      - description: MTIME Registers
 
   reg-names:
+    minItems: 1
     items:
       - const: mtimecmp
+      - const: mtime
 
   interrupts-extended:
     minItems: 1
@@ -42,6 +47,25 @@ required:
   - reg-names
   - interrupts-extended
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: gf,mips-p8700-aclint-mtimer
+    then:
+      properties:
+        reg:
+          minItems: 2
+        reg-names:
+          minItems: 2
+    else:
+      properties:
+        reg:
+          maxItems: 1
+        reg-names:
+          maxItems: 1
+
 examples:
   - |
     timer@ac000000 {
@@ -53,4 +77,15 @@ examples:
       reg = <0xac000000 0x00010000>;
       reg-names = "mtimecmp";
     };
+
+  - |
+    timer@16154000 {
+        compatible = "gf,mips-p8700-aclint-mtimer";
+        reg = <0x16154000 0x7ff8>, <0x16108050 0x8>;
+        reg-names = "mtimecmp", "mtime";
+        interrupts-extended = <&cpu1intc 7>,
+                              <&cpu2intc 7>,
+                              <&cpu3intc 7>,
+                              <&cpu4intc 7>;
+    };
 ...

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 7/8] riscv: dts: gf: Initial support for the P8700 Boston board
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
                   ` (5 preceding siblings ...)
  2026-11-03 15:11 ` [PATCH v2 6/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 21:51   ` Conor Dooley
  2026-11-03 15:11 ` [PATCH v2 8/8] riscv: defconfig: Enable GF SoCs Aleksa Paunovic via B4 Relay
  2026-11-03 21:59 ` [PATCH v2 0/8] Add support for MIPS P8700 Conor Dooley
  8 siblings, 1 reply; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Add initial device tree for the MIPS P8700 and the device tree
for the Boston FPGA development board with a MIPS P8700 bitfile.

Add related Makefile and KCONFIG changes.

Co-developed-by: Djordje Todorovic <djordje.todorovic@htecgroup.com>
Signed-off-by: Djordje Todorovic <djordje.todorovic@htecgroup.com>
Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 arch/riscv/Kconfig.socs                 |   6 ++
 arch/riscv/boot/dts/Makefile            |   1 +
 arch/riscv/boot/dts/gf/Makefile         |   2 +
 arch/riscv/boot/dts/gf/p8700-boston.dts | 135 ++++++++++++++++++++++++++++++++
 arch/riscv/boot/dts/gf/p8700.dtsi       |  82 +++++++++++++++++++
 5 files changed, 226 insertions(+)

diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
index 429e0758930687c742c4dd09603e71e90dc096a2..78b0a0076feb14ebdafc4b7f0fa1be3aa416d415 100644
--- a/arch/riscv/Kconfig.socs
+++ b/arch/riscv/Kconfig.socs
@@ -18,6 +18,12 @@ config ARCH_ESWIN
 	  This enables support for ESWIN SoC platform hardware,
 	  including the ESWIN EIC7700 SoC.
 
+config ARCH_GF
+	bool "GlobalFoundries SoCs"
+	help
+	  This enables support for GlobalFoundries SoC platform hardware,
+	  including the MIPS P8700.
+
 config ARCH_MICROCHIP_POLARFIRE
 	def_bool ARCH_MICROCHIP
 
diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile
index 69d8751fb17c803f0efb8003e111ee24144c222b..5d8d55c4cf9d0b17f2a8744aa17526819e6c277a 100644
--- a/arch/riscv/boot/dts/Makefile
+++ b/arch/riscv/boot/dts/Makefile
@@ -4,6 +4,7 @@ subdir-y += andes
 subdir-y += anlogic
 subdir-y += canaan
 subdir-y += eswin
+subdir-y += gf
 subdir-y += microchip
 subdir-y += renesas
 subdir-y += sifive
diff --git a/arch/riscv/boot/dts/gf/Makefile b/arch/riscv/boot/dts/gf/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..180d7cc7f5cf87e48e2219f9ac9882828ca62016
--- /dev/null
+++ b/arch/riscv/boot/dts/gf/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_GF) += p8700-boston.dtb
diff --git a/arch/riscv/boot/dts/gf/p8700-boston.dts b/arch/riscv/boot/dts/gf/p8700-boston.dts
new file mode 100644
index 0000000000000000000000000000000000000000..635658e4398a123ad00917e392977045b524f976
--- /dev/null
+++ b/arch/riscv/boot/dts/gf/p8700-boston.dts
@@ -0,0 +1,135 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Copyright (C) 2025 MIPS
+ *
+ * Boston FPGA development board with a MIPS P8700 bitfile.
+ */
+
+/dts-v1/;
+
+#include "p8700.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/* Clock frequency (in Hz) of the FPGA bitfile */
+#define BITFILE_FREQ	25000000
+
+/ {
+	model = "MIPS P8700 Boston";
+	compatible = "gf,mips-p8700-boston-rtl-5057225-202410011144",
+		     "gf,mips-p8700-boston";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	cpus {
+		timebase-frequency = <BITFILE_FREQ>;
+	};
+
+	memory@80000000 {
+		device_type = "memory";
+		reg = <0x80000000 0x80000000>;
+	};
+
+	pci2: pci@14000000 {
+		compatible = "xlnx,axi-pcie-host-1.00.a";
+		device_type = "pci";
+		reg = <0x14000000 0x2000000>;
+
+		#address-cells = <3>;
+		#size-cells = <2>;
+		#interrupt-cells = <1>;
+
+		interrupt-parent = <&aplic_s0>;
+		interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
+
+		ranges = <0x02000000 0 0x16000000
+			  0x16000000 0 0x100000>;
+
+		bus-range = <0x00 0xff>;
+
+		interrupt-map-mask = <0 0 0 7>;
+		interrupt-map = <0 0 0 1 &pci2_intc 1>,
+				<0 0 0 2 &pci2_intc 2>,
+				<0 0 0 3 &pci2_intc 3>,
+				<0 0 0 4 &pci2_intc 4>;
+
+		pci2_intc: interrupt-controller {
+			interrupt-controller;
+			#address-cells = <0>;
+			#interrupt-cells = <1>;
+		};
+
+		pci2_root@0,0 {
+			compatible = "pci10ee,7021";
+			reg = <0x00000000 0 0 0 0>;
+
+			#address-cells = <3>;
+			#size-cells = <2>;
+
+			eg20t_bridge@1,0,0 {
+				compatible = "pci8086,8800";
+				reg = <0x00010000 0 0 0 0>;
+
+				#address-cells = <3>;
+				#size-cells = <2>;
+
+				eg20t_mac@2,0,1 {
+					compatible = "pci8086,8802";
+					reg = <0x00020100 0 0 0 0>;
+					phy-reset-gpios = <&eg20t_gpio 6 GPIO_ACTIVE_LOW>;
+				};
+
+				eg20t_gpio: eg20t_gpio@2,0,2 {
+					compatible = "pci8086,8803";
+					reg = <0x00020200 0 0 0 0>;
+
+					gpio-controller;
+					#gpio-cells = <2>;
+				};
+
+				eg20t_i2c@2,12,2 {
+					compatible = "pci8086,8817";
+					reg = <0x00026200 0 0 0 0>;
+
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					rtc@68 {
+						compatible = "st,m41t81s";
+						reg = <0x68>;
+					};
+				};
+			};
+		};
+	};
+
+	uart0: serial@17ffe000 {
+		compatible = "ns16550a";
+		reg = <0x17ffe000 0x1000>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+
+		interrupt-parent = <&aplic_s0>;
+		interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
+
+		clock-frequency = <BITFILE_FREQ>;
+	};
+
+	lcd: lcd@17fff000 {
+		compatible = "img,boston-lcd";
+		reg = <0x17fff000 0x8>;
+	};
+
+	flash@18000000 {
+		compatible = "cfi-flash";
+		reg = <0x18000000 0x8000000>;
+		bank-width = <2>;
+	};
+};
diff --git a/arch/riscv/boot/dts/gf/p8700.dtsi b/arch/riscv/boot/dts/gf/p8700.dtsi
new file mode 100644
index 0000000000000000000000000000000000000000..c73fb26075e978c7f80c6741a4ff0c21b7af66c9
--- /dev/null
+++ b/arch/riscv/boot/dts/gf/p8700.dtsi
@@ -0,0 +1,82 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Copyright (C) 2025 MIPS
+ */
+
+/ {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu0: cpu@0 {
+			device_type = "cpu";
+			compatible = "gf,mips-p8700", "riscv";
+			reg = <0x0>;
+			mmu-type = "riscv,sv39";
+			riscv,isa-base = "rv64i";
+			riscv,isa-extensions = "i", "m", "a", "f", "d", "c",
+					       "zicntr", "zicsr", "zifencei",
+					       "zihpm", "zba", "zbb",
+					       "xmipsexectl";
+
+			cpu0_intc: interrupt-controller {
+				compatible = "riscv,cpu-intc";
+				interrupt-controller;
+				#interrupt-cells = <1>;
+			};
+		};
+	};
+
+	soc: soc {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		aplic_m0: interrupt-controller@16140000 {
+			compatible = "gf,mips-p8700-aplic", "riscv,aplic";
+			reg = <0x16140000 0x8000>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			interrupts-extended = <&cpu0_intc 11>;
+			riscv,num-sources = <53>;
+			riscv,children = <&aplic_s0>;
+			riscv,delegation = <&aplic_s0 1 53>;
+		};
+
+		mswi0: mswi@16150000 {
+			compatible = "gf,mips-p8700-aclint-mswi";
+			reg = <0x16150000 0x4000>;
+			interrupts-extended = <&cpu0_intc 3>;
+		};
+
+		mtimer0: timer@16154000 {
+			compatible = "gf,mips-p8700-aclint-mtimer";
+			reg = <0x16154000 0x7ff8>,
+			      <0x16108050 0x8>;
+			reg-names = "mtimecmp", "mtime";
+			interrupts-extended = <&cpu0_intc 7>;
+		};
+
+		aplic_s0: interrupt-controller@16160000 {
+			compatible = "gf,mips-p8700-aplic", "riscv,aplic";
+			reg = <0x16160000 0x8000>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			interrupts-extended = <&cpu0_intc 9>;
+			riscv,num-sources = <53>;
+		};
+
+		sswi0: interrupt-controller@1616c000 {
+			compatible = "mips,p8700-aclint-sswi";
+			reg = <0x1616c000 0x4000>;
+			interrupt-controller;
+			#interrupt-cells = <0>;
+			interrupts-extended = <&cpu0_intc 1>;
+			riscv,hart-indexes = <0x0>;
+		};
+	};
+};

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH v2 8/8] riscv: defconfig: Enable GF SoCs
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
                   ` (6 preceding siblings ...)
  2026-11-03 15:11 ` [PATCH v2 7/8] riscv: dts: gf: Initial support for the P8700 Boston board Aleksa Paunovic via B4 Relay
@ 2026-11-03 15:11 ` Aleksa Paunovic via B4 Relay
  2026-11-03 21:47   ` Conor Dooley
  2026-11-03 21:59 ` [PATCH v2 0/8] Add support for MIPS P8700 Conor Dooley
  8 siblings, 1 reply; 17+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-03 15:11 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano
  Cc: devicetree, linux-kernel, Paul Walmsley, Palmer Dabbelt,
	Conor Dooley, linux-riscv, Vladimir Kondratiev, Paul Walmsley,
	Palmer Dabbelt, Aleksa Paunovic

From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Build the MIPS P8700 Boston dtb by default.

Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
 arch/riscv/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index 04ae305d5511bb0760247f50d4b69b1e3a00527b..eeac96a0ec878a2d0aa0887d7a7ce71207774a23 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/configs/defconfig
@@ -25,6 +25,7 @@ CONFIG_PROFILING=y
 CONFIG_ARCH_ANDES=y
 CONFIG_ARCH_ANLOGIC=y
 CONFIG_ARCH_ESWIN=y
+CONFIG_ARCH_GF=y
 CONFIG_ARCH_MICROCHIP=y
 CONFIG_ARCH_SIFIVE=y
 CONFIG_ARCH_SOPHGO=y

-- 
2.43.0



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 3/8] dt-bindings: riscv: Add MIPS Boston board compatible
  2026-11-03 15:11 ` [PATCH v2 3/8] dt-bindings: riscv: Add MIPS Boston board compatible Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:43   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:43 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 75 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC
  2026-11-03 15:11 ` [PATCH v2 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:46   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:46 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]

On Tue, Nov 03, 2026 at 04:11:28PM +0100, Aleksa Paunovic via B4 Relay wrote:
> From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
> 
> Document the aplic compatible for the MIPS P8700.
> 
> Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
> ---
>  Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml b/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml
> index 0718071444d29fbfa36283fc9666e8cecd6f77e7..9b986aa1a1c62316a1fd08fe535075111601b80e 100644
> --- a/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml
> +++ b/Documentation/devicetree/bindings/interrupt-controller/riscv,aplic.yaml
> @@ -27,6 +27,7 @@ properties:
>    compatible:
>      items:
>        - enum:
> +          - gf,mips-p8700-aplic

tbh, I don't like this because other devices on this "soc" are using
mips,p8700-aplic and so I think this should be gf,p8700-aplic but I
don't really care that much.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

>            - qemu,aplic
>            - spacemit,k3-aplic
>        - const: riscv,aplic
> 
> -- 
> 2.43.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 2/8] dt-bindings: riscv: cpus: add gf,mips-p8700
  2026-11-03 15:11 ` [PATCH v2 2/8] dt-bindings: riscv: cpus: add gf,mips-p8700 Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:46   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:46 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]

On Tue, Nov 03, 2026 at 04:11:26PM +0100, Aleksa Paunovic via B4 Relay wrote:
> From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
> 
> Document the MIPS P8700 compatible.

Same comment here.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

> 
> Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
> ---
>  Documentation/devicetree/bindings/riscv/cpus.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml
> index 0da219ae6769767a9b7f41f179a3559ae7160d69..c7f1cf1db6eef5b25403d53bca7cffd9bc1f2240 100644
> --- a/Documentation/devicetree/bindings/riscv/cpus.yaml
> +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml
> @@ -48,6 +48,7 @@ properties:
>                - amd,mbv64
>                - andestech,ax45mp
>                - canaan,k210
> +              - gf,mips-p8700
>                - nuclei,ux900
>                - sifive,bullet0
>                - sifive,e5
> 
> -- 
> 2.43.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 8/8] riscv: defconfig: Enable GF SoCs
  2026-11-03 15:11 ` [PATCH v2 8/8] riscv: defconfig: Enable GF SoCs Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:47   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:47 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 53 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 6/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER
  2026-11-03 15:11 ` [PATCH v2 6/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:49   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:49 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 2615 bytes --]

On Tue, Nov 03, 2026 at 04:11:30PM +0100, Aleksa Paunovic via B4 Relay wrote:
> From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
> 
> Document the MIPS P8700 ACLINT MTIMER.
> Extend support for both mtimecmp and mtime registers
> within the ACLINT MTIMER, identified via reg-names.
> 
> Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Same comments here too.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

> ---
>  .../bindings/timer/thead,c900-aclint-mtimer.yaml   | 35 ++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
> index cf7c82e980f674afcf59fc726742dc4f49c1a820..40acb651c27b7eaa8a20caa8bbc225b350088810 100644
> --- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
> +++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
> @@ -21,14 +21,19 @@ properties:
>            - enum:
>                - anlogic,dr1v90-aclint-mtimer
>            - const: nuclei,ux900-aclint-mtimer
> +      - const: gf,mips-p8700-aclint-mtimer
>  
>    reg:
> +    minItems: 1
>      items:
>        - description: MTIMECMP Registers
> +      - description: MTIME Registers
>  
>    reg-names:
> +    minItems: 1
>      items:
>        - const: mtimecmp
> +      - const: mtime
>  
>    interrupts-extended:
>      minItems: 1
> @@ -42,6 +47,25 @@ required:
>    - reg-names
>    - interrupts-extended
>  
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: gf,mips-p8700-aclint-mtimer
> +    then:
> +      properties:
> +        reg:
> +          minItems: 2
> +        reg-names:
> +          minItems: 2
> +    else:
> +      properties:
> +        reg:
> +          maxItems: 1
> +        reg-names:
> +          maxItems: 1
> +
>  examples:
>    - |
>      timer@ac000000 {
> @@ -53,4 +77,15 @@ examples:
>        reg = <0xac000000 0x00010000>;
>        reg-names = "mtimecmp";
>      };
> +
> +  - |
> +    timer@16154000 {
> +        compatible = "gf,mips-p8700-aclint-mtimer";
> +        reg = <0x16154000 0x7ff8>, <0x16108050 0x8>;
> +        reg-names = "mtimecmp", "mtime";
> +        interrupts-extended = <&cpu1intc 7>,
> +                              <&cpu2intc 7>,
> +                              <&cpu3intc 7>,
> +                              <&cpu4intc 7>;
> +    };
>  ...
> 
> -- 
> 2.43.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 7/8] riscv: dts: gf: Initial support for the P8700 Boston board
  2026-11-03 15:11 ` [PATCH v2 7/8] riscv: dts: gf: Initial support for the P8700 Boston board Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:51   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:51 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]


> +			compatible = "gf,mips-p8700", "riscv";

> +			compatible = "gf,mips-p8700-aplic", "riscv,aplic";

> +			compatible = "gf,mips-p8700-aclint-mswi";

> +			compatible = "gf,mips-p8700-aclint-mtimer";

> +			compatible = "gf,mips-p8700-aplic", "riscv,aplic";

> +			compatible = "mips,p8700-aclint-sswi";

ngl, it'd look less stupid if you just called the whole thing
mips,p8700-foo...


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 5/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI
  2026-11-03 15:11 ` [PATCH v2 5/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:51   ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:51 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

On Tue, Nov 03, 2026 at 04:11:29PM +0100, Aleksa Paunovic via B4 Relay wrote:
> From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
> 
> Document the aclint mswi compatible for the MIPS P8700.
> 
> Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>

Again, same comment :)

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

> ---
>  .../bindings/interrupt-controller/thead,c900-aclint-mswi.yaml | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml
> index 62fd220e126e650e3800d8eee2a749fdbbde6108..ca91b650caab8927b3a4ed91f1f7f142e3790a97 100644
> --- a/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml
> +++ b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml
> @@ -21,6 +21,7 @@ properties:
>            - enum:
>                - anlogic,dr1v90-aclint-mswi
>            - const: nuclei,ux900-aclint-mswi
> +      - const: gf,mips-p8700-aclint-mswi
>  
>    reg:
>      maxItems: 1
> @@ -46,4 +47,14 @@ examples:
>                              <&cpu4intc 3>;
>        reg = <0x94000000 0x00010000>;
>      };
> +
> +  - |
> +    mswi@16150000 {
> +        compatible = "gf,mips-p8700-aclint-mswi";
> +        reg = <0x16150000 0x4000>;
> +        interrupts-extended = <&cpu1intc 3>,
> +                              <&cpu2intc 3>,
> +                              <&cpu3intc 3>,
> +                              <&cpu4intc 3>;
> +    };
>  ...
> 
> -- 
> 2.43.0
> 
> 
> 
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH v2 0/8] Add support for MIPS P8700
  2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
                   ` (7 preceding siblings ...)
  2026-11-03 15:11 ` [PATCH v2 8/8] riscv: defconfig: Enable GF SoCs Aleksa Paunovic via B4 Relay
@ 2026-11-03 21:59 ` Conor Dooley
  8 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2026-11-03 21:59 UTC (permalink / raw)
  To: aleksa.paunovic
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Djordje Todorovic,
	Anup Patel, Thomas Gleixner, Radu Rendec, Inochi Amaoto,
	Daniel Lezcano, devicetree, linux-kernel, linux-riscv,
	Vladimir Kondratiev, Paul Walmsley, Palmer Dabbelt, Conor Dooley

[-- Attachment #1: Type: text/plain, Size: 4474 bytes --]

On Tue, Nov 03, 2026 at 04:11:24PM +0100, Aleksa Paunovic via B4 Relay wrote:
> The MIPS P8700 is a multi-core RISC-V microprocessor system, supporting
> both single-cluster and multi-cluster configurations. [1]
> This series adds full description of the platform,
> including the Boston FPGA board configured with a P8700 bitfile.
> 
> The P8700 cores support the RV64GCZba_Zbb (G = IMAFD) Standard ISA,
> with a caveat: the A extension is only partially supported, and all ZAAMO
> extension instructions are emulated on the SBI level. The device tree
> intentionally does not reflect this fact. Vladimir Kondratiev's series
> improves performance by directly substituting AMO instructions with LR/SC. [4]
> The two patchsets do not depend on one another.
> 
> The board itself is the same board as 'img,boston', configured with a different
> bitfile [3]. The Boston board has been supported since commit 6e62a888029b
> ("MIPS: generic: Support MIPS Boston development boards") (thanks to Maciej for finding the ref).
> 
> GlobalFoundries has acquired MIPS [2] and the vendor prefix
> for all newly added MIPS RISC-V hardware reflects that fact.
> 
> I tested this series both on QEMU and a Boston board
> configured with a single P8700 CPU,
> after applying the necessary U-Boot and OpenSBI changes
> to match the 'compatible' strings and the changed MTIMER register order.
> We are planning to upstream these as well.
> 
> Links:
> [1] https://mips.com/wp-content/uploads/2025/11/P8700-F_Programmers_Reference_Manual-TM.pdf
> [2] https://gf.com/news-and-events/news/globalfoundries-completes-acquisition-of-mips/
> [3] https://training.mips.com/cps_mips/Examples/MD00901_Boot-MIPS_Example_Boot_Code_for_MIPS_Cores.pdf
> [4] https://lore.kernel.org/all/20261026-lrsc-only-v3-0-ec29c8190fb1@mobileye.com/
> 
> Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
> ---
> Changes in v2:
> - Patch 1: Replace "MIPS Technology" with "MIPS Technologies".
> - Patch 3: Name the FPGA used and add the versioned bitfile compatible.
> - Patch 5: Drop hart indexes from MSWI.
> - Patch 6: Swap mtimecmp and mtime, require reg-names both for mtime and mtimecmp on P8700.
> - Original patch 7: Dropped.
> - Patch 7 (previously 8): Remove additional harts that are not
>   present in the bitfile I have. Reflect changes made in patches 3, 5 and 6.
>   Remove riscv,cbom-block-size. Drop undocumented compatibles. Other minor changes.
> - Link to v1: https://lore.kernel.org/r/20260914-p8700-dts-v1-0-3267f14ebce1@htecgroup.com
> 
> ---
> Aleksa Paunovic (8):
>       dt-bindings: vendor-prefixes: Add GlobalFoundries, Inc.
>       dt-bindings: riscv: cpus: add gf,mips-p8700
>       dt-bindings: riscv: Add MIPS Boston board compatible
>       dt-bindings: interrupt-controller: Add MIPS P8700 APLIC
>       dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI
>       dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER
>       riscv: dts: gf: Initial support for the P8700 Boston board
>       riscv: defconfig: Enable GF SoCs
> 
>  .../bindings/interrupt-controller/riscv,aplic.yaml |   1 +
>  .../thead,c900-aclint-mswi.yaml                    |  11 ++
>  Documentation/devicetree/bindings/riscv/cpus.yaml  |   1 +
>  Documentation/devicetree/bindings/riscv/gf.yaml    |  33 +++++
>  .../bindings/timer/thead,c900-aclint-mtimer.yaml   |  35 ++++++
>  .../devicetree/bindings/vendor-prefixes.yaml       |   4 +-
>  arch/riscv/Kconfig.socs                            |   6 +
>  arch/riscv/boot/dts/Makefile                       |   1 +
>  arch/riscv/boot/dts/gf/Makefile                    |   2 +
>  arch/riscv/boot/dts/gf/p8700-boston.dts            | 135 +++++++++++++++++++++
>  arch/riscv/boot/dts/gf/p8700.dtsi                  |  82 +++++++++++++
>  arch/riscv/configs/defconfig                       |   1 +
>  12 files changed, 311 insertions(+), 1 deletion(-)

You're missing a MAINTAINERS entry for the platform, since someone is
going to have to pick up the patches for the arch/riscv/boot/dts/gf and
that someone is neither Palmer nor Paul.
See Documentation/process/maintainer-soc.rst for more info.

I'd apply patches as a very last resort, but even then you'd need an entry
to make sure that you're CCed on patches for the platform because I
don't care about the platform and would just apply things that look
correct if there was no reviews provided.

Cheers,
Conor.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-11-03 21:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 15:11 [PATCH v2 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
2026-11-03 15:11 ` [PATCH v2 1/8] dt-bindings: vendor-prefixes: Add GlobalFoundries, Inc Aleksa Paunovic via B4 Relay
2026-11-03 15:11 ` [PATCH v2 2/8] dt-bindings: riscv: cpus: add gf,mips-p8700 Aleksa Paunovic via B4 Relay
2026-11-03 21:46   ` Conor Dooley
2026-11-03 15:11 ` [PATCH v2 3/8] dt-bindings: riscv: Add MIPS Boston board compatible Aleksa Paunovic via B4 Relay
2026-11-03 21:43   ` Conor Dooley
2026-11-03 15:11 ` [PATCH v2 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC Aleksa Paunovic via B4 Relay
2026-11-03 21:46   ` Conor Dooley
2026-11-03 15:11 ` [PATCH v2 5/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI Aleksa Paunovic via B4 Relay
2026-11-03 21:51   ` Conor Dooley
2026-11-03 15:11 ` [PATCH v2 6/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER Aleksa Paunovic via B4 Relay
2026-11-03 21:49   ` Conor Dooley
2026-11-03 15:11 ` [PATCH v2 7/8] riscv: dts: gf: Initial support for the P8700 Boston board Aleksa Paunovic via B4 Relay
2026-11-03 21:51   ` Conor Dooley
2026-11-03 15:11 ` [PATCH v2 8/8] riscv: defconfig: Enable GF SoCs Aleksa Paunovic via B4 Relay
2026-11-03 21:47   ` Conor Dooley
2026-11-03 21:59 ` [PATCH v2 0/8] Add support for MIPS P8700 Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®