diff --git a/doc/devices/HYWS-SGT0108S.md b/doc/devices/HYWS-SGT0108S.md new file mode 100644 index 00000000..43ffcdd0 --- /dev/null +++ b/doc/devices/HYWS-SGT0108S.md @@ -0,0 +1,64 @@ +# Lianguo HYWS-SGT0108S + +Following is documentation for unmanaged switch marked as `HYWS-SGT0108S`. + +Original software is running UART on 9600 baud rate. Output is very minimal. + +Using SPI clamp in-board is the only method for initial installation and update. + +Stock flash chip is 512KB in size. Consider replacing for update through Web UI. + +- Header for uart is clearly identified. +- The red LED act as a powered-on LED. +- There is no SYS LED. +- There is a footprint for a Reset button. Unpopulated. Unclear if routed back to RTL8373. + +### Label specifications + +- **Name**: 2.5G Ethernet Switch 8+1 +- **Model**: HYWS-SGT0108S +- **Ports**: + - 8 × RJ45: 10/100/1000/2500 Mbps + - 1 × SFP: 1000 / 2500 / 10000 Mbps + +### What works + +- All eight 2.5GBASE-T RJ45 ports at 10/100/1000/2500 Mbps +- SFP port supporting 1G, 2.5G and 10G modules +- RJ45 LEDs (Blue+White) +- SFP Single LED (Blue) + +### Assembled unit + +Top side + + + +Front + + + +Bottom + + + +### PCB overview + +**Board markings** +- Top silkscreen: 2G5F_20G_V1.01 / 2023-09-28 + +Top side + + + +Bottom + + + +Original SPI Flash Chip + + + +## Power supply + +Input power is delivered via barell plug, `12V 1A` adapter was provided. diff --git a/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-bottom.jpg b/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-bottom.jpg new file mode 100644 index 00000000..ebec7003 Binary files /dev/null and b/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-bottom.jpg differ diff --git a/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-front.jpg b/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-front.jpg new file mode 100644 index 00000000..3e741233 Binary files /dev/null and b/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-front.jpg differ diff --git a/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-top.jpg b/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-top.jpg new file mode 100644 index 00000000..17877492 Binary files /dev/null and b/doc/devices/photos/HYWS-SGT0108S-unmanaged/Assembled-top.jpg differ diff --git a/doc/devices/photos/HYWS-SGT0108S-unmanaged/PCB-bot.jpg b/doc/devices/photos/HYWS-SGT0108S-unmanaged/PCB-bot.jpg new file mode 100644 index 00000000..f288872a Binary files /dev/null and b/doc/devices/photos/HYWS-SGT0108S-unmanaged/PCB-bot.jpg differ diff --git a/doc/devices/photos/HYWS-SGT0108S-unmanaged/PCB-top.jpg b/doc/devices/photos/HYWS-SGT0108S-unmanaged/PCB-top.jpg new file mode 100644 index 00000000..7676ad65 Binary files /dev/null and b/doc/devices/photos/HYWS-SGT0108S-unmanaged/PCB-top.jpg differ diff --git a/doc/devices/photos/HYWS-SGT0108S-unmanaged/og_spi_flash.jpg b/doc/devices/photos/HYWS-SGT0108S-unmanaged/og_spi_flash.jpg new file mode 100644 index 00000000..48cc8ee7 Binary files /dev/null and b/doc/devices/photos/HYWS-SGT0108S-unmanaged/og_spi_flash.jpg differ diff --git a/doc/supported_devices.md b/doc/supported_devices.md index 3cdd1ecc..660f148a 100644 --- a/doc/supported_devices.md +++ b/doc/supported_devices.md @@ -32,6 +32,7 @@ The following devices have been tested and are fully working: | Xikestore| SKS3200M-4GPY2XF| Yes | [SWTG024AS-v1.0](devices/SWTG024AS.md) | | 4 + 2 | | XikeStor | SKS3200-8E1X | Yes | [SWTG118AS-V2.1-17462](devices/SWTGW218AS.md) | 2M | 8 + 1 | | Ztyuav | Z-QWYT0402 | No | [PCB-K0402WS-V3.0](devices/PCB-K0402WS-V3.0.md) | | 4 + 2 | +| Lianguo | HYWS-SGT0108S | No | [2G5F_20G_V1.01](devices/HYWS-SGT0108S.md) | 0.5M | 8 + 1 | For KP-9000-6XH-X2 / KP-9000-6XHML-X2 / Mokerlink 2G040210GSM devices, select the machine target by PCB revision. The ML/non-ML or managed/unmanaged label diff --git a/machine.c b/machine.c index 3ce13d33..14e8603a 100644 --- a/machine.c +++ b/machine.c @@ -1144,6 +1144,45 @@ __code const struct machine machine = { }, }; +#elif defined MACHINE_LIANGUO_HYWS_SGT0108S +__code const struct machine machine = { + .machine_name = "Lianguo HYWS-SGT0108S", + .isRTL8373 = 1, + .min_port = 0, + .max_port = 8, + .n_sfp = 1, + .log_to_phys_port = {2, 1, 4, 3, 5, 6, 7, 8, 9}, + .phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8}, + .is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1}, + + .sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN, + .sfp_port[0].pin_los = GPIO37, + .sfp_port[0].pin_tx_disable = GPIO_NA, + .sfp_port[0].sds = 1, + .sfp_port[0].i2c = { + .sda = GPIO39_I2C_SDA4, + .scl = GPIO40_I2C_SCL3_MDC1 + }, + + .reset_pin = GPIO_NA, + .high_leds = { .mux = 0, .enable = 0 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1 }, + .led_sets = { + { + LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // RJ45 Blue LEDs + LEDS_2G5 | LEDS_LINK, // RJ45 White LEDs + 0, + 0 + }, + { + LEDS_10G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, // SFP blue LED? + 0, + 0, + 0 + }, + }, +}; + #else #error "Please select a machine type in machine.h" #endif