Skip to contentSkip to conversation

riscv: dts: spacemit: Add initial support for Milk-V Jupiter

PATCH Applied Javier Martinez Canillas 4 participants 7 messages Feb 14, 2025 – Feb 18, 2025

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

cover riscv: dts: spacemit: Add initial support for Milk-V Jupiter

Hello,

This patch-set adds a minimal support for the Milk-V Jupiter board. which is a Mini ITX computer based on the SpacemiT K1/M1 RISC-V SoC.

The DTS is very basic but at least allows to boot into a serial console and get UART output, similar to what exists for other K1 based boards such as the BananaPi BPI-F3.

Patch #1 just adds the compatible string for the Milk-V Jupiter to the SpacemiT bindings and patch #2 adds the minimal DTS for this computer.

Best regards,
Javier

Javier Martinez Canillas (2):
dt-bindings: riscv: spacemit: Add Milk-V Jupiter board compatible
riscv: dts: spacemit: Add Milk-V Jupiter board device tree

 .../devicetree/bindings/riscv/spacemit.yaml   |  1 +
 arch/riscv/boot/dts/spacemit/Makefile         |  1 +
 .../boot/dts/spacemit/k1-milkv-jupiter.dts    | 27 +++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 dt-bindings: riscv: spacemit: Add Milk-V Jupiter board compatible

Document the compatible string for Milk-V Jupiter board [1], which is a Mini ITX computer based on the SpacemiT K1/M1 RISC-V SoC [2].

---

 Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/spacemit.yaml +1 -0
index 52e55077af1a..077b94f10dca 100644
@@ -21,6 +21,7 @@ properties:
       - items:
           - enum:
               - bananapi,bpi-f3
+              - milkv,jupiter
           - const: spacemit,k1
 
 additionalProperties: true
Signature · 1 line
2.48.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add Milk-V Jupiter board compatible

Quoted 6 lines · Javier Martinez Canillas

Document the compatible string for Milk-V Jupiter board [1], which is a Mini ITX computer based on the SpacemiT K1/M1 RISC-V SoC [2].

Quoted 17 lines

---

  Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/spacemit.yaml +1 -0
index 52e55077af1a..077b94f10dca 100644
@@ -21,6 +21,7 @@ properties:
        - items:
            - enum:
                - bananapi,bpi-f3
+              - milkv,jupiter
            - const: spacemit,k1
 
  additionalProperties: true
Acked-by on v1 1/2
#3 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add Milk-V Jupiter board compatible

In reply to Javier Martinez Canillas
Quoted 7 lines · Javier Martinez Canillas

Document the compatible string for Milk-V Jupiter board [1], which is a Mini ITX computer based on the SpacemiT K1/M1 RISC-V SoC [2].

---

Best regards,
Krzysztof

#4 lore raw

PATCH 2/2 riscv: dts: spacemit: Add Milk-V Jupiter board device tree

In reply to Javier Martinez Canillas

Add initial support for the Milk-V Jupiter board [1], which is a Mini ITX computer based on the SpacemiT K1/M1 Octa-Core X60 64-bit RISC-V SoC [2].

There are two variant for this board, one using the K1 chip and another using the M1 chip. The main difference is that the M1 can run at a higher frequency than the K1, thanks to its packaging.

For now, only a DTS for the K1 variant is added since there isn't support yet for the X60 cores operating performance and thermal trip points.

The support is minimal, but at least allows to boot into a serial console.

---

 arch/riscv/boot/dts/spacemit/Makefile         |  1 +
 .../boot/dts/spacemit/k1-milkv-jupiter.dts    | 27 +++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts
arch/riscv/boot/dts/spacemit/Makefile +1 -0
index ac617319a574..92e13ce1c16d 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb
+dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb
arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts new file +27 -0
new file mode 100644
index 000000000000..448319214104
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0 OR MIT
+/*
+ * Copyright (C) 2024 Yangyu Chen <[email protected]>
+ * Copyright (C) 2025 Javier Martinez Canillas <[email protected]>
+ */
+
+#include "k1.dtsi"
+#include "k1-pinctrl.dtsi"
+
+/ {
+	model = "Milk-V Jupiter (K1)";
+	compatible = "milkv,jupiter", "spacemit,k1";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0";
+	};
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_2_cfg>;
+	status = "okay";
+};
Signature · 1 line
2.48.1
Reviewed-by on the v1 series
#5 lore raw
In reply to Javier Martinez Canillas

Hi Javier:

Quoted 12 lines · Javier Martinez Canillas

Hello,

This patch-set adds a minimal support for the Milk-V Jupiter board. which is a Mini ITX computer based on the SpacemiT K1/M1 RISC-V SoC.

The DTS is very basic but at least allows to boot into a serial console and get UART output, similar to what exists for other K1 based boards such as the BananaPi BPI-F3.

Patch #1 just adds the compatible string for the Milk-V Jupiter to the SpacemiT bindings and patch #2 adds the minimal DTS for this computer.

Quoted 8 lines

Best regards,
Javier

Javier Martinez Canillas (2):
dt-bindings: riscv: spacemit: Add Milk-V Jupiter board compatible
riscv: dts: spacemit: Add Milk-V Jupiter board device tree

Quoted 9 lines
 .../devicetree/bindings/riscv/spacemit.yaml   |  1 +
 arch/riscv/boot/dts/spacemit/Makefile         |  1 +
 .../boot/dts/spacemit/k1-milkv-jupiter.dts    | 27 +++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts
Signature · 1 line
2.48.1
Signature · 3 lines
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
Applied
#6 lore raw
In reply to Javier Martinez Canillas
Quoted 8 lines · Javier Martinez Canillas

This patch-set adds a minimal support for the Milk-V Jupiter board. which is a Mini ITX computer based on the SpacemiT K1/M1 RISC-V SoC.

The DTS is very basic but at least allows to boot into a serial console and get UART output, similar to what exists for other K1 based boards such as the BananaPi BPI-F3.

[...]

Thanks, Applied to SpacemiT's SoC tree:
https://github.com/spacemit-com/linux/ (for-next)

[1/2] dt-bindings: riscv: spacemit: Add Milk-V Jupiter board compatible

      https://github.com/spacemit-com/linux/commit/8c8d2a19a3ad87d9344a5e58172f8e0c05c4622a
[2/2] riscv: dts: spacemit: Add Milk-V Jupiter board device tree
      https://github.com/spacemit-com/linux/commit/5b90a3d6092d9292d3c4fe4eef8969282e070ae3

The for-next branch will be sent via a formal Pull Request to the Linux SoC maintainers for inclusion in next merge window.

Best regards,

Signature · 1 line
Yixun Lan