From 083934521186d54ded432c16a91e5fcea73c8308 Mon Sep 17 00:00:00 2001 From: FUKAUMI Naoki Date: Wed, 3 Sep 2025 02:02:44 +0000 Subject: [PATCH] rockchip: add support for Radxa ROCK 5 ITX/ITX+ The Radxa ROCK 5 ITX(+) is a Mini-ITX form factor computer using the Rockchip RK3588 SoC. - https://radxa.com/products/rock5/5itx - https://radxa.com/products/rock5/5itxp Hardware -------- - Quad Cortex-A76 and Quad Cortex-A55 CPU - Mali-G610 MP4 GPU - 6 TOPS NPU - 4/8/16/24/32GB LPDDR5 RAM - on-board eMMC - 16MB SPI NOR flash - microSD card slot - 2x 2.5 Gigabit Ethernet ports with PoE (additional PoE module required) - USB 3.1 Gen1 Type-C HOST/OTG port - 4x USB 3.1 Gen1 Type-A HOST ports - 2x USB 2.0 Type-A HOST ports - M.2 M Key connector with PCIe 3.0 x2 - 4x SATA connectors (ITX only) - 2nd M.2 M Key connector with PCIe 3.0 x2 (ITX+ only) - M.2 E Key connector with PCIe 2.1 x1 and USB 2.0 - RTC battery socket for CR1220 - 4pin PWM fan connector - Serial console pin header - Front panel pin headers - 24pin ATX power connector - 5525 12V DC jack 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 --- package/boot/uboot-rockchip/Makefile | 8 ++++++++ .../rockchip/armv8/base-files/etc/board.d/02_network | 1 + .../base-files/etc/hotplug.d/net/40-net-smp-affinity | 1 + target/linux/rockchip/image/armv8.mk | 8 ++++++++ 4 files changed, 18 insertions(+) diff --git a/package/boot/uboot-rockchip/Makefile b/package/boot/uboot-rockchip/Makefile index 53bfa773e3e..174847f3249 100644 --- a/package/boot/uboot-rockchip/Makefile +++ b/package/boot/uboot-rockchip/Makefile @@ -285,6 +285,13 @@ define U-Boot/nanopc-t6-rk3588 friendlyarm_nanopc-t6 endef +define U-Boot/rock-5-itx-rk3588 + $(U-Boot/rk358x/Default) + NAME:=ROCK 5 ITX/ITX+ + BUILD_DEVICES:= \ + radxa_rock-5-itx +endef + define U-Boot/rock5b-rk3588 $(U-Boot/rk358x/Default) NAME:=ROCK 5B @@ -352,6 +359,7 @@ UBOOT_TARGETS := \ rock-3b-rk3568 \ generic-rk3588 \ nanopc-t6-rk3588 \ + rock-5-itx-rk3588 \ rock5b-rk3588 \ sige7-rk3588 \ nanopi-r6c-rk3588s \ 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 ad23e05647c..b210cd191ce 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 @@ -24,6 +24,7 @@ rockchip_setup_interfaces() friendlyarm,nanopi-r5c|\ radxa,e25|\ radxa,rock-3b|\ + radxa,rock-5-itx|\ radxa,rock-5t) ucidef_set_interfaces_lan_wan 'eth0' 'eth1' ;; 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 5ca382ea928..e8650f8d99b 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,rock-5-itx|\ radxa,rock-5t) set_interface_core 10 "eth0" set_interface_core 20 "eth1" diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk index 2406598e9bf..0d1c646da7d 100644 --- a/target/linux/rockchip/image/armv8.mk +++ b/target/linux/rockchip/image/armv8.mk @@ -198,6 +198,14 @@ define Device/radxa_rock-4se endef TARGET_DEVICES += radxa_rock-4se +define Device/radxa_rock-5-itx + DEVICE_VENDOR := Radxa + DEVICE_MODEL := ROCK 5 ITX/ITX+ + SOC := rk3588 + DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169 kmod-rtw89-8852be wpad-basic-mbedtls +endef +TARGET_DEVICES += radxa_rock-5-itx + define Device/radxa_rock-5a DEVICE_VENDOR := Radxa DEVICE_MODEL := ROCK 5A -- 2.47.3