From 8471944325db80ca37f7c756130070d0add58ff6 Mon Sep 17 00:00:00 2001 From: TOCK Chiu Date: Mon, 24 Dec 2018 10:36:59 +0800 Subject: ath79: add support for TP-Link Archer C7 v5 This commit adds support for TP-Link Archer C7 v5, leveraging most effort from commit ea9baee and 1e4ee63. Archer C7 v5 is identical to Archer A7 v5 but with a different flash layout. Specification: - QCA9563 SoC (750 MHz) - 128 MiB of RAM (DDR2) - 16 MiB of flash (SPI) - 5x 1 Gbps Ethernet (1x WAN + 4x LAN) - 2.4GHz (bgn) SoC internal + 5GHz (ac) QCA9880 - 10x LED, 2x button - UART header on PCB Flash instructions: 1. Upload openwrt-ath79-generic-tplink_archer-c7-v5-squashfs-factory.bin via web interface. Flash instructions using TFTP recovery: 1. Plug PC to one of the LAN ports 2. Set PC to fixed IP address 192.168.0.66 3. Rename the factory image to ArcherC7v5_tp_recovery.bin and place it in TFTP root directory 4. Turn on the router with the reset button pressed for about 15 secs 5. Release the button and wait about 150 secs to complete flashing Signed-off-by: TOCK Chiu --- .../ath79/dts/qca9563_tplink_archer-c7-v5.dts | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts (limited to 'target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts') diff --git a/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts b/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts new file mode 100644 index 0000000000..026d6c65e3 --- /dev/null +++ b/target/linux/ath79/dts/qca9563_tplink_archer-c7-v5.dts @@ -0,0 +1,55 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "qca9563_tplink_archer-x7-v5.dtsi" + +/ { + compatible = "tplink,archer-c7-v5", "qca,qca9563"; + model = "TP-Link Archer C7 v5"; +}; + +&mtdparts { + partition@0 { + label = "factory-uboot"; + reg = <0x000000 0x020000>; + read-only; + }; + + partition@20000 { + label = "u-boot"; + reg = <0x020000 0x020000>; + read-only; + }; + + partition@40000 { + label = "partition-table"; + reg = <0x040000 0x010000>; + }; + + art: partition@50000 { + label = "art"; + reg = <0x050000 0x010000>; + read-only; + }; + + info: partition@60000 { + label = "info"; + reg = <0x060000 0x020000>; + }; + + partition@80000 { + label = "user-config"; + reg = <0x080000 0x040000>; + }; + + partition@c0000 { + label = "firmware"; + reg = <0x0c0000 0xf00000>; + compatible = "denx,uimage"; + }; + + partition@ff0000 { + label = "default-config"; + reg = <0xff0000 0x010000>; + }; +}; -- cgit v1.2.3