# FIT will be loaded at 0x02080000. Leave 16M for that, align it to 2M and load the kernel after it.
KERNEL_LOADADDR := 0x03200000
+define Device/firefly_roc-rk3328-cc
+ DEVICE_VENDOR := Firefly
+ DEVICE_MODEL := ROC-RK3328-CC
+ SOC := rk3328
+ DEVICE_DTS := rockchip/rk3328-roc-cc
+ UBOOT_DEVICE_NAME := roc-cc-rk3328
+ IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r2s | pine64-img | gzip | append-metadata
+endef
+TARGET_DEVICES += firefly_roc-rk3328-cc
+
define Device/friendlyarm_nanopi-r2s
DEVICE_VENDOR := FriendlyARM
DEVICE_MODEL := NanoPi R2S
--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
-@@ -18,6 +18,13 @@
+@@ -16,6 +16,11 @@
+ aliases {
+ ethernet1 = &rtl8153;
mmc0 = &sdmmc;
- };
-
-+ aliases {
++
+ led-boot = &sys_led;
+ led-failsafe = &sys_led;
+ led-running = &sys_led;
+ led-upgrade = &sys_led;
-+ };
-+
+ };
+
chosen {
- stdout-path = "serial2:1500000n8";
+--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
++++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
+@@ -13,6 +13,11 @@
+ aliases {
+ mmc0 = &sdmmc;
+ mmc1 = &emmc;
++
++ led-boot = &power_led;
++ led-failsafe = &power_led;
++ led-running = &power_led;
++ led-upgrade = &power_led;
};
+
+ chosen {