From 83d0e3274ea51a2017ea47c3f5a3dc60653a63ff Mon Sep 17 00:00:00 2001
From: "J. Burfeind" <git@aiyionpri.me>
Date: Sat, 4 Sep 2021 17:42:44 +0200
Subject: [PATCH] ath79-generic: add support for Onion Omega (#2306)

* ath79-generic: add support for Onion Omega

support was previously dropped in
commit 45c84a117bf8 ("ar71xx: drop target")

* fixup! ath79-generic: add support for Onion Omega

* fixup! ath79-generic: add support for Onion Omega
---
 docs/user/supported_devices.rst | 11 +++++++++++
 targets/ath79-generic           |  6 ++++++
 2 files changed, 17 insertions(+)

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index 7930da6f6..f7573dd78 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -25,6 +25,10 @@ ath79-generic
 
   - Raccoon
 
+* Onion
+
+  - Omega [#modular_ethernet]_
+
 * Plasma Cloud
 
   - PA300
@@ -327,3 +331,10 @@ Footnotes
 
 .. [#lan_as_wan]
   All LAN ports on this device are used as WAN.
+
+.. [#modular_ethernet]
+  These devices follow a modular principle,
+  which means even basic functionality like ethernet is provided by an expansion-board,
+  that may not be bundled with the device itself.
+  Such expansions are recommended for the config mode, but are not strictly necessary,
+  as exposed serial ports may grant sufficient access as well.
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 2051e3035..a42201816 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -74,6 +74,12 @@ device('ocedo-raccoon', 'ocedo_raccoon', {
 	factory = false,
 })
 
+-- Onion
+
+-- modular/optional "ethernet expansion board" recommended for config mode
+-- setup via integrated (USB-)tty is possible as well
+device('onion-omega', 'onion_omega')
+
 -- Plasma Cloud
 
 device('plasma-cloud-pa300', 'plasmacloud_pa300')
-- 
GitLab