Skip to contentSkip to conversation

board: rockchip: add Khadas Edge2 RK3588 board

PATCH In review Jacobe Zang 3 participants 5 messages Dec 4, 2024 – Jan 3, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: rockchip: add Khadas Edge2 RK3588 board

Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas.

There are tree variants depending on the DRAM size : 8G and 16G.

Specification:

Rockchip RK3588S SoC
4x ARM Cortex-A76, 4x ARM Cortex-A55
8/16GB memory LPDDR4x
Mali G610MP4 GPU
3x MIPI CSI 4x lanes
2x MIPI-DSI DPHY 4x lanes
32/64GB eMMC
1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
1x HDMI 2.1 output, 1x DP 1.4 output
USB PD over USB Type-C

Kernel commit:
04d552993522 ("arm64: dts: rockchip: Add Khadas edge2 board")

---
Add support for Khadas Edge2
---
Changes in v2:
- defconfig: Update defconfig made from upstream
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 arch/arm/mach-rockchip/rk3588/Kconfig         |  23 ++++
 board/khadas/khadas-edge2-rk3588s/Kconfig     |  12 +++
 board/khadas/khadas-edge2-rk3588s/MAINTAINERS |   6 ++
 configs/khadas-edge2-rk3588s_defconfig        | 146 ++++++++++++++++++++++++++
 doc/board/rockchip/rockchip.rst               |   1 +
 include/configs/khadas-edge2-rk3588s.h        |  15 +++
 6 files changed, 203 insertions(+)
arch/arm/mach-rockchip/rk3588/Kconfig +23 -0
index b5a0e624a53..7d817e7f1bd 100644
@@ -74,6 +74,28 @@ config TARGET_JAGUAR_RK3588
 	      - fan controller (AMC6821 emulation)
 	    * 80-pin Mezzanine connector
 
+config TARGET_KHADAS_EDGE2_RK3588
+	bool "Khadas Edge2 RK3588 board"
+	select BOARD_LATE_INIT
+	help
+	  Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer)
+	  by Khadas.
+
+	  There are tree variants depending on the DRAM size : 8G and 16G.
+
+	  Specification:
+
+	  Rockchip RK3588S SoC
+	  4x ARM Cortex-A76, 4x ARM Cortex-A55
+	  8/16GB memory LPDDR4x
+	  Mali G610MP4 GPU
+	  3x MIPI CSI 4x lanes
+	  2x MIPI-DSI DPHY 4x lanes
+	  32/64GB eMMC
+	  1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
+	  1x HDMI 2.1 output, 1x DP 1.4 output
+	  USB PD over USB Type-C
+
 config TARGET_NANOPCT6_RK3588
 	bool "FriendlyElec NanoPC-T6 RK3588 board"
 	select BOARD_LATE_INIT
@@ -393,6 +415,7 @@ source "board/friendlyelec/nanopi-r6c-rk3588s/Kconfig"
 source "board/friendlyelec/nanopi-r6s-rk3588s/Kconfig"
 source "board/hardkernel/odroid_m2/Kconfig"
 source "board/indiedroid/nova/Kconfig"
+source "board/khadas/khadas-edge2-rk3588s/Kconfig"
 source "board/pine64/quartzpro64-rk3588/Kconfig"
 source "board/turing/turing-rk1-rk3588/Kconfig"
 source "board/radxa/rock5a-rk3588s/Kconfig"
board/khadas/khadas-edge2-rk3588s/Kconfig new file +12 -0
new file mode 100644
index 00000000000..dd7b6cd8054
@@ -0,0 +1,12 @@
+if TARGET_KHADAS_EDGE2_RK3588
+
+config SYS_BOARD
+	default "khadas-edge2-rk3588s"
+
+config SYS_VENDOR
+	default "khadas"
+
+config SYS_CONFIG_NAME
+	default "khadas-edge2-rk3588s"
+
+endif
board/khadas/khadas-edge2-rk3588s/MAINTAINERS new file +6 -0
new file mode 100644
index 00000000000..3f16923b0f2
@@ -0,0 +1,6 @@
+KHADAS-EDGE2-RK3588S
+M:	Jacobe Zang <[email protected]>
+S:	Maintained
+F:	configs/khadas-edge2-rk3588s_defconfig
+F:	include/configs/khadas-edge2-rk3588s.h
+F:	dts/upstream/src/arm64/rockchip/rk3588s-khadas-edge2.dts
\ No newline at end of file
configs/khadas-edge2-rk3588s_defconfig new file +146 -0

146 lines not on this page · raw message

doc/board/rockchip/rockchip.rst +1 -0
index 9bab86d2347..ea98b73d33c 100644
@@ -137,6 +137,7 @@ List of mainline supported Rockchip boards:
      - Generic RK3588S/RK3588 (generic-rk3588)
      - Hardkernel ODROID-M2 (odroid-m2-rk3588s)
      - Indiedroid Nova (nova-rk3588s)
+     - Khadas Edge2 (khadas-edge2-rk3588s)
      - Pine64 QuartzPro64 (quartzpro64-rk3588)
      - Radxa ROCK 5 ITX (rock-5-itx-rk3588)
      - Radxa ROCK 5A (rock5a-rk3588s)
include/configs/khadas-edge2-rk3588s.h new file +15 -0
new file mode 100644
index 00000000000..d279cf3826a
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2024 Khadas Technology Co., Ltd.
+ */
+
+#ifndef __KHADAS_EDGE2_RK3588_H
+#define __KHADAS_EDGE2_RK3588_H
+
+#include <configs/rk3588_common.h>
+
+#define ROCKCHIP_DEVICE_SETTINGS \
+		"stdout=serial,vidconsole\0" \
+		"stderr=serial,vidconsole\0"
+
+#endif /* __KHADAS_EDGE2_RK3588_H */

---
base-commit: 3073246d1be682071d8b3d07d06c2484907aed60
change-id: 20241119-edge2-18ac09a490ab

Best regards,

Signature · 1 line
Jacobe Zang <[email protected]>
#1 lore raw

Hi Jacobe,

Quoted 6 lines · Jacobe Zang

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas.

There are tree variants depending on the DRAM size : 8G and 16G.

What's the third variant :)?

Quoted 17 lines

Specification:

Rockchip RK3588S SoC
4x ARM Cortex-A76, 4x ARM Cortex-A55
8/16GB memory LPDDR4x
Mali G610MP4 GPU
3x MIPI CSI 4x lanes
2x MIPI-DSI DPHY 4x lanes
32/64GB eMMC
1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
1x HDMI 2.1 output, 1x DP 1.4 output
USB PD over USB Type-C

Kernel commit:
04d552993522 ("arm64: dts: rockchip: Add Khadas edge2 board")

Quoted 6 lines

---
Add support for Khadas Edge2
---
Changes in v2:
- defconfig: Update defconfig made from upstream

How did you generate the defconfig?

I applied your patch and ran make khadas-edge2-rk3588s_defconfig followed by make savedefconfig and they are different enough to make me suspicious of how this defconfig was generated?

Quoted 17 lines

- Link to v1: https://lore.kernel.org/r/[email protected]

---
  arch/arm/mach-rockchip/rk3588/Kconfig         |  23 ++++
  board/khadas/khadas-edge2-rk3588s/Kconfig     |  12 +++
  board/khadas/khadas-edge2-rk3588s/MAINTAINERS |   6 ++
  configs/khadas-edge2-rk3588s_defconfig        | 146 ++++++++++++++++++++++++++
  doc/board/rockchip/rockchip.rst               |   1 +
  include/configs/khadas-edge2-rk3588s.h        |  15 +++
  6 files changed, 203 insertions(+)
arch/arm/mach-rockchip/rk3588/Kconfig +0 -0
index b5a0e624a53..7d817e7f1bd 100644
@@ -74,6 +74,28 @@ config TARGET_JAGUAR_RK3588
               - fan controller (AMC6821 emulation)
             * 80-pin Mezzanine connector

arch/arm/mach-rockchip/rk3588/Kconfig config TARGET_JAGUAR_RK3588 · line 85

Quoted 10 lines
arch/arm/mach-rockchip/rk3588/Kconfig +9 -0
 
+config TARGET_KHADAS_EDGE2_RK3588
+       bool "Khadas Edge2 RK3588 board"
+       select BOARD_LATE_INIT
+       help
+         Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer)
+         by Khadas.
+
+         There are tree variants depending on the DRAM size : 8G and 16G.
+

If there's a third variant, please make it explicit as well here.

configs/khadas-edge2-rk3588s_defconfig

Quoted 61 lines
arch/arm/mach-rockchip/rk3588/Kconfig +14 -0
+         Specification:
+
+         Rockchip RK3588S SoC
+         4x ARM Cortex-A76, 4x ARM Cortex-A55
+         8/16GB memory LPDDR4x
+         Mali G610MP4 GPU
+         3x MIPI CSI 4x lanes
+         2x MIPI-DSI DPHY 4x lanes
+         32/64GB eMMC
+         1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
+         1x HDMI 2.1 output, 1x DP 1.4 output
+         USB PD over USB Type-C
+
  config TARGET_NANOPCT6_RK3588
         bool "FriendlyElec NanoPC-T6 RK3588 board"
         select BOARD_LATE_INIT
@@ -393,6 +415,7 @@ source "board/friendlyelec/nanopi-r6c-rk3588s/Kconfig"
  source "board/friendlyelec/nanopi-r6s-rk3588s/Kconfig"
  source "board/hardkernel/odroid_m2/Kconfig"
  source "board/indiedroid/nova/Kconfig"
+source "board/khadas/khadas-edge2-rk3588s/Kconfig"
  source "board/pine64/quartzpro64-rk3588/Kconfig"
  source "board/turing/turing-rk1-rk3588/Kconfig"
  source "board/radxa/rock5a-rk3588s/Kconfig"
board/khadas/khadas-edge2-rk3588s/Kconfig new file +12 -0
new file mode 100644
index 00000000000..dd7b6cd8054
@@ -0,0 +1,12 @@
+if TARGET_KHADAS_EDGE2_RK3588
+
+config SYS_BOARD
+       default "khadas-edge2-rk3588s"
+
+config SYS_VENDOR
+       default "khadas"
+
+config SYS_CONFIG_NAME
+       default "khadas-edge2-rk3588s"
+
+endif
board/khadas/khadas-edge2-rk3588s/MAINTAINERS new file +6 -0
new file mode 100644
index 00000000000..3f16923b0f2
@@ -0,0 +1,6 @@
+KHADAS-EDGE2-RK3588S
+M:     Jacobe Zang <[email protected]>
+S:     Maintained
+F:     configs/khadas-edge2-rk3588s_defconfig
+F:     include/configs/khadas-edge2-rk3588s.h
+F:     dts/upstream/src/arm64/rockchip/rk3588s-khadas-edge2.dts
\ No newline at end of file
configs/khadas-edge2-rk3588s_defconfig new file +0 -0
new file mode 100644
index 00000000000..bc9e8f39ec5
@@ -0,0 +1,146 @@

The board seems to have an SPI-NOR flash. If it can boot from it, you probably want to enable

CONFIG_ROCKCHIP_SPI_IMAGE=y

to generate u-boot-rockchip-spi.bin?

Quoted 25 lines
configs/khadas-edge2-rk3588s_defconfig new file +25 -0
+CONFIG_ARM=y
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_COUNTER_FREQUENCY=24000000
+CONFIG_ARCH_ROCKCHIP=y
+CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588s-khadas-edge2"
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x80000
+CONFIG_ROCKCHIP_RK3588=y
+CONFIG_SPL_SERIAL=y
+CONFIG_TARGET_KHADAS_EDGE2_RK3588=y
+CONFIG_DEBUG_UART_BASE=0xFEB50000
+CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_SYS_LOAD_ADDR=0xc00800
+CONFIG_DEBUG_UART=y
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_SPL_FIT_SIGNATURE=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
+CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-khadas-edge2.dtb"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_SPL_MAX_SIZE=0x40000
+CONFIG_SPL_PAD_TO=0x7f8000

configs/khadas-edge2-rk3588s_defconfig line 35

Quoted 10 lines
configs/khadas-edge2-rk3588s_defconfig new file +10 -0
+# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
+CONFIG_SPL_SEPARATE_BSS=y
+CONFIG_SPL_MMC_WRITE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_ATF=y
+CONFIG_SYS_PROMPT="kedge2# "
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_CMD_BOOTZ=y

Can one really use bootz for Aarch64 images?

Otherwise the rest of the defconfig looks pretty similar to the rock5b defconfig so I guess this is fine.

I'm very surprised there's no -u-boot.dtsi file though. You may want to check that everything that can be used in SPL/TPL makes it in the respective DT (spl/u-boot-spl.dtb and tpl/u-boot-tpl.dtb). E.g. if you want to be able to fallback to SPI-NOR for U-Boot proper when booting from eMMC/SD card, you would need everything related to the SPI controller the flash is routed to (as well as the pinmux, pinconf, regulators, etc...) be present in the TPL/SPL DT. Nothing we cannot improve in later commits though, so not necessarily a blocker.

Cheers,
Quentin

#2 lore raw
In reply to Jacobe Zang

On 2024/12/6 21:28, Quentin Schulz wrote:> Hi Jacobe,

Quoted 12 lines · Jacobe Zang
Quoted 7 lines

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas.

There are tree variants depending on the DRAM size : 8G and 16G.

What's the third variant :)?

Sorry for replying so late, this is a tpyo error. In fact this board only have these two variants.

Quoted 17 lines
Quoted 17 lines

Specification:

Rockchip RK3588S SoC
4x ARM Cortex-A76, 4x ARM Cortex-A55
8/16GB memory LPDDR4x
Mali G610MP4 GPU
3x MIPI CSI 4x lanes
2x MIPI-DSI DPHY 4x lanes
32/64GB eMMC
1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
1x HDMI 2.1 output, 1x DP 1.4 output
USB PD over USB Type-C

Kernel commit:
04d552993522 ("arm64: dts: rockchip: Add Khadas edge2 board")

Quoted 8 lines
Quoted 6 lines

---
Add support for Khadas Edge2
---
Changes in v2:
- defconfig: Update defconfig made from upstream

How did you generate the defconfig?

Well, I copied the defconfig from the U-boot 2017 version, v2 has delete some configurations that are not supported in the mainline and I dropped the unused configurations one by one..

So the correct way to generate the defconfig is ..?

Quoted 5 lines

I applied your patch and ran make khadas-edge2-rk3588s_defconfig followed by make savedefconfig and they are different enough to make me suspicious of how this defconfig was generated?

I run the same command as you, but I didn't see the changes in git diff. Maybe there is something I forgot to do?

Quoted 21 lines
Quoted 21 lines

- Link to v1: https://lore.kernel.org/r/20241119-edge2-v1-1-
[email protected]

---
  arch/arm/mach-rockchip/rk3588/Kconfig         |  23 ++++
  board/khadas/khadas-edge2-rk3588s/Kconfig     |  12 +++
  board/khadas/khadas-edge2-rk3588s/MAINTAINERS |   6 ++
  configs/khadas-edge2-rk3588s_defconfig        | 146 ++++++++++++++++
++++++++++
  doc/board/rockchip/rockchip.rst               |   1 +
  include/configs/khadas-edge2-rk3588s.h        |  15 +++
  6 files changed, 203 insertions(+)
arch/arm/mach- renamed from arch/arm/mach-rockchip/rk3588/Kconfig +0 -0

rockchip/rk3588/Kconfig
index b5a0e624a53..7d817e7f1bd 100644

arch/arm/mach-rockchip/rk3588/Kconfig +0 -0
@@ -74,6 +74,28 @@ config TARGET_JAGUAR_RK3588
               - fan controller (AMC6821 emulation)
             * 80-pin Mezzanine connector
 
Quoted 14 lines
Quoted 11 lines
arch/arm/mach-rockchip/rk3588/Kconfig +8 -0
+config TARGET_KHADAS_EDGE2_RK3588
+       bool "Khadas Edge2 RK3588 board"
+       select BOARD_LATE_INIT
+       help
+         Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board
 Computer)
+         by Khadas.
+
+         There are tree variants depending on the DRAM size : 8G and

16G.
+

If there's a third variant, please make it explicit as well here.

I will fix it in next version ;-)

Quoted 60 lines
Quoted 60 lines
arch/arm/mach-rockchip/rk3588/Kconfig +13 -0
+         Specification:
+
+         Rockchip RK3588S SoC
+         4x ARM Cortex-A76, 4x ARM Cortex-A55
+         8/16GB memory LPDDR4x
+         Mali G610MP4 GPU
+         3x MIPI CSI 4x lanes
+         2x MIPI-DSI DPHY 4x lanes
+         32/64GB eMMC
+         1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
+         1x HDMI 2.1 output, 1x DP 1.4 output
+         USB PD over USB Type-C
+
  config TARGET_NANOPCT6_RK3588
         bool "FriendlyElec NanoPC-T6 RK3588 board"
         select BOARD_LATE_INIT
@@ -393,6 +415,7 @@ source "board/friendlyelec/nanopi-r6c-rk3588s/

Kconfig"
source "board/friendlyelec/nanopi-r6s-rk3588s/Kconfig" source "board/hardkernel/odroid_m2/Kconfig" source "board/indiedroid/nova/Kconfig"

arch/arm/mach-rockchip/rk3588/Kconfig +1 -0
+source "board/khadas/khadas-edge2-rk3588s/Kconfig"
  source "board/pine64/quartzpro64-rk3588/Kconfig"
  source "board/turing/turing-rk1-rk3588/Kconfig"
  source "board/radxa/rock5a-rk3588s/Kconfig"
board/khadas/ renamed from board/khadas/khadas-edge2-rk3588s/Kconfig +0 -0

khadas-edge2-rk3588s/Kconfig
new file mode 100644
index 00000000000..dd7b6cd8054

board/khadas/khadas-edge2-rk3588s/Kconfig new file +12 -0
@@ -0,0 +1,12 @@
+if TARGET_KHADAS_EDGE2_RK3588
+
+config SYS_BOARD
+       default "khadas-edge2-rk3588s"
+
+config SYS_VENDOR
+       default "khadas"
+
+config SYS_CONFIG_NAME
+       default "khadas-edge2-rk3588s"
+
+endif
board/ renamed from board/khadas/khadas-edge2-rk3588s/MAINTAINERS +0 -0

khadas/khadas-edge2-rk3588s/MAINTAINERS
new file mode 100644
index 00000000000..3f16923b0f2

board/khadas/khadas-edge2-rk3588s/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@
+KHADAS-EDGE2-RK3588S
+M:     Jacobe Zang <[email protected]>
+S:     Maintained
+F:     configs/khadas-edge2-rk3588s_defconfig
+F:     include/configs/khadas-edge2-rk3588s.h
+F:     dts/upstream/src/arm64/rockchip/rk3588s-khadas-edge2.dts
\ No newline at end of file
configs/khadas- renamed from configs/khadas-edge2-rk3588s_defconfig +0 -0

edge2-rk3588s_defconfig

Quoted 9 lines

configs/khadas-edge2-rk3588s_defconfig

Quoted 5 lines

new file mode 100644
index 00000000000..bc9e8f39ec5

configs/khadas-edge2-rk3588s_defconfig new file +0 -0
@@ -0,0 +1,146 @@

The board seems to have an SPI-NOR flash. If it can boot from it, you probably want to enable

Yep, it has an SPI-NOR flash but we have preinstalled a custom boot system in it and we don't want users to modify, so don't enable it.

Quoted 4 lines

CONFIG_ROCKCHIP_SPI_IMAGE=y

to generate u-boot-rockchip-spi.bin?

As a result u-boot-rockchip-spi.bin is no need, so I will disable the configuration next time.

Quoted 29 lines
Quoted 29 lines
configs/khadas-edge2-rk3588s_defconfig new file +29 -0
+CONFIG_ARM=y
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_COUNTER_FREQUENCY=24000000
+CONFIG_ARCH_ROCKCHIP=y
+CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588s-khadas-edge2"
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x80000
+CONFIG_ROCKCHIP_RK3588=y
+CONFIG_SPL_SERIAL=y
+CONFIG_TARGET_KHADAS_EDGE2_RK3588=y
+CONFIG_DEBUG_UART_BASE=0xFEB50000
+CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_SYS_LOAD_ADDR=0xc00800
+CONFIG_DEBUG_UART=y
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_SPL_FIT_SIGNATURE=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
+CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-khadas-edge2.dtb"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_SPL_MAX_SIZE=0x40000
+CONFIG_SPL_PAD_TO=0x7f8000
+# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
+CONFIG_SPL_SEPARATE_BSS=y
+CONFIG_SPL_MMC_WRITE=y
+CONFIG_SPL_MTD_SUPPORT=y
Quoted 8 lines

configs/khadas-edge2-rk3588s_defconfig line 35

Quoted 6 lines
configs/khadas-edge2-rk3588s_defconfig new file +6 -0
+CONFIG_SPL_ATF=y
+CONFIG_SYS_PROMPT="kedge2# "
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_CMD_BOOTZ=y

Can one really use bootz for Aarch64 images?

Now the device use bootflow to scan all the storage then boot.

Quoted 5 lines

Otherwise the rest of the defconfig looks pretty similar to the rock5b defconfig so I guess this is fine.

I'm very surprised there's no -u-boot.dtsi file though. You may want to

Now the base version I test is okay so I didn't add .dtsi as the required one.

Quoted 8 lines

check that everything that can be used in SPL/TPL makes it in the respective DT (spl/u-boot-spl.dtb and tpl/u-boot-tpl.dtb). E.g. if you want to be able to fallback to SPI-NOR for U-Boot proper when booting from eMMC/SD card, you would need everything related to the SPI controller the flash is routed to (as well as the pinmux, pinconf, regulators, etc...) be present in the TPL/SPL DT. Nothing we cannot improve in later commits though, so not necessarily a blocker.

Okay, thanks for your guidance.

---
Best regards,
Jacobe Zang

Reviewed-by on v2 1/1
#3 lore raw
In reply to Jacobe Zang

Hi Jacobe,

Quoted 4 lines · Jacobe Zang

Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas.

There are tree variants depending on the DRAM size : 8G and 16G.

So this is two instead of typo three, right?

I can correct it when apply if not other update is needed.

Quoted 14 lines

Specification:

Rockchip RK3588S SoC
4x ARM Cortex-A76, 4x ARM Cortex-A55
8/16GB memory LPDDR4x
Mali G610MP4 GPU
3x MIPI CSI 4x lanes
2x MIPI-DSI DPHY 4x lanes
32/64GB eMMC
1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
1x HDMI 2.1 output, 1x DP 1.4 output
USB PD over USB Type-C

Quoted 4 lines

Kernel commit:
04d552993522 ("arm64: dts: rockchip: Add Khadas edge2 board")

Thanks,
- Kever

Quoted 278 lines

---
Add support for Khadas Edge2
---
Changes in v2:
- defconfig: Update defconfig made from upstream
- Link to v1: https://lore.kernel.org/r/[email protected]

---
  arch/arm/mach-rockchip/rk3588/Kconfig         |  23 ++++
  board/khadas/khadas-edge2-rk3588s/Kconfig     |  12 +++
  board/khadas/khadas-edge2-rk3588s/MAINTAINERS |   6 ++
  configs/khadas-edge2-rk3588s_defconfig        | 146 ++++++++++++++++++++++++++
  doc/board/rockchip/rockchip.rst               |   1 +
  include/configs/khadas-edge2-rk3588s.h        |  15 +++
  6 files changed, 203 insertions(+)
arch/arm/mach-rockchip/rk3588/Kconfig +23 -0
index b5a0e624a53..7d817e7f1bd 100644
@@ -74,6 +74,28 @@ config TARGET_JAGUAR_RK3588
  	      - fan controller (AMC6821 emulation)
  	    * 80-pin Mezzanine connector
 
+config TARGET_KHADAS_EDGE2_RK3588
+	bool "Khadas Edge2 RK3588 board"
+	select BOARD_LATE_INIT
+	help
+	  Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer)
+	  by Khadas.
+
+	  There are tree variants depending on the DRAM size : 8G and 16G.
+
+	  Specification:
+
+	  Rockchip RK3588S SoC
+	  4x ARM Cortex-A76, 4x ARM Cortex-A55
+	  8/16GB memory LPDDR4x
+	  Mali G610MP4 GPU
+	  3x MIPI CSI 4x lanes
+	  2x MIPI-DSI DPHY 4x lanes
+	  32/64GB eMMC
+	  1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
+	  1x HDMI 2.1 output, 1x DP 1.4 output
+	  USB PD over USB Type-C
+
  config TARGET_NANOPCT6_RK3588
  	bool "FriendlyElec NanoPC-T6 RK3588 board"
  	select BOARD_LATE_INIT
@@ -393,6 +415,7 @@ source "board/friendlyelec/nanopi-r6c-rk3588s/Kconfig"
  source "board/friendlyelec/nanopi-r6s-rk3588s/Kconfig"
  source "board/hardkernel/odroid_m2/Kconfig"
  source "board/indiedroid/nova/Kconfig"
+source "board/khadas/khadas-edge2-rk3588s/Kconfig"
  source "board/pine64/quartzpro64-rk3588/Kconfig"
  source "board/turing/turing-rk1-rk3588/Kconfig"
  source "board/radxa/rock5a-rk3588s/Kconfig"
board/khadas/khadas-edge2-rk3588s/Kconfig new file +12 -0
new file mode 100644
index 00000000000..dd7b6cd8054
@@ -0,0 +1,12 @@
+if TARGET_KHADAS_EDGE2_RK3588
+
+config SYS_BOARD
+	default "khadas-edge2-rk3588s"
+
+config SYS_VENDOR
+	default "khadas"
+
+config SYS_CONFIG_NAME
+	default "khadas-edge2-rk3588s"
+
+endif
board/khadas/khadas-edge2-rk3588s/MAINTAINERS new file +6 -0
new file mode 100644
index 00000000000..3f16923b0f2
@@ -0,0 +1,6 @@
+KHADAS-EDGE2-RK3588S
+M:	Jacobe Zang <[email protected]>
+S:	Maintained
+F:	configs/khadas-edge2-rk3588s_defconfig
+F:	include/configs/khadas-edge2-rk3588s.h
+F:	dts/upstream/src/arm64/rockchip/rk3588s-khadas-edge2.dts
\ No newline at end of file
configs/khadas-edge2-rk3588s_defconfig new file +146 -0
new file mode 100644
index 00000000000..bc9e8f39ec5
@@ -0,0 +1,146 @@
+CONFIG_ARM=y
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_COUNTER_FREQUENCY=24000000
+CONFIG_ARCH_ROCKCHIP=y
+CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588s-khadas-edge2"
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x80000
+CONFIG_ROCKCHIP_RK3588=y
+CONFIG_SPL_SERIAL=y
+CONFIG_TARGET_KHADAS_EDGE2_RK3588=y
+CONFIG_DEBUG_UART_BASE=0xFEB50000
+CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_SYS_LOAD_ADDR=0xc00800
+CONFIG_DEBUG_UART=y
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_SPL_FIT_SIGNATURE=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
+CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-khadas-edge2.dtb"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_SPL_MAX_SIZE=0x40000
+CONFIG_SPL_PAD_TO=0x7f8000
+# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
+CONFIG_SPL_SEPARATE_BSS=y
+CONFIG_SPL_MMC_WRITE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_ATF=y
+CONFIG_SYS_PROMPT="kedge2# "
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_GPT=y
+CONFIG_CMD_I2C=y
+CONFIG_CMD_MMC=y
+CONFIG_SPI=y
+CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_DM_SPI=y
+# CONFIG_DM_SPI_FLASH=y
+CONFIG_MMC=y
+# CONFIG_MMC_SPI=y
+CONFIG_CMD_SF_TEST=y
+CONFIG_CMD_SPI=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_REGULATOR=y
+CONFIG_CMD_TFTPPUT=y
+# CONFIG_SPL_DOS_PARTITION is not set
+CONFIG_EFI_PARTITION_ENTRIES_NUMBERS=64
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_OF_LIVE=y
+CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_REGMAP=y
+CONFIG_SPL_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_SPL_SYSCON=y
+CONFIG_CLK=y
+CONFIG_SPL_CLK=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=0x1
+CONFIG_FASTBOOT_BUF_ADDR=0xc00800
+CONFIG_FASTBOOT_BUF_SIZE=0x07000000
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_FLASH_MMC_DEV=0
+CONFIG_ROCKCHIP_GPIO=y
+CONFIG_SYS_I2C_ROCKCHIP=y
+CONFIG_I2C_MUX=y
+CONFIG_MISC=y
+CONFIG_SUPPORT_EMMC_RPMB=y
+CONFIG_SPL_MISC=y
+CONFIG_ROCKCHIP_OTP=y
+CONFIG_MMC_DW=y
+CONFIG_MMC_DW_ROCKCHIP=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_HS200_SUPPORT=y
+CONFIG_MMC_HS400_SUPPORT=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_PHY_REALTEK=y
+CONFIG_MTD=y
+# CONFIG_NAND=y
+# CONFIG_MTD_SPI_NAND=y
+CONFIG_SF_DEFAULT_SPEED=80000000
+CONFIG_SPI_FLASH_EON=y
+CONFIG_SPI_FLASH_GIGADEVICE=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_SST=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI_FLASH_XTX=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_DM_ETH_PHY=y
+CONFIG_DWC_ETH_QOS=y
+CONFIG_DWC_ETH_QOS_ROCKCHIP=y
+CONFIG_GMAC_ROCKCHIP=y
+CONFIG_PHY_ROCKCHIP_INNO_USB2=y
+CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
+CONFIG_PHY_ROCKCHIP_USBDP=y
+CONFIG_PINCTRL=y
+CONFIG_SPL_PINCTRL=y
+CONFIG_DM_PMIC=y
+CONFIG_TYPEC_TCPM=y
+CONFIG_TYPEC_FUSB302=y
+CONFIG_REGULATOR_PWM=y
+CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_PWM_ROCKCHIP=y
+CONFIG_RAM=y
+CONFIG_SPL_RAM=y
+CONFIG_TPL_RAM=y
+CONFIG_DM_RESET=y
+CONFIG_SPL_DM_RESET=y
+CONFIG_BAUDRATE=1500000
+CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_SYS_NS16550_MEM32=y
+CONFIG_ROCKCHIP_SPI=y
+CONFIG_ROCKCHIP_SFC=y
+CONFIG_SYSRESET=y
+CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_EHCI_GENERIC=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_USB_OHCI_GENERIC=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GENERIC=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="Rockchip"
+CONFIG_USB_GADGET_VENDOR_NUM=0x2207
+CONFIG_USB_GADGET_PRODUCT_NUM=0x350a
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_DISPLAY=y
+CONFIG_USE_TINY_PRINTF=y
+CONFIG_SPL_TINY_MEMSET=y
+CONFIG_RSA=y
+CONFIG_SPL_RSA=y
+CONFIG_LZ4=y
+CONFIG_LZMA=y
+CONFIG_ERRNO_STR=y
doc/board/rockchip/rockchip.rst +1 -0
index 9bab86d2347..ea98b73d33c 100644
@@ -137,6 +137,7 @@ List of mainline supported Rockchip boards:
       - Generic RK3588S/RK3588 (generic-rk3588)
       - Hardkernel ODROID-M2 (odroid-m2-rk3588s)
       - Indiedroid Nova (nova-rk3588s)
+     - Khadas Edge2 (khadas-edge2-rk3588s)
       - Pine64 QuartzPro64 (quartzpro64-rk3588)
       - Radxa ROCK 5 ITX (rock-5-itx-rk3588)
       - Radxa ROCK 5A (rock5a-rk3588s)
include/configs/khadas-edge2-rk3588s.h new file +15 -1
new file mode 100644
index 00000000000..d279cf3826a
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2024 Khadas Technology Co., Ltd.
+ */
+
+#ifndef __KHADAS_EDGE2_RK3588_H
+#define __KHADAS_EDGE2_RK3588_H
+
+#include <configs/rk3588_common.h>
+
+#define ROCKCHIP_DEVICE_SETTINGS \
+		"stdout=serial,vidconsole\0" \
+		"stderr=serial,vidconsole\0"
+
+#endif /* __KHADAS_EDGE2_RK3588_H */
 
---

base-commit: 3073246d1be682071d8b3d07d06c2484907aed60
change-id: 20241119-edge2-18ac09a490ab

Best regards,

#4 lore raw
Quoted 9 lines · Kever Yang

Hi Jacobe,

Quoted 4 lines · Jacobe Zang

Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board Computer) by Khadas.

There are tree variants depending on the DRAM size : 8G and 16G.

So this is two instead of typo three, right?

Yes, this is a typo error, only two variants.

Quoted 2 lines

I can correct it when apply if not other update is needed.

Okay, that couldn't be better.

Quoted 300 lines
Quoted 15 lines

Specification:

     Rockchip RK3588S SoC
     4x ARM Cortex-A76, 4x ARM Cortex-A55
     8/16GB memory LPDDR4x
     Mali G610MP4 GPU
     3x MIPI CSI 4x lanes
     2x MIPI-DSI DPHY 4x lanes
     32/64GB eMMC
     1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
     1x HDMI 2.1 output, 1x DP 1.4 output
     USB PD over USB Type-C

Quoted 4 lines

Kernel commit:
04d552993522 ("arm64: dts: rockchip: Add Khadas edge2 board")

Thanks,
- Kever

Quoted 277 lines

---
Add support for Khadas Edge2
---
Changes in v2:
- defconfig: Update defconfig made from upstream
- Link to v1: https://lore.kernel.org/r/20241119-edge2-v1-1-
[email protected]
---
  arch/arm/mach-rockchip/rk3588/Kconfig         |  23 ++++ board/khadas/khadas-edge2-rk3588s/Kconfig     |  12 +++ board/khadas/khadas-edge2-rk3588s/MAINTAINERS |   6 ++ configs/khadas-edge2-rk3588s_defconfig        | 146 ++++++++++++++++
++++++++++
  doc/board/rockchip/rockchip.rst               |   1 + include/configs/khadas-edge2-rk3588s.h        |  15 +++

  6 files changed, 203 insertions(+)
arch/arm/mach-rockchip/rk3588/Kconfig +22 -0
index b5a0e624a53..7d817e7f1bd 100644
@@ -74,6 +74,28 @@ config TARGET_JAGUAR_RK3588
             - fan controller (AMC6821 emulation)
           * 80-pin Mezzanine connector
+config TARGET_KHADAS_EDGE2_RK3588
+    bool "Khadas Edge2 RK3588 board"
+    select BOARD_LATE_INIT
+    help
+      Khadas Edge2 is a Rockchip RK3588S based SBC (Single Board 
 Computer)
+      by Khadas.
+
+      There are tree variants depending on the DRAM size : 8G and 16G.
+
+      Specification:
+
+      Rockchip RK3588S SoC
+      4x ARM Cortex-A76, 4x ARM Cortex-A55
+      8/16GB memory LPDDR4x
+      Mali G610MP4 GPU
+      3x MIPI CSI 4x lanes
+      2x MIPI-DSI DPHY 4x lanes
+      32/64GB eMMC
+      1x USB 2.0, 1x USB 3.0, 2x USB-Type-C
+      1x HDMI 2.1 output, 1x DP 1.4 output
+      USB PD over USB Type-C
+

  config TARGET_NANOPCT6_RK3588
      bool "FriendlyElec NanoPC-T6 RK3588 board"
      select BOARD_LATE_INIT

arch/arm/mach-rockchip/rk3588/Kconfig +0 -0
@@ -393,6 +415,7 @@ source "board/friendlyelec/nanopi-r6c-rk3588s/ 

Kconfig"
  source "board/friendlyelec/nanopi-r6s-rk3588s/Kconfig" source "board/hardkernel/odroid_m2/Kconfig" source "board/indiedroid/nova/Kconfig" +source "board/khadas/khadas-edge2-rk3588s/Kconfig" source "board/pine64/quartzpro64-rk3588/Kconfig" source "board/turing/turing-rk1-rk3588/Kconfig" source "board/radxa/rock5a-rk3588s/Kconfig"

board/khadas/khadas-edge2-rk3588s/Kconfig new file +12 -0
new file mode 100644
index 00000000000..dd7b6cd8054
@@ -0,0 +1,12 @@
+if TARGET_KHADAS_EDGE2_RK3588
+
+config SYS_BOARD
+    default "khadas-edge2-rk3588s"
+
+config SYS_VENDOR
+    default "khadas"
+
+config SYS_CONFIG_NAME
+    default "khadas-edge2-rk3588s"
+
+endif
board/khadas/khadas-edge2-rk3588s/MAINTAINERS new file +6 -0
new file mode 100644
index 00000000000..3f16923b0f2
@@ -0,0 +1,6 @@
+KHADAS-EDGE2-RK3588S
+M:    Jacobe Zang <[email protected]>
+S:    Maintained
+F:    configs/khadas-edge2-rk3588s_defconfig
+F:    include/configs/khadas-edge2-rk3588s.h
+F:    dts/upstream/src/arm64/rockchip/rk3588s-khadas-edge2.dts
\ No newline at end of file
configs/khadas-edge2-rk3588s_defconfig new file +57 -0
new file mode 100644
index 00000000000..bc9e8f39ec5
@@ -0,0 +1,146 @@
+CONFIG_ARM=y
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_COUNTER_FREQUENCY=24000000
+CONFIG_ARCH_ROCKCHIP=y
+CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588s-khadas-edge2"
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x80000
+CONFIG_ROCKCHIP_RK3588=y
+CONFIG_SPL_SERIAL=y
+CONFIG_TARGET_KHADAS_EDGE2_RK3588=y
+CONFIG_DEBUG_UART_BASE=0xFEB50000
+CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_SYS_LOAD_ADDR=0xc00800
+CONFIG_DEBUG_UART=y
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_SPL_FIT_SIGNATURE=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
+CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588s-khadas-edge2.dtb"
+# CONFIG_DISPLAY_CPUINFO is not set
+CONFIG_DISPLAY_BOARDINFO_LATE=y
+CONFIG_SPL_MAX_SIZE=0x40000
+CONFIG_SPL_PAD_TO=0x7f8000
+# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
+CONFIG_SPL_SEPARATE_BSS=y
+CONFIG_SPL_MMC_WRITE=y
+CONFIG_SPL_MTD_SUPPORT=y
+CONFIG_SPL_ATF=y
+CONFIG_SYS_PROMPT="kedge2# "
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_GPT=y
+CONFIG_CMD_I2C=y
+CONFIG_CMD_MMC=y
+CONFIG_SPI=y
+CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_DM_SPI=y
+# CONFIG_DM_SPI_FLASH=y
+CONFIG_MMC=y
+# CONFIG_MMC_SPI=y
+CONFIG_CMD_SF_TEST=y
+CONFIG_CMD_SPI=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_REGULATOR=y
+CONFIG_CMD_TFTPPUT=y
+# CONFIG_SPL_DOS_PARTITION is not set
+CONFIG_EFI_PARTITION_ENTRIES_NUMBERS=64
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_OF_LIVE=y
+CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned- 

clocks assigned-clock-rates assigned-clock-parents"

configs/khadas-edge2-rk3588s_defconfig new file +89 -0
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_REGMAP=y
+CONFIG_SPL_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_SPL_SYSCON=y
+CONFIG_CLK=y
+CONFIG_SPL_CLK=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION=y
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=0x1
+CONFIG_FASTBOOT_BUF_ADDR=0xc00800
+CONFIG_FASTBOOT_BUF_SIZE=0x07000000
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_FLASH_MMC_DEV=0
+CONFIG_ROCKCHIP_GPIO=y
+CONFIG_SYS_I2C_ROCKCHIP=y
+CONFIG_I2C_MUX=y
+CONFIG_MISC=y
+CONFIG_SUPPORT_EMMC_RPMB=y
+CONFIG_SPL_MISC=y
+CONFIG_ROCKCHIP_OTP=y
+CONFIG_MMC_DW=y
+CONFIG_MMC_DW_ROCKCHIP=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_HS200_SUPPORT=y
+CONFIG_MMC_HS400_SUPPORT=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_PHY_REALTEK=y
+CONFIG_MTD=y
+# CONFIG_NAND=y
+# CONFIG_MTD_SPI_NAND=y
+CONFIG_SF_DEFAULT_SPEED=80000000
+CONFIG_SPI_FLASH_EON=y
+CONFIG_SPI_FLASH_GIGADEVICE=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_SST=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI_FLASH_XTX=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_DM_ETH_PHY=y
+CONFIG_DWC_ETH_QOS=y
+CONFIG_DWC_ETH_QOS_ROCKCHIP=y
+CONFIG_GMAC_ROCKCHIP=y
+CONFIG_PHY_ROCKCHIP_INNO_USB2=y
+CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
+CONFIG_PHY_ROCKCHIP_USBDP=y
+CONFIG_PINCTRL=y
+CONFIG_SPL_PINCTRL=y
+CONFIG_DM_PMIC=y
+CONFIG_TYPEC_TCPM=y
+CONFIG_TYPEC_FUSB302=y
+CONFIG_REGULATOR_PWM=y
+CONFIG_DM_REGULATOR_FIXED=y
+CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_PWM_ROCKCHIP=y
+CONFIG_RAM=y
+CONFIG_SPL_RAM=y
+CONFIG_TPL_RAM=y
+CONFIG_DM_RESET=y
+CONFIG_SPL_DM_RESET=y
+CONFIG_BAUDRATE=1500000
+CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_SYS_NS16550_MEM32=y
+CONFIG_ROCKCHIP_SPI=y
+CONFIG_ROCKCHIP_SFC=y
+CONFIG_SYSRESET=y
+CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_EHCI_GENERIC=y
+CONFIG_USB_OHCI_HCD=y
+CONFIG_USB_OHCI_GENERIC=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GENERIC=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_MANUFACTURER="Rockchip"
+CONFIG_USB_GADGET_VENDOR_NUM=0x2207
+CONFIG_USB_GADGET_PRODUCT_NUM=0x350a
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_DISPLAY=y
+CONFIG_USE_TINY_PRINTF=y
+CONFIG_SPL_TINY_MEMSET=y
+CONFIG_RSA=y
+CONFIG_SPL_RSA=y
+CONFIG_LZ4=y
+CONFIG_LZMA=y
+CONFIG_ERRNO_STR=y
doc/board/rockchip/rockchip.rst +1 -0
index 9bab86d2347..ea98b73d33c 100644
@@ -137,6 +137,7 @@ List of mainline supported Rockchip boards:
        - Generic RK3588S/RK3588 (generic-rk3588)
        - Hardkernel ODROID-M2 (odroid-m2-rk3588s)
        - Indiedroid Nova (nova-rk3588s)
+     - Khadas Edge2 (khadas-edge2-rk3588s)
        - Pine64 QuartzPro64 (quartzpro64-rk3588)
        - Radxa ROCK 5 ITX (rock-5-itx-rk3588)
        - Radxa ROCK 5A (rock5a-rk3588s)
include/configs/khadas-edge2-rk3588s.h new file +15 -0
new file mode 100644
index 00000000000..d279cf3826a
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2024 Khadas Technology Co., Ltd.
+ */
+
+#ifndef __KHADAS_EDGE2_RK3588_H
+#define __KHADAS_EDGE2_RK3588_H
+
+#include <configs/rk3588_common.h>
+
+#define ROCKCHIP_DEVICE_SETTINGS \
+        "stdout=serial,vidconsole\0" \
+        "stderr=serial,vidconsole\0"
+
+#endif /* __KHADAS_EDGE2_RK3588_H */
Quoted 4 lines
Quoted 4 lines

---
base-commit: 3073246d1be682071d8b3d07d06c2484907aed60
change-id: 20241119-edge2-18ac09a490ab

---
Best regards,
Jacobe Zang