From: FUKAUMI Naoki Date: Wed, 3 Sep 2025 02:02:48 +0000 (+0000) Subject: rockchip: add support for Radxa E52C X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F19867%2Fhead;p=thirdparty%2Fopenwrt.git 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 Link: https://github.com/openwrt/openwrt/pull/19867 Signed-off-by: Hauke Mehrtens --- diff --git a/package/boot/uboot-rockchip/Makefile b/package/boot/uboot-rockchip/Makefile index 34809be7859..f3717d67c61 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 6e2c95ada79..9c668a64d1a 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 b210cd191ce..971dea679c3 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 a70d2f2323d..2c9be8c2bfd 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 94b8cbfac0d..eb21c3a08b4 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