From 4a0c4e723c94172ae10cd6492a8a35f9aaae7163 Mon Sep 17 00:00:00 2001 From: Yixun Lan Date: Tue, 28 Jan 2025 12:22:52 +0800 Subject: [PATCH 1/3] MAINTAINERS: spacemit: update various info Add a wiki page to track status of mainline effort, add a dedicated mailing list which can reduce the email's CC list a bit, the irc channel should be useful for people to communicate. Link: https://lore.kernel.org/r/20250128-k1-maintainer-1-v1-1-e5dec4f379eb@gentoo.org Signed-off-by: Yixun Lan --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 896a307fa065..22ce72a1637c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20354,7 +20354,10 @@ F: drivers/perf/riscv_pmu_sbi.c RISC-V SPACEMIT SoC Support M: Yixun Lan L: linux-riscv@lists.infradead.org +L: spacemit@lists.linux.dev S: Maintained +W: https://github.com/spacemit-com/linux/wiki +C: irc://irc.libera.chat/spacemit T: git https://github.com/spacemit-com/linux F: arch/riscv/boot/dts/spacemit/ N: spacemit From 8c8d2a19a3ad87d9344a5e58172f8e0c05c4622a Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 14 Feb 2025 16:16:37 +0100 Subject: [PATCH 2/3] 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]. Link: https://milkv.io/jupiter [1] Link: https://www.spacemit.com/en/key-stone-k1 [2] Signed-off-by: Javier Martinez Canillas Acked-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger Reviewed-by: Yixun Lan Link: https://lore.kernel.org/r/20250214151700.666544-2-javierm@redhat.com Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/riscv/spacemit.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/spacemit.yaml b/Documentation/devicetree/bindings/riscv/spacemit.yaml index 52e55077af1a..077b94f10dca 100644 --- a/Documentation/devicetree/bindings/riscv/spacemit.yaml +++ b/Documentation/devicetree/bindings/riscv/spacemit.yaml @@ -21,6 +21,7 @@ properties: - items: - enum: - bananapi,bpi-f3 + - milkv,jupiter - const: spacemit,k1 additionalProperties: true From 5b90a3d6092d9292d3c4fe4eef8969282e070ae3 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 14 Feb 2025 16:16:38 +0100 Subject: [PATCH 3/3] riscv: dts: spacemit: Add Milk-V Jupiter board device tree 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. Link: https://milkv.io/jupiter [1] Link: https://www.spacemit.com/en/key-stone-k1 [2] Signed-off-by: Javier Martinez Canillas Reviewed-by: Yixun Lan Link: https://lore.kernel.org/r/20250214151700.666544-3-javierm@redhat.com Signed-off-by: Yixun Lan --- 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 diff --git a/arch/riscv/boot/dts/spacemit/Makefile b/arch/riscv/boot/dts/spacemit/Makefile index ac617319a574..92e13ce1c16d 100644 --- a/arch/riscv/boot/dts/spacemit/Makefile +++ b/arch/riscv/boot/dts/spacemit/Makefile @@ -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 diff --git a/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts new file mode 100644 index 000000000000..448319214104 --- /dev/null +++ b/arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2024 Yangyu Chen + * Copyright (C) 2025 Javier Martinez Canillas + */ + +#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"; +};