]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: add support for Zyxel GS1900-10HP B1 24283/head
authorCarlo Szelinsky <github@szelinsky.de>
Sat, 18 Jul 2026 20:09:03 +0000 (22:09 +0200)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 19 Jul 2026 09:21:11 +0000 (11:21 +0200)
The GS1900-10HP B1 keeps the RTL8380M SoC and port layout but replaces the
A1's Broadcom PoE (Gen1) with a Realtek RTL8238 PSE fronted by a Nuvoton
MCU speaking the Gen2 protocol at 115200 baud. It reuses the shared
rtl8380_zyxel_gs1900-10hp.dtsi and only overrides the PSE compatible and
UART speed.

Specifications:
- SoC: Realtek RTL8380M
- Ports: 8x 10/100/1000 (PoE+), 2x SFP
- PoE: Realtek RTL8238 via Nuvoton MCU (Gen2, UART 115200)

Tested on hardware: driver probes RTL8238B (8 ports), per-port control via
ethtool, verified across a cold power-cycle.

Signed-off-by: Carlo Szelinsky <github@szelinsky.de>
Link: https://github.com/openwrt/openwrt/pull/24283
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
package/boot/uboot-tools/uboot-envtools/files/realtek
target/linux/realtek/base-files/etc/board.d/02_network
target/linux/realtek/base-files/etc/board.d/05_compat-version
target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp-b1.dts [new file with mode: 0644]
target/linux/realtek/image/rtl838x.mk

index 2e4ce297d2d3d9b7f20d610e934f654077fdd20b..4550719581302005b6ef712f6c8322827a875eb9 100644 (file)
@@ -21,6 +21,7 @@ zyxel,gs1900-8-a1|\
 zyxel,gs1900-8hp-a1|\
 zyxel,gs1900-8hp-b1|\
 zyxel,gs1900-10hp-a1|\
+zyxel,gs1900-10hp-b1|\
 zyxel,gs1900-16-a1|\
 zyxel,gs1900-24-a1|\
 zyxel,gs1900-24e-a1|\
index 98389c522b5820dfe81adccb9e8a52b841ff4b9e..e672c276f89817c7dcf15bfe7ca887f0bc99c579 100644 (file)
@@ -140,6 +140,7 @@ realtek_setup_macs()
        panasonic,m8eg-pn28080k|\
        vimin,vm-s100-0800ms|\
        zyxel,gs1900-10hp-a1|\
+       zyxel,gs1900-10hp-b1|\
        zyxel,gs1900-16-a1|\
        zyxel,gs1900-24-a1|\
        zyxel,gs1900-24-b1|\
index c934aadcb8475fcc819e5634d5382e19fd20b88d..9ce0df27f0d789173ddc71d91cb14881930f6554 100644 (file)
@@ -18,6 +18,7 @@ case "$(board_name)" in
        zyxel,gs1900-8hp-a1 | \
        zyxel,gs1900-8hp-b1 | \
        zyxel,gs1900-10hp-a1 | \
+       zyxel,gs1900-10hp-b1 | \
        zyxel,gs1900-16-a1 | \
        zyxel,gs1900-24e-a1 | \
        zyxel,gs1900-24ep-a1 | \
diff --git a/target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp-b1.dts b/target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp-b1.dts
new file mode 100644 (file)
index 0000000..0738e34
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "rtl8380_zyxel_gs1900-10hp.dtsi"
+
+/ {
+       compatible = "zyxel,gs1900-10hp-b1", "realtek,rtl838x-soc";
+       model = "Zyxel GS1900-10HP B1 Switch";
+};
+
+&pse {
+       compatible = "zyxel,gs1900-10hp-b1-pse", "realtek,pse-mcu-gen2";
+       current-speed = <115200>;
+};
index a8b11c2c230764d492d82c940b278c4e20b8b41f..369db851d68afc094cc53f21b870299f0b7d3cb5 100644 (file)
@@ -396,6 +396,16 @@ define Device/zyxel_gs1900-10hp-a1
 endef
 TARGET_DEVICES += zyxel_gs1900-10hp-a1
 
+define Device/zyxel_gs1900-10hp-b1
+  $(Device/zyxel_gs1900)
+  SOC := rtl8380
+  DEVICE_MODEL := GS1900-10HP
+  DEVICE_VARIANT := B1
+  ZYXEL_VERS := AAZI
+  DEVICE_PACKAGES += kmod-pse-realtek-mcu-uart
+endef
+TARGET_DEVICES += zyxel_gs1900-10hp-b1
+
 define Device/zyxel_gs1900-16-a1
   $(Device/zyxel_gs1900)
   SOC := rtl8382