From a338491a306798868738fd8210b27bd2a4ab0daa Mon Sep 17 00:00:00 2001
From: Henryk Heisig <hyniu@o2.pl>
Date: Tue, 6 Feb 2018 22:08:28 +0100
Subject: ar71xx: add support for TP-Link RE355

This device is identical as TP-Link RE450
RE355 is a dual-band AC1200 router, based on Qualcomm/Atheros
QCA9558+QCA9880.

Specification:

720/600/200 MHz (CPU/DDR/AHB)
64/128 MB of RAM (DDR2)
8 MB of FLASH (SPI NOR)
3T3R 2.4 GHz
3T3R 5 GHz
1x 10/100/1000 Mbps Ethernet
7x LED, 3x button
UART header on PCB

Flash instruction:
Web:
Download lede-ar71xx-generic-archer-c60-v2-squashfs-factory.bin
and use OEM System Tools - Firmware Upgrade site.

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
---
 tools/firmware-utils/src/tplink-safeloader.c | 43 ++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

(limited to 'tools')

diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
index 88e2e88bdf..c96edb4609 100644
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -871,6 +871,49 @@ static struct device_info boards[] = {
 		.last_sysupgrade_partition = "file-system"
 	},
 
+	/** Firmware layout for the RE355 */
+	{
+		.id = "RE355",
+		.vendor = "",
+		.support_list =
+			"SupportList:\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:00000000}\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:55530000}\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:45550000}\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:4A500000}\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:43410000}\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:41550000}\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:4B520000}\r\n"
+			"{product_name:RE355,product_ver:1.0.0,special_id:55534100}\r\n",
+		.support_trail = '\x00',
+		.soft_ver = NULL,
+
+		/**
+		   The flash partition table for RE355;
+		   it is almost the same as the one used by the stock images,
+		   576KB were moved from file-system to os-image.
+		*/
+		.partitions = {
+			{"fs-uboot", 0x00000, 0x20000},
+			{"os-image", 0x20000, 0x180000},
+			{"file-system", 0x1a0000, 0x460000},
+			{"partition-table", 0x600000, 0x02000},
+			{"default-mac", 0x610000, 0x00020},
+			{"pin", 0x610100, 0x00020},
+			{"product-info", 0x611100, 0x01000},
+			{"soft-version", 0x620000, 0x01000},
+			{"support-list", 0x621000, 0x01000},
+			{"profile", 0x622000, 0x08000},
+			{"user-config", 0x630000, 0x10000},
+			{"default-config", 0x640000, 0x10000},
+			{"radio", 0x7f0000, 0x10000},
+			{NULL, 0, 0}
+		},
+
+		.first_sysupgrade_partition = "os-image",
+		.last_sysupgrade_partition = "file-system"
+	},
+
 	/** Firmware layout for the RE450 */
 	{
 		.id = "RE450",
-- 
cgit v1.2.3