[OpenWrt-Devel] [PATCH] ramips: mt7621: Add new device AsiaRF AP7621-NV1

Daniel Danzberger daniel at dd-wrt.com
Wed Jun 26 04:19:23 EDT 2019


The AP7621-NV1 is basically an AP7621-001 with additional peripherals:

- +1 Ethernet Port (POE: 1x PD, 2x PSE)
- 2 SIM slots
- 3 PICe USB2.0 + 2 x UIM interface

Installation:
Same as on the AP7621-001. Overflash with sysupgrade -F.

Signed-off-by: Daniel Danzberger <daniel at dd-wrt.com>
---
 target/linux/ramips/base-files/etc/board.d/02_network | 3 +++
 target/linux/ramips/dts/AP7621-NV1.dts                | 9 +++++++++
 target/linux/ramips/image/mt7621.mk                   | 9 +++++++++
 3 files changed, 21 insertions(+)
 create mode 100644 target/linux/ramips/dts/AP7621-NV1.dts

diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 02ef30cade..a276adb32c 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -42,6 +42,9 @@ ramips_setup_interfaces()
 	asiarf,ap7621-001)
 		ucidef_add_switch "switch0" "0:lan" "4:wan" "6 at eth0"
 		;;
+	asiarf,ap7621-nv1)
+		ucidef_add_switch "switch0" "0:wan" "2:lan" "3:lan" "6 at eth0"
+		;;
 	3g150b|\
 	3g300m|\
 	a5-v11|\
diff --git a/target/linux/ramips/dts/AP7621-NV1.dts b/target/linux/ramips/dts/AP7621-NV1.dts
new file mode 100644
index 0000000000..aad222f155
--- /dev/null
+++ b/target/linux/ramips/dts/AP7621-NV1.dts
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+/dts-v1/;
+#include "AP7621-001.dts"
+
+/ {
+	compatible = "asiarf,ap7621-nv1", "mediatek,mt7621-soc";
+	model = "AsiaRF AP7621-NV1";
+};
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index dce24308b8..b32cdf4100 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -659,3 +659,12 @@ define Device/asiarf_ap7621-001
 endef
 TARGET_DEVICES += asiarf_ap7621-001
 
+define Device/asiarf_ap7621-nv1
+  DTS := AP7621-NV1
+  IMAGE_SIZE := $(ralink_default_fw_size_16M)
+  DEVICE_TITLE := AsiaRF AP7621-NV1
+  DEVICE_PACKAGES := \
+	kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3
+endef
+TARGET_DEVICES += asiarf_ap7621-nv1
+
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list