1 From 40b573e4f6ed629eab54633f8836a2be5e5aa75a Mon Sep 17 00:00:00 2001
2 From: Jianfeng Liu <liujianfeng1994@gmail.com>
3 Date: Wed, 29 May 2024 01:04:06 +0800
4 Subject: [PATCH] board: rockchip: add ArmSoM Sige7 Rk3588 board
6 ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by
9 There are two variants depending on the DRAM size : 8G and 16G.
14 4x ARM Cortex-A76, 4x ARM Cortex-A55
17 2x MIPI CSI 2 multiple lanes connector
18 64GB/128GB on board eMMC
20 1x USB 2.0 Type-A, 1x USB 3.0 Type-A, 1x USB 3.0 Type-C
22 2x 2.5 Gbps Ethernet port
23 40-pin IO header including UART, SPI and I2C
24 USB PD over USB Type-C
28 81c828a67c78 (arm64: dts: rockchip: Add ArmSom Sige7 board)
30 Signed-off-by: Jianfeng Liu <liujianfeng1994@gmail.com>
31 Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
34 arch/arm/dts/rk3588-armsom-sige7-u-boot.dtsi | 6 ++
35 arch/arm/mach-rockchip/rk3588/Kconfig | 26 ++++++
36 board/armsom/sige7-rk3588/Kconfig | 12 +++
37 board/armsom/sige7-rk3588/MAINTAINERS | 7 ++
38 configs/sige7-rk3588_defconfig | 93 ++++++++++++++++++++
39 doc/board/rockchip/rockchip.rst | 1 +
40 include/configs/sige7-rk3588.h | 15 ++++
41 8 files changed, 161 insertions(+)
42 create mode 100644 arch/arm/dts/rk3588-armsom-sige7-u-boot.dtsi
43 create mode 100644 board/armsom/sige7-rk3588/Kconfig
44 create mode 100644 board/armsom/sige7-rk3588/MAINTAINERS
45 create mode 100644 configs/sige7-rk3588_defconfig
46 create mode 100644 include/configs/sige7-rk3588.h
50 @@ -533,6 +533,7 @@ F: arch/arm/include/asm/arch-rockchip/
51 F: arch/arm/mach-rockchip/
52 F: board/amarula/vyasa-rk3288/
53 F: board/anbernic/rgxx3_rk3566/
54 +F: board/armsom/sige7-rk3588/
55 F: board/chipspark/popmetal_rk3288
56 F: board/engicam/px30_core/
59 +++ b/arch/arm/dts/rk3588-armsom-sige7-u-boot.dtsi
61 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
63 + * Copyright (c) 2024 ArmSoM Technology Co., Ltd.
66 +#include "rk3588-u-boot.dtsi"
67 --- a/arch/arm/mach-rockchip/rk3588/Kconfig
68 +++ b/arch/arm/mach-rockchip/rk3588/Kconfig
69 @@ -185,6 +185,31 @@ config TARGET_ROCK5B_RK3588
70 USB PD over USB Type-C
71 Size: 100mm x 72mm (Pico-ITX form factor)
73 +config TARGET_SIGE7_RK3588
74 + bool "ArmSoM Sige7 RK3588 board"
75 + select BOARD_LATE_INIT
77 + ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer)
80 + There are two variants depending on the DRAM size : 8G and 16G.
85 + 4x ARM Cortex-A76, 4x ARM Cortex-A55
86 + 8/16GB memory LPDDR4x
88 + 2x MIPI CSI 2 multiple lanes connector
89 + 64GB/128GB on board eMMC
91 + 1x USB 2.0 Type-A, 1x USB 3.0 Type-A, 1x USB 3.0 Type-C
93 + 2x 2.5 Gbps Ethernet port
94 + 40-pin IO header including UART, SPI and I2C
95 + USB PD over USB Type-C
98 config TARGET_QUARTZPRO64_RK3588
99 bool "Pine64 QuartzPro64 RK3588 board"
100 select BOARD_LATE_INIT
101 @@ -254,6 +279,7 @@ config ROCKCHIP_COMMON_STACK_ADDR
105 +source "board/armsom/sige7-rk3588/Kconfig"
106 source "board/edgeble/neural-compute-module-6/Kconfig"
107 source "board/friendlyelec/nanopc-t6-rk3588/Kconfig"
108 source "board/friendlyelec/nanopi-r6s-rk3588s/Kconfig"
110 +++ b/board/armsom/sige7-rk3588/Kconfig
112 +if TARGET_SIGE7_RK3588
115 + default "sige7-rk3588"
120 +config SYS_CONFIG_NAME
121 + default "sige7-rk3588"
125 +++ b/board/armsom/sige7-rk3588/MAINTAINERS
128 +M: Jianfeng Liu <liujianfeng1994@gmail.com>
130 +F: board/armsom/sige7-rk3588
131 +F: include/configs/sige7-rk3588.h
132 +F: configs/sige7-rk3588_defconfig
133 +F: arch/arm/dts/rk3588-armsom-sige7*
135 +++ b/configs/sige7-rk3588_defconfig
138 +CONFIG_SKIP_LOWLEVEL_INIT=y
139 +CONFIG_SYS_HAS_NONCACHED_MEMORY=y
140 +CONFIG_COUNTER_FREQUENCY=24000000
141 +CONFIG_ARCH_ROCKCHIP=y
142 +CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588-armsom-sige7"
143 +CONFIG_ROCKCHIP_RK3588=y
145 +CONFIG_TARGET_SIGE7_RK3588=y
146 +CONFIG_DEBUG_UART_BASE=0xFEB50000
147 +CONFIG_DEBUG_UART_CLOCK=24000000
149 +CONFIG_SYS_LOAD_ADDR=0xc00800
154 +CONFIG_FIT_VERBOSE=y
155 +CONFIG_SPL_FIT_SIGNATURE=y
156 +CONFIG_SPL_LOAD_FIT=y
157 +CONFIG_LEGACY_IMAGE_FORMAT=y
158 +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-armsom-sige7.dtb"
159 +# CONFIG_DISPLAY_CPUINFO is not set
160 +CONFIG_DISPLAY_BOARDINFO_LATE=y
161 +CONFIG_SPL_MAX_SIZE=0x40000
162 +CONFIG_SPL_PAD_TO=0x7f8000
163 +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
171 +CONFIG_CMD_ROCKUSB=y
172 +# CONFIG_CMD_SETEXPR is not set
173 +CONFIG_CMD_REGULATOR=y
174 +# CONFIG_SPL_DOS_PARTITION is not set
175 +CONFIG_SPL_OF_CONTROL=y
177 +CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
178 +CONFIG_SPL_DM_SEQ_ALIAS=y
184 +# CONFIG_USB_FUNCTION_FASTBOOT is not set
185 +CONFIG_ROCKCHIP_GPIO=y
186 +CONFIG_SYS_I2C_ROCKCHIP=y
188 +CONFIG_SUPPORT_EMMC_RPMB=y
190 +CONFIG_MMC_DW_ROCKCHIP=y
192 +CONFIG_MMC_SDHCI_SDMA=y
193 +CONFIG_MMC_SDHCI_ROCKCHIP=y
197 +CONFIG_PCIE_DW_ROCKCHIP=y
198 +CONFIG_PHY_ROCKCHIP_INNO_USB2=y
199 +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
200 +CONFIG_PHY_ROCKCHIP_USBDP=y
201 +CONFIG_SPL_PINCTRL=y
202 +CONFIG_PWM_ROCKCHIP=y
205 +CONFIG_BAUDRATE=1500000
206 +CONFIG_DEBUG_UART_SHIFT=2
207 +CONFIG_SYS_NS16550_MEM32=y
210 +CONFIG_USB_XHCI_HCD=y
211 +CONFIG_USB_EHCI_HCD=y
212 +CONFIG_USB_EHCI_GENERIC=y
213 +CONFIG_USB_OHCI_HCD=y
214 +CONFIG_USB_OHCI_GENERIC=y
216 +CONFIG_USB_DWC3_GENERIC=y
217 +CONFIG_SPL_USB_DWC3_GENERIC=y
218 +CONFIG_USB_HOST_ETHER=y
219 +CONFIG_USB_ETHER_ASIX=y
220 +CONFIG_USB_ETHER_ASIX88179=y
221 +CONFIG_USB_ETHER_LAN75XX=y
222 +CONFIG_USB_ETHER_LAN78XX=y
223 +CONFIG_USB_ETHER_MCS7830=y
224 +CONFIG_USB_ETHER_RTL8152=y
225 +CONFIG_USB_ETHER_SMSC95XX=y
227 +CONFIG_USB_GADGET_DOWNLOAD=y
228 +CONFIG_USB_FUNCTION_ROCKUSB=y
230 --- a/doc/board/rockchip/rockchip.rst
231 +++ b/doc/board/rockchip/rockchip.rst
232 @@ -122,6 +122,7 @@ List of mainline supported Rockchip boar
233 - Radxa ROCK 3B (rock-3b-rk3568)
236 + - ArmSoM Sige7 (sige7-rk3588)
237 - Rockchip EVB (evb-rk3588)
238 - Edgeble Neural Compute Module 6A SoM - Neu6a (neu6a-io-rk3588)
239 - Edgeble Neural Compute Module 6B SoM - Neu6b (neu6b-io-rk3588)
241 +++ b/include/configs/sige7-rk3588.h
243 +/* SPDX-License-Identifier: GPL-2.0+ */
245 + * Copyright (c) 2024 ArmSoM Technology Co., Ltd.
248 +#ifndef __SIGE7_RK3588_H
249 +#define __SIGE7_RK3588_H
251 +#define ROCKCHIP_DEVICE_SETTINGS \
252 + "stdout=serial,vidconsole\0" \
253 + "stderr=serial,vidconsole\0"
255 +#include <configs/rk3588_common.h>
257 +#endif /* __SIGE7_RK3588_H */