Zyxel labels their switch revisions A1, B1, ... and not v1, v2, ...
Rename the supported device to A1 to make it clear this is the only
known compatible hardware revision.
Also add a compatible for seamless upgrade.
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/thermal/thermal.h>
/ {
- compatible = "zyxel,xgs1250-12", "realtek,rtl838x-soc";
- model = "Zyxel XGS1250-12 Switch";
+ compatible = "zyxel,xgs1250-12-a1", "realtek,rtl838x-soc";
+ model = "Zyxel XGS1250-12 A1 Switch";
aliases {
led-boot = &led_pwr_sys;
endef
TARGET_DEVICES += zyxel_xgs1210-12-a1
-define Device/zyxel_xgs1250-12
+define Device/zyxel_xgs1250-12-a1
SOC := rtl9302
UIMAGE_MAGIC := 0x93001250
ZYXEL_VERS := ABWE
DEVICE_VENDOR := Zyxel
DEVICE_MODEL := XGS1250-12
+ DEVICE_VARIANT := A1
DEVICE_PACKAGES := kmod-hwmon-gpiofan kmod-thermal
+ SUPPORTED_DEVICES += zyxel,xgs1250-12
IMAGE_SIZE := 13312k
KERNEL_INITRAMFS := \
kernel-bin | \
zyxel-vers | \
uImage gzip
endef
-TARGET_DEVICES += zyxel_xgs1250-12
+TARGET_DEVICES += zyxel_xgs1250-12-a1