Skip to contentSkip to conversation

riscv: spacemit: Add support for K3 Pico-ITX board

PATCH Superseded Yixun Lan 2 participants 8 messages Oct 2

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Yixun Lan

author maintainer
#0 lore raw

v2 cover riscv: spacemit: Add support for K3 Pico-ITX board

Add initial support for SpacemiT K3 Pico-ITX board, the config file will enable all basic components which make it able to run into U-Boot serial console.

The series actually depend on previous sent patches, I'm not adding dependency to this series, but list it here for reference.

Pinctrl:
https://patch.msgid.link/[email protected]

GPIO:
https://patch.msgid.link/[email protected]

clock and reset:
https://patch.msgid.link/[email protected]

---
Changes in v2:
- drop board_get_usable_ram_top()
- drop empty source file
- Link to v1: https://patch.msgid.link/[email protected]

---
Yixun Lan (4):
board: spacemit: add SpacemiT K3 Pico-ITX
riscv: dts: spacemit: k3: add binman node
configs: spacemit: Add K3 default configuration
doc: spacemit: k3: Add Pico-ITX board

 arch/riscv/Kconfig                       |   5 +
 arch/riscv/cpu/k3/Kconfig                |  18 +++
 arch/riscv/cpu/k3/Makefile               |   5 +
 arch/riscv/cpu/k3/dram.c                 |  21 ++++
 arch/riscv/dts/k3-u-boot.dtsi            |   6 +
 board/spacemit/k3/Kconfig                |  30 +++++
 board/spacemit/k3/MAINTAINERS            |   8 ++
 configs/spacemit_k3_defconfig            |  50 ++++++++
 doc/board/spacemit/index.rst             |   1 +
 doc/board/spacemit/spacemit-pico-itx.rst | 204 +++++++++++++++++++++++++++++++
 include/configs/k3.h                     |  13 ++
 11 files changed, 361 insertions(+)

---
base-commit: cf615aafae36fc49f55e3e6a3648d29201b26d51
change-id: 20260921-00-basic-spacemit-k3-838119645d39

Best regards,

Signature · 1 line
Yixun Lan <[email protected]>
author maintainer
#1 lore raw

PATCH v2 1/4 board: spacemit: add SpacemiT K3 Pico-ITX

Add initial support for K3 Pico-ITX board, in this version, the DRAM information is parsed from DTS "/memory" node. And with UART enabled, the U-Boot serial console works fine now.

---
 arch/riscv/Kconfig            |  5 +++++
 arch/riscv/cpu/k3/Kconfig     | 18 ++++++++++++++++++
 arch/riscv/cpu/k3/Makefile    |  5 +++++
 arch/riscv/cpu/k3/dram.c      | 21 +++++++++++++++++++++
 board/spacemit/k3/Kconfig     | 30 ++++++++++++++++++++++++++++++
 board/spacemit/k3/MAINTAINERS |  8 ++++++++
 include/configs/k3.h          | 13 +++++++++++++
 7 files changed, 100 insertions(+)
arch/riscv/Kconfig +5 -0
index c1b2890f1f3..386241efd4a 100644
@@ -53,6 +53,9 @@ config TARGET_SIPEED_MAIX
 config TARGET_SPACEMIT_K1
 	bool "Support Spacemit K1 SoC"
 
+config TARGET_SPACEMIT_K3
+	bool "Support SpacemiT K3 SoC"
+
 config TARGET_STARFIVE_VISIONFIVE2
 	bool "Support StarFive VisionFive2 Board"
 	select BOARD_LATE_INIT
@@ -124,6 +127,7 @@ source "board/sophgo/milkv_duo/Kconfig"
 source "board/sophgo/milkv_duo_256m/Kconfig"
 source "board/sophgo/licheerv_nano/Kconfig"
 source "board/spacemit/k1/Kconfig"
+source "board/spacemit/k3/Kconfig"
 source "board/starfive/visionfive2/Kconfig"
 source "board/thead/th1520_lpi4a/Kconfig"
 source "board/xilinx/mbv/Kconfig"
@@ -138,6 +142,7 @@ source "arch/riscv/cpu/mpfs/Kconfig"
 source "arch/riscv/cpu/generic/Kconfig"
 source "arch/riscv/cpu/jh7110/Kconfig"
 source "arch/riscv/cpu/k1/Kconfig"
+source "arch/riscv/cpu/k3/Kconfig"
 source "arch/riscv/cpu/k230/Kconfig"
 source "arch/riscv/cpu/th1520/Kconfig"
 
arch/riscv/cpu/k3/Kconfig new file +18 -0
new file mode 100644
index 00000000000..5474ac11243
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+if TARGET_SPACEMIT_K3
+
+config SPACEMIT_K3
+	bool
+	select BINMAN
+	select ARCH_EARLY_INIT_R
+	select SYS_CACHE_SHIFT_6
+	imply CPU
+	imply CPU_RISCV
+	imply RISCV_TIMER if RISCV_SMODE
+	imply CMD_CPU
+	imply OF_UPSTREAM
+
+endif
arch/riscv/cpu/k3/Makefile new file +5 -0
new file mode 100644
index 00000000000..fba4e4b0a3f
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+obj-y += dram.o
arch/riscv/cpu/k3/dram.c new file +21 -0
new file mode 100644
index 00000000000..e20d35dc1bf
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>
+ */
+
+#include <fdtdec.h>
+#include <init.h>
+#include <linux/sizes.h>
+#include <asm/global_data.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int dram_init(void)
+{
+	return fdtdec_setup_mem_size_base();
+}
+
+int dram_init_banksize(void)
+{
+	return fdtdec_setup_memory_banksize();
+}
board/spacemit/k3/Kconfig new file +30 -0
new file mode 100644
index 00000000000..b0e423d829c
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+if TARGET_SPACEMIT_K3
+
+config SYS_BOARD
+	default "k3"
+
+config SYS_VENDOR
+	default "spacemit"
+
+config SYS_CPU
+	default "k3"
+
+config SYS_CONFIG_NAME
+	default "k3"
+
+config TEXT_BASE
+	default 0x102000000
+
+config SPL_OPENSBI_LOAD_ADDR
+	hex
+	default 0x100000000
+
+config BOARD_SPECIFIC_OPTIONS
+	def_bool y
+	select SPACEMIT_K3
+
+endif
board/spacemit/k3/MAINTAINERS new file +8 -0
new file mode 100644
index 00000000000..34cf1ed4453
@@ -0,0 +1,8 @@
+SPACEMIT K3
+M:	Yixun Lan <[email protected]>
+S:	Maintained
+F:	arch/riscv/cpu/k3/
+F:	board/spacemit/k3/
+F:	configs/spacemit_k3_defconfig
+F:	include/configs/k3.h
+F:	arch/riscv/dts/k3-u-boot.dtsi
include/configs/k3.h new file +13 -0
new file mode 100644
index 00000000000..83e4945d2b3
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CFG_SYS_NS16550_IER	0x40
+
+#define RISCV_SMODE_TIMER_FREQ	24000000
+
+#endif /* __CONFIG_H */
Signature · 1 line
2.56.0
#2 lore raw

Re: [PATCH v2 1/4] board: spacemit: add SpacemiT K3 Pico-ITX

Hi Yixun,

Quoted 167 lines · Yixun Lan

Add initial support for K3 Pico-ITX board, in this version, the DRAM information is parsed from DTS "/memory" node. And with UART enabled, the U-Boot serial console works fine now.

---
 arch/riscv/Kconfig            |  5 +++++
 arch/riscv/cpu/k3/Kconfig     | 18 ++++++++++++++++++
 arch/riscv/cpu/k3/Makefile    |  5 +++++
 arch/riscv/cpu/k3/dram.c      | 21 +++++++++++++++++++++
 board/spacemit/k3/Kconfig     | 30 ++++++++++++++++++++++++++++++
 board/spacemit/k3/MAINTAINERS |  8 ++++++++
 include/configs/k3.h          | 13 +++++++++++++
 7 files changed, 100 insertions(+)
arch/riscv/Kconfig +5 -0
index c1b2890f1f3..386241efd4a 100644
@@ -53,6 +53,9 @@ config TARGET_SIPEED_MAIX
 config TARGET_SPACEMIT_K1
 	bool "Support Spacemit K1 SoC"
 
+config TARGET_SPACEMIT_K3
+	bool "Support SpacemiT K3 SoC"
+
 config TARGET_STARFIVE_VISIONFIVE2
 	bool "Support StarFive VisionFive2 Board"
 	select BOARD_LATE_INIT
@@ -124,6 +127,7 @@ source "board/sophgo/milkv_duo/Kconfig"
 source "board/sophgo/milkv_duo_256m/Kconfig"
 source "board/sophgo/licheerv_nano/Kconfig"
 source "board/spacemit/k1/Kconfig"
+source "board/spacemit/k3/Kconfig"
 source "board/starfive/visionfive2/Kconfig"
 source "board/thead/th1520_lpi4a/Kconfig"
 source "board/xilinx/mbv/Kconfig"
@@ -138,6 +142,7 @@ source "arch/riscv/cpu/mpfs/Kconfig"
 source "arch/riscv/cpu/generic/Kconfig"
 source "arch/riscv/cpu/jh7110/Kconfig"
 source "arch/riscv/cpu/k1/Kconfig"
+source "arch/riscv/cpu/k3/Kconfig"
 source "arch/riscv/cpu/k230/Kconfig"
 source "arch/riscv/cpu/th1520/Kconfig"
 
arch/riscv/cpu/k3/Kconfig new file +18 -0
new file mode 100644
index 00000000000..5474ac11243
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+if TARGET_SPACEMIT_K3
+
+config SPACEMIT_K3
+	bool
+	select BINMAN
+	select ARCH_EARLY_INIT_R
+	select SYS_CACHE_SHIFT_6
+	imply CPU
+	imply CPU_RISCV
+	imply RISCV_TIMER if RISCV_SMODE
+	imply CMD_CPU
+	imply OF_UPSTREAM
+
+endif
arch/riscv/cpu/k3/Makefile new file +5 -0
new file mode 100644
index 00000000000..fba4e4b0a3f
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+obj-y += dram.o
arch/riscv/cpu/k3/dram.c new file +21 -0
new file mode 100644
index 00000000000..e20d35dc1bf
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>
+ */
+
+#include <fdtdec.h>
+#include <init.h>
+#include <linux/sizes.h>
+#include <asm/global_data.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int dram_init(void)
+{
+	return fdtdec_setup_mem_size_base();
+}
+
+int dram_init_banksize(void)
+{
+	return fdtdec_setup_memory_banksize();
+}
board/spacemit/k3/Kconfig new file +30 -0
new file mode 100644
index 00000000000..b0e423d829c
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+if TARGET_SPACEMIT_K3
+
+config SYS_BOARD
+	default "k3"
+
+config SYS_VENDOR
+	default "spacemit"
+
+config SYS_CPU
+	default "k3"
+
+config SYS_CONFIG_NAME
+	default "k3"
+
+config TEXT_BASE
+	default 0x102000000
+
+config SPL_OPENSBI_LOAD_ADDR
+	hex
+	default 0x100000000
+
+config BOARD_SPECIFIC_OPTIONS
+	def_bool y
+	select SPACEMIT_K3
+
+endif
board/spacemit/k3/MAINTAINERS new file +8 -0
new file mode 100644
index 00000000000..34cf1ed4453
@@ -0,0 +1,8 @@
+SPACEMIT K3
+M:	Yixun Lan <[email protected]>
+S:	Maintained
+F:	arch/riscv/cpu/k3/
+F:	board/spacemit/k3/
+F:	configs/spacemit_k3_defconfig
+F:	include/configs/k3.h
+F:	arch/riscv/dts/k3-u-boot.dtsi
include/configs/k3.h new file +3 -0
new file mode 100644
index 00000000000..83e4945d2b3
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>

include/configs/k3.h line 13

Quoted 10 lines
include/configs/k3.h new file +10 -0
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CFG_SYS_NS16550_IER	0x40
+
+#define RISCV_SMODE_TIMER_FREQ	24000000
+
+#endif /* __CONFIG_H */

There is a Texas Instruments K3 SoC referred to as "k3" in u-boot discussion. Let's not add to the confusion here on a global include file that is named "configs/k3.h"

Please rename "include/configs/k3.h" as "include/configs/spacemit-k3.h" or "include/configs/spacemit_k3.h" to be consistent with the target defconfig name. "k1.h" global config header name may be renamed later when development pace slows that it would not be too disruptive, and to follow whatever hyphen or underscore delineation is decided for K3.

Thanks,

-E

author maintainer
#3 lore raw

Re: [PATCH v2 1/4] board: spacemit: add SpacemiT K3 Pico-ITX

Hi E Shattow,

Quoted 185 lines · E Shattow

Hi Yixun,

Quoted 167 lines · Yixun Lan

Add initial support for K3 Pico-ITX board, in this version, the DRAM information is parsed from DTS "/memory" node. And with UART enabled, the U-Boot serial console works fine now.

---
 arch/riscv/Kconfig            |  5 +++++
 arch/riscv/cpu/k3/Kconfig     | 18 ++++++++++++++++++
 arch/riscv/cpu/k3/Makefile    |  5 +++++
 arch/riscv/cpu/k3/dram.c      | 21 +++++++++++++++++++++
 board/spacemit/k3/Kconfig     | 30 ++++++++++++++++++++++++++++++
 board/spacemit/k3/MAINTAINERS |  8 ++++++++
 include/configs/k3.h          | 13 +++++++++++++
 7 files changed, 100 insertions(+)
arch/riscv/Kconfig +5 -0
index c1b2890f1f3..386241efd4a 100644
@@ -53,6 +53,9 @@ config TARGET_SIPEED_MAIX
 config TARGET_SPACEMIT_K1
 	bool "Support Spacemit K1 SoC"
 
+config TARGET_SPACEMIT_K3
+	bool "Support SpacemiT K3 SoC"
+
 config TARGET_STARFIVE_VISIONFIVE2
 	bool "Support StarFive VisionFive2 Board"
 	select BOARD_LATE_INIT
@@ -124,6 +127,7 @@ source "board/sophgo/milkv_duo/Kconfig"
 source "board/sophgo/milkv_duo_256m/Kconfig"
 source "board/sophgo/licheerv_nano/Kconfig"
 source "board/spacemit/k1/Kconfig"
+source "board/spacemit/k3/Kconfig"
 source "board/starfive/visionfive2/Kconfig"
 source "board/thead/th1520_lpi4a/Kconfig"
 source "board/xilinx/mbv/Kconfig"
@@ -138,6 +142,7 @@ source "arch/riscv/cpu/mpfs/Kconfig"
 source "arch/riscv/cpu/generic/Kconfig"
 source "arch/riscv/cpu/jh7110/Kconfig"
 source "arch/riscv/cpu/k1/Kconfig"
+source "arch/riscv/cpu/k3/Kconfig"
 source "arch/riscv/cpu/k230/Kconfig"
 source "arch/riscv/cpu/th1520/Kconfig"
 
arch/riscv/cpu/k3/Kconfig new file +18 -0
new file mode 100644
index 00000000000..5474ac11243
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+if TARGET_SPACEMIT_K3
+
+config SPACEMIT_K3
+	bool
+	select BINMAN
+	select ARCH_EARLY_INIT_R
+	select SYS_CACHE_SHIFT_6
+	imply CPU
+	imply CPU_RISCV
+	imply RISCV_TIMER if RISCV_SMODE
+	imply CMD_CPU
+	imply OF_UPSTREAM
+
+endif
arch/riscv/cpu/k3/Makefile new file +5 -0
new file mode 100644
index 00000000000..fba4e4b0a3f
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+obj-y += dram.o
arch/riscv/cpu/k3/dram.c new file +21 -0
new file mode 100644
index 00000000000..e20d35dc1bf
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>
+ */
+
+#include <fdtdec.h>
+#include <init.h>
+#include <linux/sizes.h>
+#include <asm/global_data.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int dram_init(void)
+{
+	return fdtdec_setup_mem_size_base();
+}
+
+int dram_init_banksize(void)
+{
+	return fdtdec_setup_memory_banksize();
+}
board/spacemit/k3/Kconfig new file +30 -0
new file mode 100644
index 00000000000..b0e423d829c
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2026 Yixun Lan <[email protected]>
+
+if TARGET_SPACEMIT_K3
+
+config SYS_BOARD
+	default "k3"
+
+config SYS_VENDOR
+	default "spacemit"
+
+config SYS_CPU
+	default "k3"
+
+config SYS_CONFIG_NAME
+	default "k3"
+
+config TEXT_BASE
+	default 0x102000000
+
+config SPL_OPENSBI_LOAD_ADDR
+	hex
+	default 0x100000000
+
+config BOARD_SPECIFIC_OPTIONS
+	def_bool y
+	select SPACEMIT_K3
+
+endif
board/spacemit/k3/MAINTAINERS new file +8 -0
new file mode 100644
index 00000000000..34cf1ed4453
@@ -0,0 +1,8 @@
+SPACEMIT K3
+M:	Yixun Lan <[email protected]>
+S:	Maintained
+F:	arch/riscv/cpu/k3/
+F:	board/spacemit/k3/
+F:	configs/spacemit_k3_defconfig
+F:	include/configs/k3.h
+F:	arch/riscv/dts/k3-u-boot.dtsi
include/configs/k3.h new file +3 -0
new file mode 100644
index 00000000000..83e4945d2b3
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>

include/configs/k3.h line 13

Quoted 10 lines
include/configs/k3.h new file +10 -0
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define CFG_SYS_NS16550_IER	0x40
+
+#define RISCV_SMODE_TIMER_FREQ	24000000
+
+#endif /* __CONFIG_H */

There is a Texas Instruments K3 SoC referred to as "k3" in u-boot discussion. Let's not add to the confusion here on a global include file that is named "configs/k3.h"

Quoted 6 lines

Please rename "include/configs/k3.h" as "include/configs/spacemit-k3.h" or "include/configs/spacemit_k3.h" to be consistent with the target defconfig name. "k1.h" global config header name may be renamed later when development pace slows that it would not be too disruptive, and to follow whatever hyphen or underscore delineation is decided for K3.

make sense, I will pick "spacemit-k3.h" as the config file name

Signature · 1 line
Yixun Lan (dlan)
author maintainer
#4 lore raw

PATCH v2 2/4 riscv: dts: spacemit: k3: add binman node

In reply to Yixun Lan

SpacemiT K3 follow the standard riscv binman layout, which has opensbi and U-Boot proper, so include the common binman dtsi file.

---
 arch/riscv/dts/k3-u-boot.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/riscv/dts/k3-u-boot.dtsi new file +6 -0
new file mode 100644
index 00000000000..f1c1c3ee6fd
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>
+ */
+
+#include "binman.dtsi"
Signature · 1 line
2.56.0
#5 lore raw

Re: [PATCH v2 2/4] riscv: dts: spacemit: k3: add binman node

Hi Yixun,

Quoted 15 lines · Yixun Lan

SpacemiT K3 follow the standard riscv binman layout, which has opensbi and U-Boot proper, so include the common binman dtsi file.

---
 arch/riscv/dts/k3-u-boot.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/riscv/dts/k3-u-boot.dtsi new file +0 -0
new file mode 100644
index 00000000000..f1c1c3ee6fd

arch/riscv/dts/k3-u-boot.dtsi line 6

Quoted 6 lines
arch/riscv/dts/k3-u-boot.dtsi new file +6 -0
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright (C) 2026 Yixun Lan <[email protected]>
+ */
+
+#include "binman.dtsi"

Please rename k3-u-boot.dtsi as similar to the target defconfig (e.g. spacemit-k3-u-boot.dtsi) while avoiding any matches for the automatic SOC/CPU/VENDOR inclusion routine of scripts/Makefile.lib:222. Add the CONFIG_DEVICE_TREE_INCLUDES="spacemit-k3-u-boot.dtsi" board defconfig option to ensure its inclusion.

The automatic inclusion of per-CPU -u-boot.dtsi does short-circuit any automatic inclusion of per-target-board -u-boot.dtsi, and so becomes a blocker in the situation where we would need to override something per-board on a multi-board capable u-boot target (Pico-ITX, CoM260, FML13v05, so I think this is likely).

Essentially repeating here my previous advice to Hal about adding a new multi-board target from
https://lore.kernel.org/u-boot/[email protected]/

Thanks,

-E

author maintainer
#6 lore raw

PATCH v2 3/4 configs: spacemit: Add K3 default configuration

In reply to Yixun Lan

Add the default configuration for SpacemiT K3 boards, using the Pico-ITX device tree as the default.

Configure U-Boot to run in RISC-V supervisor mode and enable the platform clock, reset, GPIO, pinctrl, I2C, PMIC and regulator drivers. Also configure the memory layout, debug UART and basic filesystem commands required to boot on the platform.

---
 configs/spacemit_k3_defconfig | 50 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
configs/spacemit_k3_defconfig new file +50 -0
new file mode 100644
index 00000000000..6ca41aecc41
@@ -0,0 +1,50 @@
+CONFIG_RISCV=y
+CONFIG_SYS_MALLOC_LEN=0x1000000
+CONFIG_SYS_MALLOC_F_LEN=0x80000
+CONFIG_NR_DRAM_BANKS=2
+CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
+CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x102300000
+CONFIG_DM_GPIO=y
+CONFIG_DEFAULT_DEVICE_TREE="spacemit/k3-pico-itx"
+CONFIG_SYS_BOOTM_LEN=0xa000000
+CONFIG_SYS_LOAD_ADDR=0x102000000
+CONFIG_DEBUG_UART_BASE=0xd4017000
+CONFIG_DEBUG_UART_CLOCK=14700000
+CONFIG_TARGET_SPACEMIT_K3=y
+CONFIG_ARCH_RV64I=y
+CONFIG_CMODEL_MEDANY=y
+CONFIG_RISCV_SMODE=y
+CONFIG_RISCV_ISA_ZICBOM=y
+CONFIG_STACK_SIZE=0x100000
+CONFIG_FIT=y
+CONFIG_SUPPORT_RAW_INITRD=y
+CONFIG_SYS_CBSIZE=256
+CONFIG_SYS_PBSIZE=276
+# CONFIG_BOARD_INIT is not set
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_I2C=y
+CONFIG_CMD_PMIC=y
+CONFIG_CMD_REGULATOR=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_SYSCON=y
+CONFIG_CLK_SPACEMIT=y
+CONFIG_CLK_SPACEMIT_K3=y
+CONFIG_SPACEMIT_GPIO=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_SPACEMIT_K1=y
+CONFIG_MISC=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_SPACEMIT_K1=y
+CONFIG_DM_PMIC=y
+CONFIG_PMIC_SPACEMIT_P1=y
+CONFIG_DM_REGULATOR=y
+CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_DM_REGULATOR_SPACEMIT_P1=y
+CONFIG_DEBUG_UART_NS16550=y
+CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_DEBUG_UART_ANNOUNCE=y
+CONFIG_SYS_NS16550=y
+CONFIG_SYS_NS16550_MEM32=y
+CONFIG_TIMER_EARLY=y
Signature · 1 line
2.56.0
author maintainer
#7 lore raw

PATCH v2 4/4 doc: spacemit: k3: Add Pico-ITX board

In reply to Yixun Lan

Add documentation for how to test the mainline U-Boot on SpacemiT K3 Pico-ITX board, currently it still rely on using vendor FSBL.bin file to initialize DDR and boot U-Boot proper, and the opensbi firmware is built from an on-going mainline branch.

---
 doc/board/spacemit/index.rst             |   1 +
 doc/board/spacemit/spacemit-pico-itx.rst | 204 +++++++++++++++++++++++++++++++
 2 files changed, 205 insertions(+)
doc/board/spacemit/index.rst +1 -0
index 71854e5735b..51918f0acc7 100644
@@ -8,4 +8,5 @@ SpacemiT
    bananapi-f3
    k1-mmc
    k1-spl
+   spacemit-pico-itx
 
doc/board/spacemit/spacemit-pico-itx.rst new file +204 -0

204 lines not on this page · raw message

Signature · 1 line
2.56.0