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@volatilesystems.org>
Link: https://github.com/openwrt/openwrt/pull/20118
Signed-off-by: Robert Marko <robimarko@gmail.com>
#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;
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