7fa4d679e48191058bb9eda1bf19f389b1ecf1f4
[openwrt/staging/ansuel.git] /
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
5
6 ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by
7 ArmSoM.
8
9 There are two variants depending on the DRAM size : 8G and 16G.
10
11 Specification:
12
13 Rockchip Rk3588 SoC
14 4x ARM Cortex-A76, 4x ARM Cortex-A55
15 8/16GB memory LPDDR4x
16 Mali G610MC4 GPU
17 2x MIPI CSI 2 multiple lanes connector
18 64GB/128GB on board eMMC
19 uSD slot
20 1x USB 2.0 Type-A, 1x USB 3.0 Type-A, 1x USB 3.0 Type-C
21 1x HDMI 2.1 output
22 2x 2.5 Gbps Ethernet port
23 40-pin IO header including UART, SPI and I2C
24 USB PD over USB Type-C
25 Size: 92mm x 62mm
26
27 Kernel commit:
28 81c828a67c78 (arm64: dts: rockchip: Add ArmSom Sige7 board)
29
30 Signed-off-by: Jianfeng Liu <liujianfeng1994@gmail.com>
31 Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
32 ---
33 MAINTAINERS | 1 +
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
47
48 --- a/MAINTAINERS
49 +++ b/MAINTAINERS
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/
57 F: board/firefly/
58 --- /dev/null
59 +++ b/arch/arm/dts/rk3588-armsom-sige7-u-boot.dtsi
60 @@ -0,0 +1,6 @@
61 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
62 +/*
63 + * Copyright (c) 2024 ArmSoM Technology Co., Ltd.
64 + */
65 +
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)
72
73 +config TARGET_SIGE7_RK3588
74 + bool "ArmSoM Sige7 RK3588 board"
75 + select BOARD_LATE_INIT
76 + help
77 + ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer)
78 + by ArmSoM.
79 +
80 + There are two variants depending on the DRAM size : 8G and 16G.
81 +
82 + Specification:
83 +
84 + Rockchip Rk3588 SoC
85 + 4x ARM Cortex-A76, 4x ARM Cortex-A55
86 + 8/16GB memory LPDDR4x
87 + Mali G610MC4 GPU
88 + 2x MIPI CSI 2 multiple lanes connector
89 + 64GB/128GB on board eMMC
90 + uSD slot
91 + 1x USB 2.0 Type-A, 1x USB 3.0 Type-A, 1x USB 3.0 Type-C
92 + 1x HDMI 2.1 output
93 + 2x 2.5 Gbps Ethernet port
94 + 40-pin IO header including UART, SPI and I2C
95 + USB PD over USB Type-C
96 + Size: 92mm x 62mm
97 +
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
102 config TEXT_BASE
103 default 0x00a00000
104
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"
109 --- /dev/null
110 +++ b/board/armsom/sige7-rk3588/Kconfig
111 @@ -0,0 +1,12 @@
112 +if TARGET_SIGE7_RK3588
113 +
114 +config SYS_BOARD
115 + default "sige7-rk3588"
116 +
117 +config SYS_VENDOR
118 + default "armsom"
119 +
120 +config SYS_CONFIG_NAME
121 + default "sige7-rk3588"
122 +
123 +endif
124 --- /dev/null
125 +++ b/board/armsom/sige7-rk3588/MAINTAINERS
126 @@ -0,0 +1,7 @@
127 +SIGE7-RK3588
128 +M: Jianfeng Liu <liujianfeng1994@gmail.com>
129 +S: Maintained
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*
134 --- /dev/null
135 +++ b/configs/sige7-rk3588_defconfig
136 @@ -0,0 +1,93 @@
137 +CONFIG_ARM=y
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
144 +CONFIG_SPL_SERIAL=y
145 +CONFIG_TARGET_SIGE7_RK3588=y
146 +CONFIG_DEBUG_UART_BASE=0xFEB50000
147 +CONFIG_DEBUG_UART_CLOCK=24000000
148 +CONFIG_SPL_SPI=y
149 +CONFIG_SYS_LOAD_ADDR=0xc00800
150 +CONFIG_PCI=y
151 +CONFIG_DEBUG_UART=y
152 +CONFIG_AHCI=y
153 +CONFIG_FIT=y
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
164 +CONFIG_SPL_ATF=y
165 +CONFIG_CMD_GPIO=y
166 +CONFIG_CMD_GPT=y
167 +CONFIG_CMD_I2C=y
168 +CONFIG_CMD_MMC=y
169 +CONFIG_CMD_PCI=y
170 +CONFIG_CMD_USB=y
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
176 +CONFIG_OF_LIVE=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
179 +CONFIG_SPL_REGMAP=y
180 +CONFIG_SPL_SYSCON=y
181 +CONFIG_AHCI_PCI=y
182 +CONFIG_DWC_AHCI=y
183 +CONFIG_SPL_CLK=y
184 +# CONFIG_USB_FUNCTION_FASTBOOT is not set
185 +CONFIG_ROCKCHIP_GPIO=y
186 +CONFIG_SYS_I2C_ROCKCHIP=y
187 +CONFIG_MISC=y
188 +CONFIG_SUPPORT_EMMC_RPMB=y
189 +CONFIG_MMC_DW=y
190 +CONFIG_MMC_DW_ROCKCHIP=y
191 +CONFIG_MMC_SDHCI=y
192 +CONFIG_MMC_SDHCI_SDMA=y
193 +CONFIG_MMC_SDHCI_ROCKCHIP=y
194 +CONFIG_PHYLIB=y
195 +CONFIG_RTL8169=y
196 +CONFIG_NVME_PCI=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
203 +CONFIG_SPL_RAM=y
204 +CONFIG_SCSI=y
205 +CONFIG_BAUDRATE=1500000
206 +CONFIG_DEBUG_UART_SHIFT=2
207 +CONFIG_SYS_NS16550_MEM32=y
208 +CONFIG_SYSRESET=y
209 +CONFIG_USB=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
215 +CONFIG_USB_DWC3=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
226 +CONFIG_USB_GADGET=y
227 +CONFIG_USB_GADGET_DOWNLOAD=y
228 +CONFIG_USB_FUNCTION_ROCKUSB=y
229 +CONFIG_ERRNO_STR=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)
234
235 * rk3588
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)
240 --- /dev/null
241 +++ b/include/configs/sige7-rk3588.h
242 @@ -0,0 +1,15 @@
243 +/* SPDX-License-Identifier: GPL-2.0+ */
244 +/*
245 + * Copyright (c) 2024 ArmSoM Technology Co., Ltd.
246 + */
247 +
248 +#ifndef __SIGE7_RK3588_H
249 +#define __SIGE7_RK3588_H
250 +
251 +#define ROCKCHIP_DEVICE_SETTINGS \
252 + "stdout=serial,vidconsole\0" \
253 + "stderr=serial,vidconsole\0"
254 +
255 +#include <configs/rk3588_common.h>
256 +
257 +#endif /* __SIGE7_RK3588_H */