Please sign in to comment.
phy: add driver for GW16083 Ethernet Expansion Mezzanine
This driver supports a Gateworks Ventana GW16083 Ethernet Expansion Mezzanine, an optional expansion board for the Gateworks Ventana baseboards which adds a 7-port GigE switch (MV88E6176) connected to to the host CPU via an Intel i210 GigE MAC on the PCIe bus and providing 4 dedicated RJ45 GigE ports and 2 configurable RJ45/SFP ports via MV88E1111 PHYs. Port5 and Port6 (labeled Ethernet5/Ethernet6 on the board silkscreen) are connected to an MV88E1111 PHY with auto-selection between copper and SerDes modes. Standard genphy polling is used to check the phy for a auto-selection change and configure the switch port accordingly. For SerDes mode (SFP module) we force a 1000mbps link up and auto-negotiate duplex. For copper mode we auto-negotiate speed/link/duplex. GPIO signals from the SFP module connector are used for presence detect, loss of signal, and transmit enable and allow detection of SFP module insertion and removal. Upon insertion we will read and validate the SFP MSA. The GW16083 has a 24LC16BT I2C EEPROM at 0x52 as well as a PCA9543 I2C Mux at 0x70 on its i2c bus, which when used on a Ventana baseboard, is the 2nd i2c bus (i2c2). The mux is used to steer the I2C bus to one or the other SFP module connector for accessing SFP MSA at 0x50 and 0x51. Basic sysfs support for GW16083 provides the following: - symlink /sys/kernel/gw16083 to device node - add ethernet1-ethernet6 nodes for get/set port enable - add ethernet5_mode and ethernet6_mode for get/set SFP/RJ45 mode (SFP|RJ45|auto) - add ethernet5_sfp and ethernet6_sfp to get SFP details Signed-off-by: Tim Harvey <firstname.lastname@example.org>
- Loading branch information...
Showing with 1,081 additions and 0 deletions.
Oops, something went wrong.