Skip to contentSkip to conversation

riscv: dts: spacemit: Add initial support for MusePi Pro

PATCH Superseded Troy Mitchell 5 participants 18 messages Sep 28, 2025 – Oct 10, 2025

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Troy Mitchell

author reviewer
#0 lore raw

cover riscv: dts: spacemit: Add initial support for MusePi Pro

This patchset adds initial device tree support for the MusePi Pro board.

Muse Pi Pro [1] is a single-board computer integrating a high-performance RISC-V 8-core processor, storage, I/O and expansion capabilities into a credit card-sized 1.8-inch board.

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf
[1]

---
Troy Mitchell (2):
dt-bindings: riscv: spacemit: Add MusePi Pro board
riscv: dts: spacemit: Add MusePi Pro board device tree

 .../devicetree/bindings/riscv/spacemit.yaml        |  1 +
 arch/riscv/boot/dts/spacemit/Makefile              |  1 +
 arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts     | 40 ++++++++++++++++++++++
 3 files changed, 42 insertions(+)

---
base-commit: 0f084b221e2c5ba16eca85b3d2497f9486bd0329
change-id: 20250928-k1-musepi-pro-dts-546d20c442ab

Best regards,

Signature · 1 line
Troy Mitchell <[email protected]>
#1 lore raw

PATCH 1/2 dt-bindings: riscv: spacemit: Add MusePi Pro board

From: Troy Mitchell <[email protected]>

Document the compatible string for the MusePi Pro [1]. It is a 1.8-inch single board computer based on the SpacemiT K1/M1 RISC-V SoC [2].

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf
[1]
https://www.spacemit.com/en/key-stone-k1 [2]

---
 Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/spacemit.yaml +1 -0
index c56b62a6299ac24d3cdef7edcdfc407dc62a1846..52fe39296031f21d1c28c4f1ea5ca9fe28caf45a 100644
@@ -22,6 +22,7 @@ properties:
           - enum:
               - bananapi,bpi-f3
               - milkv,jupiter
+              - spacemit,musepi-pro
               - xunlong,orangepi-rv2
           - const: spacemit,k1
 
Signature · 1 line
2.51.0
author reviewer
#2 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

Quoted 2 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

My SMTP client messed up,
and both 1/2 and 2/2 were sent from the wrong email address.

- Troy

#3 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

Quoted 6 lines · Troy Mitchell
Quoted 2 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

My SMTP client messed up,
and both 1/2 and 2/2 were sent from the wrong email address.

Quoted 6 lines

- Troy

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

Confirming it is showing up now. Thanks -E Shattow

author reviewer
#4 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

Quoted 7 lines · E Shattow
Quoted 6 lines · Troy Mitchell
Quoted 2 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

My SMTP client messed up,
and both 1/2 and 2/2 were sent from the wrong email address.

Quoted 8 lines
Quoted 6 lines

- Troy

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

Confirming it is showing up now. Thanks -E Shattow

Thanks for confirming :)

- Troy

Quoted 1 line
#5 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

In reply to Troy Mitchell

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Document the compatible string for the MusePi Pro [1]. It is a 1.8-inch single board computer based on the SpacemiT K1/M1 RISC-V SoC [2].

you could wrap at slightly more characters, I remember 72 chars (haven't spent time to find a formal document link..)

Quoted 3 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf

I'd suggest to list core features of this board, while using this link as a complement, base on previous experience, vendor may change the link address, thus the link vanish

Quoted 3 lines

[1]
https://www.spacemit.com/en/key-stone-k1 [2]

pleae keep them in one line, no break, and no blank line between SoB, something as below

Link https://.. [1]
Quoted 21 lines
---
 Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/spacemit.yaml +1 -0
index c56b62a6299ac24d3cdef7edcdfc407dc62a1846..52fe39296031f21d1c28c4f1ea5ca9fe28caf45a 100644
@@ -22,6 +22,7 @@ properties:
           - enum:
               - bananapi,bpi-f3
               - milkv,jupiter
+              - spacemit,musepi-pro
               - xunlong,orangepi-rv2
           - const: spacemit,k1
 
Signature · 2 lines
-- 
2.51.0
Signature · 1 line
Yixun Lan (dlan)
author reviewer
#6 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

Quoted 10 lines · Yixun Lan

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Document the compatible string for the MusePi Pro [1]. It is a 1.8-inch single board computer based on the SpacemiT K1/M1 RISC-V SoC [2].

you could wrap at slightly more characters, I remember 72 chars (haven't spent time to find a formal document link..)

Get it. Thansk.

Quoted 6 lines
Quoted 4 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf

I'd suggest to list core features of this board, while using this link as a complement, base on previous experience, vendor may change the link address, thus the link vanish

I see. Thanks for pointing it out.

Quoted 7 lines
Quoted 4 lines

[1]
https://www.spacemit.com/en/key-stone-k1 [2]

pleae keep them in one line, no break, and no blank line between SoB, something as below

Link https://.. [1]

I will. Thanks.

- Troy

Quoted 26 lines
Quoted 22 lines
---
 Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/spacemit.yaml +1 -0
index c56b62a6299ac24d3cdef7edcdfc407dc62a1846..52fe39296031f21d1c28c4f1ea5ca9fe28caf45a 100644
@@ -22,6 +22,7 @@ properties:
           - enum:
               - bananapi,bpi-f3
               - milkv,jupiter
+              - spacemit,musepi-pro
               - xunlong,orangepi-rv2
           - const: spacemit,k1
 
Signature · 2 lines
-- 
2.51.0
Signature · 1 line
Yixun Lan (dlan)
#7 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

In reply to Yixun Lan
Quoted 8 lines · Yixun Lan

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Document the compatible string for the MusePi Pro [1]. It is a 1.8-inch single board computer based on the SpacemiT K1/M1 RISC-V SoC [2].

Quoted 8 lines

you could wrap at slightly more characters, I remember 72 chars (haven't spent time to find a formal document link..)

Quoted 3 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf

I'd suggest to list core features of this board, while using this link as a complement, base on previous experience, vendor may change the link address, thus the link vanish

The link doesn't even work for me. Is this board actually made by spacemit as a developer platform?

Quoted 32 lines
Quoted 4 lines

[1]
https://www.spacemit.com/en/key-stone-k1 [2]

pleae keep them in one line, no break, and no blank line between SoB, something as below

Link https://.. [1]
Quoted 21 lines
---
 Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/riscv/spacemit.yaml +1 -0
index c56b62a6299ac24d3cdef7edcdfc407dc62a1846..52fe39296031f21d1c28c4f1ea5ca9fe28caf45a 100644
@@ -22,6 +22,7 @@ properties:
           - enum:
               - bananapi,bpi-f3
               - milkv,jupiter
+              - spacemit,musepi-pro
               - xunlong,orangepi-rv2
           - const: spacemit,k1
 
Signature · 2 lines
-- 
2.51.0
Signature · 1 line
Yixun Lan (dlan)
author reviewer
#8 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

Quoted 13 lines · Conor Dooley
Quoted 12 lines · Yixun Lan

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Document the compatible string for the MusePi Pro [1]. It is a 1.8-inch single board computer based on the SpacemiT K1/M1 RISC-V SoC [2].

you could wrap at slightly more characters, I remember 72 chars (haven't spent time to find a formal document link..)

Quoted 1 line
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf

I'd suggest to list core features of this board, while using this link as a complement, base on previous experience, vendor may change the link address, thus the link vanish

The link doesn't even work for me.

Could you double check if it really doesn't work now?

Quoted 1 line

Is this board actually made by spacemit as a developer platform?

Yes.

- Troy

#9 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

Quoted 16 lines · Troy Mitchell
Quoted 15 lines · Conor Dooley
Quoted 14 lines · Yixun Lan

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Document the compatible string for the MusePi Pro [1]. It is a 1.8-inch single board computer based on the SpacemiT K1/M1 RISC-V SoC [2].

you could wrap at slightly more characters, I remember 72 chars (haven't spent time to find a formal document link..)

Quoted 3 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

I'd suggest to list core features of this board, while using this link as a complement, base on previous experience, vendor may change the link address, thus the link vanish

The link doesn't even work for me.

Could you double check if it really doesn't work now?

Quoted 1 line

Is this board actually made by spacemit as a developer platform?

Yes.

With the link, that seems pretty clear. Not sure why the link didn't work before, but it is working now.

Cheers,
Conor.

author reviewer
#10 lore raw

Re: [PATCH 1/2] dt-bindings: riscv: spacemit: Add MusePi Pro board

Quoted 20 lines · Conor Dooley
Quoted 19 lines · Troy Mitchell
Quoted 18 lines · Conor Dooley
Quoted 16 lines · Yixun Lan

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Document the compatible string for the MusePi Pro [1]. It is a 1.8-inch single board computer based on the SpacemiT K1/M1 RISC-V SoC [2].

you could wrap at slightly more characters, I remember 72 chars (haven't spent time to find a formal document link..)

Quoted 3 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf

I'd suggest to list core features of this board, while using this link as a complement, base on previous experience, vendor may change the link address, thus the link vanish

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

The link doesn't even work for me.

Could you double check if it really doesn't work now?

Quoted 1 line

Is this board actually made by spacemit as a developer platform?

Yes.

With the link, that seems pretty clear. Not sure why the link didn't work before, but it is working now.

Thanks for you confirming.

- Troy

Quoted 3 lines

Cheers,
Conor.

#11 lore raw

PATCH 2/2 riscv: dts: spacemit: Add MusePi Pro board device tree

In reply to Troy Mitchell

From: Troy Mitchell <[email protected]>

Add initial device tree support for the MusePi Pro board [1]. The board is using the SpacemiT K1/M1 SoC.

The device tree is adapted from the SpacemiT vendor tree [2].

This minimal device tree enables booting into a serial console with UART output and a blinking LED.

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf [1]
https://gitee.com/bianbu-linux/linux-6.6/blob/k1-bl-v2.2.y/arch/riscv/boot/dts/spacemit/k1-x_MUSE-Pi-Pro.dts [2]

---
 arch/riscv/boot/dts/spacemit/Makefile          |  1 +
 arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts | 40 ++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
arch/riscv/boot/dts/spacemit/Makefile +1 -0
index 152832644870624d8fd77684ef33addb42b0baf3..76b98096e2a46c3192651d6d66af7742f740c635 100644
@@ -2,3 +2,4 @@
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-rv2.dtb
+dtb-$(CONFIG_ARCH_SPACEMIT) += k1-musepi-pro.dtb
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +40 -0
new file mode 100644
index 0000000000000000000000000000000000000000..3791186ce47b88887eab4321dcd7035668e7f02d
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2024 Yangyu Chen <[email protected]>
+ * Copyright (C) 2025 Troy Mitchell <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "k1.dtsi"
+#include "k1-pinctrl.dtsi"
+
+/ {
+	model = "MusePi Pro";
+	compatible = "spacemit,musepi-pro", "spacemit,k1";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0";
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led1 {
+			label = "sys-led";
+			gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+			default-state = "on";
+		};
+	};
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_2_cfg>;
+	status = "okay";
+};
Signature · 1 line
2.51.0
#12 lore raw

Re: [PATCH 2/2] riscv: dts: spacemit: Add MusePi Pro board device tree

Quoted 57 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Add initial device tree support for the MusePi Pro board [1]. The board is using the SpacemiT K1/M1 SoC.

The device tree is adapted from the SpacemiT vendor tree [2].

This minimal device tree enables booting into a serial console with UART output and a blinking LED.

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf [1]
https://gitee.com/bianbu-linux/linux-6.6/blob/k1-bl-v2.2.y/arch/riscv/boot/dts/spacemit/k1-x_MUSE-Pi-Pro.dts [2]

---
 arch/riscv/boot/dts/spacemit/Makefile          |  1 +
 arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts | 40 ++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
arch/riscv/boot/dts/spacemit/Makefile +1 -0
index 152832644870624d8fd77684ef33addb42b0baf3..76b98096e2a46c3192651d6d66af7742f740c635 100644
@@ -2,3 +2,4 @@
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-rv2.dtb
+dtb-$(CONFIG_ARCH_SPACEMIT) += k1-musepi-pro.dtb
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +22 -0
new file mode 100644
index 0000000000000000000000000000000000000000..3791186ce47b88887eab4321dcd7035668e7f02d
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2024 Yangyu Chen <[email protected]>
+ * Copyright (C) 2025 Troy Mitchell <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "k1.dtsi"
+#include "k1-pinctrl.dtsi"
+
+/ {
+	model = "MusePi Pro";
+	compatible = "spacemit,musepi-pro", "spacemit,k1";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0";
+	};

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 31

Quoted 10 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +9 -0
+
+	leds {
+		compatible = "gpio-leds";
+
 
+		led1 {
+			label = "sys-led";
+			gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+			default-state = "on";

Can you explain how you decided to sort this? I think the documentation examples needs updating but it is unclear to me.

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 40

Quoted 10 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +9 -0
+		};
+	};
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_2_cfg>;
+	status = "okay";
+};

Best regards,

-E Shattow

author reviewer
#13 lore raw

Re: [PATCH 2/2] riscv: dts: spacemit: Add MusePi Pro board device tree

Quoted 63 lines · E Shattow
Quoted 61 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Add initial device tree support for the MusePi Pro board [1]. The board is using the SpacemiT K1/M1 SoC.

The device tree is adapted from the SpacemiT vendor tree [2].

This minimal device tree enables booting into a serial console with UART output and a blinking LED.

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf [1]
https://gitee.com/bianbu-linux/linux-6.6/blob/k1-bl-v2.2.y/arch/riscv/boot/dts/spacemit/k1-x_MUSE-Pi-Pro.dts [2]

---
 arch/riscv/boot/dts/spacemit/Makefile          |  1 +
 arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts | 40 ++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
arch/riscv/boot/dts/spacemit/Makefile +1 -0
index 152832644870624d8fd77684ef33addb42b0baf3..76b98096e2a46c3192651d6d66af7742f740c635 100644
@@ -2,3 +2,4 @@
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-rv2.dtb
+dtb-$(CONFIG_ARCH_SPACEMIT) += k1-musepi-pro.dtb
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +26 -0
new file mode 100644
index 0000000000000000000000000000000000000000..3791186ce47b88887eab4321dcd7035668e7f02d
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2024 Yangyu Chen <[email protected]>
+ * Copyright (C) 2025 Troy Mitchell <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "k1.dtsi"
+#include "k1-pinctrl.dtsi"
+
+/ {
+	model = "MusePi Pro";
+	compatible = "spacemit,musepi-pro", "spacemit,k1";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0";
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
Quoted 8 lines

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 31

Quoted 5 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +5 -0
+		led1 {
+			label = "sys-led";
+			gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+			default-state = "on";

Can you explain how you decided to sort this? I think the documentation examples needs updating but it is unclear to me.

This snippet comes from the BPI-F3 DTS.
I only verified the pins and polarity against the schematic.

- Troy

Quoted 16 lines

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 40

Quoted 11 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +9 -0
+		};
+	};
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_2_cfg>;
+	status = "okay";
+};

Best regards,

-E Shattow

#14 lore raw

Re: [PATCH 2/2] riscv: dts: spacemit: Add MusePi Pro board device tree

In reply to Troy Mitchell

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Add initial device tree support for the MusePi Pro board [1]. The board is using the SpacemiT K1/M1 SoC.

Quoted 9 lines

The device tree is adapted from the SpacemiT vendor tree [2].

This minimal device tree enables booting into a serial console with UART output and a blinking LED.

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf [1]
https://gitee.com/bianbu-linux/linux-6.6/blob/k1-bl-v2.2.y/arch/riscv/boot/dts/spacemit/k1-x_MUSE-Pi-Pro.dts [2]

same as patch 1

Quoted 11 lines
---
 arch/riscv/boot/dts/spacemit/Makefile          |  1 +
 arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts | 40 ++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
arch/riscv/boot/dts/spacemit/Makefile +0 -0
index 152832644870624d8fd77684ef33addb42b0baf3..76b98096e2a46c3192651d6d66af7742f740c635 100644

arch/riscv/boot/dts/spacemit/Makefile line 5

Quoted 4 lines
arch/riscv/boot/dts/spacemit/Makefile +1 -0
@@ -2,3 +2,4 @@
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-rv2.dtb
+dtb-$(CONFIG_ARCH_SPACEMIT) += k1-musepi-pro.dtb

please sort

Quoted 9 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +3 -0
new file mode 100644
index 0000000000000000000000000000000000000000..3791186ce47b88887eab4321dcd7035668e7f02d
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2024 Yangyu Chen <[email protected]>

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 13

Quoted 10 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +10 -0
+ * Copyright (C) 2025 Troy Mitchell <[email protected]>
+ */
+
+/dts-v1/;
+
+#include "k1.dtsi"
+#include "k1-pinctrl.dtsi"
+
+/ {
+	model = "MusePi Pro";

this is a little bit short, how about make it "SpacemiT MusePi Pro"?

Quoted 23 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +23 -0
+	compatible = "spacemit,musepi-pro", "spacemit,k1";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0";
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led1 {
+			label = "sys-led";
+			gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+			default-state = "on";
+		};
+	};
+};
+
+&uart0 {

..

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 38

Quoted 2 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +2 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_2_cfg>;

swap these two lines, for similar reason, see my comment here
https://lore.kernel.org/all/[email protected]/

Quoted 6 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +2 -0
+	status = "okay";
+};
Signature · 2 lines
-- 
2.51.0

while you are here, I'd suggest to push as many features as possible instead of this minimal DT, which say - PMU, emmc, ethernet should be ready.. (ethernet is in next, should show up at v6.18-rc1)

Signature · 1 line
Yixun Lan (dlan)
author reviewer
#15 lore raw

Re: [PATCH 2/2] riscv: dts: spacemit: Add MusePi Pro board device tree

Quoted 24 lines · Yixun Lan

Hi Troy,

Quoted 5 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Add initial device tree support for the MusePi Pro board [1]. The board is using the SpacemiT K1/M1 SoC.

Quoted 9 lines

The device tree is adapted from the SpacemiT vendor tree [2].

This minimal device tree enables booting into a serial console with UART output and a blinking LED.

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf [1]
https://gitee.com/bianbu-linux/linux-6.6/blob/k1-bl-v2.2.y/arch/riscv/boot/dts/spacemit/k1-x_MUSE-Pi-Pro.dts [2]

same as patch 1

Quoted 6 lines
---
 arch/riscv/boot/dts/spacemit/Makefile          |  1 +
 arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts | 40 ++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
Quoted 10 lines

arch/riscv/boot/dts/spacemit/Makefile line 5

Quoted 9 lines
arch/riscv/boot/dts/spacemit/Makefile +1 -0
index 152832644870624d8fd77684ef33addb42b0baf3..76b98096e2a46c3192651d6d66af7742f740c635 100644
@@ -2,3 +2,4 @@
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-milkv-jupiter.dtb
 dtb-$(CONFIG_ARCH_SPACEMIT) += k1-orangepi-rv2.dtb
+dtb-$(CONFIG_ARCH_SPACEMIT) += k1-musepi-pro.dtb

please sort

Oh my gosh..
That's my mistake. I will fix it in the next version.

Quoted 13 lines
Quoted 13 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +6 -0
new file mode 100644
index 0000000000000000000000000000000000000000..3791186ce47b88887eab4321dcd7035668e7f02d
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2024 Yangyu Chen <[email protected]>
+ * Copyright (C) 2025 Troy Mitchell <[email protected]>
+ */
+
Quoted 8 lines

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 13

Quoted 7 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +7 -0
+/dts-v1/;
+
+#include "k1.dtsi"
+#include "k1-pinctrl.dtsi"
+
+/ {
+	model = "MusePi Pro";

this is a little bit short, how about make it "SpacemiT MusePi Pro"?

Sounds good to me.

Quoted 25 lines
Quoted 24 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +23 -0
+	compatible = "spacemit,musepi-pro", "spacemit,k1";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0";
+	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led1 {
+			label = "sys-led";
+			gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+			default-state = "on";
+		};
+	};
+};
+
+&uart0 {

..

Quoted 4 lines

arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts line 38

Quoted 2 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +2 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_2_cfg>;

swap these two lines, for similar reason, see my comment here
https://lore.kernel.org/all/[email protected]/

Thanks for this link.

Quoted 11 lines
Quoted 7 lines
arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts new file +2 -0
+	status = "okay";
+};
Signature · 2 lines
-- 
2.51.0

while you are here, I'd suggest to push as many features as possible instead of this minimal DT, which say - PMU, emmc, ethernet should be ready.. (ethernet is in next, should show up at v6.18-rc1)

Good idea.
I think I should split these into multiple commits, right? Like, PDMA and EMAC should definitely be two separate commits.

- Troy

Quoted 4 lines
Signature · 2 lines
-- 
Yixun Lan (dlan)
#16 lore raw

Re: [PATCH 2/2] riscv: dts: spacemit: Add MusePi Pro board device tree

Hi Troy,

Quoted 14 lines · Troy Mitchell
Quoted 13 lines · Yixun Lan

Hi Troy,

Quoted 10 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Add initial device tree support for the MusePi Pro board [1]. The board is using the SpacemiT K1/M1 SoC.

The device tree is adapted from the SpacemiT vendor tree [2].

This minimal device tree enables booting into a serial console with UART output and a blinking LED.

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf [1]
https://gitee.com/bianbu-linux/linux-6.6/blob/k1-bl-v2.2.y/arch/riscv/boot/dts/spacemit/k1-x_MUSE-Pi-Pro.dts [2]

same as patch 1

Quoted 2 lines

---

..[snip]

Quoted 8 lines
Quoted 4 lines

while you are here, I'd suggest to push as many features as possible instead of this minimal DT, which say - PMU, emmc, ethernet should be ready.. (ethernet is in next, should show up at v6.18-rc1)

Good idea.
I think I should split these into multiple commits, right? Like, PDMA and EMAC should definitely be two separate commits.

IMO, not really necessary, but I wouldn't mind either..

Signature · 1 line
Yixun Lan (dlan)
author reviewer
#17 lore raw

Re: [PATCH 2/2] riscv: dts: spacemit: Add MusePi Pro board device tree

Quoted 26 lines · Yixun Lan

Hi Troy,

Quoted 14 lines · Troy Mitchell
Quoted 13 lines · Yixun Lan

Hi Troy,

Quoted 10 lines · Troy Mitchell

From: Troy Mitchell <[email protected]>

Add initial device tree support for the MusePi Pro board [1]. The board is using the SpacemiT K1/M1 SoC.

The device tree is adapted from the SpacemiT vendor tree [2].

This minimal device tree enables booting into a serial console with UART output and a blinking LED.

Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

Link:
https://developer.spacemit.com/documentation?token=YJtdwnvvViPVcmkoPDpcvwfVnrh&type=pdf [1]
https://gitee.com/bianbu-linux/linux-6.6/blob/k1-bl-v2.2.y/arch/riscv/boot/dts/spacemit/k1-x_MUSE-Pi-Pro.dts [2]

same as patch 1

Quoted 2 lines

---

..[snip]

Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

while you are here, I'd suggest to push as many features as possible instead of this minimal DT, which say - PMU, emmc, ethernet should be ready.. (ethernet is in next, should show up at v6.18-rc1)

Good idea.
I think I should split these into multiple commits, right? Like, PDMA and EMAC should definitely be two separate commits.

IMO, not really necessary, but I wouldn't mind either..

Thanks.
Then I will split them to keep clear.

- Troy

Quoted 4 lines
Signature · 2 lines
-- 
Yixun Lan (dlan)