From patchwork Tue Jun 26 15:00:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?0KHQvNC40YDQvdC+0LIg0JTQvNC40YLRgNC40Lk=?= X-Patchwork-Id: 934895 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=hotmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lZKVPAwy"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=hotmail.com header.i=@hotmail.com header.b="aTzDxd/8"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41FTlN6Pfhz9ryk for ; Wed, 27 Jun 2018 01:01:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-ID:Date:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+bFaNB6qs00lPK3jre5m2SujPYusphKpZI4BMj+XwWA=; b=lZKVPAwyRzO7C3 zLBAIx3xH8mWuFcS9CeMdXfYSpjKsfVfY7U8jKhqdOnoZ6JrjAO7A0gyOcF2H0ik13pNP7xUUNtGZ R3Pkh0+z8fyezlOakiQmeuLJ5szZBAkIyJds7OHY4b3tU2gfIg6edU74eEnhI8gnTL4T1uZ6f0fcX b+NytpCTttpM3Ad0JLxa/yWAiWVM6nfkpNGLDbUqtWSxs9HOl3nMwwVTjm85+JpjPmLNSvygYClk+ IwXrIwavx21LU78L+I/vKtu+FeMAkd7Jex8RH3iHCQGjaLpDq0EzWSng/+8viQeWSpJhbHtVIUxGY p4gGf+7HR20DFzPkQmLw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXpT2-0001As-Hp; Tue, 26 Jun 2018 15:01:16 +0000 Received: from mail-oln040092065018.outbound.protection.outlook.com ([40.92.65.18] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXpSh-0000iy-Vj for openwrt-devel@lists.openwrt.org; Tue, 26 Jun 2018 15:01:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jvv9+AvrbQ2vQVCmbSPdGX6nxPHtQvOQVP+/06HBgP8=; b=aTzDxd/884xi0TB6f5aUgb6vYLvR2CuclgwWwMnlgLhXNYNwszcqr0VDT8Qwd10GfOHKe/f25cyc+6dCrKbEq5I3LX5pyDOWGVaaWr0JrnFNYxoreqfvPyXNon90rAg3Kmr41R8d6QyJUTL/cHaT+feMdEh/h3T8K+2wnJ/XBi6shuYwa3u0q6rqD793hammHVJXQo3uL34mLMuq8Ehs4CNLtelTIFhFoGuHvDo3uxYDx334ZsTBneAVtKJs/Pgmgl1cuZhCd9ur56mFTNgdU2i7HU5W50gl7LIscJKvQg05ehw05YYFklMzoWO8RS+gMNYH2Aoido25McX7x/uayw== Received: from VE1EUR01FT024.eop-EUR01.prod.protection.outlook.com (10.152.2.59) by VE1EUR01HT094.eop-EUR01.prod.protection.outlook.com (10.152.2.195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.906.15; Tue, 26 Jun 2018 15:00:42 +0000 Received: from AM5PR0201MB2417.eurprd02.prod.outlook.com (10.152.2.51) by VE1EUR01FT024.mail.protection.outlook.com (10.152.2.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.906.15 via Frontend Transport; Tue, 26 Jun 2018 15:00:42 +0000 Received: from AM5PR0201MB2417.eurprd02.prod.outlook.com ([fe80::99e3:2a66:d004:2700]) by AM5PR0201MB2417.eurprd02.prod.outlook.com ([fe80::99e3:2a66:d004:2700%6]) with mapi id 15.20.0884.024; Tue, 26 Jun 2018 15:00:42 +0000 From: =?koi8-r?b?883J0s7P1yDkzcnU0snK?= To: "openwrt-devel@lists.openwrt.org" Thread-Topic: [OpenWrt-Devel] [PATCH] ath79: fixed Add support for TL-WR740N/NDv2,TL-MR3220v1,TL-MR3420v1 Thread-Index: AQHUDV5nXMjRVN8fuE+nFUDSj26vqA== Date: Tue, 26 Jun 2018 15:00:42 +0000 Message-ID: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:2439F0CE545B1C004D19463600724493B49B8B3874E6B5D06495FFFBD9E2F3E2; UpperCasedChecksum:AA4A68BA7E9635368D3427EE45E74E0CB178BC9CE90D7C0334050B60CD68FB5A; SizeAsReceived:7043; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [C/k3bmfRbamu++mnFeo97xwRa9+LoIjd] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VE1EUR01HT094; 7:1pghnD8ICTV9adyVvicaFQTlVa+UE9pAAYRvPgrGyeEE+NSXgHVDVyzNKbh63imEAAhNEa6aaSjRhNJX3ucZmwnfZGRRWBLemH+W6jpK7jPArvAKSLIcJx324qzvf3Oc2EEjUaUfo3h9sIFQyHwLK6Nnbs3aPndbsUlW6G3mBt3cllsm3ChewsH/aqWL4h+6+d2j+EriHi7nMDN1pg+V0irwjJh4lqE2M6GcDPTi8QCjken1pIzzJqqxfyAsKXMu x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125500)(1701031045); SRVR:VE1EUR01HT094; x-ms-traffictypediagnostic: VE1EUR01HT094: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:VE1EUR01HT094; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR01HT094; x-forefront-prvs: 071518EF63 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(199004)(189003)(2900100001)(33656002)(2501003)(8676002)(486006)(6346003)(5250100002)(305945005)(1857600001)(26005)(53546011)(102836004)(6506007)(7696005)(81156014)(8936002)(476003)(14454004)(104016004)(256004)(9686003)(85182001)(68736007)(2351001)(105586002)(6916009)(106356001)(5640700003)(6436002)(74316002)(25786009)(82202002)(20460500001)(73972006)(86362001)(575784001)(97736004)(83332001)(99286004)(87572001)(55016002)(5660300001)(15852004); DIR:OUT; SFP:1901; SCL:1; SRVR:VE1EUR01HT094; H:AM5PR0201MB2417.eurprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:; received-spf: None (protection.outlook.com: hotmail.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=dioptimizer@hotmail.com; x-microsoft-antispam-message-info: GLq+28WqdINDd/LXrckbwSlSrbPkLqn/4pN/c3AZJefiFgB++lmFoEzanJJviZ3qiDx3DEVhq0TwH3hsDkEjSWIxqVUCph4cR/AKDeDebB5oiiqzxmppyVUVxZxd3CCImSXIZ+s/3a1NoKjfAmcS7e/rB95Vd3WtbdybQffhNwEBY1SqYVTfnQCeORTyyWze8skJlKSh7yga/+t3ln2ix4JV3a+51YODZ6tn3EZWm+E= MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: f12efbb0-867f-4c93-8261-502eceebfafa X-MS-Exchange-CrossTenant-Network-Message-Id: dbcf510a-b3ae-4e27-5a60-08d5db75964d X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: f12efbb0-867f-4c93-8261-502eceebfafa X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2018 15:00:42.1476 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT094 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180626_080056_333758_A4888120 X-CRM114-Status: GOOD ( 15.11 ) X-Spam-Score: 1.2 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [40.92.65.18 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.2 FORGED_HOTMAIL_RCVD2 hotmail.com 'From' address, but no 'Received:' 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dioptimizer[at]hotmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily Subject: [OpenWrt-Devel] [PATCH] ath79: fixed Add support for TL-WR740N/NDv2, TL-MR3220v1, TL-MR3420v1 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From 45ade20ff65fca3140e80189747c42ac9ee123ab Mon Sep 17 00:00:00 2001 From: Deoptim Date: Tue, 26 Jun 2018 17:01:47 +0300 Subject: [PATCH] ath79: fixed Add support for TL-WR740N/NDv2,TL-MR3220v1,TL-MR3420v1 Its common AP99(AR7241) platform with following devices: TP-Link TL-WR740N/ND v2 (SoC AR7241 / Wifi AR9287 / without USB) TP-Link TL-MR3220 v1 (SoC AR7241 / Wifi AR9285 / USB support) TP-Link TL-MR3420 v1 (SoC AR7241 / Wifi AR9287 / USB support) File ar7241_ap99.dtsi have common architecture with those devices and dts files include it as common configuration. Signed-off-by: Deoptim --- .../ath79/base-files/etc/board.d/02_network | 7 + .../etc/hotplug.d/firmware/10-ath9k-eeprom | 3 + target/linux/ath79/dts/ar7241_ap99.dtsi | 144 ++++++++++++++++++ .../linux/ath79/dts/ar7241_tl-mr3220-v1.dts | 55 +++++++ .../linux/ath79/dts/ar7241_tl-mr3420-v1.dts | 44 ++++++ target/linux/ath79/dts/ar7241_tl-wr841-v7.dts | 12 ++ target/linux/ath79/image/tiny-tp-link.mk | 29 ++++ 7 files changed, 294 insertions(+) create mode 100644 target/linux/ath79/dts/ar7241_ap99.dtsi create mode 100644 target/linux/ath79/dts/ar7241_tl-mr3220-v1.dts create mode 100644 target/linux/ath79/dts/ar7241_tl-mr3420-v1.dts create mode 100644 target/linux/ath79/dts/ar7241_tl-wr841-v7.dts diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index e2a45b0526..689ae82ffb 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -98,6 +98,13 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "3:lan:1" "5:lan:2" "4:wan" ;; + "tplink,tl-wr841-v7"|\ + "tplink,tl-mr3220-v1"|\ + "tplink,tl-mr3420-v1") + ucidef_set_interfaces_lan_wan "eth1.1" "eth0" + ucidef_add_switch "switch0" \ + "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" + ;; *) ucidef_set_interfaces_lan_wan "eth0" "eth1" ;; diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index 7023fa5e58..e5e2b1f8d3 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -54,6 +54,9 @@ case "$FIRMWARE" in "tplink,tl-wdr4300") ath9k_eeprom_extract "art" 20480 1088 ;; + "tplink,tl-wr841-v7"|\ + "tplink,tl-mr3220-v1"|\ + "tplink,tl-mr3420-v1"|\ "netgear,wnr612-v2"|\ "on,n150r"|\ "tplink,tl-wr740n-v2"|\ diff --git a/target/linux/ath79/dts/ar7241_ap99.dtsi b/target/linux/ath79/dts/ar7241_ap99.dtsi new file mode 100644 index 0000000000..d3834b4915 --- /dev/null +++ b/target/linux/ath79/dts/ar7241_ap99.dtsi @@ -0,0 +1,144 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include +#include + +#include "ar7241.dtsi" + +/ { + aliases { + led-status = &led_system; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x2000000>; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + linux,code = ; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + + qss { + label = "qss"; + linux,code = ; + gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + led_system: system { + label = "tp-link:green:system"; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + + qss { + label = "tp-link:green:qss"; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + }; + }; + + ath9k-leds { + compatible = "gpio-leds"; + + wlan { + label = "ath9k-phy0"; + gpios = <&ath9k 0 GPIO_ACTIVE_LOW>; + default-state = "off"; + linux,default-trigger = "phy0tpt"; + }; + }; +}; + +&spi { + status = "okay"; + num-cs = <1>; + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + uboot: partition@0 { + reg = <0x0 0x20000>; + label = "u-boot"; + read-only; + }; + + firmware: partition@20000 { + reg = <0x20000 0x3d0000>; + label = "firmware"; + }; + + art: partition@3f0000 { + reg = <0x3f0000 0x10000>; + label = "art"; + read-only; + }; + }; + }; +}; + +&pcie { + status = "okay"; + + ath9k: wifi@0 { + reg = <0x0000 0 0 0 0>; + #gpio-cells = <2>; + gpio-controller; + qca,no-eeprom; + mtd-mac-address = <&uboot 0x1fc00>; + }; +}; + +ð0 { + status = "okay"; + + mtd-mac-address = <&uboot 0x1fc00>; + mtd-mac-address-increment = <(-1)>; + phy-handle = <&phy4>; +}; + +ð1 { + status = "okay"; + + mtd-mac-address = <&uboot 0x1fc00>; + mtd-mac-address-increment = <1>; +}; + +&mdio0 { + status = "okay"; + + phy4: ethernet-phy@4 { + reg = <4>; + phy-mode = "mii"; + }; +}; + +&gpio { + status = "okay"; +}; + +&uart { + status = "okay"; +}; diff --git a/target/linux/ath79/dts/ar7241_tl-mr3220-v1.dts b/target/linux/ath79/dts/ar7241_tl-mr3220-v1.dts new file mode 100644 index 0000000000..5c3989dccb --- /dev/null +++ b/target/linux/ath79/dts/ar7241_tl-mr3220-v1.dts @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar7241_ap99.dtsi" + +/ { + compatible = "tplink,tl-mr3220-v1", "qca,ar7241"; + model = "TP-Link TL-MR3220 v1"; + + usb-leds { + compatible = "gpio-leds"; + + led3g { + label = "tp-link:green:3g"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + default-state = "off"; + trigger-sources = <&hub_port>; + linux,default-trigger = "usbport"; + }; + }; + + ath9k-leds { + compatible = "gpio-leds"; + + wlan { + label = "ath9k-phy0"; + gpios = <&ath9k 1 GPIO_ACTIVE_LOW>; + default-state = "off"; + linux,default-trigger = "phy0tpt"; + }; + }; + + reg_usb_vbus: reg_usb_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&usb { + vbus-supply = <®_usb_vbus>; + status = "okay"; + + hub_port: port@1 { + reg = <1>; + #trigger-source-cells = <0>; + }; +}; + +&usb_phy { + status = "okay"; +}; diff --git a/target/linux/ath79/dts/ar7241_tl-mr3420-v1.dts b/target/linux/ath79/dts/ar7241_tl-mr3420-v1.dts new file mode 100644 index 0000000000..de2a237d06 --- /dev/null +++ b/target/linux/ath79/dts/ar7241_tl-mr3420-v1.dts @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar7241_ap99.dtsi" + +/ { + compatible = "tplink,tl-mr3420-v1", "qca,ar7241"; + model = "TP-Link TL-MR3420 v1"; + + usb-leds { + compatible = "gpio-leds"; + + led3g { + label = "tp-link:green:3g"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + default-state = "off"; + trigger-sources = <&hub_port>; + linux,default-trigger = "usbport"; + }; + }; + + reg_usb_vbus: reg_usb_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&usb { + vbus-supply = <®_usb_vbus>; + status = "okay"; + + hub_port: port@1 { + reg = <1>; + #trigger-source-cells = <0>; + }; +}; + +&usb_phy { + status = "okay"; +}; diff --git a/target/linux/ath79/dts/ar7241_tl-wr841-v7.dts b/target/linux/ath79/dts/ar7241_tl-wr841-v7.dts new file mode 100644 index 0000000000..ecf0fb5577 --- /dev/null +++ b/target/linux/ath79/dts/ar7241_tl-wr841-v7.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include +#include + +#include "ar7241_ap99.dtsi" + +/ { + compatible = "tplink,tl-wr841-v7", "qca,ar7241"; + model = "TP-LINK TL-WR841N/ND v7"; +}; \ No newline at end of file diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk index 1dfed48dba..e4d07143ed 100644 --- a/target/linux/ath79/image/tiny-tp-link.mk +++ b/target/linux/ath79/image/tiny-tp-link.mk @@ -39,3 +39,32 @@ define Device/tl-wr740n-v2 SUPPORTED_DEVICES := tplink,tl-wr740n-v2 tl-wr740n-v2 endef TARGET_DEVICES += tl-wr740n-v2 + +define Device/tl-wr841-v7 + $(Device/tplink-4m) + ATH_SOC := ar7241 + DEVICE_TITLE := TP-LINK TL-WR841N/ND v7 + TPLINK_HWID := 0x08410007 + SUPPORTED_DEVICES := tplink,tl-wr841-v7 tl-wr841-v7 +endef +TARGET_DEVICES += tl-wr841-v7 + +define Device/tl-mr3220-v1 + $(Device/tplink-4m) + ATH_SOC := ar7241 + DEVICE_TITLE := TP-Link TL-MR3220 v1 + TPLINK_HWID := 0x32200001 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES := tplink,tl-mr3220-v1 tl-mr3220-v1 +endef +TARGET_DEVICES += tl-mr3220-v1 + +define Device/tl-mr3420-v1 + $(Device/tplink-4m) + ATH_SOC := ar7241 + DEVICE_TITLE := TP-Link TL-MR3420 v1 + TPLINK_HWID := 0x34200001 + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES := tplink,tl-mr3420-v1 tl-mr3420-v1 +endef +TARGET_DEVICES += tl-mr3420-v1