Skip to contentSkip to conversation

board: rockchip: add ArmSoM Sige7 Rk3588 board

PATCH Superseded Jianfeng Liu 5 participants 7 messages May 22, 2024 – May 27, 2024

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: rockchip: add ArmSoM Sige7 Rk3588 board

ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer) by ArmSoM.

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

Specification:

Rockchip Rk3588 SoC
4x ARM Cortex-A76, 4x ARM Cortex-A55
8/16GB memory LPDDR4x
Mali G610MC4 GPU
2x MIPI CSI 2 multiple lanes connector 64GB/128GB on board eMMC
uSD slot
1x USB 2.0 Type-A, 1x USB 3.0 Type-A, 1x USB 3.0 Type-C 1x HDMI 2.1 output
2x 2.5 Gbps Ethernet port
40-pin IO header including UART, SPI and I2C USB PD over USB Type-C
Size: 92mm x 62mm

Kernel commit:
81c828a67c78 (arm64: dts: rockchip: Add ArmSom Sige7 board)

Note that these commits:
- e18e5e8188f2 (arm64: dts: rockchip: add USBDP phys on rk3588)
- 6fca4edb93d3 (arm64: dts: rockchip: Add rk3588 GPU node) are not synced to u-boot, so I remove usb3 drd nodes and gpu from kernel devicetree.

---

Changes in v2:
- Fix alphabetical order of MAINTAINERS
- Use arch/arm/dts/rk3588-armsom-sige7* in board MAINTAINERS
- Remove spi flash related config
- Move kernel dts to dts/upstream/src/arm64/rockchip/

 MAINTAINERS                                   |   1 +
 arch/arm/dts/rk3588-armsom-sige7-u-boot.dtsi  |  28 +
 arch/arm/mach-rockchip/rk3588/Kconfig         |  26 +
 board/armsom/sige7-rk3588/Kconfig             |  12 +
 board/armsom/sige7-rk3588/MAINTAINERS         |   7 +
 configs/sige7-rk3588_defconfig                |  93 +++
 doc/board/rockchip/rockchip.rst               |   1 +
 .../arm64/rockchip/rk3588-armsom-sige7.dts    | 691 ++++++++++++++++++
 include/configs/sige7-rk3588.h                |  15 +
 9 files changed, 874 insertions(+)
 create mode 100644 arch/arm/dts/rk3588-armsom-sige7-u-boot.dtsi
 create mode 100644 board/armsom/sige7-rk3588/Kconfig
 create mode 100644 board/armsom/sige7-rk3588/MAINTAINERS
 create mode 100644 configs/sige7-rk3588_defconfig
 create mode 100644 dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts
 create mode 100644 include/configs/sige7-rk3588.h
MAINTAINERS +1 -0
index 638b2fdd44..a2c799cb7d 100644
@@ -533,6 +533,7 @@ F:	arch/arm/include/asm/arch-rockchip/
 F:	arch/arm/mach-rockchip/
 F:	board/amarula/vyasa-rk3288/
 F:	board/anbernic/rgxx3_rk3566/
+F:	board/armsom/sige7-rk3588/
 F:	board/chipspark/popmetal_rk3288
 F:	board/engicam/px30_core/
 F:	board/firefly/
arch/arm/dts/rk3588-armsom-sige7-u-boot.dtsi new file +28 -0
new file mode 100644
index 0000000000..2c984d0147
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2024 ArmSoM Technology Co., Ltd.
+ */
+
+#include "rk3588-u-boot.dtsi"
+
+&sdhci {
+	cap-mmc-highspeed;
+	mmc-hs200-1_8v;
+};
+
+&u2phy1 {
+	status = "okay";
+};
+
+&u2phy1_otg {
+	status = "okay";
+};
+
+&usbdp_phy1 {
+	status = "okay";
+};
+
+&usb_host1_xhci {
+	dr_mode = "host";
+	status = "okay";
+};
arch/arm/mach-rockchip/rk3588/Kconfig +26 -0
index 39049ab35a..4c14b0be1e 100644
@@ -152,6 +152,31 @@ config TARGET_ROCK5B_RK3588
 	  USB PD over USB Type-C
 	  Size: 100mm x 72mm (Pico-ITX form factor)
 
+config TARGET_SIGE7_RK3588
+	bool "ArmSoM Sige7 RK3588 board"
+	select BOARD_LATE_INIT
+	help
+	  ArmSoM Sige7 is a Rockchip RK3588 based SBC (Single Board Computer)
+	  by ArmSoM.
+
+	  There are two variants depending on the DRAM size : 8G and 16G.
+
+	  Specification:
+
+	  Rockchip Rk3588 SoC
+	  4x ARM Cortex-A76, 4x ARM Cortex-A55
+	  8/16GB memory LPDDR4x
+	  Mali G610MC4 GPU
+	  2x MIPI CSI 2 multiple lanes connector
+	  64GB/128GB on board eMMC
+	  uSD slot
+	  1x USB 2.0 Type-A, 1x USB 3.0 Type-A, 1x USB 3.0 Type-C
+	  1x HDMI 2.1 output
+	  2x 2.5 Gbps Ethernet port
+	  40-pin IO header including UART, SPI and I2C
+	  USB PD over USB Type-C
+	  Size: 92mm x 62mm
+
 config TARGET_QUARTZPRO64_RK3588
 	bool "Pine64 QuartzPro64 RK3588 board"
 	select BOARD_LATE_INIT
@@ -221,6 +246,7 @@ config ROCKCHIP_COMMON_STACK_ADDR
 config TEXT_BASE
 	default 0x00a00000
 
+source "board/armsom/sige7-rk3588/Kconfig"
 source "board/edgeble/neural-compute-module-6/Kconfig"
 source "board/friendlyelec/nanopc-t6-rk3588/Kconfig"
 source "board/pine64/quartzpro64-rk3588/Kconfig"
board/armsom/sige7-rk3588/Kconfig new file +12 -0
new file mode 100644
index 0000000000..793985f531
@@ -0,0 +1,12 @@
+if TARGET_SIGE7_RK3588
+
+config SYS_BOARD
+	default "sige7-rk3588"
+
+config SYS_VENDOR
+	default "armsom"
+
+config SYS_CONFIG_NAME
+	default "sige7-rk3588"
+
+endif
board/armsom/sige7-rk3588/MAINTAINERS new file +7 -0
new file mode 100644
index 0000000000..0fba39b76c
@@ -0,0 +1,7 @@
+SIGE7-RK3588
+M:	Jianfeng Liu <[email protected]>
+S:	Maintained
+F:	board/armsom/sige7-rk3588
+F:	include/configs/sige7-rk3588.h
+F:	configs/sige7-rk3588_defconfig
+F:	arch/arm/dts/rk3588-armsom-sige7*
configs/sige7-rk3588_defconfig new file +93 -0

93 lines not on this page · raw message

doc/board/rockchip/rockchip.rst +1 -0
index 9a726e9cde..6b826b3288 100644
@@ -118,6 +118,7 @@ List of mainline supported Rockchip boards:
      - Radxa ROCK 3 Model A (rock-3a-rk3568)
 
 * rk3588
+     - ArmSoM Sige7 (sige7-rk3588)
      - Rockchip EVB (evb-rk3588)
      - Edgeble Neural Compute Module 6A SoM - Neu6a (neu6a-io-rk3588)
      - Edgeble Neural Compute Module 6B SoM - Neu6b (neu6b-io-rk3588)
dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts new file +691 -0

691 lines not on this page · raw message

include/configs/sige7-rk3588.h new file +15 -0
new file mode 100644
index 0000000000..fd08da568b
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2024 ArmSoM Technology Co., Ltd.
+ */
+
+#ifndef __SIGE7_RK3588_H
+#define __SIGE7_RK3588_H
+
+#define ROCKCHIP_DEVICE_SETTINGS \
+		"stdout=serial,vidconsole\0" \
+		"stderr=serial,vidconsole\0"
+
+#include <configs/rk3588_common.h>
+
+#endif /* __SIGE7_RK3588_H */
Signature · 1 line
2.34.1
#1 lore raw

Hi Jianfeng Liu,

On 5/22/24 6:58 PM, Jianfeng Liu wrote:
[...]

Quoted 5 lines

Note that these commits:
- e18e5e8188f2 (arm64: dts: rockchip: add USBDP phys on rk3588)
- 6fca4edb93d3 (arm64: dts: rockchip: Add rk3588 GPU node) are not synced to u-boot, so I remove usb3 drd nodes and gpu from kernel devicetree.

[...]> diff --git a/dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts b/dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts

dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts

Quoted 4 lines

new file mode 100644
index 0000000000..c7b46536ec

dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts new file +0 -0

Sorry, I failed to explain properly what was expected.

dts/upstream should never be touched except with dts/update-dts-subtree.sh script.

Sadly, your board is not supported in v6.9 yet, only in the upcoming v6.10 :/

So we have two options, we keep the dts in arch/arm/dts/ like you used to do, until we merge v6.10 dts in U-Boot (probably for v2024.10?), or we cherry-pick the changes for your board with dts/update-dts-subtree.sh script, see the instructions in the docs Tom has started writing: https://lore.kernel.org/u-boot/[email protected]/. I would very much like to see someone starting to look into the second option :)

However... it seems we'll likely need to also cherry-pick patches for the GPU (should probably be straightforward as nothing would be using the GPU anyway in U-Boot) and the USBDP PHY... but this one we would need to update all -u-boot.dtsi for rk3588(s) boards that have it already to make it use the new label/DT, make sure that the driver still works... etc. Maybe not a small feat, but someone will have to do it at some point anyway :)

You'd be the first one to do this cherry-picking into dts/upstream, so it'd be really interesting to us if you could provide feedback on what is unclear/not working, etc... so we can update the documentation or fix tools if they were to be insufficient.

Looking forward to your next patch,
Cheers,
Quentin

#2 lore raw
Quoted 33 lines · Quentin Schulz

Hi Jianfeng Liu,

On 5/22/24 6:58 PM, Jianfeng Liu wrote:
[...]

Quoted 5 lines

Note that these commits:
- e18e5e8188f2 (arm64: dts: rockchip: add USBDP phys on rk3588)
- 6fca4edb93d3 (arm64: dts: rockchip: Add rk3588 GPU node) are not synced to u-boot, so I remove usb3 drd nodes and gpu from kernel devicetree.

[...]> diff --git a/dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts b/dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts

dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts

Quoted 4 lines

new file mode 100644
index 0000000000..c7b46536ec

dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts new file +0 -0

Sorry, I failed to explain properly what was expected.

dts/upstream should never be touched except with
dts/update-dts-subtree.sh script.

Sadly, your board is not supported in v6.9 yet, only in the upcoming v6.10 :/

So we have two options, we keep the dts in arch/arm/dts/ like you used to do, until we merge v6.10 dts in U-Boot (probably for v2024.10?), or we cherry-pick the changes for your board with dts/update-dts-subtree.sh script, see the instructions in the docs Tom has started writing:
https://lore.kernel.org/u-boot/[email protected]/
I would very much like to see someone starting to look into the second option :)

Quoted 7 lines

However... it seems we'll likely need to also cherry-pick patches for the GPU (should probably be straightforward as nothing would be using the GPU anyway in U-Boot) and the USBDP PHY... but this one we would need to update all -u-boot.dtsi for rk3588(s) boards that have it already to make it use the new label/DT, make sure that the driver still works... etc. Maybe not a small feat, but someone will have to do it at some point anyway :)

Thankfully updating the usb3 nodes and driver for RK3588 to match the versions used in v6.10 was already done as part of the "rockchip:
Migrate RK3308, RK3328, RK356x and RK3588 to OF_UPSTREAM" series [1], in commit a129bbc77b6c ("rockchip: rk3588: Update USB3 related nodes in u-boot.dtsi") [2].

So the relevant nodes just needs to be removed from u-boot.dtsi files at some point after dts/upstream has been updated to match v6.10 :-)

[1] https://patchwork.ozlabs.org/cover/1931378/
[2] https://source.denx.de/u-boot/u-boot/-/commit/a129bbc77b6cadc191d6f5d1fd8da96964baa029

Regards,
Jonas

Quoted 9 lines

You'd be the first one to do this cherry-picking into dts/upstream, so it'd be really interesting to us if you could provide feedback on what is unclear/not working, etc... so we can update the documentation or fix tools if they were to be insufficient.

Looking forward to your next patch,
Cheers,
Quentin

#3 lore raw
In reply to Quentin Schulz
Quoted 42 lines · Quentin Schulz

Hi Jianfeng Liu,

On 5/22/24 6:58 PM, Jianfeng Liu wrote:
[...]

Quoted 5 lines

Note that these commits:
- e18e5e8188f2 (arm64: dts: rockchip: add USBDP phys on rk3588)
- 6fca4edb93d3 (arm64: dts: rockchip: Add rk3588 GPU node) are not synced to u-boot, so I remove usb3 drd nodes and gpu from kernel devicetree.

[...]> diff --git a/dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts b/dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts

dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts

Quoted 4 lines

new file mode 100644
index 0000000000..c7b46536ec

dts/upstream/src/arm64/rockchip/rk3588-armsom-sige7.dts new file +0 -0

Sorry, I failed to explain properly what was expected.

dts/upstream should never be touched except with
dts/update-dts-subtree.sh script.

Sadly, your board is not supported in v6.9 yet, only in the upcoming v6.10 :/

So we have two options, we keep the dts in arch/arm/dts/ like you used to do, until we merge v6.10 dts in U-Boot (probably for v2024.10?), or we cherry-pick the changes for your board with dts/update-dts-subtree.sh script, see the instructions in the docs Tom has started writing:
https://lore.kernel.org/u-boot/[email protected]/.
I would very much like to see someone starting to look into the second option :)

However... it seems we'll likely need to also cherry-pick patches for the GPU (should probably be straightforward as nothing would be using the GPU anyway in U-Boot) and the USBDP PHY... but this one we would need to update all -u-boot.dtsi for rk3588(s) boards that have it already to make it use the new label/DT, make sure that the driver still works... etc. Maybe not a small feat, but someone will have to do it at some point anyway :)

Quoted 4 lines

You'd be the first one to do this cherry-picking into dts/upstream, so it'd be really interesting to us if you could provide feedback on what is unclear/not working, etc... so we can update the documentation or fix tools if they were to be insufficient.

+1

Although it is very much similar to normal cherry-picking patches, the dts/update-dts-subtree.sh script is just there to hide the git subtree specific details.

-Sumit

Quoted 4 lines

Looking forward to your next patch,
Cheers,
Quentin

#4 lore raw

Hi all,

Quoted 7 lines

However... it seems we'll likely need to also cherry-pick patches for the GPU (should probably be straightforward as nothing would be using the GPU anyway in U-Boot) and the USBDP PHY... but this one we would need to update all -u-boot.dtsi for rk3588(s) boards that have it already to make it use the new label/DT, make sure that the driver still works... etc. Maybe not a small feat, but someone will have to do it at some point anyway :)

Kernel v6.10-rc1 is released and now u-boot is not synced to v6.9. What about syncing with this procedure:
1, Sync upstream dts to v6.9 with command update-dts-subtree.sh pull. 2, Cherrypick all commits of rk3588s.dtsi from v6.10-rc1. 3, Cherrypick all commits of rk3588*.dts* from v6.10-rc1, which will include dts of new board armsom-sige7.
4, Add armsom-sige7 to u-boot.

Best regards,
Jianfeng

#5 lore raw

Hi Jianfeng,

Quoted 9 lines · Jianfeng Liu

Hi all,

Quoted 7 lines

However... it seems we'll likely need to also cherry-pick patches for the GPU (should probably be straightforward as nothing would be using the GPU anyway in U-Boot) and the USBDP PHY... but this one we would need to update all -u-boot.dtsi for rk3588(s) boards that have it already to make it use the new label/DT, make sure that the driver still works... etc. Maybe not a small feat, but someone will have to do it at some point anyway :)

Kernel v6.10-rc1 is released and now u-boot is not synced to v6.9.

It is, please use the "next" branch.

Quoted 7 lines

What about syncing with this procedure:
1, Sync upstream dts to v6.9 with command update-dts-subtree.sh pull. 2, Cherrypick all commits of rk3588s.dtsi from v6.10-rc1. 3, Cherrypick all commits of rk3588*.dts* from v6.10-rc1, which will include dts of new board armsom-sige7.
4, Add armsom-sige7 to u-boot.

You should be able to do 2,3,4 yourself now I believe?

Cheers,
Quentin

#6 lore raw
Quoted 23 lines · Quentin Schulz

Hi Jianfeng,

Quoted 9 lines · Jianfeng Liu

Hi all,

Quoted 7 lines

However... it seems we'll likely need to also cherry-pick patches for the GPU (should probably be straightforward as nothing would be using the GPU anyway in U-Boot) and the USBDP PHY... but this one we would need to update all -u-boot.dtsi for rk3588(s) boards that have it already to make it use the new label/DT, make sure that the driver still works... etc. Maybe not a small feat, but someone will have to do it at some point anyway :)

Kernel v6.10-rc1 is released and now u-boot is not synced to v6.9.

It is, please use the "next" branch.

Quoted 7 lines

What about syncing with this procedure:
1, Sync upstream dts to v6.9 with command update-dts-subtree.sh pull. 2, Cherrypick all commits of rk3588s.dtsi from v6.10-rc1. 3, Cherrypick all commits of rk3588*.dts* from v6.10-rc1, which will include dts of new board armsom-sige7.
4, Add armsom-sige7 to u-boot.

Quoted 1 line

You should be able to do 2,3,4 yourself now I believe?

And I am very much interested in the feedback on how 2,3,4 go as this will be the first real use of those steps.

Signature · 1 line
Tom