diff mbox series

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

Message ID 20190626081923.16521-1-daniel@dd-wrt.com
State Superseded, archived
Headers show
Series [OpenWrt-Devel] ramips: mt7621: Add new device AsiaRF AP7621-NV1 | expand

Commit Message

Daniel Danzberger June 26, 2019, 8:19 a.m. UTC
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@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

Comments

Bjørn Mork June 26, 2019, 8:39 a.m. UTC | #1
Daniel Danzberger <daniel@dd-wrt.com> writes:

> 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.

Please write the full description and instructions.  You don't have to
save any space here.  References like this is hard to look up, and
completely unnecessary.

And s/PICe/PCIe/


Bjørn
diff mbox series

Patch

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@eth0"
 		;;
+	asiarf,ap7621-nv1)
+		ucidef_add_switch "switch0" "0:wan" "2:lan" "3:lan" "6@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
+