[openwrt/openwrt] realtek: rtl839x: rename GS1900 series v1/v2 to A1/B1

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 24 04:41:09 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/46cf10771a2d75ce81dea67eb41ef1d10b17b7ae

commit 46cf10771a2d75ce81dea67eb41ef1d10b17b7ae
Author: Stijn Segers <foss at volatilesystems.org>
AuthorDate: Sun Sep 21 12:00:28 2025 +0200

    realtek: rtl839x: rename GS1900 series v1/v2 to A1/B1
    
    Zyxel labels their switch revisions A1, B1, ... and not v1, v2, ...
    Rename the devices as such in OpenWrt to match the labels. Of note:
    the first (A1) revision is never labeled as such on the label, just
    in the web UI. Provide compatibles for seamless sysupgrade.
    
    For a recent overview of Zyxel GS1900 series revisions, see the
    table linked in https://forum.openwrt.org/t//57875/3874.
    
    Signed-off-by: Stijn Segers <foss at volatilesystems.org>
    Link: https://github.com/openwrt/openwrt/pull/20118
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 .../{rtl8393_zyxel_gs1900-48.dts => rtl8393_zyxel_gs1900-48-a1.dts} | 4 ++--
 target/linux/realtek/image/rtl839x.mk                               | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48-a1.dts
similarity index 98%
rename from target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
rename to target/linux/realtek/dts/rtl8393_zyxel_gs1900-48-a1.dts
index de53263fa4..c236957809 100644
--- a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
+++ b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48-a1.dts
@@ -6,8 +6,8 @@
 #include <dt-bindings/gpio/gpio.h>
 
 / {
-	compatible = "zyxel,gs1900-48", "realtek,rtl8393-soc";
-	model = "Zyxel GS1900-48";
+	compatible = "zyxel,gs1900-48-a1", "realtek,rtl8393-soc";
+	model = "Zyxel GS1900-48 A1";
 
 	aliases {
 		led-boot = &led_sys;
diff --git a/target/linux/realtek/image/rtl839x.mk b/target/linux/realtek/image/rtl839x.mk
index 5f9b6d56c6..2412e5764e 100644
--- a/target/linux/realtek/image/rtl839x.mk
+++ b/target/linux/realtek/image/rtl839x.mk
@@ -73,10 +73,12 @@ define Device/tplink_sg2452p-v4
 endef
 TARGET_DEVICES += tplink_sg2452p-v4
 
-define Device/zyxel_gs1900-48
+define Device/zyxel_gs1900-48-a1
   $(Device/zyxel_gs1900)
   SOC := rtl8393
   DEVICE_MODEL := GS1900-48
+  DEVICE_VARIANT := A1
   ZYXEL_VERS := AAHN
+  SUPPORTED_DEVICES += zyxel,gs1900-48
 endef
-TARGET_DEVICES += zyxel_gs1900-48
+TARGET_DEVICES += zyxel_gs1900-48-a1




More information about the lede-commits mailing list