From 45d361aeddd681c5f4b25ec73430cfe39d7690bf Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 10 Aug 2023 17:42:48 +0800 Subject: [PATCH] rockchip: add Rock 5A support Signed-off-by: Tianling Shen --- target/linux/rockchip/image/armv8.mk | 10 ++++++ ...-rockchip-use-system-LED-for-OpenWrt.patch | 35 +++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk index 2275130e3d..f1b0036c34 100644 --- a/target/linux/rockchip/image/armv8.mk +++ b/target/linux/rockchip/image/armv8.mk @@ -184,6 +184,16 @@ define Device/pine64_rockpro64 endef TARGET_DEVICES += pine64_rockpro64 +define Device/radxa_rock-5a + DEVICE_VENDOR := Radxa + DEVICE_MODEL := ROCK 5A + SOC := rk3588s + UBOOT_DEVICE_NAME := rock5a-rk3588s + BOOT_FLOW := pine64-img + DEVICE_PACKAGES := kmod-r8125 +endef +TARGET_DEVICES += radxa_rock-5a + define Device/radxa_rock-5b DEVICE_VENDOR := Radxa DEVICE_MODEL := ROCK 5B diff --git a/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch b/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch index af992cb3b1..c74c05e459 100644 --- a/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch +++ b/target/linux/rockchip/patches-6.1/100-rockchip-use-system-LED-for-OpenWrt.patch @@ -390,3 +390,38 @@ Signed-off-by: David Bauer sound { hp_detect: hp-detect { rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; +--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +@@ -9,12 +9,17 @@ + + / { + model = "Radxa ROCK 5 Model A"; +- compatible = "radxa,rock-5a", "rockchip,rk3588s"; ++ compatible = "radxa,rock-5a", "rockchip,rk3588"; + + aliases { + mmc0 = &sdhci; + mmc1 = &sdmmc; + serial2 = &uart2; ++ ++ led-boot = &status_led; ++ led-failsafe = &status_led; ++ led-running = &status_led; ++ led-upgrade = &status_led; + }; + + analog-sound { +@@ -40,11 +45,9 @@ + pinctrl-names = "default"; + pinctrl-0 = <&io_led>; + +- io-led { +- color = ; +- function = LED_FUNCTION_STATUS; ++ status_led: io-led { ++ label = "blue:status"; + gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; +- linux,default-trigger = "heartbeat"; + }; + }; +