Add support for TPE-r1100, TPE-r3300, TPE-r5500 routers.
authorRISCi_ATOM <bob@bobcall.me>
Tue, 24 May 2016 12:13:41 +0000 (12:13 +0000)
committerRISCi_ATOM <bob@bobcall.me>
Tue, 24 May 2016 12:13:41 +0000 (12:13 +0000)
trunk/target/linux/ar71xx/base-files/etc/board.d/01_leds
trunk/target/linux/ar71xx/base-files/etc/board.d/02_network
trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh
trunk/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
trunk/target/linux/ar71xx/config-4.1
trunk/target/linux/ar71xx/image/Makefile
trunk/target/linux/ar71xx/patches-4.1/911-MIPS-ath79-add-tpe-r1100.patch [new file with mode: 0644]
trunk/target/linux/ar71xx/patches-4.1/912-MIPS-ath79-add-tpe-r3300.patch [new file with mode: 0644]

index 39b21ca519fe1888f1248b669d9a89c2f10e9389..2e00235313e26d7f119bb97f619327e1c2d1449d 100755 (executable)
@@ -652,6 +652,14 @@ tl-wr2543n)
        ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
        ;;
 
+tpe-r1100)
+        ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt"
+        ;;
+
+tpe-r3300)
+        ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt"
+        ;;
+
 tube2h)
        ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
        ucidef_set_rssimon "wlan0" "40000" "1"
index 67adf334aa57d2059c1201881ddeee08ba8f7b17..ac91b057b74c0a27c168465062acffe7e752a60a 100755 (executable)
@@ -367,6 +367,13 @@ tl-wa901nd-v2 |\
 tl-wa901nd-v3 |\
 tl-wa901nd-v4 |\
 tl-wr703n |\
+tpe-r1100 |\
+tpe-r3300)
+        ucidef_set_interfaces_lan_wan "eth1" "eth0"
+        ucidef_add_switch "switch0" "1" "1"
+        ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
+        ;;
+
 tube2h |\
 unifiac |\
 wndap360 |\
index d71b8ba838e6639c5c327d7ebba7721156d7abec..93a249c0949b54e8d646535fd1c1edd4b46ea838 100755 (executable)
@@ -273,6 +273,9 @@ tplink_board_detect() {
        "453000"*)
                model="MERCURY MW4530R"
                ;;
+       "457000"*)
+               model="ThinkPenguin TPE-R5500"
+               ;;
        "934100"*)
                model="NC-LINK SMART-300"
                ;;
@@ -943,6 +946,12 @@ ar71xx_board_detect() {
        *"TL-MR13U v1")
                name="tl-mr13u"
                ;;
+       *"Think Penguin Mini TPE-R1100")
+                name="tpe-r1100"
+                ;;
+        *"Think Penguin Pro TPE-R3300")
+                name="tpe-r3300"
+                ;;
        *"Tube2H")
                name="tube2h"
                ;;
index 9f8a14b2bcfb41a193755ae792627fe58ddb6b93..2e06b87416719c14331db074992e3f5f3fd4498e 100755 (executable)
@@ -225,6 +225,9 @@ platform_check_image() {
        dlan-pro-500-wp | \
        dlan-pro-1200-ac | \
        dragino2 | \
+       tpe-r1100 | \
+        tpe-r3300 | \
+       tpe-r5500 | \
        epg5000 | \
        esr1750 | \
        esr900 | \
index 5939891048b17d298dfed2a7c8ca2e5768e0899e..7ca09242a80baaea6dab3c920d482613e130cb80 100644 (file)
@@ -164,6 +164,8 @@ CONFIG_ATH79_MACH_TL_WR841N_V8=y
 CONFIG_ATH79_MACH_TL_WR841N_V9=y
 CONFIG_ATH79_MACH_TL_WR941ND=y
 CONFIG_ATH79_MACH_TL_WR941ND_V6=y
+CONFIG_ATH79_MACH_TPE_R1100=y
+CONFIG_ATH79_MACH_TPE_R3300=y
 CONFIG_ATH79_MACH_TUBE2H=y
 CONFIG_ATH79_MACH_UBNT=y
 CONFIG_ATH79_MACH_UBNT_UNIFIAC=y
index 061126d650f4ac1535050ba44b9f92f28ea90cda..1c709ba2379d0fb094602aa8f8822f44b3c37056 100644 (file)
@@ -373,7 +373,11 @@ define Device/mw4530r-v1
 $(Device/tl-wdr4300-v1)
   TPLINK_HWID := 0x45300001
 endef
-TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1
+define Device/tpe-r5500
+$(Device/tl-wdr4300-v1)
+  TPLINK_HWID :=  0x45700001
+endef
+TARGET_DEVICES += tl-wdr3500-v1 tl-wdr3600-v1 tl-wdr4300-v1 tl-wdr4300-v1-il tl-wdr4310-v1 mw4530r-v1 tpe-r5500
 
 define Device/tl-wdr6500-v2
 $(Device/tplink-8mlzma)
@@ -1156,6 +1160,22 @@ define Device/oolite
 endef
 TARGET_DEVICES += oolite
 
+define Device/tpe-r1100
+  BOARDNAME = TPE-R1100
+  IMAGE_SIZE = 16000k
+  CONSOLE = ttyATH0,115200
+  MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
+endef
+TARGET_DEVICES += tpe-r1100
+
+define Device/tpe-r3300
+  BOARDNAME = TPE-R3300
+  IMAGE_SIZE = 16000k
+  CONSOLE = ttyATH0,115200
+  MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro
+endef
+TARGET_DEVICES += tpe-r3300
+
 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
 # UBNT_TYPE e.g. one of (BZ, XM, XW)
 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
diff --git a/trunk/target/linux/ar71xx/patches-4.1/911-MIPS-ath79-add-tpe-r1100.patch b/trunk/target/linux/ar71xx/patches-4.1/911-MIPS-ath79-add-tpe-r1100.patch
new file mode 100644 (file)
index 0000000..d4771d4
--- /dev/null
@@ -0,0 +1,39 @@
+--- a/arch/mips/ath79/Kconfig.librecmc
++++ b/arch/mips/ath79/Kconfig.librecmc
+@@ -33,6 +33,16 @@ config ATH79_MACH_ALFA_NX
+       select ATH79_DEV_LEDS_GPIO
+       select ATH79_DEV_M25P80
++config ATH79_MACH_TPE_R1100
++      bool "TPE-R1100 support"
++      select SOC_AR933X
++      select ATH79_DEV_ETH
++      select ATH79_DEV_GPIO_BUTTONS
++      select ATH79_DEV_LEDS_GPIO
++      select ATH79_DEV_M25P80
++      select ATH79_DEV_USB
++      select ATH79_DEV_WMAC
++
+ config ATH79_MACH_TUBE2H
+       bool "ALFA Network Tube2H board support"
+       select SOC_AR933X
+--- a/arch/mips/ath79/Makefile
++++ b/arch/mips/ath79/Makefile
+@@ -171,6 +171,7 @@ obj-$(CONFIG_ATH79_MACH_TL_WR1043ND_V2)
+ obj-$(CONFIG_ATH79_MACH_TL_WR2543N)   += mach-tl-wr2543n.o
+ obj-$(CONFIG_ATH79_MACH_TL_WR703N)    += mach-tl-wr703n.o
+ obj-$(CONFIG_ATH79_MACH_TL_WR720N_V3) += mach-tl-wr720n-v3.o
++obj-$(CONFIG_ATH79_MACH_TPE_R1100)    += mach-tpe-r1100.o
+ obj-$(CONFIG_ATH79_MACH_TUBE2H)               += mach-tube2h.o
+ obj-$(CONFIG_ATH79_MACH_UBNT)         += mach-ubnt.o
+ obj-$(CONFIG_ATH79_MACH_UBNT_XM)      += mach-ubnt-xm.o
+--- a/arch/mips/ath79/machtypes.h
++++ b/arch/mips/ath79/machtypes.h
+@@ -202,6 +202,7 @@ enum ath79_mach_type {
+       ATH79_MACH_TL_WR941ND,          /* TP-LINK TL-WR941ND */
+       ATH79_MACH_TL_WR941ND_V5,       /* TP-LINK TL-WR941ND v5 */
+       ATH79_MACH_TL_WR941ND_V6,       /* TP-LINK TL-WR941ND v6 */
++      ATH79_MACH_TPE_R1100,           /* TPE-R1100 support */
+       ATH79_MACH_TUBE2H,              /* Alfa Network Tube2H */
+       ATH79_MACH_UBNT_AIRGW,          /* Ubiquiti AirGateway */
+       ATH79_MACH_UBNT_AIRGWP,         /* Ubiquiti AirGateway Pro */
diff --git a/trunk/target/linux/ar71xx/patches-4.1/912-MIPS-ath79-add-tpe-r3300.patch b/trunk/target/linux/ar71xx/patches-4.1/912-MIPS-ath79-add-tpe-r3300.patch
new file mode 100644 (file)
index 0000000..fd1a31e
--- /dev/null
@@ -0,0 +1,39 @@
+--- a/arch/mips/ath79/Kconfig.librecmc
++++ b/arch/mips/ath79/Kconfig.librecmc
+@@ -43,6 +43,16 @@ config ATH79_MACH_TPE_R1100
+       select ATH79_DEV_USB
+       select ATH79_DEV_WMAC
++config ATH79_MACH_TPE_R3300
++      bool "TPE_R3300 support"
++      select SOC_AR933X
++      select ATH79_DEV_ETH
++      select ATH79_DEV_GPIO_BUTTONS
++      select ATH79_DEV_LEDS_GPIO
++      select ATH79_DEV_M25P80
++      select ATH79_DEV_USB
++      select ATH79_DEV_WMAC
++
+ config ATH79_MACH_TUBE2H
+       bool "ALFA Network Tube2H board support"
+       select SOC_AR933X
+--- a/arch/mips/ath79/Makefile
++++ b/arch/mips/ath79/Makefile
+@@ -172,6 +172,7 @@ obj-$(CONFIG_ATH79_MACH_TL_WR2543N)        += m
+ obj-$(CONFIG_ATH79_MACH_TL_WR703N)    += mach-tl-wr703n.o
+ obj-$(CONFIG_ATH79_MACH_TL_WR720N_V3) += mach-tl-wr720n-v3.o
+ obj-$(CONFIG_ATH79_MACH_TPE_R1100)    += mach-tpe-r1100.o
++obj-$(CONFIG_ATH79_MACH_TPE_R3300)    += mach-tpe-r3300.o
+ obj-$(CONFIG_ATH79_MACH_TUBE2H)               += mach-tube2h.o
+ obj-$(CONFIG_ATH79_MACH_UBNT)         += mach-ubnt.o
+ obj-$(CONFIG_ATH79_MACH_UBNT_XM)      += mach-ubnt-xm.o
+--- a/arch/mips/ath79/machtypes.h
++++ b/arch/mips/ath79/machtypes.h
+@@ -203,6 +203,7 @@ enum ath79_mach_type {
+       ATH79_MACH_TL_WR941ND_V5,       /* TP-LINK TL-WR941ND v5 */
+       ATH79_MACH_TL_WR941ND_V6,       /* TP-LINK TL-WR941ND v6 */
+       ATH79_MACH_TPE_R1100,           /* TPE-R1100 support */
++      ATH79_MACH_TPE_R3300,           /* TPE-R3300 */
+       ATH79_MACH_TUBE2H,              /* Alfa Network Tube2H */
+       ATH79_MACH_UBNT_AIRGW,          /* Ubiquiti AirGateway */
+       ATH79_MACH_UBNT_AIRGWP,         /* Ubiquiti AirGateway Pro */