From 6341a0939f0bf87094884efeb7678c2479400b16 Mon Sep 17 00:00:00 2001
From: Mahmoud Arabi <ma@simonwunderlich.de>
Date: Tue, 19 May 2026 19:53:07 +0200
Subject: [PATCH] ramips-mt7621: add support for Plasma Cloud PAX1800-Lite

Plasma Cloud PAX1800-Lite is a dual-band Wi-Fi 6 router, based on MediaTek
MT7621A + MT79x5D platform.

Specifications:

- SOC:      MT7621AT (880 MHz)
- DRAM:     DDR3 448 MiB (Nanya NT5CC256M16DP-DI)
- Flash:    2 MiB SPI NOR (S25FL016K) + 128 MB SPI NAND (W25N02KVZEIR)
- Ethernet: 1x 10/100/1000 Mbps (SOC's built-in switch, with PoE+)
- Wi-Fi:    2x2:2 2.4/5 GHz (MT7905DAN + MT7975DN)
            (MT7905DAN doesn't support background DFS scan/BT)
- LED:      tri-color LED for status (red, blue, green)
- Buttons:  1x (reset)
- Antenna:  4x internal, non-detachable omnidirectional
- UART:     1x 4-pin (2.54 mm pitch, marked as "3V3 G/RX GND W/TX")
- Power:    12 V DC/2 A (DC jack)

Flashing instructions:
======================

Various methods can be used to install the actual image on the flash.
Two easy ones are:

ap51-flash
----------

The tool ap51-flash (https://github.com/ap51-flash/ap51-flash) should be
used to transfer the image to the u-boot when the device boots up.

Signed-off-by: Mahmoud Arabi <ma@simonwunderlich.de>
---
 docs/user/supported_devices.rst               |  4 ++++
 ...ps-pax1800-lite-Fix-label-mac-device.patch | 24 +++++++++++++++++++
 targets/ramips-mt7621                         |  5 ++++
 3 files changed, 33 insertions(+)
 create mode 100644 patches/openwrt/0012-ramips-pax1800-lite-Fix-label-mac-device.patch

diff --git a/docs/user/supported_devices.rst b/docs/user/supported_devices.rst
index db8540a3..bdaf8e3a 100644
--- a/docs/user/supported_devices.rst
+++ b/docs/user/supported_devices.rst
@@ -550,6 +550,10 @@ ramips-mt7621
   - WAC104
   - WAX202
 
+* Plasma Cloud
+
+  - PAX1800-Lite
+
 * TP-Link
 
   - EAP615-Wall (v1)
diff --git a/patches/openwrt/0012-ramips-pax1800-lite-Fix-label-mac-device.patch b/patches/openwrt/0012-ramips-pax1800-lite-Fix-label-mac-device.patch
new file mode 100644
index 00000000..1a195c74
--- /dev/null
+++ b/patches/openwrt/0012-ramips-pax1800-lite-Fix-label-mac-device.patch
@@ -0,0 +1,24 @@
+From: Sven Eckelmann <sven@narfation.org>
+Date: Tue, 19 May 2026 21:43:16 +0200
+Subject: ramips: pax1800-lite: Fix label-mac-device
+
+The gmac1 is not used and doesn't have any mac address configured. The
+gmac0 has the nvmem-cells set and can actually be used to retrieve the
+correct mac address.
+
+Fixes: c7c54f313425 ("ramips: add support for Plasma Cloud PAX1800-Lite")
+Signed-off-by: Sven Eckelmann <sven@narfation.org>
+
+diff --git a/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts b/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts
+index 6805a2938a17a643b2d2fb7b65329a868f3327cb..48f06bb3ba677c1d0daf2caa1233ce7ef69170cf 100644
+--- a/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts
++++ b/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts
+@@ -19,7 +19,7 @@
+ 		led-failsafe = &led_status_green;
+ 		led-running = &led_status_green;
+ 		led-upgrade = &led_status_green;
+-		label-mac-device = &gmac1;
++		label-mac-device = &gmac0;
+ 	};
+ 
+ 	gpio_export {
diff --git a/targets/ramips-mt7621 b/targets/ramips-mt7621
index 5b39dc12..1bff0446 100644
--- a/targets/ramips-mt7621
+++ b/targets/ramips-mt7621
@@ -110,6 +110,11 @@ device('netgear-wndr3700-v5', 'netgear_wndr3700-v5', {
 })
 
 
+-- Plasma Cloud
+
+device('plasma-cloud-pax1800-lite', 'plasmacloud_pax1800-lite')
+
+
 -- TP-Link
 
 device('tp-link-archer-ax23-v1', 'tplink_archer-ax23-v1', {
-- 
2.47.3

