Message ID | 20190716103041.15778-1-daniel@dd-wrt.com |
---|---|
State | Changes Requested |
Headers | show |
Series | [OpenWrt-Devel] ramips: mt7621: Add new device AsiaRF AP7621-NV1 | expand |
Hi Daniel, > -----Original Message----- > From: openwrt-devel [mailto:openwrt-devel-bounces@lists.openwrt.org] > On Behalf Of Daniel Danzberger > Sent: Dienstag, 16. Juli 2019 12:31 > To: openwrt-devel@lists.openwrt.org > Cc: Daniel Danzberger <daniel@dd-wrt.com> > Subject: [OpenWrt-Devel] [PATCH] ramips: mt7621: Add new device AsiaRF > AP7621-NV1 > > SoC: Mediatek MT7621A > CPU: 4x 880Mhz > Cache: 32 KB I-Cache and 32 KB D-Cach > 256 KB L2 Cache (shared by Dual-Core) > RAM: DDR3 512MB 16bits BUS > FLASH: 16MB > Switch: Mediatek Gigabit Switch (2 x LAN, 1 x WAN) > POE: (1x PD, 2x PSE) > USB: 1x 3.0 > PCI: 3x Mini PCIe (3 USB2.0 + 2 x UIM interface) > GPS: Quectel L70B > SIM: 2 Slots > BTN: Reset > LED: - Power > - Ethernet > - Wifi > - USB > UART: UART is present as Pads with throughholes on the PCB. > They are located on left side. > 3.3V - RX - GND - TX / 57600-8N1 > 3.3V is the square pad > > Installation > ------------ > The stock image is a modified openwrt and can be overflashed via > 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/mt7621_asiarf_ap7621-nv1.dts | 9 +++++++++ > target/linux/ramips/image/mt7621.mk | 10 ++++++++++ > 3 files changed, 22 insertions(+) > create mode 100644 target/linux/ramips/dts/mt7621_asiarf_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 c3b7cd4390..c348b91a36 100755 > --- a/target/linux/ramips/base-files/etc/board.d/02_network > +++ b/target/linux/ramips/base-files/etc/board.d/02_network > @@ -228,6 +228,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" > + ;; > asiarf,awapn2403) > ucidef_add_switch "switch0" \ > "0:lan" "1:wan" "6@eth0" > diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts > b/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts > new file mode 100644 > index 0000000000..93af3950d2 > --- /dev/null > +++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts > @@ -0,0 +1,9 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > + > +/dts-v1/; > +#include "mt7621_asiarf_ap7621-001.dts" Please create a DTSI, e.g. mt7621_asiarf_ap7621.dtsi, for the includes. > + > +/ { > + 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 e2928c80ce..1eb1a4cb99 100644 > --- a/target/linux/ramips/image/mt7621.mk > +++ b/target/linux/ramips/image/mt7621.mk > @@ -106,6 +106,16 @@ define Device/asiarf_ap7621-001 endef > TARGET_DEVICES += asiarf_ap7621-001 > > +define Device/asiarf_ap7621-nv1 > + MTK_SOC := mt7621 > + IMAGE_SIZE := $(ralink_default_fw_size_16M) Please use the precise size of the firmware partition, I think it would be 16000k. Best Adrian Schmutzler > + DEVICE_VENDOR := AsiaRF > + DEVICE_MODEL := AP7621-NV1 > + DEVICE_PACKAGES := \ > + kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 endef > TARGET_DEVICES += > +asiarf_ap7621-nv1 > + > define Device/asus_rt-ac57u > MTK_SOC := mt7621 > DEVICE_VENDOR := ASUS > -- > 2.20.1 > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
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 c3b7cd4390..c348b91a36 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -228,6 +228,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" + ;; asiarf,awapn2403) ucidef_add_switch "switch0" \ "0:lan" "1:wan" "6@eth0" diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts b/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts new file mode 100644 index 0000000000..93af3950d2 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +/dts-v1/; +#include "mt7621_asiarf_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 e2928c80ce..1eb1a4cb99 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -106,6 +106,16 @@ define Device/asiarf_ap7621-001 endef TARGET_DEVICES += asiarf_ap7621-001 +define Device/asiarf_ap7621-nv1 + MTK_SOC := mt7621 + IMAGE_SIZE := $(ralink_default_fw_size_16M) + DEVICE_VENDOR := AsiaRF + DEVICE_MODEL := AP7621-NV1 + DEVICE_PACKAGES := \ + kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 +endef +TARGET_DEVICES += asiarf_ap7621-nv1 + define Device/asus_rt-ac57u MTK_SOC := mt7621 DEVICE_VENDOR := ASUS
SoC: Mediatek MT7621A CPU: 4x 880Mhz Cache: 32 KB I-Cache and 32 KB D-Cach 256 KB L2 Cache (shared by Dual-Core) RAM: DDR3 512MB 16bits BUS FLASH: 16MB Switch: Mediatek Gigabit Switch (2 x LAN, 1 x WAN) POE: (1x PD, 2x PSE) USB: 1x 3.0 PCI: 3x Mini PCIe (3 USB2.0 + 2 x UIM interface) GPS: Quectel L70B SIM: 2 Slots BTN: Reset LED: - Power - Ethernet - Wifi - USB UART: UART is present as Pads with throughholes on the PCB. They are located on left side. 3.3V - RX - GND - TX / 57600-8N1 3.3V is the square pad Installation ------------ The stock image is a modified openwrt and can be overflashed via 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/mt7621_asiarf_ap7621-nv1.dts | 9 +++++++++ target/linux/ramips/image/mt7621.mk | 10 ++++++++++ 3 files changed, 22 insertions(+) create mode 100644 target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts