Explorar el Código

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20118
Signed-off-by: Robert Marko <[email protected]>
Stijn Segers hace 3 meses
padre
commit
46cf10771a

+ 2 - 2
target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts → 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;

+ 4 - 2
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