From 7ffc59d152f007dbbc46cfab9dc63b4c577b7976 Mon Sep 17 00:00:00 2001
From: David Lutz <kpanic@hirnduenger.de>
Date: Mon, 9 Mar 2020 04:15:21 +0100
Subject: [PATCH] lantiq-xrx200: add support for TP-Link TD-W8970, TD-W8980,
 TD-W9980 (#1867)

---
 docs/user/supported_devices.rst |  1 +
 targets/lantiq-xrx200           | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 690fa10cf..f39268876 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -83,6 +83,7 @@ ar71xx-generic
   - CPE510 (v1.0, v1.1)
   - CPE520 (v1.1)
   - RE450 (v1)
+  - TD-W8970 (v1)
   - TL-WDR3500 (v1)
   - TL-WDR3600 (v1)
   - TL-WDR4300 (v1)
diff --git a/targets/lantiq-xrx200 b/targets/lantiq-xrx200
index 43526eb07..d797f59f5 100644
--- a/targets/lantiq-xrx200
+++ b/targets/lantiq-xrx200
@@ -10,3 +10,17 @@ device('avm-fritz-box-7362-sl', 'avm_fritz7362sl', {
 device('avm-fritz-box-7412', 'avm_fritz7412', {
         factory = false,
 })
+
+-- TP-Link
+
+  -- CAVEAT: These devices don't have a dedicated WAN port.
+  --         All ethernet ports on the device are bridged and
+  --         used as WAN ports. Clients connected to these
+  --         ports will be connected to your private network.
+
+device('tp-link-td-w8970', 'tplink_tdw8970')
+
+device('tp-link-td-w8980', 'tplink_tdw8980', {
+	aliases = {'tp-link-td-w9980'},
+	broken = true, -- 5GHz unsupported
+})
-- 
GitLab