Files
Bertrand d'HérouvilleandClaude Opus 5.5 b3d6d595ff realtek: rtl839x: gs750e: add SFP cages
The two SFP cages of the Netgear GS750E (front panel ports 49 and 50)
are wired to the RTL8393M GPIOs: each cage has its own bit-banged I2C
bus plus mod-def0, LOS and tx-disable lines. Describe them so the sfp
driver can read the module EEPROM, detect insertion and removal, and
let phylink manage the link.

The pin map was recovered from the vendor firmware (V1.0.1.10):

  cage  SCL  SDA  mod-def0  LOS  tx-disable
  49    17   18   16        21   19
  50    12   13   2         22   14

Tested on hardware with two GLC-SX-MMD-C 1000BASE-SX modules and the
stock "boota" bootcmd after a cold power cycle: both modules are
detected, EEPROM and DDM (hwmon) are read, and both links come up at
1 Gbps and pass traffic. Unplugging the fibre drops the link and it
comes back on reconnect. Pulling a module reports its removal, and on
reinsertion it is probed again and the link recovers (hotplug tested
with a backport to 25.12.5). The reset key and gpio-restart still work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Bertrand d'Hérouville <bertrand.dherouville@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25898
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-15 14:57:38 +02:00
..