[][Panther/Merlin DEV]

[Description]
Add support mtk RFB4 board

[Release-log]

Change-Id: I5de063a0236fc49e27ac0388d9bc0f6cc18c5225
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4632457
diff --git a/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-mt7976-ax6000-rfb4.dts b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-mt7976-ax6000-rfb4.dts
new file mode 100644
index 0000000..ea024ae
--- /dev/null
+++ b/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7986b-mt7976-ax6000-rfb4.dts
@@ -0,0 +1,11 @@
+/dts-v1/;
+#include "mt7986b-rfb.dtsi"
+/ {
+	model = "MediaTek MT7986b RFB";
+	compatible = "mediatek,mt7986b-rfb";
+};
+
+&wbsys {
+	mediatek,mtd-eeprom = <&factory 0x0000>;
+	status = "disabled";
+};
diff --git a/target/linux/mediatek/image/mt7986.mk b/target/linux/mediatek/image/mt7986.mk
index d36cafa..5d1ae25 100644
--- a/target/linux/mediatek/image/mt7986.mk
+++ b/target/linux/mediatek/image/mt7986.mk
@@ -100,6 +100,32 @@
 endef
 TARGET_DEVICES += mt7986b-mt7975-ax6000-rfb1-snand
 
+define Device/mt7986b-mt7976-ax6000-rfb4
+  DEVICE_VENDOR := MediaTek
+  DEVICE_MODEL := mt7986b-mt7976-ax6000-rfb4
+  DEVICE_DTS := mt7986b-mt7976-ax6000-rfb4
+  DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
+endef
+TARGET_DEVICES += mt7986b-mt7976-ax6000-rfb4
+
+define Device/mt7986b-mt7976-ax6000-rfb4-snand
+  DEVICE_VENDOR := MediaTek
+  DEVICE_MODEL := mt7986b-mt7976-ax6000-rfb4 (SPI-NAND,UBI)
+  DEVICE_DTS := mt7986b-mt7976-ax6000-rfb4
+  DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
+  SUPPORTED_DEVICES := mediatek,mt7986-rfb-snand
+  UBINIZE_OPTS := -E 5
+  BLOCKSIZE := 128k
+  PAGESIZE := 2048
+  IMAGE_SIZE := 65536k
+  KERNEL_IN_UBI := 1
+  IMAGES += factory.bin
+  IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
+  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+endef
+TARGET_DEVICES += mt7986b-mt7976-ax6000-rfb4-snand
+
+
 define Device/mediatek_mt7986-fpga
   DEVICE_VENDOR := MediaTek
   DEVICE_MODEL := MTK7986 FPGA