From b341e1149bcd1af915fed2f7446980e8cfc5839a Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Sun, 26 Nov 2017 22:49:05 +0100 Subject: [PATCH] Add support for TP-Link TL-WR810N v2 (QCA9533 based) --- Makefile | 1 + README.md | 5 +++-- u-boot/Makefile | 7 +++++++ u-boot/include/configs/ap143.h | 16 +++++++++++++--- 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 6d43108..a8e5ecd 100644 --- 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 \ diff --git a/README.md b/README.md index 8ad8eaf..d43c8e3 100644 --- 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 | diff --git a/u-boot/Makefile b/u-boot/Makefile index 0bda091..c1ff913 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -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) diff --git a/u-boot/include/configs/ap143.h b/u-boot/include/configs/ap143.h index 390ae71..318e821 100644 --- a/u-boot/include/configs/ap143.h +++ b/u-boot/include/configs/ap143.h @@ -81,11 +81,15 @@ #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) @@ -171,7 +175,8 @@ #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 "\ @@ -224,6 +229,7 @@ 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) ||\ @@ -288,6 +294,7 @@ 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) ||\ @@ -345,6 +352,7 @@ 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) ||\ @@ -425,6 +433,7 @@ 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) ||\ @@ -481,6 +490,7 @@ 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) ||\ -- 2.25.1