rockchip: rk3576: Add support for ROC-RK3576-PC board

The ROC-RK3576-PC is a SBC made by Firefly, designed around the RK3576
SoC. This adds the needed board infrastructure and config for it.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
Heiko Stuebner
2025-04-15 23:51:28 +02:00
committed by Kever Yang
parent a1d78866dd
commit f7c8a69df1
7 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2023 Joshua Riek <jjriek@verizon.net>
*
*/
#include "rk3576-u-boot.dtsi"
&sdhci {
cap-mmc-highspeed;
};

View File

@@ -1,5 +1,11 @@
if ROCKCHIP_RK3576 if ROCKCHIP_RK3576
config TARGET_ROC_PC_RK3576
bool "Firefly ROC-RK3576-PC"
help
ROC-RK3576-PC is a single board computer from Firefly
using the Rockchip RK3576.
config ROCKCHIP_BOOT_MODE_REG config ROCKCHIP_BOOT_MODE_REG
default 0x26024040 default 0x26024040
@@ -9,6 +15,8 @@ config ROCKCHIP_STIMER_BASE
config SYS_SOC config SYS_SOC
default "rk3576" default "rk3576"
source board/firefly/roc-pc-rk3576/Kconfig
config SYS_CONFIG_NAME config SYS_CONFIG_NAME
default "rk3576_common" default "rk3576_common"

View File

@@ -0,0 +1,12 @@
if TARGET_ROC_PC_RK3576
config SYS_BOARD
default "roc-pc-rk3576"
config SYS_VENDOR
default "firefly"
config SYS_CONFIG_NAME
default "roc-pc-rk3576"
endif

View File

@@ -0,0 +1,7 @@
ROC-RK3576-PC
M: Heiko Stuebner <heiko@sntech.de>
S: Maintained
F: board/firefly/roc-pc-rk3576
F: include/configs/roc-pc-rk3576.h
F: configs/roc-pc-rk3576_defconfig
F: arch/arm/dts/rk3576-roc-pc*

View File

@@ -0,0 +1,45 @@
CONFIG_ARM=y
CONFIG_SKIP_LOWLEVEL_INIT=y
CONFIG_COUNTER_FREQUENCY=24000000
CONFIG_ARCH_ROCKCHIP=y
CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3576-roc-pc"
CONFIG_ROCKCHIP_RK3576=y
CONFIG_TARGET_ROC_PC_RK3576=y
CONFIG_SYS_LOAD_ADDR=0x40c00800
CONFIG_DEBUG_UART_BASE=0x2AD40000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_DEBUG_UART=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3576-roc-pc.dtb"
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_SPL_MAX_SIZE=0x40000
CONFIG_SPL_PAD_TO=0x7f8000
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
CONFIG_CMD_GPIO=y
CONFIG_CMD_GPT=y
CONFIG_CMD_I2C=y
CONFIG_CMD_MMC=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_REGULATOR=y
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_BUTTON=y
CONFIG_BUTTON_ADC=y
CONFIG_ROCKCHIP_GPIO=y
CONFIG_SYS_I2C_ROCKCHIP=y
CONFIG_SUPPORT_EMMC_RPMB=y
CONFIG_MMC_DW=y
CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_ROCKCHIP=y
CONFIG_PHY_MOTORCOMM=y
CONFIG_DWC_ETH_QOS=y
CONFIG_DWC_ETH_QOS_ROCKCHIP=y
CONFIG_DM_PMIC=y
CONFIG_PMIC_RK8XX=y
CONFIG_REGULATOR_RK8XX=y
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550_MEM32=y
CONFIG_SYSRESET_PSCI=y
CONFIG_ERRNO_STR=y

View File

@@ -130,6 +130,9 @@ List of mainline supported Rockchip boards:
- Radxa ROCK 3A (rock-3a-rk3568) - Radxa ROCK 3A (rock-3a-rk3568)
- Radxa ROCK 3B (rock-3b-rk3568) - Radxa ROCK 3B (rock-3b-rk3568)
* rk3576
- Firefly ROC-RK3576-PC (roc-pc-rk3576)
* rk3588 * rk3588
- ArmSoM Sige7 (sige7-rk3588) - ArmSoM Sige7 (sige7-rk3588)
- Rockchip EVB (evb-rk3588) - Rockchip EVB (evb-rk3588)

View File

@@ -0,0 +1,15 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2023 Rockchip Electronics Co., Ltd.
*/
#ifndef __ROC_PC_RK3576_H
#define __ROC_PC_RK3576_H
#define ROCKCHIP_DEVICE_SETTINGS \
"stdout=serial,vidconsole\0" \
"stderr=serial,vidconsole\0"
#include <configs/rk3576_common.h>
#endif