Add support for TP-Link TL-WR810N v2 (QCA9533 based)
authorPiotr Dymacz <pepe2k@gmail.com>
Sun, 26 Nov 2017 21:49:05 +0000 (22:49 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Wed, 29 Nov 2017 21:34:54 +0000 (22:34 +0100)
Makefile
README.md
u-boot/Makefile
u-boot/include/configs/ap143.h

index 6d43108b4556a93e1bf7aa20741e25bf52fe9416..a8e5ecd3950185ff92439c8dad6141a29e879094 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -234,6 +234,7 @@ COMMON_ETHS27_TARGETS = \
        tp-link_tl-wdr3500_v1 \
        tp-link_tl-wr802n_v1 \
        tp-link_tl-wr810n_v1 \
+       tp-link_tl-wr810n_v2 \
        tp-link_tl-wr820n_v1_CN \
        tp-link_tl-wr841n_v10 \
        tp-link_tl-wr841n_v11 \
index 8ad8eaf76590965df261ebd3483aa1a993854aa9..d43c8e3b89f28c27bae43717c134e327ca16cfa8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -114,7 +114,7 @@ Currently supported devices:
   - TP-Link TL-MR6400 v1, v2
   - TP-Link TL-WA850RE v2
   - TP-Link TL-WR802N
-  - TP-Link TL-WR810N
+  - TP-Link TL-WR810N v1, v2
   - TP-Link TL-WR820N (version for Chinese market)
   - TP-Link TL-WR841N/D v9, v10, v11
   - TP-Link TL-WR842N/D v3
@@ -169,7 +169,8 @@ More information about supported devices:
 | [TP-Link TL-WR720N v3](http://wiki.openwrt.org/toh/tp-link/tl-wr720n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR740N v4](http://wiki.openwrt.org/toh/tp-link/tl-wr740n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR802N](https://wikidevi.com/wiki/TP-LINK_TL-WR802N_v1.0) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
-| [TP-Link TL-WR810N](https://wiki.openwrt.org/toh/tp-link/tl-wr810n) | QCA9531 | 8 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
+| [TP-Link TL-WR810N v1](https://wiki.openwrt.org/toh/tp-link/tl-wr810n) | QCA9531 | 8 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
+| TP-Link TL-WR810N v2 | QCA9533 | 8 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR820N](https://wiki.openwrt.org/toh/tp-link/tl-wr820n) | QCA9531 | 4 MiB | 64 MiB DDR2 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR841N/D v8](http://wiki.openwrt.org/toh/tp-link/tl-wr841nd) | AR9341 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
 | [TP-Link TL-WR841N/D v9/10/11](https://wiki.openwrt.org/toh/tp-link/tl-wr841nd) | QCA9533 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | RO |
index 0bda091d4222dd8fe45d9169b9cf115fb84d37d7..c1ff913b2956824b038025db4acfbd95d4f122de 100644 (file)
@@ -648,6 +648,13 @@ tp-link_tl-wr810n_v1: qca953x_common lsdk_kernel
        @$(call define_add,CFG_ATH_GMAC_NMACS,2)
        @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
 
+tp-link_tl-wr810n_v2: qca953x_common lsdk_kernel
+       @$(call config_init,TP-Link TL-WR810N v2,tl-wr810n-v2,8,12,1,QCA_QCA9533_SOC)
+       @$(call define_add,CONFIG_FOR_TPLINK_WR810N_V2,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-wr820n_v1_CN: qca953x_common lsdk_kernel
        @$(call config_init,TP-Link TL-WR820N v1 CN,tl-wr820n-v1,4,12,1,QCA_QCA9531_SOC)
        @$(call define_add,CONFIG_FOR_TPLINK_WR820N_V1_CN,1)
index 390ae7157c8949ecaef4ccf9d0dcda5885867303..318e8213562d5fe05e52b9702befcda57498fd27 100644 (file)
 
        #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO13
 
-#elif defined(CONFIG_FOR_TPLINK_WR810N_V1)
+#elif defined(CONFIG_FOR_TPLINK_WR810N_V1) ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)
 
        #define CONFIG_QCA_GPIO_MASK_LED_ACT_L  GPIO13
        #define CONFIG_QCA_GPIO_MASK_IN         GPIO0 | GPIO1
-       #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H GPIO11
+
+       #if defined(CONFIG_FOR_TPLINK_WR810N_V1)
+               #define CONFIG_QCA_GPIO_MASK_OUT_INIT_H GPIO11
+       #endif
 
 #elif defined(CONFIG_FOR_TPLINK_WR841N_V10) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V9)
 
 #elif defined(CONFIG_FOR_TPLINK_MR22U_V1)    ||\
       defined(CONFIG_FOR_TPLINK_MR6400_V1V2) ||\
-      defined(CONFIG_FOR_TPLINK_WR810N_V1)
+      defined(CONFIG_FOR_TPLINK_WR810N_V1)   ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)
 
        #define CONFIG_BOOTARGS "console=ttyS0,115200 root=31:02 "\
                                "rootfstype=squashfs init=/sbin/init "\
     defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
     defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
     defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+    defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
     defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
       defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
       defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
       defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
       defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
       defined(CONFIG_FOR_TPLINK_MR6400_V1V2)  ||\
       defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
       defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+      defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
       defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
       defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
     defined(CONFIG_FOR_TPLINK_MR6400_V1V2)  ||\
     defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
     defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+    defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
     defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\
     defined(CONFIG_FOR_TPLINK_WA850RE_V2)   ||\
     defined(CONFIG_FOR_TPLINK_WR802N_V1)    ||\
     defined(CONFIG_FOR_TPLINK_WR810N_V1)    ||\
+    defined(CONFIG_FOR_TPLINK_WR810N_V2)    ||\
     defined(CONFIG_FOR_TPLINK_WR820N_V1_CN) ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V10)   ||\
     defined(CONFIG_FOR_TPLINK_WR841N_V11)   ||\