* [PATCH v4 1/8] dt-bindings: riscv: cpus: add mips,p8700
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:46 ` Aleksa Paunovic via B4 Relay
2026-11-23 14:46 ` [PATCH v4 2/8] dt-bindings: riscv: Add MIPS Boston board compatible Aleksa Paunovic via B4 Relay
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:46 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, Joel Stanley, Aleksa Paunovic, Conor Dooley
From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
Document the MIPS P8700 compatible.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
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..3e7016687fb67c53856310f97f4ba587ba6b89e0 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
+ - mips,p8700
- nuclei,ux900
- sifive,bullet0
- sifive,e5
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH v4 2/8] dt-bindings: riscv: Add MIPS Boston board compatible
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
2026-11-23 14:46 ` [PATCH v4 1/8] dt-bindings: riscv: cpus: add mips,p8700 Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:46 ` Aleksa Paunovic via B4 Relay
2026-11-23 14:46 ` [PATCH v4 3/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC Aleksa Paunovic via B4 Relay
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:46 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, Joel Stanley, Aleksa Paunovic, Conor Dooley
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>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
Documentation/devicetree/bindings/riscv/mips.yaml | 33 +++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/Documentation/devicetree/bindings/riscv/mips.yaml b/Documentation/devicetree/bindings/riscv/mips.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..bb251a7b1bcc762876fb94f0b636415774024183
--- /dev/null
+++ b/Documentation/devicetree/bindings/riscv/mips.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/mips.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MIPS SoC-based boards
+
+maintainers:
+ - Djordje Todorovic <djordje.todorovic@htecgroup.com>
+ - Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
+
+description:
+ 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: mips,p8700-boston-rtl-5057225-202410011144
+ - const: mips,p8700-boston
+
+additionalProperties: true
+
+...
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH v4 3/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
2026-11-23 14:46 ` [PATCH v4 1/8] dt-bindings: riscv: cpus: add mips,p8700 Aleksa Paunovic via B4 Relay
2026-11-23 14:46 ` [PATCH v4 2/8] dt-bindings: riscv: Add MIPS Boston board compatible Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:46 ` Aleksa Paunovic via B4 Relay
2026-11-23 14:46 ` [PATCH v4 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI Aleksa Paunovic via B4 Relay
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:46 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, Joel Stanley, Aleksa Paunovic, Conor Dooley
From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
Document the aplic compatible for the MIPS P8700.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
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..2ab60031ac5d2379a361dfa2bb334796472cf039 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:
+ - mips,p8700-aplic
- qemu,aplic
- spacemit,k3-aplic
- const: riscv,aplic
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH v4 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
` (2 preceding siblings ...)
2026-11-23 14:46 ` [PATCH v4 3/8] dt-bindings: interrupt-controller: Add MIPS P8700 APLIC Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:46 ` Aleksa Paunovic via B4 Relay
2026-11-23 14:47 ` [PATCH v4 5/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER Aleksa Paunovic via B4 Relay
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:46 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, Joel Stanley, Aleksa Paunovic, Conor Dooley
From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
Document the aclint mswi compatible for the MIPS P8700.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
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..3255ea666e1560ccca239264786fa49d444e8101 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: mips,p8700-aclint-mswi
reg:
maxItems: 1
@@ -46,4 +47,14 @@ examples:
<&cpu4intc 3>;
reg = <0x94000000 0x00010000>;
};
+
+ - |
+ mswi@16150000 {
+ compatible = "mips,p8700-aclint-mswi";
+ reg = <0x16150000 0x4000>;
+ interrupts-extended = <&cpu1intc 3>,
+ <&cpu2intc 3>,
+ <&cpu3intc 3>,
+ <&cpu4intc 3>;
+ };
...
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH v4 5/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
` (3 preceding siblings ...)
2026-11-23 14:46 ` [PATCH v4 4/8] dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:47 ` Aleksa Paunovic via B4 Relay
2026-11-23 14:47 ` [PATCH v4 6/8] riscv: dts: mips: Initial support for the P8700 Boston board Aleksa Paunovic via B4 Relay
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:47 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, Joel Stanley, Aleksa Paunovic, Conor Dooley
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.
When both registers are present, the order is fixed to
mtime first and mtimecmp second because both OpenSBI
and U-Boot expect this behavior of the riscv,aclint-mtimer compatible.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
.../bindings/timer/thead,c900-aclint-mtimer.yaml | 39 ++++++++++++++++++++++
1 file changed, 39 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..e74816c171d9e9b3417806c531969085d260977a 100644
--- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
+++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml
@@ -21,13 +21,19 @@ properties:
- enum:
- anlogic,dr1v90-aclint-mtimer
- const: nuclei,ux900-aclint-mtimer
+ - const: mips,p8700-aclint-mtimer
reg:
+ minItems: 1
items:
+ - description: MTIME Registers, or MTIMECMP Registers if only one
+ region is present
- description: MTIMECMP Registers
reg-names:
+ minItems: 1
items:
+ - enum: [ mtime, mtimecmp ]
- const: mtimecmp
interrupts-extended:
@@ -42,6 +48,28 @@ required:
- reg-names
- interrupts-extended
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: mips,p8700-aclint-mtimer
+ then:
+ properties:
+ reg:
+ minItems: 2
+ reg-names:
+ items:
+ - const: mtime
+ - const: mtimecmp
+ else:
+ properties:
+ reg:
+ maxItems: 1
+ reg-names:
+ items:
+ - const: mtimecmp
+
examples:
- |
timer@ac000000 {
@@ -53,4 +81,15 @@ examples:
reg = <0xac000000 0x00010000>;
reg-names = "mtimecmp";
};
+
+ - |
+ timer@16108050 {
+ compatible = "mips,p8700-aclint-mtimer";
+ reg = <0x16108050 0x8>, <0x16154000 0x7ff8>;
+ reg-names = "mtime", "mtimecmp";
+ interrupts-extended = <&cpu1intc 7>,
+ <&cpu2intc 7>,
+ <&cpu3intc 7>,
+ <&cpu4intc 7>;
+ };
...
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH v4 6/8] riscv: dts: mips: Initial support for the P8700 Boston board
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
` (4 preceding siblings ...)
2026-11-23 14:47 ` [PATCH v4 5/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:47 ` Aleksa Paunovic via B4 Relay
2026-11-23 15:06 ` sashiko-bot
2026-11-23 14:47 ` [PATCH v4 7/8] MAINTAINERS: Add entry for MIPS RISC-V SoC support Aleksa Paunovic via B4 Relay
2026-11-23 14:47 ` [PATCH v4 8/8] riscv: defconfig: Enable MIPS SoCs Aleksa Paunovic via B4 Relay
7 siblings, 1 reply; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:47 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, Joel Stanley, 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/mips/Makefile | 2 +
arch/riscv/boot/dts/mips/p8700-boston.dts | 135 ++++++++++++++++++++++++++++++
arch/riscv/boot/dts/mips/p8700.dtsi | 82 ++++++++++++++++++
5 files changed, 226 insertions(+)
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
index 429e0758930687c742c4dd09603e71e90dc096a2..2562b74f85969b52a7e22679322951f5fd8884a9 100644
--- a/arch/riscv/Kconfig.socs
+++ b/arch/riscv/Kconfig.socs
@@ -26,6 +26,12 @@ config ARCH_MICROCHIP
help
This enables support for Microchip SoC platforms.
+config ARCH_MIPS
+ bool "MIPS SoCs"
+ help
+ This enables support for MIPS SoC platform hardware,
+ including the P8700.
+
config ARCH_RENESAS
bool "Renesas RISC-V SoCs"
help
diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile
index 69d8751fb17c803f0efb8003e111ee24144c222b..6669ddd10f1ec3a2b0323cd0b460d48ae56edd2e 100644
--- a/arch/riscv/boot/dts/Makefile
+++ b/arch/riscv/boot/dts/Makefile
@@ -5,6 +5,7 @@ subdir-y += anlogic
subdir-y += canaan
subdir-y += eswin
subdir-y += microchip
+subdir-y += mips
subdir-y += renesas
subdir-y += sifive
subdir-y += sophgo
diff --git a/arch/riscv/boot/dts/mips/Makefile b/arch/riscv/boot/dts/mips/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..a1f3a8ed427342042a3ec176d3cb41c8dbb8926a
--- /dev/null
+++ b/arch/riscv/boot/dts/mips/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+dtb-$(CONFIG_ARCH_MIPS) += p8700-boston.dtb
diff --git a/arch/riscv/boot/dts/mips/p8700-boston.dts b/arch/riscv/boot/dts/mips/p8700-boston.dts
new file mode 100644
index 0000000000000000000000000000000000000000..4383ef7cec152a6d43aaf24fea9fdf266ee288d8
--- /dev/null
+++ b/arch/riscv/boot/dts/mips/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 = "mips,p8700-boston-rtl-5057225-202410011144",
+ "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/mips/p8700.dtsi b/arch/riscv/boot/dts/mips/p8700.dtsi
new file mode 100644
index 0000000000000000000000000000000000000000..94536e7e6e87998486f919a2962ee1da4d2c596b
--- /dev/null
+++ b/arch/riscv/boot/dts/mips/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 = "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;
+
+ mtimer0: timer@16108050 {
+ compatible = "mips,p8700-aclint-mtimer";
+ reg = <0x16108050 0x8>,
+ <0x16154000 0x7ff8>;
+ reg-names = "mtime", "mtimecmp";
+ interrupts-extended = <&cpu0_intc 7>;
+ };
+
+ aplic_m0: interrupt-controller@16140000 {
+ compatible = "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 = "mips,p8700-aclint-mswi";
+ reg = <0x16150000 0x4000>;
+ interrupts-extended = <&cpu0_intc 3>;
+ };
+
+ aplic_s0: interrupt-controller@16160000 {
+ compatible = "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 related [flat|nested] 10+ messages in thread* Re: [PATCH v4 6/8] riscv: dts: mips: Initial support for the P8700 Boston board
2026-11-23 14:47 ` [PATCH v4 6/8] riscv: dts: mips: Initial support for the P8700 Boston board Aleksa Paunovic via B4 Relay
@ 2026-11-23 15:06 ` sashiko-bot
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-11-23 15:06 UTC (permalink / raw)
To: Aleksa Paunovic; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] riscv: dts: mips: non-generic PCI node names and invalid unit
addresses
--
commit 79c2f7a61a39f331205c23d7c6c9e68fb0be373c
Author: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
riscv: dts: mips: Initial support for the P8700 Boston board
This commit adds the initial device tree for the MIPS P8700 SoC and the
Boston FPGA development board, along with the corresponding Kconfig and
Makefile entries.
> diff --git a/arch/riscv/boot/dts/mips/p8700-boston.dts b/arch/riscv/boot/dts/mips/p8700-boston.dts
> new file mode 100644
> index 0000000000000..4383ef7cec152
> --- /dev/null
> +++ b/arch/riscv/boot/dts/mips/p8700-boston.dts
> @@ -0,0 +1,135 @@
[ ... ]
> + 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>;
[Severity: Low]
Should the PCI child nodes under pci@14000000 use generic node names,
standard PCI unit addresses, and include device_type = "pci" and ranges on
the PCI bridges?
The underscore-separated names (pci2_root, eg20t_bridge, eg20t_mac,
eg20t_gpio, eg20t_i2c) trigger dtc W=2 warnings, fail dtbs_check against
xlnx,axi-pcie-host.yaml (which expects generic names such as pci,
ethernet, gpio, and i2c), and prevent dtc and dtschema from recognizing
eg20t_i2c as an I2C bus.
In addition, PCI unit addresses take the hex form <dev> or <dev>,<func>
without the bus number (so @1,0,0, @2,0,1, @2,0,2, and @2,12,2 with
decimal 12 should be @0, @0,1, @0,2, and @c,2), and the two PCI-to-PCI
bridge nodes need device_type = "pci" and ranges to satisfy
check_pci_bridge() in dtc and pci-pci-bridge.yaml.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-p8700-dts-v4-0-60bb7bf8a7a1@htecgroup.com?part=6
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v4 7/8] MAINTAINERS: Add entry for MIPS RISC-V SoC support
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
` (5 preceding siblings ...)
2026-11-23 14:47 ` [PATCH v4 6/8] riscv: dts: mips: Initial support for the P8700 Boston board Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:47 ` Aleksa Paunovic via B4 Relay
2026-11-23 14:47 ` [PATCH v4 8/8] riscv: defconfig: Enable MIPS SoCs Aleksa Paunovic via B4 Relay
7 siblings, 0 replies; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:47 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, Joel Stanley, Aleksa Paunovic
From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
Add a MAINTAINERS entry covering the MIPS RISC-V devicetree sources
and the board binding.
Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
---
MAINTAINERS | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index c2414447892c24d58595059ca27b18775919ac12..7b6cd49a4fe2626a946a9153f1ca545d6ad28960 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -23542,6 +23542,14 @@ F: drivers/spi/spi-mpfs.c
F: drivers/usb/musb/mpfs.c
F: include/soc/microchip/mpfs.h
+RISC-V MIPS SoC SUPPORT
+M: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
+L: linux-riscv@lists.infradead.org
+S: Supported
+T: git https://github.com/aleksapaunovic-htec/linux.git
+F: Documentation/devicetree/bindings/riscv/mips.yaml
+F: arch/riscv/boot/dts/mips/
+
RISC-V MISC SOC SUPPORT
M: Conor Dooley <conor@kernel.org>
L: linux-riscv@lists.infradead.org
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH v4 8/8] riscv: defconfig: Enable MIPS SoCs
2026-11-23 14:46 [PATCH v4 0/8] Add support for MIPS P8700 Aleksa Paunovic via B4 Relay
` (6 preceding siblings ...)
2026-11-23 14:47 ` [PATCH v4 7/8] MAINTAINERS: Add entry for MIPS RISC-V SoC support Aleksa Paunovic via B4 Relay
@ 2026-11-23 14:47 ` Aleksa Paunovic via B4 Relay
7 siblings, 0 replies; 10+ messages in thread
From: Aleksa Paunovic via B4 Relay @ 2026-11-23 14:47 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, Joel Stanley, Aleksa Paunovic, Conor Dooley
From: Aleksa Paunovic <aleksa.paunovic@htecgroup.com>
Build the MIPS P8700 Boston dtb by default.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
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..1b0b5346603934058d8348ddb3aa9d7616af999c 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/configs/defconfig
@@ -26,6 +26,7 @@ CONFIG_ARCH_ANDES=y
CONFIG_ARCH_ANLOGIC=y
CONFIG_ARCH_ESWIN=y
CONFIG_ARCH_MICROCHIP=y
+CONFIG_ARCH_MIPS=y
CONFIG_ARCH_SIFIVE=y
CONFIG_ARCH_SOPHGO=y
CONFIG_ARCH_SPACEMIT=y
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread