Add support for TP-Link TL-MR3420 v3 (QCA9531 based)
authoryoAeroA00 <aditya.raghuvanshi2000@gmail.com>
Wed, 14 Jun 2017 15:43:08 +0000 (21:13 +0530)
committerPiotr Dymacz <pepe2k@gmail.com>
Fri, 7 Jul 2017 18:06:01 +0000 (20:06 +0200)
Makefile
README.md
original_u-boot_images/tp-link_tl-mr3420_v3_120617.bin [new file with mode: 0644]
u-boot/Makefile
u-boot/include/configs/ap143.h

index 764b9fedb4596f17f32dba27c2278176c3ef4680..3225825eea2e96191e34ecb50e0e8ded116141f7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -225,6 +225,7 @@ $(COMMON_AR933X_TARGETS):
 
 COMMON_ETHS27_TARGETS = \
        tp-link_tl-mr3420_v2 \
+       tp-link_tl-mr3420_v3 \
        tp-link_tl-wa801nd_v2 \
        tp-link_tl-wa850re_v2 \
        tp-link_tl-wa830re_v2 \
index 6e27c72896ac4be5618754001162a39b3c023986..146051f6df543114d7a4cdd8816461a85989170b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -103,6 +103,7 @@ Currently supported devices:
   - Comfast CF-E520N/CF-E530N
   - P&W CPE505N
   - P&W R602N
+  - TP-Link TL-MR3420 v3
   - TP-Link TL-WA850RE v2
   - TP-Link TL-WR802N
   - TP-Link TL-WR810N
@@ -142,6 +143,7 @@ More information about supported devices:
 | [TP-Link TL-MR3040 v1/2](http://wiki.openwrt.org/toh/tp-link/tl-mr3040) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | [TP-Link TL-MR3220 v2](http://wiki.openwrt.org/toh/tp-link/tl-mr3420) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | [TP-Link TL-MR3420 v2](http://wikidevi.com/wiki/TP-LINK_TL-MR3420_v2) | AR9341 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
+| [TP-Link TL-MR3420 v3](http://wikidevi.com/wiki/TP-LINK_TL-MR3420_v3) | QCA9531 | 4 MiB | 32 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WA801ND v2](http://wikidevi.com/wiki/TP-LINK_TL-WA801ND_v2) | AR9341 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WA830RE v2](http://wikidevi.com/wiki/TP-LINK_TL-WA830RE_v2) | AR9341 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | TP-Link TL-WA850RE v2 | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
diff --git a/original_u-boot_images/tp-link_tl-mr3420_v3_120617.bin b/original_u-boot_images/tp-link_tl-mr3420_v3_120617.bin
new file mode 100644 (file)
index 0000000..d176f3c
Binary files /dev/null and b/original_u-boot_images/tp-link_tl-mr3420_v3_120617.bin differ
index b746e96f622b83aa91876815dadc78e46082ba1c..6e37f56b0ef69b4fbba1edac7dc0364866a75364 100644 (file)
@@ -514,6 +514,13 @@ tp-link_tl-mr3420_v2: ar934x_common lsdk_kernel
        @$(call define_add,CFG_AG7240_NMACS,2)
        @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
 
+tp-link_tl-mr3420_v3: qca953x_common lsdk_kernel
+       @$(call config_init,TP-Link TL-MR3420 v3,tl-mr3420-v3,4,12,1,QCA_QCA953X_SOC)
+       @$(call define_add,CONFIG_FOR_TPLINK_MR3420_V3,1)
+       @$(call define_add,CFG_ATHRS27_PHY,1)
+       @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+       @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
 tp-link_tl-wa801nd_v2: ar934x_common lsdk_kernel
        @$(call config_init,TP-Link TL-WA801ND v2,tl-wa801nd-v2,4,17,1,QCA_AR9341_SOC)
        @$(call define_add,CONFIG_FOR_TPLINK_WA801ND_V2,1)
index 8af3ec64e6f1848a95a3ed4dd89e974ddb6a884a..cb451aa29649eda4befc5934e7ba0261b07ea66b 100644 (file)
        #define CONFIG_QCA_GPIO_MASK_IN         GPIO12
        #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L
 
+#elif defined(CONFIG_FOR_TPLINK_MR3420_V3)
+
+       #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO1  | GPIO3  | GPIO4  |\
+                                               GPIO11 | GPIO13 | GPIO14 |\
+                                               GPIO15 | GPIO16
+       #define CONFIG_QCA_GPIO_MASK_OUT        CONFIG_QCA_GPIO_MASK_LED_ACT_L
+       #define CONFIG_QCA_GPIO_MASK_IN         GPIO12 | GPIO17
+       #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H CONFIG_QCA_GPIO_MASK_LED_ACT_L
+
 #elif defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V9)
 
                                "rootfstype=squashfs init=/sbin/init "\
                                "mtdparts=ath-nor0:32k(u-boot1),32k(u-boot2),3008k(rootfs),896k(uImage),64k(mib0),64k(art)"
 
-#elif defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\
+#elif defined(CONFIG_FOR_TPLINK_MR3420_V3) ||\
+      defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V11) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V9)  ||\
     defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
     defined(CONFIG_FOR_COMFAST_CF_E520N)    ||\
     defined(CONFIG_FOR_COMFAST_CF_E530N)    ||\
+    defined(CONFIG_FOR_TPLINK_MR3420_V3)    ||\
     defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
     defined(CONFIG_FOR_TPLINK_WR802N)       ||\
     defined(CONFIG_FOR_TPLINK_WR810N)       ||\
        #define CFG_ENV_ADDR            0x9F040000
        #define CFG_ENV_SIZE            0xFC00
        #define CFG_ENV_SECT_SIZE       0x10000
-#elif defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\
+#elif defined(CONFIG_FOR_TPLINK_MR3420_V3)  ||\
+      defined(CONFIG_FOR_TPLINK_WA850RE_V2) ||\
       defined(CONFIG_FOR_TPLINK_WR802N)     ||\
       defined(CONFIG_FOR_TPLINK_WR810N)     ||\
       defined(CONFIG_FOR_TPLINK_WR820N_CN)  ||\
        #define OFFSET_MAC_DATA_BLOCK           0x3c0000
        #define OFFSET_MAC_DATA_BLOCK_LENGTH    0x010000
        #define OFFSET_MAC_ADDRESS              0x000008
-#elif defined(CONFIG_FOR_TPLINK_WR802N)     ||\
+#elif defined(CONFIG_FOR_TPLINK_MR3420_V3)  ||\
+      defined(CONFIG_FOR_TPLINK_WR802N)     ||\
       defined(CONFIG_FOR_TPLINK_WR810N)     ||\
       defined(CONFIG_FOR_TPLINK_WR820N_CN)  ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\
     defined(CONFIG_FOR_COMFAST_CF_E320N_V2) ||\
     defined(CONFIG_FOR_COMFAST_CF_E520N)    ||\
     defined(CONFIG_FOR_COMFAST_CF_E530N)    ||\
+    defined(CONFIG_FOR_TPLINK_MR3420_V3)    ||\
     defined(CONFIG_FOR_TPLINK_WR802N)       ||\
     defined(CONFIG_FOR_TPLINK_WR810N)       ||\
     defined(CONFIG_FOR_TPLINK_WR820N_CN)    ||\
     defined(CONFIG_FOR_COMFAST_CF_E520N)    ||\
     defined(CONFIG_FOR_COMFAST_CF_E530N)    ||\
     defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
+    defined(CONFIG_FOR_TPLINK_MR3420_V3)    ||\
     defined(CONFIG_FOR_TPLINK_WR802N)       ||\
     defined(CONFIG_FOR_TPLINK_WR810N)       ||\
     defined(CONFIG_FOR_TPLINK_WR820N_CN)    ||\