From 4cbd748e5284fd2b913db44753bb129162873332 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Linus=20L=C3=BCssing?= <linus.luessing@c0d3.blue>
Date: Thu, 7 Jul 2022 23:26:48 +0200
Subject: [PATCH] ath79-generic: (re)add support for ALFA Network AP121F
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Gone due to
commit 45c84a1 ("ar71xx: drop target")

Note that it was wrongly marked as device class tiny in
commit 7fd7116e2a86 ("targets: add device-class flags") in the past,
the device has 64MB RAM and not 32MB.

Also, the device has no "led-running" assigned in DTS. The device has
three LEDs: "green:vpn", "green:lan" and "green:wlan". The first LED,
"green:vpn", has a "V" icon and was used to show the VPN connection
status in the vendor firmware. This LED will be used via the newly
added "led-boot" fallback in gluon-setup-mode. But will be unused
during normal operation due to the unassigned "led-running" in DTS.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---
 docs/user/supported_devices.rst | 4 ++++
 targets/ath79-generic           | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index feb8a978f..8fe3f22fd 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -4,6 +4,10 @@ Supported Devices & Architectures
 ath79-generic
 --------------
 
+* ALFA Network
+
+  - AP121F
+
 * AVM
 
   - FRITZ!WLAN Repeater 300E [#avmflash]_
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 88ba28eb4..74eda3e8e 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -16,6 +16,12 @@ local ATH10K_PACKAGES_QCA9887 = {
 
 local ATH10K_PACKAGES_QCA9888 = {}
 
+-- ALFA NETWORK
+
+device('alfa-network-ap121f', 'alfa-network_ap121f', {
+	factory = false,
+})
+
 -- AVM
 
 device('avm-fritz-box-4020', 'avm_fritz4020', {
-- 
GitLab