From 9751744797a2840dbb81fd400ebaa862d61b46ec Mon Sep 17 00:00:00 2001
From: Sebastian Schaper <36594927+s-2@users.noreply.github.com>
Date: Fri, 25 Mar 2022 22:23:55 +0100
Subject: [PATCH] ath79: migrate D-Link DAP-1330 and DIR-550 from ar71xx
 (#2417)

also add DAP-1365, which is a different case variant of DAP-1330

Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
---
 docs/user/supported_devices.rst |  4 ++++
 targets/ath79-generic           | 11 +++++++++++
 2 files changed, 15 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index c852ce8f1..003cdf8b0 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -19,7 +19,11 @@ ath79-generic
 
 * D-Link
 
+  - DAP-1330 A1 [#lan_as_wan]_
+  - DAP-1365 A1 [#lan_as_wan]_
   - DAP-2660 A1 [#lan_as_wan]_
+  - DIR-505 A1 [#lan_as_wan]_
+  - DIR-505 A2 [#lan_as_wan]_
 
 * Enterasys
 
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 20aad3035..74ed22736 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -63,11 +63,22 @@ device('devolo-wifi-pro-1750x', 'devolo_dvl1750x', {
 
 -- D-Link
 
+device('d-link-dap-1330-a1', 'dlink_dap-1330-a1')
+device('d-link-dap-1365-a1', 'dlink_dap-1365-a1')
+
 device('d-link-dap-2660-a1', 'dlink_dap-2660-a1', {
 	factory_ext = '.img',
 	packages = ATH10K_PACKAGES_QCA9880,
 })
 
+device('d-link-dir-505', 'dlink_dir-505', {
+        factory = false,
+        manifest_aliases = {
+                'd-link-dir-505-rev-a1', -- Upgrade from OpenWrt 19.07
+                'd-link-dir-505-rev-a2', -- Upgrade from OpenWrt 19.07
+        },
+})
+
 
 -- Enterasys
 
-- 
GitLab