diff --git a/doc/devices/PB-2132.md b/doc/devices/PB-2132.md new file mode 100644 index 00000000..d3e91d4e --- /dev/null +++ b/doc/devices/PB-2132.md @@ -0,0 +1,53 @@ +# IG108 + +Following is documentation for unmanaged switch marked as `IG108`. + +Original software is running UART on 9600 baud rate. + +Using SPI clamp in-board is the only method for initial installation. + +### Brands + +| Brand | Type | Managed | PCB | Flash | Chip RTL | +|---------|------------|---------|------------|-------------|---------------| +| Goalake | IG108 | No | PB-2132 | cFeon Q32A | 8373N + 8224N | +| Netcore | GS9 | No | PB-2132 | cFeon Q32A | 8373N + 8224N | + +### What works + +- All eight 2.5GBASE-T RJ45 ports at 10/100/1000/2500 Mbps +- SFP port with 1G/2.5G/10G modules +- LEDs + +### PCB overview + +**Board markings** + +- Top silkscreen: PB-2132 + +Front Goalake: + + + +Label Goalake: + + + +Top side: + + + +Bottom: + + + +### Serial console + +The PCB has unpopulated through-holes near the SFP Port, with description of each pin, works out of the box. + +- **Settings**: 115200 baud / 8N1 / 3.3V TTL + +### Power supply + +Input power is delivered via barell plug, `12V 1A` adapter was provided. + diff --git a/doc/devices/photos/PB-2132/PCB-bottom.jpg b/doc/devices/photos/PB-2132/PCB-bottom.jpg new file mode 100644 index 00000000..63cc5352 Binary files /dev/null and b/doc/devices/photos/PB-2132/PCB-bottom.jpg differ diff --git a/doc/devices/photos/PB-2132/PCB-top.jpg b/doc/devices/photos/PB-2132/PCB-top.jpg new file mode 100644 index 00000000..a0d47ab9 Binary files /dev/null and b/doc/devices/photos/PB-2132/PCB-top.jpg differ diff --git a/doc/devices/photos/PB-2132/case.jpg b/doc/devices/photos/PB-2132/case.jpg new file mode 100644 index 00000000..4dbfed06 Binary files /dev/null and b/doc/devices/photos/PB-2132/case.jpg differ diff --git a/doc/devices/photos/PB-2132/label.jpg b/doc/devices/photos/PB-2132/label.jpg new file mode 100644 index 00000000..a70dc2df Binary files /dev/null and b/doc/devices/photos/PB-2132/label.jpg differ diff --git a/doc/supported_devices.md b/doc/supported_devices.md index 6ecc5054..dbb217ee 100644 --- a/doc/supported_devices.md +++ b/doc/supported_devices.md @@ -6,6 +6,7 @@ The following devices have been tested and are fully working: | Ampcom | WAM902-SWTG018AS| No | [SWTG018AS-A V2.0](devices/SWTG018AS_A_V2_0.md) | | 8 + 1 | | Davuaz | Da-K6501W | No | [PCB-K0501W-V2.0](devices/K0501W_V2_0.md) | | 5 + 1 | | FOXNEO | FNS-1200P | No | [PCB-K0402W-U13-V2.0](devices/FNS-1200P.md) | 2M | 4 + 2 | +| Goalake | IG108 | No | [PB-2132](devices/PB-2132.md) | 4M | 8 + 1 | | Hisource | Hi-K0402WS | No | [PCB-K0402WS-V3.0](devices/PCB-K0402WS-V3.0.md) | | 4 + 2 | | Hisource | Hi-K0402WS | No | [PCB-K0402WS-V2.0](devices/PCB-K0402WS-V2.0.md) | 2M | 4 + 2 | | Hisource | Hi-K0801WS | No | [PCB-KO801W-V2.0](devices/HI-K0801WS.md) | | 8 + 1 | @@ -21,9 +22,11 @@ The following devices have been tested and are fully working: | keepLINK | KP-9000-9XHML-X | Yes | [2M-PCB23-V3.1](devices/2M-PCB23-V3_1.md) | 2M | 8 + 1 | | LIANGUO | SWTG024AS | No | [SWTG024AS-v2.0-17452](devices/SWTG024AS.md) | 0.5M | 4 + 2 | | Lianguo | ZX-SWTGW215AS | Yes | [PCB-SWTG115AS-V2.0 / PCB-SWTG115AS-V2.1](devices/SWTGW215AS.md) | 2M | 5 + 1 | +| Lianguo | HYWS-SGT0108S | No | [2G5F_20G_V1.01](devices/HYWS-SGT0108S.md) | 0.5M | 8 + 1 | | Mokerlink| 2G040210GSM | Yes | [2M-PCB43-V1.1](devices/2M-PCB43-V1.1.md) | | 4 + 2 | | Mokerlink| ZX-SWTGW218AS | Yes | [SWTG118AS-V2.0-16029](devices/SWTGW218AS.md) | 2M | 8 + 1 | | MokerLink| POE-2G080110GS | No | [2M-PCB51-ML-V1.1](devices/2M-PCB51-ML-V1_1.md) | 4M | 8 + 1 | +| Netcore | GS9 | No | [PB-2132](devices/PB-2132.md) | 4M | 8 + 1 | | Ruiying | RY-4GT-2SX | No | [FG-4GT-2SX_V2.0](devices/FG-4GT-2SX_V2.0.md) | 4M | 4 + 2 | | Ruiying | RY-8GT-1SX | No | [FG-8GT-1SX](devices/FG-8GT-1SX.md) | 1M | 8 + 1 | | SiscoLink | SL-G0402F | No | [PCB-K0402WS-V3.0](devices/PCB-K0402WS-V3.0.md) | | 4 + 2 | @@ -33,7 +36,6 @@ 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 1c2fee14..da263e63 100644 --- a/machine.c +++ b/machine.c @@ -1226,7 +1226,46 @@ __code const struct machine machine = { 0x1a, 0x19, 0x1d, 0x1e, 0x1c, 0x1d, 0x20, 0x21 }, }; +#elif defined MACHINE_PB_2132 +__code const struct machine machine = { + .machine_name = "PB-2132", + .isRTL8373 = 1, + .min_port = 0, + .max_port = 8, + .n_sfp = 1, + .log_to_phys_port = {1, 2, 3, 4, 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 = LED_27 | LED_28_SYS | LED_29, .enable = LED_28_SYS | LED_29 }, + .port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1}, + + .led_sets = { + { + /* LED0 = RJ45: Amber LED: 2.5G */ + LEDS_2G5 | LEDS_LINK | LEDS_ACT, + /* LED1 = RJ45: Green LED: 10M / 100M / 1000M */ + LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, + 0, + 0 + }, + { + /* SFP+ single Green LED. */ + LEDS_10G | LEDS_5G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_LINK | LEDS_ACT, + 0, + 0, + 0 + }, + }, + }; #else #error "Please select a machine type in machine.h" #endif diff --git a/machine.h b/machine.h index 14fc5c13..53ed4910 100644 --- a/machine.h +++ b/machine.h @@ -46,6 +46,7 @@ // #define MACHINE_FG_8GT_1SX // #define MACHINE_LIANGUO_HYWS_SGT0108S // #define MACHINE_POE_2G080110GS +// #define MACHINE_PB_2132 typedef struct { // GPIO pins for SDA/SCL