From: Lu jicong Date: Mon, 24 Jul 2023 07:22:42 +0000 (+0800) Subject: rockchip: add FriendlyARM NanoPC T4 support X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ac9a2d6a3575f7d2864d5013bb2dbf8cb40eeece;p=openwrt%2Fstaging%2Fstintel.git rockchip: add FriendlyARM NanoPC T4 support Hardware -------- RockChip RK3399 ARM64 (6 cores) 4GB LPDDR3 RAM 1x 1000 Base-T 1 GPIO LED (status) HDMI 2.0 3.5mm TRRS AV jack Micro-SD slot 16GB eMMC 1x USB 3.0 Port 2x USB 2.0 Port 1x USB Type-C Port 1x M.2 PCI-E Port AP6356S (BCM4356) SDIO WiFi & Bluetooth adapter -------- Note: AP6356S is not supported yet due to the lack of firmware and NVRAM Signed-off-by: Lu jicong --- diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk index 063dc6fd64..e8630921a4 100644 --- a/target/linux/rockchip/image/armv8.mk +++ b/target/linux/rockchip/image/armv8.mk @@ -15,6 +15,14 @@ define Device/firefly_roc-rk3328-cc endef TARGET_DEVICES += firefly_roc-rk3328-cc +define Device/friendlyarm_nanopc-t4 + DEVICE_VENDOR := FriendlyARM + DEVICE_MODEL := NanoPC T4 + SOC := rk3399 + IMAGE/sysupgrade.img.gz := boot-common | boot-script | pine64-img | gzip | append-metadata +endef +TARGET_DEVICES += friendlyarm_nanopc-t4 + define Device/friendlyarm_nanopi-r2c DEVICE_VENDOR := FriendlyARM DEVICE_MODEL := NanoPi R2C diff --git a/target/linux/rockchip/patches-5.15/109-nanopc-t4-add-led-aliases.patch b/target/linux/rockchip/patches-5.15/109-nanopc-t4-add-led-aliases.patch new file mode 100644 index 0000000000..1a80dadd48 --- /dev/null +++ b/target/linux/rockchip/patches-5.15/109-nanopc-t4-add-led-aliases.patch @@ -0,0 +1,16 @@ +--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts +@@ -15,6 +15,13 @@ + model = "FriendlyElec NanoPC-T4"; + compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399"; + ++ aliases { ++ led-boot = &status_led; ++ led-failsafe = &status_led; ++ led-running = &status_led; ++ led-upgrade = &status_led; ++ }; ++ + vcc12v0_sys: vcc12v0-sys { + compatible = "regulator-fixed"; + regulator-always-on; diff --git a/target/linux/rockchip/patches-6.1/109-nanopc-t4-add-led-aliases.patch b/target/linux/rockchip/patches-6.1/109-nanopc-t4-add-led-aliases.patch new file mode 100644 index 0000000000..1a80dadd48 --- /dev/null +++ b/target/linux/rockchip/patches-6.1/109-nanopc-t4-add-led-aliases.patch @@ -0,0 +1,16 @@ +--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts +@@ -15,6 +15,13 @@ + model = "FriendlyElec NanoPC-T4"; + compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399"; + ++ aliases { ++ led-boot = &status_led; ++ led-failsafe = &status_led; ++ led-running = &status_led; ++ led-upgrade = &status_led; ++ }; ++ + vcc12v0_sys: vcc12v0-sys { + compatible = "regulator-fixed"; + regulator-always-on;