summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFUKAUMI Naoki2025-09-03 02:02:48 +0000
committerHauke Mehrtens2025-09-07 12:29:39 +0000
commitd16d2765bd4fba96935f2a5ad6f4e830da317956 (patch)
treefd8a334d6baa3a20aad2b36bfb1a48182cbc9170
parent071aa994cdd1f716f2f9e0f2e2728823c5c9b753 (diff)
downloadopenwrt-d16d2765bd4fba96935f2a5ad6f4e830da317956.tar.gz
rockchip: add support for Radxa E52C
The Radxa E52C is a compact network computer using the Rockchip RK3582 SoC. - https://radxa.com/products/network-computer/e52c Hardware -------- - Dual Cortex-A76 and Quad Cortex-A55 CPU - 5 TOPS NPU - 2/4/8GB LPDDR4 RAM - 16/32/64GB on-board eMMC - microSD card slot - 2x 2.5 Gigabit Ethernet ports - USB 3.1 Gen1 Type-A HOST/OTG port - USB Type-C debug port - USB Type-C power port Installation ------------ Uncompress the OpenWrt sysupgrade and write it to a micro SD card or eMMC using dd. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com> Link: https://github.com/openwrt/openwrt/pull/19867 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/boot/uboot-rockchip/Makefile1
-rw-r--r--target/linux/rockchip/armv8/base-files/etc/board.d/01_leds1
-rw-r--r--target/linux/rockchip/armv8/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity1
-rw-r--r--target/linux/rockchip/image/armv8.mk10
5 files changed, 14 insertions, 0 deletions
diff --git a/package/boot/uboot-rockchip/Makefile b/package/boot/uboot-rockchip/Makefile
index 34809be785..f3717d67c6 100644
--- a/package/boot/uboot-rockchip/Makefile
+++ b/package/boot/uboot-rockchip/Makefile
@@ -272,6 +272,7 @@ define U-Boot/generic-rk3588
$(U-Boot/rk358x/Default)
NAME:=Generic RK358x board
BUILD_DEVICES:= \
+ radxa_e52c \
radxa_rock-5b-plus \
radxa_rock-5t
endef
diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds b/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
index 6e2c95ada7..9c668a64d1 100644
--- a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
+++ b/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
@@ -15,6 +15,7 @@ friendlyarm,nanopi-r3s|\
friendlyarm,nanopi-r4s|\
friendlyarm,nanopi-r4s-enterprise|\
friendlyarm,nanopi-r6c|\
+radxa,e52c|\
xunlong,orangepi-r1-plus|\
xunlong,orangepi-r1-plus-lts)
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
index b210cd191c..971dea679c 100644
--- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
+++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
@@ -15,6 +15,7 @@ rockchip_setup_interfaces()
friendlyarm,nanopi-r4s|\
friendlyarm,nanopi-r4s-enterprise|\
friendlyarm,nanopi-r6c|\
+ radxa,e52c|\
radxa,rockpi-e|\
xunlong,orangepi-r1-plus|\
xunlong,orangepi-r1-plus-lts)
diff --git a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
index a70d2f2323..2c9be8c2bf 100644
--- a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
+++ b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
@@ -50,6 +50,7 @@ friendlyarm,nanopi-r4s|\
friendlyarm,nanopi-r4s-enterprise|\
friendlyarm,nanopi-r6c|\
friendlyarm,nanopc-t6|\
+radxa,e52c|\
radxa,rock-5-itx|\
radxa,rock-5t)
set_interface_core 10 "eth0"
diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk
index 94b8cbfac0..eb21c3a08b 100644
--- a/target/linux/rockchip/image/armv8.mk
+++ b/target/linux/rockchip/image/armv8.mk
@@ -159,6 +159,16 @@ define Device/radxa_e25
endef
TARGET_DEVICES += radxa_e25
+define Device/radxa_e52c
+ DEVICE_VENDOR := Radxa
+ DEVICE_MODEL := E52C
+ SOC := rk3582
+ UBOOT_DEVICE_NAME := generic-rk3588
+ DEVICE_DTS := rockchip/rk3582-radxa-e52c
+ DEVICE_PACKAGES := blkdiscard kmod-r8169
+endef
+TARGET_DEVICES += radxa_e52c
+
define Device/radxa_rock-3a
DEVICE_VENDOR := Radxa
DEVICE_MODEL := ROCK 3A