Link Street(R) 88E6060 Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Doc. No. MV-S100952-U0, Rev. -January 3, 2008 Document Classification: Proprietary Information Marvell. Moving Forward Faster Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Document Conventions Note: Provides related information or information of special importance. Caution: Indicates potential damage to hardware or software, or loss of data. Warning: Indicates a risk of personal injury. Document Status Doc Status: Preliminary Technical Publications: 1.10 For more information, visit our website at: www.marvell.com Disclaimer No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and recording, for any purpose, without the express written permission of Marvell. Marvell retains the right to make changes to this document at any time, without notice. Marvell makes no warranty of any kind, expressed or implied, with regard to any information contained in this document, including, but not limited to, the implied warranties of merchantability or fitness for any particular purpose. Further, Marvell does not warrant the accuracy or completeness of the information, text, graphics, or other items contained within this document. Marvell products are not designed for use in life-support equipment or applications that would cause a life-threatening situation if any such products failed. Do not use Marvell products in these types of equipment or applications. With respect to the products described herein, the user or recipient, in the absence of appropriate U.S. government authorization, agrees: 1) Not to re-export or release any such information consisting of technology, software or source code controlled for national security reasons by the U.S. Export Control Regulations ("EAR"), to a national of EAR Country Groups D:1 or E:2; 2) Not to export the direct product of such technology or such software, to EAR Country Groups D:1 or E:2, if such technology or software and direct products thereof are controlled for national security reasons by the EAR; and, 3) In the case of technology controlled for national security reasons under the EAR where the direct product of the technology is a complete plant or component of a plant, not to export to EAR Country Groups D:1 or E:2 the direct product of the plant or major component thereof, if such direct product is controlled for national security reasons by the EAR, or is subject to controls under the U.S. Munitions List ("USML"). At all times hereunder, the recipient of any such information agrees that they shall be deemed to have manually signed this document in connection with their receipt of any such information. Copyright (c) 2008. Marvell International Ltd. All rights reserved. Marvell, the Marvell logo, Moving Forward Faster, Alaska, Fastwriter, Datacom Systems on Silicon, Libertas, Link Street, NetGX, PHYAdvantage, Prestera, Raising The Technology Bar, The Technology Within, Virtual Cable Tester, and Yukon are registered trademarks of Marvell. Ants, AnyVoltage, Discovery, DSP Switcher, Feroceon, GalNet, GalTis, Horizon, Marvell Makes It All Possible, RADLAN, UniMAC, and VCT are trademarks of Marvell. All other trademarks are the property of their respective owners. Doc. No. MV-S100952-U0 Rev. -Page 2 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Overview Features The Marvell(R) 88E6060 is a single chip integration of a complete 6-port Fast Ethernet switch with support for a CPU connection. It contains five 10BASE-T/100BASETX transceivers (PHYs), two that can be used to support 100BASE-FX; six independent Fast Ethernet media access controllers (MACs), a high-speed nonblocking switch fabric, a high-performance address lookup engine, and a 1/2 megabit frame buffer memory. It is designed for cost-sensitive low port count switch systems and firewall routers. * The PHY transceivers are designed with Marvell Virtual Cable TesterTM (VCTTM) technology for advanced cable diagnostics. VCT enables IT managers to easily pinpoint the location of cabling issues down to a meter or less, reducing network installation and support costs. The Marvell 88E6060 is designed to work in all environments. True Plug-n-Play is supported with Auto Crossover, Auto Polarity and Auto Negotiation in the PHYs, along with bridge loop prevention (using Port States implementing Spanning Tree support). The shared memory-based switch fabric uses the latest Marvell switch architecture that provides nonblocking switching performance in all traffic environments. Back-pressure and pause-frame-based flow control schemes are included to support zero packet loss under temporary traffic congestion. The lookup engine allows for up to 1,024 active nodes to be connected with the switch. The sixth port, `always-on' RMII/MII/SNI interface supports a direct connection to Management or Router CPUs with integrated MACs. It can be configured in either RMII mode, MII-PHY or MII-MAC mode or SNI mode. These interfaces along with BPDU handling, programmable per port VLAN configurations, and Port States, support Spanning Tree and truly isolated WAN vs. LAN firewall applications. The PHY units in the Marvell 88E6060 are designed with Marvell cutting-edge mixed-signal processing technology for digital implementation of adaptive equalization and clock data recovery. Special power management techniques are used to facilitate low power dissipation and high port count integration. Both the PHY and MAC units in the Marvell 88E6060 comply fully with the applicable sections of IEEE 802.3, IEEE 802.3u, and IEEE 802.3x standards. The many operating modes of the Marvell 88E6060 can be configured using SMI (serial management interface - MDC/MDIO) and/or a low cost serial EEPROM (93C46, C56 or C66). * * * * * * * * * * * * * * * * * * * * Single chip integration of a 6-port Fast Ethernet switch in a 14x20 mm 128-pin PQFP package Integrates six independent media access controllers fully compliant with the applicable sections of IEEE802.3 Integrates five independent Fast Ethernet PHY transceivers fully compliant with the applicable sections of IEEE802.3 Supports 802.1X implementation with Port-based access control Port based VLANs supported in any combination Supports a CPU header mode for accelerated router performance and wirespeed VLAN control Port States & BPDU handling supports Spanning Tree Automatic MDI/MDIX crossover for 100BASE-TX and 10BASE-T ports Port 0 and Port 1 can be configured as copper (100BASE-TX or 10BASE-T) or fiber (100BASEFX) Port 5 has dedicated, always on, MAC Mode (Forward) or PHY Mode (Reverse) RMII/MII/SNI interface for management and firewall applications Port 4 can be either a copper (100BASE-TX or 10BASE-T) or an MII interface with the same interface options as Port 5 Each port works at 10 Mbps or 100 Mbps, full-duplex or half-duplex mode (forced or auto-negotiated) Back-pressure flow control on half-duplex ports & Pause-frame flow control on full-duplex ports Shared on-chip memory-based switch fabric with true non-blocking switching performance High performance lookup engine with support for up to 1,024 MAC address entries with automatic learning and aging Flexible LED support for Link, Speed, Duplex Mode, Collision, and Tx/Rx Activities Supports a low cost 25 MHz XTAL clock source or a 25 MHz or 50 MHz OSC. Pin compatible with the Marvell(R) 88E6063, 88E6061, 88E6065, 88E6031, and 88E6035 Low power dissipation PAVE = Less than 0.6W Available with Commercial grade (88E6060 part) or Industrial grade (88E6060-I part) temperature specifications Integrates Virtual Circuit TesterTM (VCTTM) with each Marvell PHY Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0 Rev. -Document Classification: Proprietary Information Page 3 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Applications * * * Firewall Router Switch w/four 10/100BASE-T LAN ports & one 10/100BASE-T WAN port Five port Switch with Spanning Tree Support Firewall Router Switch supporting a Fiber WAN port * Fiber to Copper Industrial Temperature media converter Four-port LAN switch with two MII connections for WAN PHY and wireless interface * Port 0 Fiber Enable and Controls RX0 TX0 10BASE-T 100BASE-TX/FX Transceiver w/Auto Crossover Port 0's MAC 10BASE-T 100BASE-TX/FX Transceiver w/Auto Crossover Port 1's MAC 10BASE-T 100BASE-TX Transceiver w/Auto Crossover Port 2's MAC 10BASE-T 100BASE-TX Transceiver w/Auto Crossover Port 3's MAC 10BASE-T 100BASE-TX Transceiver w/Auto Crossover Port 4's MAC EE_CS EE_CLK EE_DIN EE_DOUT Register Loader TX1 RX2 TX2 RX3 TX3 RX4 TX4 MAC or PHY Mode MII/RMII/SNI Interface DISABLE_MII4 Switch Fabric & Address Database RESETn XTAL_IN XTAL_OUT Queue Controller CLK_SEL SW_MODE[1:0] Look-up Engine MAC or PHY Mode MII/RMII/SNI Interface ENABLE_MII5 LED0[4:0] LED1[4:0] LED2[4:0] LEDCLK LEDENA LEDSER 1/2 Mbit Embedded Memory Time Slot Memory Controller - Address Path RX1 Time Slot Memory Controller - Data Path Port 1 Fiber Enable and Controls Port 5's MAC LED Controller CPU/Reg Interface MDC MDIO INTn 88E6060 Top Level Block Diagram Doc. No. MV-S100952-U0 Rev. -Page 4 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Table of Contents Table of Contents SECTION 1. SIGNAL DESCRIPTION ........................................................................... 14 1.1 88E6060 128-Pin PQFP Package .............................................................................................14 1.2 Pin Description..........................................................................................................................15 SECTION 2. APPLICATION EXAMPLES....................................................................... 34 2.1 Examples with the 88E6060 .....................................................................................................34 2.2 Routing with the Marvell(R) Header...........................................................................................38 SECTION 3. FUNCTIONAL DESCRIPTION.................................................................... 39 3.1 Switch Data Flow ......................................................................................................................39 3.2 MII/SNI/RMII ...............................................................................................................................41 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.3 Media Access Controllers (MAC) ............................................................................................46 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.4 Address Translation Unit ...........................................................................................................49 Address Searching or Translation .............................................................................................50 Address Learning ......................................................................................................................51 Address Aging ...........................................................................................................................51 Address Translation Unit Operations ........................................................................................52 Ingress Policy............................................................................................................................56 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.6 Backoff ......................................................................................................................................46 Half-Duplex Flow Control ..........................................................................................................46 Full-Duplex Flow Control ...........................................................................................................47 Forcing Flow Control .................................................................................................................48 Statistics Counters ....................................................................................................................48 Address Management...............................................................................................................49 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.5 MII PHY Mode ...........................................................................................................................41 MII MAC Mode ..........................................................................................................................42 SNI PHY Mode ..........................................................................................................................43 RMII PHY Mode ........................................................................................................................44 RMII/MII/SNI Configuration .......................................................................................................45 Enabling the RMII/MII/SNI Interfaces ........................................................................................45 Port Status Registers ................................................................................................................45 Port-based VLANs.....................................................................................................................57 Switching Frames Back to their Source Port.............................................................................59 Port States.................................................................................................................................59 Switch's Ingress Header (Port 4 and Port 5 only) .....................................................................59 Switch's Ingress Trailer (Port 4 and Port 5 only) .......................................................................60 Queue Controller.......................................................................................................................62 3.6.1 No Head-of-Line Blocking .........................................................................................................62 Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0 Rev. -Document Classification: Proprietary Information Page 5 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.6.2 3.6.3 3.6.4 3.6.5 3.7 The Queues.............................................................................................................................. 62 Queue Manager........................................................................................................................ 62 Output Queues ......................................................................................................................... 63 Multicast Handler...................................................................................................................... 63 Egress Policy (Port 4 and Port 5 only) ................................................................................... 64 3.7.1 3.7.2 Switch's Egress Header ........................................................................................................... 64 Switch's Egress Trailer ............................................................................................................. 65 3.8 Spanning Tree Support............................................................................................................ 66 3.9 Embedded Memory .................................................................................................................. 66 3.10 Interrupt Controller................................................................................................................... 66 3.11 Port Monitoring Support .......................................................................................................... 67 3.12 Port Trunking Support ............................................................................................................. 67 SECTION 4. 4.1 Transmit PCS and PMA............................................................................................................ 71 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.2 10-BASE-T/100BASE-TX Receiver.......................................................................................... 72 AGC and Baseline Wander ...................................................................................................... 72 ADC and Digital Adaptive Equalizer ......................................................................................... 72 Digital Phased Locked Loop (DPLL) ........................................................................................ 72 NRZI to NRZ Conversion.......................................................................................................... 72 Descrambler ............................................................................................................................. 72 Serial-to-Parallel Conversion and 5B/4B Code-Group Alignment ............................................ 73 5B/4B Decoder ......................................................................................................................... 73 Setting Cable Characteristics ................................................................................................... 75 Scrambler/Descrambler............................................................................................................ 75 Digital Clock Recovery/Generator ............................................................................................ 75 Link Monitor .............................................................................................................................. 75 Auto-Negotiation....................................................................................................................... 76 Register Update........................................................................................................................ 76 Next Page Support ................................................................................................................... 76 Status Registers ....................................................................................................................... 76 Power Management.................................................................................................................. 77 4.3.1 4.3.2 4.3.3 4.4 100BASE-TX Transmitter ......................................................................................................... 71 4B/5B Encoding........................................................................................................................ 71 Scrambler ................................................................................................................................. 71 NRZ to NRZI Conversion.......................................................................................................... 71 Pre-Driver and Transmit Clock ................................................................................................. 71 Multimode Transmit DAC ......................................................................................................... 71 Receive PCS and PMA ............................................................................................................. 72 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.15 4.2.16 4.3 PHYSICAL INTERFACE (PHY) FUNCTIONAL DESCRIPTION ....................... 68 Low Power Modes .................................................................................................................... 77 MAC Interface and PHY Configuration for Low Power Modes ................................................. 77 IEEE Power Down Mode .......................................................................................................... 77 Far End Fault Indication (FEFI) ............................................................................................... 78 Doc. No. MV-S100952-U0 Rev. -Page 6 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Table of Contents 4.5 Virtual Cable TesterTM...............................................................................................................78 4.6 Auto MDI/MDIX Crossover .......................................................................................................79 4.7 LED Interface .............................................................................................................................80 4.7.1 4.7.2 Parallel LED Interface ...............................................................................................................80 Serial LED Interface ..................................................................................................................82 SECTION 5. SERIAL MANAGEMENT INTERFACE (SMI) ............................................... 87 5.1 MDC/MDIO Read and Write Operations ..................................................................................87 SECTION 6. SWITCH REGISTER DESCRIPTION ........................................................... 89 6.1 Register Types ..........................................................................................................................90 6.2 Switch Core Registers ..............................................................................................................90 6.2.1 6.2.2 6.2.3 Switch Core Register Map.........................................................................................................91 Switch Port Registers ................................................................................................................92 Switch Global Registers ............................................................................................................99 SECTION 7. PHY REGISTERS ................................................................................ 106 SECTION 8. EEPROM PROGRAMMING FORMAT..................................................... 133 8.1 EEPROM Programming Details .............................................................................................133 SECTION 9. ELECTRICAL SPECIFICATIONS.............................................................. 135 9.1 Absolute Maximum Ratings ...................................................................................................135 9.2 Recommended Operating Conditions ..................................................................................136 9.3 Package Thermal Information................................................................................................137 9.3.1 9.4 DC Electrical Characteristics .................................................................................................138 9.4.1 9.4.2 9.5 Thermal Conditions for 128-pin PQFP Package .....................................................................137 Digital Operating Conditions....................................................................................................139 IEEE DC Transceiver Parameters...........................................................................................141 AC Electrical Specifications ..................................................................................................142 9.5.1 9.5.2 9.5.3 9.5.4 9.5.5 9.5.6 9.5.7 9.5.8 9.5.9 9.5.10 Reset and Configuration Timing..............................................................................................142 Clock Timing when using a 25 MHz Oscillator ........................................................................144 MII Receive Timing--PHY Mode.............................................................................................145 MII Transmit Timing--PHY Mode............................................................................................146 MAC Mode Clock Timing.........................................................................................................147 MII Receive Timing--MAC Mode ............................................................................................148 MII Transmit Timing--MAC Mode ...........................................................................................149 SNI Falling Edge Receive Timing............................................................................................150 SNI Falling Edge Transmit Timing...........................................................................................151 SNI Rising Edge Receive Timing ............................................................................................152 Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0 Rev. -Document Classification: Proprietary Information Page 7 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 9.5.11 9.5.12 9.5.13 9.5.14 9.5.15 9.5.16 9.5.17 9.5.18 SNI Rising Edge Transmit Timing .......................................................................................... 153 RMII Receive Timing using INCLK ......................................................................................... 154 RMII Transmit Timing using INCLK ........................................................................................ 155 Serial LED Timing................................................................................................................... 156 Serial Management Interface Clock Timing............................................................................ 157 Serial Management Interface Timing...................................................................................... 158 EEPROM Timing .................................................................................................................... 159 IEEE AC Parameters.............................................................................................................. 160 SECTION 10. MECHANICAL DRAWINGS ..................................................................... 161 10.1 128-Pin PQFP Package .......................................................................................................... 161 SECTION 11. ORDERING INFORMATION ..................................................................... 162 11.1 Ordering Part Numbers.......................................................................................................... 162 11.2 Package Markings .................................................................................................................. 163 Doc. No. MV-S100952-U0 Rev. -Page 8 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary List of Tables List of Tables Table 1: Table 2: Table 3: Table 4: Table 5: Table 6: Table 7: Table 8: Table 9: Table 10: Table 11: Table 12: Table 13: Table 14: Table 15: Table 16: Table 18: Table 19: Table 20: Table 21: Table 22: Table 23: Table 24: Table 25: Table 26: Table 27: Table 28: Table 29: Table 30: Table 31: Table 32: Table 33: Table 34: Table 35: Table 36: Table 37: Table 38: Table 39: Table 40: Table 41: Pin Type Definitions ..............................................................................................................................15 Network Interface ..................................................................................................................................16 PHY Configuration.................................................................................................................................17 Regulator and Reference ......................................................................................................................19 System ..................................................................................................................................................19 Register Access Interface .....................................................................................................................20 Serial EEPROM Interface......................................................................................................................21 Port 5's Enable ......................................................................................................................................23 Port 5's Input MII--If ENABLE_MII5 = High ..........................................................................................23 Port 5's Output MII--If ENABLE_MII5 = High .......................................................................................24 Port 4's Enable ......................................................................................................................................26 Port 4's Input MII--If DISABLE_MII4 = Low..........................................................................................26 Port 4's Output MII--If DISABLE_MII4 = Low .......................................................................................27 Switch Configuration Interface ..............................................................................................................29 Port Status LEDs ...................................................................................................................................30 Power and Ground ................................................................................................................................31 88E6060 Port Configuration ..................................................................................................................34 RMII/MII/SNI Configuration Options ......................................................................................................45 Pause Frame Format ............................................................................................................................47 ATU Operations Registers ....................................................................................................................52 ATU Data Fields ....................................................................................................................................53 ATU Get Next Operation Register Usage..............................................................................................54 ATU Load/Purge Operation Register Usage .........................................................................................55 VLANTable Settings for Figure 14.........................................................................................................58 Port State Options .................................................................................................................................59 Ingress Trailer Fields .............................................................................................................................61 Egress Trailer Fields .............................................................................................................................65 5B/4B Code Mapping ............................................................................................................................74 Scrambler Settings ................................................................................................................................75 Operating Mode Power Consumption ...................................................................................................77 FEFI Select............................................................................................................................................78 MDI/MDIX Pin Functions .......................................................................................................................79 Parallel LED Hardware Defaults............................................................................................................80 Parallel LED Display Interpretation........................................................................................................81 Serial LED Display Options (A = Active) ...............................................................................................83 Single LED Display Mode......................................................................................................................84 Dual LED Display Mode ........................................................................................................................85 Serial Management Interface Protocol Example ...................................................................................88 Register Types ......................................................................................................................................90 Switch Core Register Map.....................................................................................................................91 Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0 Rev. -Document Classification: Proprietary Information Page 9 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 42: Table 43: Table 44: Table 45: Table 46: Table 47: Table 48: Table 49: Table 50: Table 51: Table 52: Table 53: Table 54: Table 55: Table 56: Table 57: Table 58: Table 59: Table 60: Table 61: Table 62: Table 63: Table 64: Table 65: Table 66: Table 67: Table 68: Table 69: Table 70: Table 71: Table 72: Table 73: Table 74: Table 75: Table 76: Table 77: Table 78: Table 79: Table 80: Table 81: Table 82: Table 83: Table 84: Table 85: Port Status Register ............................................................................................................................. 92 Switch Identifier Register ...................................................................................................................... 93 Port Control Register ............................................................................................................................ 94 Port Based VLAN Map ......................................................................................................................... 96 Port Association Vector ........................................................................................................................ 97 Rx Counter ........................................................................................................................................... 98 Tx Counter ............................................................................................................................................ 98 Switch Global Status Register .............................................................................................................. 99 Switch MAC Address Register Bytes 0 & 1 ........................................................................................ 100 Switch MAC Address Register Bytes 2 & 3 ........................................................................................ 100 Switch MAC Address Register Bytes 4 & 5 ........................................................................................ 100 Switch Global Control Register........................................................................................................... 101 ATU Control Register ......................................................................................................................... 102 ATU Operation Register ..................................................................................................................... 103 ATU Data Register ............................................................................................................................. 104 ATU Switch MAC Address Register Bytes 0 & 1 ................................................................................ 104 ATU Switch MAC Address Register Bytes 2 & 3 ................................................................................ 104 ATU Switch MAC Address Register Bytes 4 & 5 ................................................................................ 105 PHY Register Map .............................................................................................................................. 106 PHY Control Register ......................................................................................................................... 107 PHY Status Register........................................................................................................................... 109 PHY Identifier ..................................................................................................................................... 110 PHY Identifier ..................................................................................................................................... 110 Auto-Negotiation Advertisement Register .......................................................................................... 111 Link Partner Ability Register (Base Page) .......................................................................................... 113 Link Partner Ability Register (Next Page) ........................................................................................... 113 Auto-Negotiation Expansion Register................................................................................................. 114 Next Page Transmit Register ............................................................................................................. 115 Link Partner Next Page Register ........................................................................................................ 115 PHY Specific Control Register............................................................................................................ 116 PHY Specific Status Register ............................................................................................................. 119 PHY Interrupt Enable.......................................................................................................................... 121 PHY Interrupt Status........................................................................................................................... 122 PHY Interrupt Port Summary (Global) ................................................................................................ 123 Receive Error Counter ........................................................................................................................ 124 LED Parallel Select Register (Global) ............................................................................................... 125 LED Stream Select for Serial LEDs .................................................................................................... 126 PHY LED Control Register (Global) ................................................................................................... 128 PHY Manual LED Override................................................................................................................. 129 VCTTM Register for TXP/N Pins.......................................................................................................... 130 VCTTM Register for RXP/N pins.......................................................................................................... 131 PHY Specific Control Register II......................................................................................................... 132 Absolute Maximum Ratings ................................................................................................................ 135 Recommended Operating Conditions ................................................................................................ 136 Doc. No. MV-S100952-U0 Rev. -Page 10 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary List of Tables Table 86: Thermal Conditions for 128-pin PQFP Package .................................................................................137 Table 87: DC Electrical Characteristics ...............................................................................................................138 Table 88: Digital Operating Conditions................................................................................................................139 Table 89: Internal Resistor Description ...............................................................................................................140 Table 90: IEEE DC Transceiver Parameters.......................................................................................................141 Table 91: Reset and Configuration Timing ..........................................................................................................142 Table 92: Clock Timing with a 25 MHz Oscillator ................................................................................................144 Table 93: MII Receive Timing--PHY Mode.........................................................................................................145 Table 94: MII Transmit Timing--PHY Mode........................................................................................................146 Table 95: MAC Mode Clock Timing.....................................................................................................................147 Table 96: MII Receive Timing--MAC Mode ........................................................................................................148 Table 97: MII Transmit Timing--MAC Mode .......................................................................................................149 Table 98: SNI Falling Edge Receive Timing........................................................................................................150 Table 99: SNI Falling Edge Transmit Timing......................................................................................................151 Table 100:SNI Rising Edge Receive Timing ........................................................................................................152 Table 101:SNI Rising Edge Transmit Timing .......................................................................................................153 Table 102:RMII Receive Timing using INCLK ......................................................................................................154 Table 103:RMII Transmit Timing using INCLK .....................................................................................................155 Table 104:Serial LED Timing ...............................................................................................................................156 Table 105:Serial Management Interface Clock Timing.........................................................................................157 Table 106:Serial Management Interface Timing...................................................................................................158 Table 107:EEPROM Timing .................................................................................................................................159 Table 108:IEEE AC Parameters...........................................................................................................................160 Table 109:Part Order Option - Commercial..........................................................................................................162 Table 110:Part Order Option - Industrial ..............................................................................................................162 Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0 Rev. -Document Classification: Proprietary Information Page 11 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch List of Figures Figure 1: Figure 2: Figure 3: Figure 4: Figure 5: Figure 6: Figure 7: Figure 8: Figure 9: Figure 10: Figure 11: Figure 12: Figure 13: Figure 14: Figure 15: Figure 16: Figure 17: Figure 18: Figure 19: Figure 20: Figure 21: Figure 22: Figure 23: Figure 24: Figure 25: Figure 26: Figure 27: Figure 28: Figure 29: Figure 30: Figure 31: Figure 32: Figure 33: Figure 34: Figure 35: Figure 36: Figure 37: Figure 38: Figure 39: 88E6060 128-Pin PQFP Package (Top View) .................................................................................... 14 88E6060 Firewall Router Example ..................................................................................................... 35 Firewall Router Switch supporting a Fiber WAN port.......................................................................... 36 Firewall Router Switch with LAN Ports and WAN PHY....................................................................... 37 88E6060 Device Switch Data Flow..................................................................................................... 39 Switch Operation................................................................................................................................. 40 MII PHY Interface Pins........................................................................................................................ 41 MII MAC Interface Pins ....................................................................................................................... 42 SNI PHY Interface Pins....................................................................................................................... 43 RMII PHY Interface Pins using INCLK................................................................................................ 44 ATU Size Tradeoffs............................................................................................................................. 50 Format of an ATU Entry ...................................................................................................................... 53 Switch Operation with VLANs Disabled .............................................................................................. 57 Switch Operation with a Typical Router VLAN Configuration ............................................................. 58 Ingress Trailer Format......................................................................................................................... 60 Switch Queues.................................................................................................................................... 62 Egress Trailer Format ......................................................................................................................... 65 88E6060 Device Transmit Block Diagram .......................................................................................... 69 88E6060 Device Receive Block Diagram ........................................................................................... 70 Serial LEDENA High Clocking with COLX in Dual Mode, Error Off, and DUPLEX in Single Mode..................................................................................................................... 82 Serial LED Conversion........................................................................................................................ 83 Serial LED Display Order--(if all are selected)................................................................................... 83 Typical MDC/MDIO Read Operation................................................................................................... 88 Typical MDC/MDIO Write Operation................................................................................................... 88 88E6060 Register Map ....................................................................................................................... 89 Cable Fault Distance Trend Line ...................................................................................................... 131 EEPROM Data Format ..................................................................................................................... 134 Reset and Configuration Timing ....................................................................................................... 143 Oscillator Clock Timing ..................................................................................................................... 144 PHY Mode MII Receive Timing......................................................................................................... 145 PHY Mode MII Transmit Timing........................................................................................................ 146 MAC Clock Timing ............................................................................................................................ 147 MAC Mode MII Receive Timing ........................................................................................................ 148 MAC Mode MII Transmit Timing ....................................................................................................... 149 SNI Falling Edge Receive Timing ..................................................................................................... 150 SNI Falling Edge Transmit Timing .................................................................................................... 151 SNI Rising Edge Receive Timing...................................................................................................... 152 SNI Rising Edge Transmit Timing..................................................................................................... 153 PHY Mode RMII Receive Timing using INCLK ................................................................................. 154 Doc. No. MV-S100952-U0 Rev. -Page 12 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary List of Figures Figure 40: Figure 41: Figure 42: Figure 43: Figure 44: Figure 45: Figure 46: Figure 47: PHY Mode RMII Transmit Timing using INCLK................................................................................ 155 Serial LED Timing............................................................................................................................. 156 Serial Management Interface Clock Timing...................................................................................... 157 Serial Management Interface Timing................................................................................................ 158 EEPROM Timing .............................................................................................................................. 159 Sample Part Number ........................................................................................................................ 162 88E6060 128-pin PQFP Commercial RoHS 6/6 Package Marking and Pin 1 Location ................... 163 88E6060 128-pin PQFP Industrial RoHS 6/6 Package Marking and Pin 1 Location........................ 163 Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0 Rev. -Document Classification: Proprietary Information Page 13 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Section 1. Signal Description 1.1 88E6060 128-Pin PQFP Package 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 88E6060 Top View 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 FD_FLOW_DIS INTn NC EE_CS/EE_1K EE_CLK/ADDR4 VSS EE_DOUT VDD P0_LED0 P0_LED1 P0_LED2 P1_LED0 VSS P1_LED1 P1_LED2 P2_LED0 P2_LED1 VDDO P2_LED2 P3_LED0 P3_LED1 P3_LED2 VSS P4_LED0 P4_LED1 P4_LED2 VSS CONTROL_25 VDDAH P0_RXP P0_RXN VDDAL P0_TXP P0_TXN P1_TXN P1_TXP VDDAL P1_RXN P1_RXP VDDAH P2_RXP P2_RXN VDDAL P2_TXP P2_TXN VSS P3_TXN P3_TXP VDDAL P3_RXN P3_RXP VDDAH P4_RXP P4_RXN VDDAL P4_TXP P4_TXN VSS SW_MODE0 SW_MODE1 VDD LEDSER LEDCLK LEDENA 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 VSS XTAL_IN XTAL_OUT CONFIG_A VDDO P1_CONFIG VSS RESETn P0_CONFIG P4_IND3 VDD P4_IND2 VSS P4_IND1 P4_IND0 P4_INDV NC NC NC P0_SDET VDDO CONTROL_15 RSETN RSETP P1_SDET VSS 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 P4_INCLK VDD P4_OUTDV P4_OUTCLK P4_OUTD0/P4_MODE0 P4_OUTD1/P4_MODE1 P4_OUTD2/P4_MODE2 P4_OUTD3/P4_MODE3 P4_COL CONFIG_B VSS P4_CRS VDD DISABLE_MII4 NC P5_INDV P5_IND0 P5_IND1 P5_IND2 P5_IND3 P5_INCLK P5_OUTDV VSS P5_OUTCLK VDDO P5_OUTD0/P5_MODE0 P5_OUTD1/P5_MODE1 P5_OUTD2/P5_MODE2 P5_OUTD3/P5_MODE3 P5_COL P5_CRS MDIO MDC EE_DIN/HD_FLOW_DIS CLK_SEL VSS ENABLE_MII5 VDD Figure 1: 88E6060 128-Pin PQFP Package (Top View) Doc. No. MV-S100952-U0, Rev. -Page 14 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description 1.2 Pin Description Table 1: Pin Type Definitions Pi n Type D efin i ti o n I/O Input and output Input Input only Output Output only Open Drain Open drain output Analog Analog Typically Input May be input or output depending upon operating state; usually input Typically Output May be output or input depending upon operating state; usually output Power Device voltage and current supply Ground Device current return NC No connection, do not connect anything to these pins Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 15 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 2: Network Interface 128-PQFP Packa ge Pin # P in N am e P in Typ e D esc r i pt i on 27 25 15 13 4 P[4:0]_RXP Typically Input Output if in Crossover mode Receiver input - Positive. P[4:0]_RXP connects directly to the receiver magnetics. If the port is configured for 100BASE-FX mode (ports 0 and 1 only) RXP connects directly to the fiberoptic receiver's positive output. These pins can become outputs if Auto MDI/MDIX Crossover is enabled (see section 4.6). If a PHY port is not used, the RXP pins should be tied to VSS. 28 24 16 12 5 P[4:0]_RXN Typically Input Output if in Crossover mode Receiver input - Negative. P[4:0]_RXN connects directly to the receiver magnetics. If the port is configured for 100BASEFX mode (ports 0 and 1 only) RXN connects directly to the fiber-optic receiver's negative output. These pins can become outputs if Auto MDI/MDIX Crossover is enabled (see section 4.6). If a PHY port is not used, the RXN pins should be tied to VSS. 30 22 18 10 7 P[4:0]_TXP Typically Output Input if in Crossover mode Transmitter output - Positive. P[4:0]_TXP connects directly to the transmitter magnetics. If the port is configured for 100BASE-FX mode (ports 0 and 1 only) TXP connects directly to the fiber-optic transmitter's positive input. These pins can become inputs if Auto MDI/MDIX Crossover is enabled (see section 4.6). If a PHY port is not used, the TXP pins should be tied to VSS. 31 21 19 9 8 P[4:0]_TXN Typically Output Input if in Crossover mode Transmitter output - Negative. P[4:0]_TXN connects directly to the transmitter magnetics. If the port is configured for 100BASE-FX mode (ports 0 and 1 only) TXN connects directly to the fiber-optic transmitter's negative input. These pins can become inputs if Auto MDI/MDIX Crossover is enabled (see section 4.6). If a PHY port is not used, the TXN pins should be tied to VSS. 127 122 P[1:0]_SDET Input Signal Detect input. If port 0 and/or 1 is configured for 100BASE-FX mode SDET indicates whether a signal is detected by the fiber-optic transceiver. A positive level indicates that a signal is detected. If port 0 and/or 1 is configured for 10/100BASE-T mode SDET is not used, but cannot be left floating since these pins do not contain internal resistors. SDET must be tied to VSS or VDDO either directly or through a 4.7 k resistor. Doc. No. MV-S100952-U0, Rev. -Page 16 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 3: PHY Configuration 128 -PQF P Pack age Pin # Pin Name Pin Ty pe Des cription 108 111 P[1:0]_CONFIG Input Port 0 and 1 Configuration. The CONFIG pin is used to set the default configuration for Port 0 and 1 by connecting these pins to other device pins as follows: VSS = Auto-Negotiation enabled - default P0_LED1 = Forced 10BASE-T half-duplex P0_LED2 = Forced 10BASE-T full-duplex P1_LED0 = Forced 100BASE-TX half-duplex P1_LED1 = Forced 100BASE-TX full-duplex P1_LED2 = Forced 100BASE-FX half-duplex VDDO = Forced 100BASE-FX full-duplex Ports 2, 3 and 4's default configuration is Auto-Negotiation enabled. Any port's default configuration can be modified by accessing the PHY registers by a CPU or a serial EEPROM. Fiber vs. copper mode cannot be configured in this way. However, Fiber vs. copper must be selected at reset by using these pins. The CONFIG pins are configured after reset and contain internal pull-down resistors so they can be left floating to select Auto-Negotiation. 106 CONFIG_A Input Global Configuration A. This global configuration pin is used to set the default LED mode and Far End Fault Indication (FEFI) mode for 100BASE-FX by connecting these pins to other device pins as follows: VSS = LED Mode 0, FEFI disabled P0_LED0 = LED Mode 0, FEFI enabled P0_LED1 = LED Mode 1, FEFI disabled P0_LED2 = LED Mode 1, FEFI enabled P1_LED0 = LED Mode 2, FEFI disabled P1_LED1 = LED Mode 2, FEFI enabled P1_LED2 = LED Mode 3, FEFI disabled VDDO = LED Mode 3, FEFI enabled - default The LED modes are covered in section 4.7.1 and FEFI is covered in section 4.2.8.3. The CONFIG_A pin is configured after reset and contains an internal pull-up resistor. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 17 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 3: PHY Configuration (Continued) 128-PQFP Packa ge Pin # Pin Name Pin Typ e Desc ription 93 CONFIG_B Input Global Configuration B. This global configuration pin is used to set the default mode for Auto Crossover, the PHY driver type, and Energy Detect by connecting these pins to other device pins as follows: VSS = No Crossover, Class A1 drivers, Energy Detect disabled P0_LED0 = No Crossover, Class A drivers, Energy Detect enabled P0_LED1 = No Crossover, Class B2 drivers, EnergyDetect disabled P0_LED2 = No Crossover, Class B drivers, Energy Detect enabled P1_LED0 = Auto Crossover, Class A drivers, Energy Detect disabled P1_LED1 = Auto Crossover, Class A drivers, Energy Detect enabled P1_LED2 = Auto Crossover, Class B drivers, Energy Detect disabled VDDO = Auto Crossover, Class B drivers, Energy Detect enabled--default Auto crossover is covered in section 4.6, Class B vs. Class A drivers are covered in Table 83 on page 132 and Energy Detect is covered in section Table 71 through Table 74. The CONFIG_B pin is configured after reset and contains an internal pull-up resistor. 1. A Class A driver is available for 100BASE-TX mode only and typically used in backplane or direct connect applications. 2. A Class B driver is typically used in CAT 5 applications. Doc. No. MV-S100952-U0, Rev. -Page 18 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 4: Regulator and Reference 128 -PQF P Pack age Pin # Pin Name Pin Ty pe Des cription 126 RSETP Analog Resistor reference. A 2 k 1% resistor is placed between the RSETP and RSETN. This resistor is used to set an internal bias reference current. 125 RSETN Analog Resistor reference. A 2 k 1% resistor is placed between the RSETN and RSETP. This resistor is used to set an internal bias reference current. 124 CONTROL_15 Analog Voltage control to external 1.5V regulator. This signal controls an external PNP transistor to generate the 1.5V power supply for the VDD and VDDAL pins. 2 CONTROL_25 Analog Voltage control to external 2.5V regulator. This signal controls an external PNP transistor to generate the 2.5V power supply for the VDDAH pins. Table 5: System 128 -PQF P Pack age Pin # P in N am e P in Typ e D es cr i pt i on 104 XTAL_IN Input 25 MHz or 50 MHz system reference clock input. The frequency of this clock input is selected by the CLK_SEL pin. The clock source can come from a crystal (25 MHz only) or an oscillator (25 or 50 MHz). This is the only clock required as it is used for both the switch and the PHYs. 105 XTAL_OUT Output System reference clock output. This output can only be used to drive an external crystal (25 MHz only). It cannot be used to drive external logic. If an oscillator is connected to XTAL_IN this pin should be left unconnected. 68 CLK_SEL Input Clock frequency Select. Connect this pin to VSS if XTAL_IN is 25 MHz. Connect this pin to VDDO or leave it unconnected if XTAL_IN is 50 MHz. This pin must be stable before and after reset. CLK_SEL is internally pulled high via a resistor. 110 RESETn Input Hardware reset. Active low. The 88E6060 is configured during reset. When RESETn is low all configuration pins become inputs and the value seen on these pins is latched on the rising edge of RESETn or some time after. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 19 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 6: Register Access Interface 128-PQFP Packa ge Pin # P in N am e P in Typ e D esc r i pt i on 70 MDC Input MDC is the management data clock reference for the serial management interface (SMI). A continuous clock stream is not expected. The maximum frequency supported is 8.3 MHz. The SMI is used to access the registers in the PHY and in the Switch if the serial EEPROM is not accessing the registers. It is available in all combinations of SW_MODE[1:0]. MDC is internally pulled high via a resistor. 71 MDIO I/O MDIO is the management data Input/Output for the SMI. MDIO is used to transfer management data in and out of the device synchronously with MDC. This pin requires an external pull-up resistor in the range of 4.7 k to 10 k. The 88E6060 device uses 16 of the 32 possible SMI port addresses. The 16 that are used are selectable using the EE_CLK/ADDR4 pin. MDIO is internally pulled high via a resistor. 63 INTn Open Drain Output INTn is an active low, open drain pin that is asserted to indicate an unmasked interrupt event occurred. A single external pull-up resistor is required to achieve a logic high when this signal is inactive. The INTn pin is asserted active low if SW_MODE[1:0] (see Table 14) bits are not 0b10 (standalone mode) and the EEPROM data has been completely read into the device. This EEPROM done interrupt indicates to any attached CPU that it may use the MDC/MDIO lines to access the internal registers because the EEPROM has finished using the registers. This pin also goes low when any other unmasked interrupt becomes active inside the device. Doc. No. MV-S100952-U0, Rev. -Page 20 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 7: Serial EEPROM Interface 128 -PQF P Pack age Pin # P in N am e P in Typ e D es cr i pt i on 61 EE_CS /EE_1K I/O Serial EEPROM chip select. EE_CS is the serial EEPROM chip select referenced to EE_CLK. It is used to enable the external EEPROM (if present), and to delineate each data transfer. Input during reset EE_CS is a multi-function pin used to configure the 88E6060 during a hardware reset. When reset is asserted, EE_CS becomes an input and the desired EEPROM type configuration is latched at the rising edge of RESETn as follows: Low = Use 8-bit addresses (for 2K bit 93C56 & 4K bit 93C66) High = Use 6-bit addresses (for 1K bit 93C46) The external EEPROM must be configured in the x16 organization. EE_CS is internally pulled high via a resistor. Use a 4.7 k resistor to VSS for a configuration low. 60 EE_CLK /ADDR4 I/O Output During EEPROM Loading Serial EEPROM clock. EE_CLK is the serial EEPROM clock reference output by the 88E6060. It is used to shift the external serial EEPROM (if installed) to the next data bit so the default values of the internal registers can be overridden. EE_CLK is a multi-function pin used to configure the 88E6060 during a hardware reset. When reset is asserted, EE_CLK becomes an input and the desired SMI ADDR4 address space configuration (Table 5) is latched at the rising edge of RESETn as follows: Low = Use SMI device addresses 0x00 to 0x0F High = Use SMI device addresses 0x10 to 0x1F EE_CLK is internally pulled high via a resistor. Use a 4.7 k resistor to VSS for a configuration low. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 21 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 7: Serial EEPROM Interface (Continued) 128-PQFP Packa ge Pin # P in N am e P in Typ e D esc r i pt i on 69 EE_DIN/ HD_FLOW_DIS Typically Input Serial EEPROM data into the EEPROM device. EE_DIN is serial EEPROM data referenced to EE_CLK used to transmit the EEPROM command and address to the external serial EEPROM (if present). Output During EEPROM Loading EE_DIN is a multifunction pin used to configure the 88E6060 during a hardware reset. When reset is asserted, EE_DIN becomes an input and the configured Half-duplex Flow Control disable value is latched at the rising edge of reset as follows: Low = Enable "forced collision" flow control on all halfduplex ports High = Disable flow control on all half-duplex ports EE_DIN is internally pulled high via a resistor. Use a 4.7 k resistor to VSS for a configuration low. FD_FLOW_DIS is used to select flow control on full-duplex ports (see Table 13). 58 EE_DOUT Input Serial EEPROM data out from the EEPROM device. EE_DOUT is serial EEPROM data referenced to EE_CLK used to receive the EEPROM configuration data from the external serial EEPROM (if present). EE_DOUT is internally pulled high via a resistor Doc. No. MV-S100952-U0, Rev. -Page 22 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 8: Port 5's Enable 128-PQFP Packa ge Pin # P in N am e P in Typ e D esc r i pt i on 66 ENABLE_MII5 Input Enable MII Port 5. This pin is used to enable Port 5. A high enables the Port. A low disables Port 5 (i.e., the drivers are tri-stated). ENABLE_P5 is internally pulled high via a resistor. Table 9: Port 5's Input MII--If ENABLE_MII5 = High 12 8-PQF P Pac kag e Pin # Pi n Nam e Pi n Ty pe De scr ip tio n 82 P5_INCLK I/O Input Clock. P5_INCLK is a reference for P5_INDV and P5_IND[3:0]. The direction and speed of P5_INCLK is determined by P5_MODE[3:0] at the end of reset. If the port is in PHY Mode, P5_INCLK is an output. In this mode the frequency of the clock is 25 MHz if the port is in 100BASE-X mode, 2.5 MHz if the port is in 10BASE-T mode and 50 MHz for RMII mode. If the port is in MAC Mode, P5_INCLK is an input. In this mode the frequency of the clock can be anywhere from DC to 25 MHz although it should be 25 MHz for 100BASE-X mode and 2.5 MHz for 10BASE-T mode. P5_INCLK is tri-stated during reset and it is internally pulled high. 83 84 85 86 P5_IND[3:0] Input Input Data. P5_IND[3:0] receives the data nibble to be transmitted into the switch in 100BASE-X and 10BASE-T modes. P5_IND[3:0] is synchronous to P5_INCLK. These pins are inputs regardless of the port's mode (i.e., PHY mode or MAC mode). Only P5_IND0 is used when SNI mode is selected. P5_IND[1:0] are used when RMII mode is selected1. P5_IND[3:0] are internally pulled high via resistor. 87 P5_INDV Input Input Data Valid. When P5_INDV is asserted high, data on P5_IND[3:0] is accepted into the switch. P5_INDV must be synchronous to P5_INCLK for SNI and MII operation. It must be synchronous to P5_OUTCLK or P5_INCLK in RMII operation. P5_INDV is internally pulled low via resistor. 1. When RMII mode is selected P5_IND[1:0] are synchronous to P5_OUTCLK or P5_INCLK which are phase shifted to each other. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 23 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 10: Port 5's Output MII--If ENABLE_MII5 = High 128 -PQF P Pack age Pin # P in Typ e P i n N am e D e scri p ti o n 79 P5_OUTCLK I/O Output Clock. P5_OUTCLK is a reference for P5_OUTDV and P5_OUTD[3:0]. The direction and speed of P5_OUTCLK is determined by P5_MODE[3:0] at the end of reset. If the port is in PHY Mode, P5_OUTCLK is an output. In this mode the frequency of the clock will be 25 MHz if the port is in 100BASE-X mode, and 2.5 MHz if the port is in 10BASE-T mode and 50 MHz for RMII mode. If the port is in MAC Mode, P5_OUTCLK is an input. In this mode the frequency of the clock can be anywhere from DC to 25MHz although it should be 25 MHz for 100BASE-X mode and 2.5 MHz for 10BASE-T mode. P5_OUTCLK is tri-stated during reset and it is internally pulled high. P5_OUTD[3:0] /P5_MODE[3:0] 74 75 76 77 Normally Output Input only when RESETn is low Output Data. Data transmitted from the switch is decoded and presented on P5_OUTD[3:0] pins synchronous to P5_OUT_CLK. These pins are outputs regardless of the port's mode (i.e., PHY or MAC mode). Only P5_OUTD0 contains meaningful data when SNI mode is selected. P5_OUTD[1:0] are used when RMII mode1 is selected. During reset, these internally pulled high pins are tri-stated and used to latch in the required operating mode for the port (see section.3.2.5). 81 P5_OUTDV Output Output Data Valid. When P5_OUTDV is asserted high, data transmitted from the switch on P5_OUTD[3:0] is valid. P5_OUTDV is synchronous with P5_OUTCLK in MII mode. When RMII mode is selected, P5_OUTDV can be synchronous to either P5_INCLK or P5_OUTCLK. P5_OUTDV is tri-stated during reset and it is internally pulled high. 72 P5_CRS I/O Carrier Sense. After reset, P5_CRS becomes an output if PHY Mode is selected for this port. It remains an input if MAC Mode is selected. P5_CRS asserts (or is expected to be asserted) when the receive data path is non-idle. In halfduplex mode P5_CRS is also asserted (or is expected to be asserted) during transmission. P5_CRS is asynchronous to P5_OUTCLK and P5_INCLK. P5_CRS is tri-stated during reset and it is internally pulled low so the pin can be left unconnected if not used. 1. P5_OUTD[1:0] can be synchronous to either P5_OUTCLK or P5_INCLK, which are phase shifted to each other. Doc. No. MV-S100952-U0, Rev. -Page 24 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 10: Port 5's Output MII--If ENABLE_MII5 = High (Continued) 128 -PQF P Pack age Pin # P in Typ e P i n N am e D e scri p ti o n 73 P5_COL I/O Collision. After reset, P5_COL becomes an output if PHY Mode is selected for this port. It remains an input if MAC Mode is selected. In PHY Mode, P5_COL asserts when both the transmit and receive paths are non-idle in both half and full-duplex modes. In half-duplex, MAC mode P5_COL is expected to be asserted when both the transmit and receive paths are non-idle. In full-duplex MAC mode, P5_COL is ignored. P5_COL is asynchronous with P5_OUTCLK and P5_INCLK. P5_COL is tri-stated during reset and it is internally pulled low. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 25 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 11: Port 4's Enable 1 28-PQF P Pa ckag e Pin # Pin Na me Pin Type D escr ip tio n 89 DISABLE_MII4 Input Disable MII Port 4. This pin is used to disable Port 4's MII Interface drivers. A high disables Port 4's MII interface drivers's MII interface (i.e., the drivers are tri-stated) and enables Port 4's PHY interface (its MDI pins). A low enables Port 4's MII Interface and its drivers and disables Port 4's PHY interface. DISABLE_MII4 is internally pulled high via a resistor. Table 12: Port 4's Input MII--If DISABLE_MII4 = Low 1 28-PQF P Pa ckag e Pin # Pin Na me Pin Type D escr ip tio n 102 P4_INCLK I/O Input Clock. P4_INCLK is a reference for P4_INDV and P4_IND[3:0]. The direction and speed of P4_INCLK is determined by P4_MODE[3:0] at the end of reset. If the port is in PHY Mode, P4_INCLK is an output. In this mode the frequency of the clock will be 25 MHz if the port is in 100BASE-X mode, and 2.5 MHz if the port is in 10BASE-T mode and 50 MHz for RMII mode. If the port is in MAC Mode, P4_INCLK is an input. In this mode the frequency of the clock can be anywhere from DC to 25 MHz although it should be 25 MHz for 100BASE-X mode and 2.5 MHz for 10BASE-T mode. P4_INCLK is tri-stated during reset and it is internally pulled high. 112 114 116 117 P4_IND[3:0] Input Input Data. P4_IND[3:0] receives a data nibble to be transmitted into the switch in 100BASE-X and 10BASE-T modes. P4_IND[3:0] is synchronous with P4_INCLK. These pins are inputs regardless of the port's mode (i.e., PHY or MAC mode). Only P4_IND0 is used when SNI mode is selected. P4_IND[1:0] are used when RMII mode is selected1. P4_IND[3:0] are internally pulled high via resistor. 118 P4_INDV Input Input Data Valid. When P4_INDV is asserted high, data on P4_IND[3:0] is accepted into the switch. P4_INDV must be synchronous to P4_INCLK for SNI and MII operation. It must be synchronous to P4_OUTCLK or P4_INCLK in RMII operation. P4_INDV is internally pulled low via resistor. 1. When RMII mode is selected, P4_IND[1:0] are synchronous to P4_OUTCLK or P4_INCLK, which are phase shifted to each other. Doc. No. MV-S100952-U0, Rev. -Page 26 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 13: Port 4's Output MII--If DISABLE_MII4 = Low 128 -PQF P Pack age Pin # Pin Name Pin Type D escr ip tio n 99 P4_OUTCLK I/O Output Clock. P4_OUTCLK is a reference for P4_OUTDV and P4_OUTD[3:0]. The direction and speed of P4_OUTCLK is determined by P4_MODE[3:0] at the end of reset. If the port is in PHY Mode, P4_OUTCLK is an output. In this mode the frequency of the clock will be 25 MHz if the port is in 100BASE-X mode, and 2.5 MHz if the port is in 10BASE-T mode and 50 MHz for RMII mode. If the port is in MAC Mode, P4_OUTCLK is an input. In this mode the frequency of the clock can be anywhere from DC to 25MHz although it should be 25 MHz for 100BASE-X mode and 2.5 MHz for 10BASE-T mode. P4_OUTCLK is tri-stated during reset and it is internally pulled high. P4_OUTD[3:0] /P4_MODE[3:0] 95 96 97 98 Normally Output Input only when RESETn is low Output Data. Data transmitted from the switch is decoded and presented on P4_OUTD[3:0] pins synchronous to P4_OUT_CLK. These pins are outputs regardless of the port's mode (i.e., PHY or MAC mode). Only P4_OUTD0 contains data when SNI mode is selected. P4_OUTD[1:0] are used when RMII mode1 is selected. During reset these internally pulled high pins are tri-stated and used to latch in the desired operating mode for the port (see section 3.2.5). 100 P4_OUTDV Output Output Data Valid. When P4_OUTDV is asserted high, data transmitted from the switch on P4_OUTD[3:0] is valid. P4_OUTDV is synchronous with P4_OUTCLK in MII Mode. When RMII mode is selected, P4_OUTDV can be synchronous to either P5_INCLK or P4_OUTCLK. P4_OUTDV is tri-stated during reset and it is internally pulled high. 91 P4_CRS I/O Carrier Sense. After reset, P4_CRS becomes an output if PHY Mode is selected for this port. It remains an input if MAC Mode is selected. P4_CRS asserts (or is expected to be asserted) when the receive data path is non-idle. In halfduplex mode P4_CRS is also asserted (or is expected to be asserted) during transmission. P4_CRS is asynchronous to P4_OUTCLK and P4_INCLK. P4_CRS is tri-stated during reset and it is internally pulled low. 1. P4_OUTD[1:0] can be synchronous to either P4_OUTCLK or P4_INCLK, which are phase shifted to each other. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 27 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 13: Port 4's Output MII--If DISABLE_MII4 = Low (Continued) 128-PQFP Packa ge Pin # Pin Name Pin Ty pe Description 94 P4_COL I/O Collision. After reset, P4_COL becomes an output if PHY Mode is selected for this port. It remains an input if MAC Mode is selected. In PHY Mode, P4_COL asserts when both the transmit and receive paths are non-idle in both half and full-duplex modes. In half-duplex, MAC mode P4_COL is expected to be asserted when both the transmit and receive paths are non-idle. In full-duplex MAC mode, P4_COL is ignored. P4_COL is asynchronous to P4_OUTCLK and P4_INCLK. P4_COL is tri-stated during reset and it is internally pulled low. Doc. No. MV-S100952-U0, Rev. -Page 28 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 14: Switch Configuration Interface 128 -PQF P Pack age Pin # P in N am e P in Typ e D es cr i pt i on 34 33 SW_MODE[1:0] Input Switch Mode. These pins are used to configure the 88E6060 after reset. Switch Mode pins work as follows: 1 0 0 1 1 0 0 1 0 1 Description CPU attached mode - ports come up disabled1 Reserved Stand alone mode - ignore EEPROM EEPROM attached mode2 The EEPROM attached mode (when both SW_MODE pins = high) can be used with a CPU. In all but the standalone modes, the INTn pin asserts active low after the EEPROM completes initializing the internal registers (i.e. a halt command has been executed)3. SW_MODE[1:0] are not latched on the rising edge of Reset and they must remain static for proper device operation. They are internally pulled high via resistors. 64 FD_FLOW_DIS Input Full-duplex Flow Control disable. High = disable flow control on all full-duplex ports Low = enable IEEE 802.3x Pause based flow control on all supported full-duplex ports Full-duplex flow control requires support from the end station. Full-duplex flow control is supported on any full-duplex port that has Auto-Negotiation enabled, advertises that it supports Pause (i.e., FD_FLOW_DIS = Low at reset), and sees that the end station supports Pause as well (from data returned during Auto-Negotiation). If any of these requirements are not met the port does not generate Pause frames and it does not pause when the port receives Pause frames. FD_FLOW_DIS is latched on the rising edge of Reset into all the port's PHY Auto-Negotiation Advertisement registers. It is internally pulled high via a resistor. The EE_DIN/HD_FLOW_DIS multi-function pin is used to select Flow control on half-duplex ports (see Table 7) 1. The ports come up in the Disabled Port State in the CPU mode so the CPU can perform bridge loop detection on link up and/or perform switch initialization/configuration prior to letting packets flow. 2. In EEPROM attached mode the ports come up in the Forwarding Port State unless the Port Control register is overwritten by the EEPROM data. 3. The INTn pin is activated so the CPU can access the registers using the MDC/MDIO pins. The CPU cannot access these registers as long as the EEPROM is still being executed. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 29 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 15: Port Status LEDs 128-PQFP Packa ge Pin # P in N am e P in Typ e D esc r i pt i on 39 43 46 50 54 P[4:0]_LED2 Output Parallel LED outputs - one for each port. This active low LED pin directly drives an LED in Parallel LED mode. It can be configured to display many options. 40 44 48 51 55 P[4:0]_LED1 41 45 49 53 56 P[4:0]_LED0 36 LEDSER Output LEDSER outputs serial status bits that can be shifted into a shift register to be displayed via LEDs. LEDSER is output synchronously to LEDCLK. 38 LEDENA Output LEDENA asserts High whenever LEDSER has valid status that is to be stored into the shift register. LEDENA is output synchronously to LEDCLK. 37 LEDCLK Output LEDCLK is the reference clock for the serial LED signals. P[4:0]_LED2 are driven active low whenever RESETn is asserted. Output Parallel LED outputs - one for each port. This active low LED pin directly drives an LED in Parallel LED mode. It can be configured to display many options. P[4:0]_LED1 are driven active low whenever RESETn is asserted. Output Parallel LED outputs - one for each port. This active low LED pin directly drives an LED in Parallel LED mode. It can be configured to display many options. P[4:0]_LED0 are driven active low whenever RESETn is asserted. Doc. No. MV-S100952-U0, Rev. -Page 30 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description Pin Description Table 16: Power and Ground 128 -PQF P Pack age Pin # P in N am e P in Typ e D es cr i pt i on 47 78 107 123 VDDO Power Power to P4 and P5 MIIs, LED, EEPROM, and I/O drivers. VDDO must be connected to 3.3V. 3 14 26 VDDAH Power 2.5 volt analog power to PHYs 6 11 17 23 29 VDDAL Power 1.5 volt power to analog core 35 57 65 90 101 113 VDD Power 1.5 volt power to digital core 1 20 32 42 52 59 67 80 92 103 109 115 128 VSS Ground Ground to device 62 88 119 120 121 NC - No Connect. These pins must be left unconnected. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 31 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 1.3 128-Pin LQFP Pin Assignment List--by Signal Name Table 17: Pin Num ber Package Pin List--Alphabetical by Signal Name Pin Numbe r Pin Name Pin Name 68 CLK_SEL 108 P1_CONFIG 106 CONFIG_A 53 P1_LED0 93 CONFIG_B 51 P1_LED1 124 CONTROL_15 50 P1_LED2 2 CONTROL_25 12 P1_RXN 89 DISABLE_MII4 13 P1_RXP 60 EE_CLK/ADDR4 127 P1_SDET 61 EE_CS/EE_1K 9 P1_TXN 69 EE_DIN/HD_FLOW_DIS 10 P1_TXP 58 EE_DOUT 49 P2_LED0 66 ENABLE_MII5 48 P2_LED1 64 FD_FLOW_DIS 46 P2_LED2 63 INTn 16 P2_RXN 37 LEDCLK 15 P2_RXP 38 LEDENA 19 P2_TXN 36 LEDSER 18 P2_TXP 70 MDC 45 P3_LED0 71 MDIO 44 P3_LED1 62 NC 43 P3_LED2 88 NC 24 P3_RXN 119 NC 25 P3_RXP 120 NC 21 P3_TXN 121 NC 22 P3_TXP 111 P0_CONFIG 41 P4_LED0 56 P0_LED0 40 P4_LED1 55 P0_LED1 39 P4_LED2 54 P0_ LED2 28 P4_RXN 5 P0_RXN 27 P4_RXP 4 P0_RXP 31 P4_TXN P0_SDET 30 P4_TXP 8 P0_TXN 73 P5_COL 7 P0_TXP 72 P5_CRS 122 Doc. No. MV-S100952-U0 Rev. -Page 32 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Signal Description 128-Pin LQFP Pin Assignment List--by Signal Name Pin Num ber Pin Name Pin Numbe r Pin Name 82 P5_INCLK 101 VDD 86 P5_IND0 113 VDD 85 P5_IND1 3 VDDAH 84 P5_IND2 14 VDDAH 83 P5_IND3 26 VDDAH 87 P5_INDV 6 VDDAL 79 P5_OUTCLK 11 VDDAL 77 P5_OUTD0/P5_MODE0 17 VDDAL 76 P5_OUTD1/P5_MODE1 23 VDDAL 75 P5_OUTD2/P5_MODE2 29 VDDAL 74 P5_OUTD3/P5_MODE3 47 VDDO 81 P5_OUTDV 78 VDDO 94 P4_COL 107 VDDO 91 P4_CRS 123 VDDO 102 P4_INCLK 1 VSS 117 P4_IND0 20 VSS 116 P4_IND1 32 VSS 114 P4_IND2 42 VSS 112 P4_IND3 52 VSS 118 P4_INDV 59 VSS 99 P4_OUTCLK 67 VSS 98 P4_OUTD0/P4_MODE0 80 VSS 97 P4_OUTD1/P4_MODE1 92 VSS 96 P4_OUTD2/P4_MODE2 103 VSS 95 P4_OUTD3/P4_MODE3 115 VSS 100 P4_OUTDV 109 VSS 110 RESETn 128 VSS 125 RSETN 104 XTAL_IN 126 RSETP 105 XTAL_OUT 33 SW_MODE0 34 SW_MODE1 35 VDD 57 VDD 65 VDD 90 VDD Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0 Rev. -Document Classification: Proprietary Information Page 33 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Section 2. Application Examples The Marvell(R) 88E6060 device supports many different applications with few additional active components in a small footprint. The 88E6060 contains six ports with five PHYs. This architecture allows all five PHYs to be active and available while at the same time supporting one independent MII interface. The higher integration, low power, and an extra port saves BOM costs on designs requiring six ports or two MII interfaces. The flexibility of the 88E6060 device comes from its configuration options on Port 0 and Port 1, and its configuration options on its two MII ports (Port 5's MII interface is always on, while Port 4 can be an MII or a PHY). The device also supports an optional EEPROM (93C46 type) to override any of the default settings. The only active components required to implement a complete 88E6060 10/100 Ethernet switch are: * * * 25 MHz crystal clock source or a 25 or 50 MHz oscillator Low-cost PNP transistor used to regulate 2.5V down from 3.3V Low-cost PNP transistor used to regulate 1.5V down from 3.3V The 88E6060 is a full system on a chip containing the PHYs, LED drivers, voltage regulator logic, switch logic, and memory. In addition, it is pin compatible with the Marvell(R) 88E6063 QoS switch. 2.1 Examples with the 88E6060 The 88E6060 has multiple configuration options selectable through four pins: P[1:0]_CONFIG, ENABLE_MII5, and DISABLE_MII4. Table 1 shows Port 0 and Port 1 Copper or Fiber configuration settings, and Port 5 and Port 4 configuration settings. Ports 2, 3, and 4's default configuration is Auto-Negotiation enabled. Table 18: 88E6060 Port Configuration P0_C ONFIG P1_ CON FIG ENABLE_ MII5 DISABLE_MII4 Port Mode Low X X X Port 0 = Copper Auto-Negotiation High X X X Port 0 = Fiber Mode X Low X X Port 1 = Copper Auto-Negotiation X High X X Port 1 = Fiber Mode X X Low X Port 5 = Disabled X X High X Port 5 = RMII/MII/SNI Mode X X X Low Port 4 = RMII/MII/SNI Mode X X X High Port 4 = Copper Auto-Negotiation Doc. No. MV-S100952-U0, Rev. -Page 34 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Application Examples Examples with the 88E6060 Each of the following modes are described in detail below: * * * Firewall Router Switch w/four 10/100BASE-T LAN ports & one 10/100BASE-T WAN port Firewall Router Switch supporting a Fiber WAN port (using port 0 or port 1) Firewall Router Switch with four 10/100BASE-T LAN ports & an MII port for a WAN PHY (using port 4) For the firewall router examples, Port 5 is configured in PHY Mode, and Ports 0 to 4 support 100BASE-TX and/or 10BASE-T operation. Port 0 could be 100BASE-FX if desired as a fiber interface from the WAN (see Figure 3). The CPU's SMI is used to access all the PHY and Switch registers inside the 88E6060. In Figure 2, Port 0 is used as a WAN interface in the LAN. To make this work, the WAN port needs to be isolated from the LAN ports, and vice versa. LAN frames cannot go directly to the WAN, and WAN frames cannot go directly to the LAN. The CPU's port needs to be the bridge by transmitting, receiving, and translating frames from both the WAN and to and from the LAN. The 88E6060 supports port based VLANs in any programmable configuration that support this requirement and a Marvell header mode supports dynamic VLANs on the CPU's port. Bringing the 802.3 WAN PHY into the 88E6060's Port 0 not only reduces BOM costs, but it also adds the feature of a 10/100 Mbps interface with Auto Crossover cable support (supported on all copper ports). Figure 2: 88E6060 Firewall Router Example MDC MDIO Port 5 TX_ER TX_EN TXD[3:0] TX_CLK RX_DV RX_CLK RXD[3:0] COL CRS Router Chip with MAC SMI ENABLE_MII5 25 MHz XTAL (R) 3.3V Power DISABLE_MII4 NC 3.3V 2.5V CONTROL_25 1.5V (R) 88E6060 CONTROL_15 Parallel LED Lines 5x TX or 4x TX + 1 FX Speed Duplex/Collision Link/Activity Port 0 Port 1 Port 2 Port 3 Port 4 WAN LAN 0 1 2 3 4 Copyright (c) 2008 Marvell January 3, 2008, Preliminary NC Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 35 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Figure 3: Firewall Router Switch supporting a Fiber WAN port MDC MDIO Port 5 TX_ER TX_EN TXD[3:0] TX_CLK RX_DV RX_CLK RXD[3:0] COL CRS Router Chip with MAC SMI ENABLE_MII5 25 MHz XTAL (R) 3.3V Power 1.5V CONTROL_15 NC (R) 88E6060 Parallel LED Lines 100 Mbit Laser Speed Duplex/Collision Link/Activity 1x FX + 4x TX Port 0 Port 1 Port 2 Port 3 Port 4 Doc. No. MV-S100952-U0, Rev. -Page 36 NC 3.3V 2.5V CONTROL_25 1x Laser + 4x Magnetics DISABLE_MII4 0 1 2 3 4 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Application Examples Examples with the 88E6060 Figure 4: Firewall Router Switch with LAN Ports and WAN PHY MDC MDIO Port 5 TX_ER TX_EN TXD[3:0] TX_CLK RX_DV RX_CLK RXD[3:0] COL CRS Marvell(R) Wireless Router Chip SMI 25 MHz XTAL (R) 3.3V Power ENABLE_MII5 DISABLE_MII4 NC 3.3V 2.5V Port 4 - MII (R) CONTROL_25 88E6060 1.5V CONTROL_15 Parallel LED Lines 4x TX Speed Duplex/Collision Link/Activity Port 0 Port 1 Port 2 Port 3 0 1 2 3 LAN Copyright (c) 2008 Marvell January 3, 2008, Preliminary DSL, Cable Modem, or 802.3ah PHY Port 4 WAN PHY Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 37 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 2.2 Routing with the Marvell(R) Header The detailed information regarding this feature requires an NDA with Marvell Semiconductor. Please contact your local Marvell Sales Representative for more information. Doc. No. MV-S100952-U0, Rev. -Page 38 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Switch Data Flow Section 3. Functional Description This section describes the wire-speed, non-blocking 6-port 10/100-Mbps Fast Ethernet switch core that is integrated into the 88E6060 device. The six ports include PHY, RMII/MII/SNI, and internal MII ports, as described below. 3.1 Switch Data Flow The 88E6060 device accepts IEEE 802.3 frames and either discards them or transmits them out of one or more of the switchports. The decision on what to do with each frame is one of the many jobs handled inside the switch. Figure 5 shows the data path inside the switch along with the major functional blocks that process the frame as it travels through the 88E6060 device. Figure 5: 88E6060 Device Switch Data Flow Port 0 PHY (Optional Fiber Interface) RX 802.3 MAC Ingress Policy Ports 1-3 Port 4 PHY or RMII/ MII/SNI pins RX 802.3 MAC Ingress Policy Port 5 RMII/MII/SNI Pins RX 802.3 MAC Ingress Policy Output Queue Queue Controller TX 802.3 MAC PHY Port 0 (Optional Fiber Interface) Ports 1-3 Output Queue Egress Policy TX 802.3 MAC PHY or RMII/ MII/SNI pins Port 4 Output Queue Egress Policy TX 802.3 MAC RMII/MII/SNI Pins Port 5 The PHY, or physical layer interface, is used to receive and transmit frames over CAT 5 twisted pair cable or fiberoptic cables (only Port 0 and Port 1 support a fiber option). The 88E6060 device contains five PHYs connected to Port 0 to Port 4. The PHY block is covered in detail in Section 4. Port 5 does not contain PHYs. Instead, a short distance industry standard digital interface is supported and generically called the port's Media Independent Interface (MII see "MII/SNI/RMII" on page 41). Many interface modes and timings are supported so that a large number of external device types can be used. The two MIIs (Port 4 can be MII or PHY) on the 88E6060 support four major modes of operation and each Media Independent Interface (MII) can be configured independently. The 88E6060 contains six independent MACs (Section 3.3) that perform all of the functions in the 802.3 protocol: * * * * Frame formatting CRC checking CSMA/CD enforcement Collision handling Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 39 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch The switch portion of the 88E6060 receives good packets from the MACs, processes them, and forwards them to the appropriate MACs for transmission. Processing frames is the key activity, and it involves the Ingress Policy, the Queue Controller, the Output Queues, and the Egress Policy blocks shown in Figure 6. The Egress Policy block is only applicable to the MII ports (Port 4 and Port 5). These blocks modify the normal or default packet flow through the switch and are discussed in section 3.5 to section 3.7. Figure 6: Switch Operation Ingress Policy Queue Controller Output Queue Doc. No. MV-S100952-U0, Rev. -Page 40 Egress Policy (Port 4 and Port 5 Only) Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description MII/SNI/RMII 3.2 MII/SNI/RMII The Media Independent Interface (MII) supports four major modes of operation: * * * * MII PHY Mode (The 88E6060 device drives the interface clocks - see Section 3.2.1 for details.) MII MAC Mode (The external device drives the interface clocks - see Section 3.2.2 for details.) SNI PHY Mode RMII PHY Mode The two MII ports can be configured differently from each other. 3.2.1 MII PHY Mode The MII PHY Mode (Reverse MII) configures the selected MAC inside the 88E6060 device to emulate a PHY. This enables the 88E6060 device to be directly connected to an external MAC (for example, one inside a Router CPU). In this mode, the 88E6060 device drives the interface clocks (Px_INCLK and Px_OUTCLK); therefore, the required frequency needs to be selected. Both full-duplex and half-duplex modes are supported and need to be selected to match the mode of the link partner's MAC. The MII PHY interface is compliant with the IEEE 802.3u clause 22. Figure 7: MII PHY Interface Pins 88E6060 IN_CLK TX_CLK IN_D[3:0] TXD[3:0] IN_DV Port 4 MII or Port 5 MII Acting Like a PHY TX_EN CPU Module with MII MAC OUT_CLK RX_CLK OUT_D[3:0] RXD[3:0] OUT_DV RX_DV CRS CRS COL COL Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 41 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.2.2 MII MAC Mode The MII MAC Mode (Forward MII) configures the desired MAC inside the 88E6060 device to act as a MAC so that it can be directly connected to an external PHY. In this mode, the 88E6060 device receives the interface clocks (Px_INCLK and Px_OUTCLK) and works at any frequency from DC to 25 MHz. The two clocks can be asynchronous with respect to each other. Both full-duplex and half-duplex modes are supported and need to be selected to match the mode of the link partner's MAC. The MII MAC interface is compliant to the IEEE 802.3u clause 22. Figure 8: MII MAC Interface Pins 88E6060 IN_CLK RX_CLK IN_D[3:0] RXD[3:0] IN_DV RX_DV CRS CRS COL COL Port 4 MII or Port 5 MII Acting Like a MAC PHY Module with MII Interface OUT_CLK TX_CLK OUT_D[3:0] TXD[3:0] OUT_DV TX_EN Doc. No. MV-S100952-U0, Rev. -Page 42 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description MII/SNI/RMII 3.2.3 SNI PHY Mode The SNI PHY Mode (7-Wire interface) configures the selected MAC inside the 88E6060 device to act as a 10 Mbps PHY, enabling it to be directly connected to an external 10 Mbps-only MAC (such as one inside a Router CPU). In this mode, only one data bit is used on each of input and output (Px_IND0 and Px_OUTD0). The interface clocks, Px_INCLK and Px_OUTCLK, are driven by the 88E6060 device. Since SNI was never standardized, the 88E6060 device supports various SNI modes. The active edge of the clock (either rising or falling) and the active level on the collision signal (either active high or low) can be selected. In SNI mode, the output data from the switch is indicated to be valid by the CRS signal. CRS is not synchronous with OUT_CLK, however. So the receiving MAC needs to detect the beginning of the frame by looking for the Preamble and then the Start of Frame Delimiter (SFD). CRS will be deasserted asynchronously at the end of the frame so the receiving MAC needs to tolerate the presence of these extra 'dribble' bits Figure 9: SNI PHY Interface Pins 88E6060 IN_CLK TX_CLK IN_D0 TXD IN_DV TX_EN Port 4 MII or Port 5 MII Acting Like a PHY OUT_CLK OUT_D0 CPU Module with SNI MAC RX_CLK RXD OUT_DV CRS CRS COL COL Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 43 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.2.4 RMII PHY Mode RMII PHY Mode (Reduced MII) configures the selected MAC inside the 88E6060 device to act as a 100 Mbps PHY with a Reduced Media Independent Interface (RMII) enabling it to be directly connected to an external 100 Mbps RMII MAC (for example, one inside an ASIC or FPGA). In this mode, only two data bits are used on each of input and output (Px_IND[1:0] and Px_OUTD[1:0]). The interface clock (Px_INCLK) is driven by the 88E6060 device at the RMII constant frequency of 50 MHz. Figure 10: RMII PHY Interface Pins using INCLK 88E6060 IN_CLK REFCLK IN_D[1:0] TXD[1:0] IN_DV Port 4 MII or Port 5 MII Acting Like a PHY TX_EN CPU Module with RMII MAC OUT_CLK OUT_D[1:0] RXD[1:0] OUT_DV CRS_DV CRS COL Doc. No. MV-S100952-U0, Rev. -Page 44 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description MII/SNI/RMII 3.2.5 RMII/MII/SNI Configuration MII/SNI/RMII interfaces in the 88E6060 device are configured at the rising edges of RESETn. During reset the Px_OUTD[3:0]/Px_MODE[3:0] pins become tri-stated, and the values found on these pins become the interface's mode as defined in Table 19. Table 19: RMII/MII/SNI Configuration Options Px_ MODE[3:0] (at Reset) PHY/ MAC Mode Duplex MII/SNI Mode Desc ription 0000 PHY Half-Duplex SNI 10 Mbps Rising edge clock with collision active low 0001 PHY Half-Duplex SNI 10 Mbps Rising edge clock with collision active high 0010 PHY Full-Duplex SNI 10 Mbps Rising edge clock (collision is don't care) 0011 MAC Full-Duplex Reserved Reserved for future use 0100 PHY Half-Duplex SNI 10 Mbps Falling edge clock with collision active low 0101 PHY Half-Duplex SNI 10 Mbps Falling edge clock with collision active high 0110 PHY Full-Duplex SNI 10 Mbps Falling edge clock (collision is don't care) 0111 PHY Full-Duplex Reserved Reserved for future use. 1000 MAC Half-Duplex MII 0 -100 Mbps DC to 25 MHz MII input clock mode 1001 PHY Half-Duplex RMII 100 Mbps 50 MHz Reduced MII output clock mode 1010 MAC Full-Duplex MII 0 -100 Mbps DC to 25 MHz MII input clock mode 1011 PHY Full-Duplex RMII 100 Mbps 50 MHz Reduced MII output clock mode 1100 PHY Half-Duplex MII 10 Mbps 2.5 MHz MII output clock mode 1101 PHY Half-Duplex MII 100 Mbps 25 MHz MII output clock mode 1110 PHY Full-Duplex MII 10 Mbps 2.5 MHz MII output clock mode 1111 PHY Full-Duplex MII 100 Mbps 25 MHz MII output clock mode 3.2.6 Enabling the RMII/MII/SNI Interfaces Port 5 (the 6th port) is enabled when ENABLE_MII5 is tied high to VDDO. Port 4's MII is enabled when DISABLE_MII4 is tied to VSS. 3.2.7 Port Status Registers Each switch port of the 88E6060 device has a status register that reports information about that port's PHY or RMII/MII/SNI interface. See Section 6.2.1 "Switch Core Register Map" for more information. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 45 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.3 Media Access Controllers (MAC) The 88E6060 device contains six independent MACs that perform all of the functions in the 802.3 protocol that include, among others, frame formatting, frame stripping, FCS checking, CSMA/CD enforcement, and collision handling. Each MAC receive block checks incoming packets and discards packets with CRC errors, alignment errors, short packets (less than 64 bytes), or long packets (more than 1522 bytes)1. Each MAC constantly monitors its receive lines waiting for preamble bytes followed by the Start of Frame Delimiter (SFD). The first six bytes after the SFD are used as the packet's Destination Address (DA), and the next six bytes are used as the packet's Source Address (SA). These two addresses are fundamental to the operation of the switch (see section 3.4). The last four bytes of the packet contain the packet's Frame Check Sequence (FCS). The packet is discarded if the FCS does not meet the IEEE 802.3 CRC-32 requirements. Before a packet can be sent out, the transmit block must check whether the line is available for transmission. The transmit line is available all the time when the port is in full-duplex mode, but the line could be busy receiving a packet when the port is in half-duplex mode. In this case, the transmitter defers its transmission until the line becomes available, when it ensures that a minimum interpacket gap of at least 96 bits occurs before transmitting a 56-bit preamble and an 8-bit Start of Frame Delimiter (SFD) ahead of the basic frame. Transmission of the frame begins immediately after the SFD. For the half-duplex mode, the 88E6060 device also monitors the collision signal while it is transmitting. When a collision is detected (i.e., both transmitter and receiver of a half-duplex MAC are active at the same time), the MAC transmits a JAM pattern and then delays the retransmission for a random time period determined by the IEEE 802.3 backoff algorithm. In full-duplex mode, the collision signal and backoff algorithm are ignored. 3.3.1 Backoff In half-duplex mode, the 88E6060 device's MACs implement the truncated binary exponential backoff algorithm defined in the IEEE 802.3 standard. This algorithm starts with a randomly-selected small backoff time and follows by generating progressively longer random backoff times. The random times prevent two or more MACs from always attempting re-transmission at the same time. The progressively longer backoff times give a wider random range at the expense of a longer delay, giving congested links a better chance of finding a winning transmitter. Each MAC in the 88E6060 device resets the progressively longer backoff time circuit after 16 consecutive retransmit trials. Each MAC then restarts the backoff algorithm with the shortest random backoff time and continues to retry and retransmit the frame. A packet that successively collides with a retransmit signal is retransmitted until transmission is successful. This algorithm prevents packet loss in highly-congested environments. The MACs in the switch can be configured to meet the IEEE 802.3 specification and discard a frame after 16 consecutive collisions instead of restarting the backoff algorithm. To discard a frame after 16 consecutive collisions, set the DiscardExcessive bit to a one in the Global Control register--see Table 53. 3.3.2 Half-Duplex Flow Control Half-duplex flow control is used to throttle the end station to avoid dropping packets during network congestion. It is enabled on all half-duplex ports when the EE_DIN/HD_FLOW_DIS pin is low at the rising edge of RESETn. The 88E6060 device uses a collision-based scheme to perform half-duplex flow control. When the free buffer space is almost exhausted, the MAC forces a collision in the input port when the 88E6060 device senses an incoming packet. Only those ports that are involved in the congestion are flow controlled. When the half-duplex flow control mode is not set and no packet buffer space is available, the incoming packet is discarded. 1. A maximum frame size of 1536 bytes is supported by setting the MaxFrameSize bit in the Global Control register (section 6.2.3). Doc. No. MV-S100952-U0, Rev. -Page 46 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Media Access Controllers (MAC) 3.3.3 Full-Duplex Flow Control The purpose of full-duplex flow control is the same as that of flow control in the half-duplex case--to avoid dropping packets during congestion. Full-duplex flow control is enabled on all full-duplex ports when: * * * FD_FLOW_DIS pin is low at the rising edge of RESETn, and Auto-Negotiation is enabled on the port (see section 4.2.13), and The link partner `advertises' that it supports pause during Auto-Negotiation1 Full-duplex flow control is not automatically supported on Ports 0-1 when configured for 100BASE-FX operation, nor for Port 5 and Port 4 when it is in MII mode. This is because Auto-Negotiation is not defined for 100BASE-FX or MII. Therefore, the link partners cannot advertise that they support Pause. It can be forced, however--see section 3.3.4. When the full-duplex flow control mode is not set and no packet buffer space is available, the incoming packet is discarded. In full-duplex mode, the 88E6060 MACs support the standard flow control defined in the IEEE 802.3x specification. This flow control enables stopping and restoring the transmission from the remote node. The basic mechanism for performing full-duplex flow control is by means of a Pause frame. The format of the Pause frame is shown in Table 20. Table 20: Pause Frame Format Destination Address (6 Bytes) Source Address (6 Bytes) Type (2 Bytes) Op Code (2 Bytes) Pause Time (2 Bytes) Padding (42 Bytes) FCS (4 Bytes) 01-80-C2-00-00-01 See text 88-08 00-01 See text All zeros Computed Full-duplex flow control functions as follows. When the free buffer space is almost exhausted, the 88E6060 device sends out a Pause frame with the maximum Pause time (a value of all ones--0xFFFF) to stop the remote node from sending more frames into the switch. Only the node that is involved in the congestion is Paused. When the event that invoked flow control disappears, the 88E6060 device sends out a Pause frame with the Pause time equal to zero, indicating that the remote node can resume transmission. The 88E6060 device also responds to the Pause command in the MAC receiving block. When the Pause command is detected, the MAC responds within one slot time (512 bit times) to stop transmission of the new data frame for the amount of time defined in the pause time field of the Pause command packet. The Source Address of received Pause frames is not learned (see Address Learning in section 3.4.3) since it may not represent the Source Address of the transmitting port. This is generally the case if the link partner is an unmanaged switch. The 88E6060 device can be configured to transmit a unique Source Address on Pause frames (the default is all zeros). Global Switch MAC Address registers 1, 2, and 3 (see Table 50, Table 51, and Table 52) can be set to the Source Address to use. A single fixed Source Address can be used for all ports, or a unique Source Address per port can be selected by changing the value of the DiffAddr bit in Table 50. The MACs always discard all IEEE 802.3x Pause frames that they receive, even when full-duplex flow control is disabled or even when the port is in half-duplex mode. 1. Full-duplex flow control is not automatically supported on ports configured for 100BASE-FX operation since Auto-Negotiation is not defined for 100BASE-FX, and hence, the link partners cannot advertise that they support Pause. It can be forced, however - see section 3.3.4. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 47 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.3.4 Forcing Flow Control When flow control is enabled using the 88E6060 device's pins, it is enabled for all ports of the same type (i.e., on all half-duplex ports or on all full-duplex ports that have a flow-controllable link partner). It may be required to have flow control enabled on only one or two ports and have all the other ports disabled. In this case, flow control should be disabled using the appropriate device pins. Refer to the FD_FLOW_DIS and HD_FLOW_DIS pin descriptions for disabling flow control then use the port's ForceFlowControl bit in the Port Control Register for enabling flow control on individual ports. (see section 6.2.2). 3.3.5 Statistics Counters Sometimes it is necessary to debug network occurrences. For example, a technician may want to view the network remotely to solve a customer problem or a software programmer may want to trace transmitted frames. In these situations, two basic types of data are important: * * Number of good frames entering and leaving each port of the switch Quality of network segment performance Frame size and the distribution of frames between multicast and unicast types are less important in this kind of debugging for an edge switch. The 88E6060 Statistics Counters support basic debugging needs. Each port can capture two kinds of statistics: * * A count of the number of good frames received with the number of frames transmitted, or A count of the number of bad frames received with the number of collisions encountered The first statistic answers the question "Where did all the frames go?", while the second statistic answers the question "Does the network segment have any performance problems?". These counters are described in Table 47, and in Table 48. The counters can be cleared, and their mode chosen by the CtrMode bit in the Switch Global Control register (section 6.2.3). Doc. No. MV-S100952-U0, Rev. -Page 48 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Address Management 3.4 Address Management The primary function of the switch portion of the 88E6060 device is to receive good packets from the MACs, processes them, and forward them to the appropriate MACs for transmission. This frame processing involves the Ingress Policy, Queue Controller, Output Queues, and Egress Policy blocks shown in Figure 6. These blocks modify the normal or default packet flow through the switch and are discussed following section 3.5. The normal packet flow and processing is discussed first. The normal packet flow involves learning how to switch packets only to the correct MACs. The switch learns which port an end station is connected to by remembering each packet's Source Address along with the port number on which the packet arrived. When a packet is directed to a new, currently unlearned MAC address, the packet is transmitted out of all of the ports1 except for the one on which it arrived2. Once a MAC address/port number mapping is learned, all future packets directed to that end station's MAC address (as defined in a frame's Destination Address field) are directed to the learned port number only. This ensures that the packet is received by the correct end station (if it exists), and when the end station responds, its address is learned by the switch for the next series of packets. Owing to the limitation of physical memory, switches learn only the currently "active" MAC addresses--a small subset of the 248 possible MAC addresses. When an end station is moved from one port to another, a new MAC address/port number association must be learned, and the old one replaced. These issues are handled by the `Aging' and `Station Move Handling' functions. A MAC address/port number association is allowed to be "active" for only a limited time. This time limit is typically set to five minutes. 3.4.1 Address Translation Unit The 88E6060 device's Lookup Engine or Address Translation Unit (ATU) gets the DA and SA from each frame received from each port. It performs all address searching, address learning, and address aging functions for all ports at wire speed rates. For example, a DA and an SA lookup/learn function can be performed for all ports in less time than it takes to receive a 64-byte frame on all ports. The address database uses a hashing technique for quick storage and retrieval. Hashing a 48-bit address into fewer bits results in some MAC addresses having the same hash address. This situation is called a hash collision and is solved in the 88E6060 device by using a four entry bin per hash location that can store up to four different MAC addresses at each hash location. The four-entry bin is twice as deep as that of many competing switching devices and allows for a reduced size of the address database while still holding the same number of active random value MAC addresses. The address database is stored in the embedded SRAM and has a default size of 1024 entries with a default aging time of about 300 seconds or 5 minutes. The size of the address database can be modified to a maximum of 256, 512, or 1024 entries. Decreasing the size of the address database increases the number of buffers available for frames (see Figure 11). The age time can be modified in 16 second increments from 0 seconds (aging disabled) to 4080 seconds (or 68 minutes). These options are set in the ATU Control register (Table 54). Note Changing the ATU size will result in ATU reset and SWReset. SWReset will reset the MAC, and the Port State bits will be set back to their configuration reset value. The ATU Reset will reset the entire ATU database. See ATUSize and SWReset register descriptions in Table 54. 1. Port-based VLANs modify this operation (section 3.5.1). 2. The 88E6060 device can be configured to transmit frames out the same port that they came in on--see Table 45. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 49 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Figure 11: ATU Size Tradeoffs 0x1FFF 0x1F00 63 0 ATU Data 256 Entries 2K Bytes 0x1FFF 0x1E00 63 0 ATU Data 512 Entries 4K Bytes 0x1FFF 63 0 ATU Data 1024 Entries 8K Bytes 0x1C00 Frame Buffers 60K Bytes Frame Buffers 62K Bytes 0x0000 3.4.2 0x0000 Frame Buffers 56K Bytes Default 0x0000 Address Searching or Translation The address search engine searches the address database to get the output port number(s), called the Destination Port Vector (DPV), for each frame's Destination Address (DA). When an address is found, it can switch the frame instead of flooding it. If the destination address is not found, then the packet is flooded. Flooding refers to the action of sending frames out to all the ports of the switch that have link up with PortState not "Disabled", except for the port the frame came in on. The switch arbitrates destination address lookup requests from the ports and grants one lookup at a time. The MAC address is hashed, and then data is read from the SRAM table and compared to the MAC address for a match. Four different addresses can be stored at each hash location. When a match is found, the Address Translation Unit (ATU) returns the DPV to the Ingress Policy block where it may get modified before the packet is queued to the output port(s). The DPV returned from the ATU may get modified by the VLANTable data. When no MAC address match is found, the Ingress Policy block uses a unique default DPV for each Ingress port, which typically floods the frame. The default DPV for each port is the Port's VLANTable data - see Table 45. When the destination address in the frame is a multicast address or broadcast address, the address is searched in the same way as a unicast address, and the frame is processed identically. Multicast addresses cannot be learned, so they appear in the address database only when they are loaded into it by a CPU or the EEPROM - see section 3.4.5.3. This feature is used for multicast filtering and Bridge Protocol Data Unit (BPDU) handling. BPDU frames are special frames used for Spanning Tree or bridge loop detection. Multiple separate address databases are supported in the 88E6060 device. The database that is searched is controlled by the port's default database number (DBNum - Table 45). MAC addresses that are not members of the port's DBNum cannot be found. Doc. No. MV-S100952-U0, Rev. -Page 50 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Address Management 3.4.3 Address Learning The address learning engine learns source addresses of incoming frames. Up to 1024 MAC address/port number mappings can be stored in the address database. See section 3.4.1. When the source address from an input frame cannot be found in the address database, the ATU enters the self-learning mode, places the new MAC address/port number mapping into the database, and refreshes its Age time. The Age time on a MAC Address entry is refreshed by setting its Entry_State field to 0xE. When the MAC address is already in the database, the port number1 and Age associated with the entry is updated and/or refreshed. The port number is updated in case the end station has moved, and the port number needs to be corrected. The entry's Age is refreshed since the MAC address is still "active". This refreshing prevents the MAC address/port number mapping from being prematurely removed as being "inactive". When an address is added into the database it is hashed and then stored in the 1st empty bin found at the hashed location. When all four address bins are full, a "least recently used" algorithm is used to scan each entry's Age time in the Entry_State field. The Entry_State field is described in section 3.4.5.1. When all four address bins have the same Age time, then the 1st unlocked bin is used (see section 3.4.5.1 for more information about locked or static addresses). If all four bins are locked then the address is not learned and an ATUFull interrupt is generated. See the Switch Global Status register - Table 49. Multiple separate address databases are supported in the 88E6060 device. The port's database number (DBNum - Table 45) determines the MAC address database into which the learned address is stored. The same MAC address can be learned multiple times with different port mappings if different DBNum values are used. Learning can be disabled for all ports by setting the LearnDis bit to a one in the ATU Control register (Table 54). Learning is disabled on any port that has a PortState of Disabled or Blocking/Listening (see the Port Control register--Table 44) or whose Port Association Vector (PAV bit -- Table 46) is cleared to a zero. 3.4.4 Address Aging Address aging makes room for new active addresses by ensuring that when a node is disconnected from the network segment or when it becomes inactive, its entry is removed from the address database. An address is removed from the database after a predetermined interval from the time it last appeared as an Ingress frame's source address (SA). This interval is programmable in the 88E6060 device. The default Aging interval is about 5 minutes (282 to 304 seconds), but it can be set from 0 seconds (i.e., aging is disabled) to 4,080 seconds in 16 second increments. See AgeTime in ATU Control register--see Table 54. The 88E6060 device runs the address aging process continuously unless disabled by clearing the AgeTime field in the ATU Control register to zero. Aging is accomplished by a periodic sweeping of the address database. The speed of these sweeps is determined by the AgeTime field. On each aging sweep of the database, the ATU reads each valid entry and updates its Age time by decrementing its Entry_State field as long as the entry is not locked. The Entry_State field is described in section 3.4.5.1. When the Entry_State field reaches zero, the entry is considered invalid and purged from the database. The time taken to age out any entry in the MAC address database is a function of the AgeTime value in the ATU Control register and the value in the Entry_State field. A new or just-refreshed unicast MAC address has an Entry_State value of 0xE. See section 3.4.2. A purged or invalid entry has an Entry_State value of 0x0. The values from 0xD to 0x1 indicate the Age time on a valid unicast MAC address with 0x1 being the oldest. This scheme provides 14 possible age values in the Entry_State field which increases precision in the age of entries in the MAC address database. This precision is relayed to the "least recently used" algorithm that is employed by the address 1. The port's Port Association Vector (PAV - Table 46) is used as the port's port vector when an address is auto learned or updated. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 51 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch learning process. An address is purged from the database within 1/14th of the programmed AgeTime value in the ATU Control register. 3.4.5 Address Translation Unit Operations The ATU in the 88E6060 device supports user commands to access and modify the contents of the MAC address database. All ATU operations have the same user interface and protocol. Five Global registers are used and are shown in Table 21 on page 52. The protocol for an ATU operation is as follows: 1. 2. 3. 4. 5. Ensuring the ATU is available by checking the ATUBusy bit in the ATU Operation register. The ATU can only perform one user command at a time. Loading the ATU Data and ATU MAC registers, if required by the operation. Starting the ATU operation by defining the DBNum, ATUOp, and setting the ATUBusy bit to a one in the ATU Operation register. The DBNum, ATUOp and the ATUBusy bits setting can be done at the same time. Waiting for the ATU operation to complete. Completion can be verified by polling the ATUBusy bit in the ATU Operation register or by receiving an ATUDone interrupt. See Switch Global Control register Table 53 and Switch Global Status register, Table 49. Reading the results, if appropriate. Table 21: ATU Operations Registers Register Offset Section Before the Operation Sta rts After the Operation Completes ATU Operation 0x0B or Decimal 11 Table 55 Used to define the required operation (including which database to search, i.e., the DBNum field) and start it. Used to indicate the ATU's Busy status. ATU Data 0x0C or Decimal 12 Table 56 Used further to define the required operation and used as the required ATU Data that is to be associated with the MAC address below. Returns the ATU Data that is associated with the resulting MAC address below. ATU MAC (3 registers) 0x0D to 0x0F or Decimal 13 to 15 Table 57 Used to define the required MAC address upon which to operate Returns the resulting MAC address from the required operation. 3.4.5.1 Format of the ATU Database Each MAC address entry in the ATU database is 64 bits in size. The lower 48 bits contain the 48-bit MAC address, and the upper 16 bits contain information about the entry as shown in Figure 12. The database is accessed 16 bits at a time via the Switch Global registers shown in the figure. For more information about these registers, see ATU MAC Switch Address registers, Table 57 through Table 59. Doc. No. MV-S100952-U0, Rev. -Page 52 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Address Management Figure 12: Format of an ATU Entry 48-bit MAC Address Register 0x0C or Decimal 12 63 58 57 RES Register 0x0D or Decimal 13 52 51 DPV 48 47 ES ATU Data 40 39 Addr Byte 0 Register 0x0E or Decimal 14 32 31 Addr Byte 1 24 23 Addr Byte 2 Register 0x0F or Decimal 15 16 15 Addr Byte 3 8 7 Addr Byte 4 0 Addr Byte 5 Bit 40 is the Multicast bit The upper 16 bits of the ATU entry are called the ATU Data which are separated into three fields--see ATU Data Fields,Table 22 and ATU DATA register, Table 56. Table 22: ATU Data Fields Field Bits Des cription Entry_State 51:48 The Entry_State field, together with the entry's Multicast bit (bit 40) is used to determine the entry's age or its type as follows: For unicast MAC addresses (bit 40 = 0): 0x0 = Invalid, empty, or purged entry. 0x1 to 0xE = Valid entry where the Entry_State = the entry's age, and the DPV indicates the port or ports mapped to this MAC address. 0xF = Valid entry that is locked and does not age. The DPV indicates the port or ports mapped to this MAC address. For multicast MAC addresses (bit 40 = 1): 0x0 = Invalid, empty, or purged entry. 0x7 = Valid entry that is locked does not age. The DPV indicates the port or ports mapped to this MAC address. Used for multicast filtering. 0xE = Valid entry that is locked and does not age. The DPV indicates the port or ports mapped to this MAC address. Frames with a MAC address that return this Entry_State are considered MGMT (management) frames and are allowed to tunnel through blocked ports (see section 3.5). Used for BPDU handling. DPV 57:52 The Destination Port Vector. These bits indicate which port or ports are associated with this MAC address (i.e., where frames should be switch to) when they are set to a one. A DPV of all zeros indicates frames with this DA should be discarded. Bit 52 is assigned to physical Port 0, 53 to Port 1, 54 to Port 2, 55 to Port 3, and so on. Reserved 63:58 Reserved for future use. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 53 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.4.5.2 Reading the Address Database - the Get Next Operation The contents of the address database can be dumped or searched. The Get Next operation returns the active contents of the address database in ascending network byte order. A search operation can also be done using the Get Next operation. If multiple address databases are being used, the Get Next function returns all unique MAC addresses from the selected database. The Get Next operation starts with the MAC address contained in the ATU MAC registers and returns the next higher active MAC address currently active in the address database. Use an ATU MAC address of all ones to get the first or lowest active MAC address. The returned MAC address and its data is accessible in the ATU MAC and the ATU Data registers. To get the next higher active MAC address, the Get Next operation can be started again without setting the ATU MAC registers since they already contain the `last' address. A returned ATU MAC address of all ones indicates that the end of the database has been reached1. A summary of how the Get Next operation uses the ATU's registers is shown in Table 23. Table 23: ATU Get Next Operation Register Usage R e g is t e r Offset Section Be fo re th e Op eration Sta rts A ft e r t h e O p e r a ti o n C omp le t es ATU Operation 0x0B or Decimal 11 Table 55 Used to define the required operation (including which database to search, i.e., the DBNum field) and start it. Used to indicate the ATU's Busy status. ATU Data 0x0C or Decimal 12 Table 56 Ignored. Returns the ATU Data that is associated with the resulting MAC address below. If Entry_State = 0x0 the returned data is not a valid entry. ATU MAC (3 registers) 0x0D to 0x0F or Decimal 13 to 15 Table 57 Used to define the starting MAC address to search. Use an address of all zeros to find the first or lowest MAC address. Use the last address to find the next address. There is no need to write to this register in this case. Returns the next higher active MAC address if found, or all ones are returned indicating the end of the table has been reached. through Table 59 To search for a particular MAC address, start the Get Next operation with a MAC address numerically one less than the particular MAC address using the DBNum of the selected database to search. When the searched MAC address is found, it is returned in the ATU MAC registers along with its associated data in the ATU Data register. When the searched MAC address is not found active, then the ATU MAC registers will not equal the required searched address. 3.4.5.3 Loading and Purging an Entry in the Address Database Any MAC address (unicast or multicast) can be loaded into, or removed from, the address database by using the Load operation. An address is loaded into the database if the Entry_State in the ATU Data register (Table 56) is non-zero. A value of zero indicates the required ATU operation is a purge. 1. When the returned MAC address is all ones, it always indicates that the end of the table has been reached. If the returned Entry_State bits are non-zero, it also indicates that the MAC address of all ones is active in the database. Doc. No. MV-S100952-U0, Rev. -Page 54 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Address Management The load operation searches the address database indicated by the database number, DBNum (in the ATU Operation register), for the MAC address contained in the ATU MAC registers. When the address is found, it is updated by the information found in the ATU Data register. Note A load operation becomes a purge operation when the ATU Data's Entry_State equals zero. Also, locked addresses can be modified without their needing to be purged first. If the address is not found and if the ATU Data's Entry_State does not equal zero, the address is loaded into the address database using the same protocol as is used by automatic Address Learning. See section 3.4.3. The 16 bits of the ATU Data register are written into bits 63:48 of the ATU entry. See section 3.4.5.1. A summary of how the Load operation uses the ATU's registers is shown in Table 24. Table 24: Re gister ATU Load/Purge Operation Register Usage Offset Se ctio n Befo re the Ope ration Starts After the Operation Complete s ATU Operation 0x0B or Decimal 11 Table 55 Used to define the required operation (including which database to load or purge, i.e., the DBNum field) and start it. Used to indicate the ATU's Busy status. ATU Data 0x0C or Decimal 12 Table 56 Used to define the associated data that is loaded with the MAC address below. When Entry_State = 0, the load becomes a purge. No change. ATU MAC (3 registers) 0x0D to 0x0F or Decimal 13 to 15 Table 57 through Table 59 Used to define the MAC address to load or purge. No change. 3.4.5.4 Flushing Entries All MAC addresses, or just the unlocked MAC addresses, can be purged from the entire set of address databases or from just a particular address database using single ATU operations. These ATU operations are: * * * * Flush all Entries Flush all Unlocked Entries Flush All Entries in a particular DBNum Database Flush all Unlocked Entries in a particular DBNum Database The ATU Data and ATU MAC Address registers are not used for these operations and they are left unmodified. The DBNum field of the ATU Operation register is used for the Flush operations that require a database number to be defined. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 55 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.5 Ingress Policy The Ingress Policy block modifies the normal packet flow through the switch. Frames are prevented from going out of certain ports by the use of port-based VLANs, and frames are prevented from entering the switch by the use of switch management Port States. Doc. No. MV-S100952-U0, Rev. -Page 56 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Ingress Policy 3.5.1 Port-based VLANs The 88E6060 device supports a very flexible port-based VLAN feature. Each Ingress port is associated with the VLANTable field of the Port-based VLAN Map register that restricts which egress ports its frames may use. (Table 45 on page 96). When bit 0 of a port's VLANTable field is set to a one, that port is allowed to send frames to Port 0. When bit 1 of this field is set to a one, that port is allowed to send frames to Port 1. If bit 2 equals 1, Port 2 may receive frames, If bit 3 equals 1, Port 3 may receive frames, and so on. At reset the VLANTable value for each port is set to all ones, except for each port's own bit, which is cleared to a zero. This prevents frames from going back out of the port at which they arrived. This default VLAN configuration allows all of the ports to send frames to all of the other ports as shown in Figure 13. Figure 13: Switch Operation with VLANs Disabled 2 1 3 0 4 5 One reason for VLAN support in the 88E6060 device is to isolate a port for firewall router applications. Figure 14 shows a typical VLAN configuration for a firewall router. Port 0 is the WAN port. The frames arriving at this port must not go out to any of the LAN ports, but they must be able to go to the router CPU. All the LAN ports are able to send frames directly to each other without the need for CPU intervention but they cannot send frames directly to the WAN port. To accomplish routing, the CPU is able to send frames to all of the ports. The use of the Marvell header (section 3.5.4) enables a CPU to define dynamically to which port or ports a frame is allowed to go. This feature is useful for purposes of WAN and LAN isolation on multicast or flooded traffic generated by the CPU. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 57 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Figure 14: Switch Operation with a Typical Router VLAN Configuration LAN LAN LAN 2 1 3 0 4 5 WAN LAN CPU/ Router This specific VLAN configuration is accomplished by setting the port's VLANTable registers as follows: Table 25: 3.5.1.1 VLANTable Settings for Figure 14 Port # Port Type VLANTable Setting 0 WAN 0x20 1 LAN 0x3C 2 LAN 0x3A 3 LAN 0x36 4 LAN 0x2E 5 CPU 0x1F Tunneling Frames Through Port-Based VLANS Normally frames cannot pass through the port based VLAN barriers. However, some frames can be made to pass through the VLAN barriers on the 88E6060 device. Before a frame can tunnel through a port based VLAN barrier, its destination address (DA) must be locked into the address database (section 3.4.5.1), and the VLANTunnel bit on the frame's Ingress port must be set to a one (Table 44 on page 94). When both of these conditions are met, the frame is sent out of the port or ports indicated in the locked address's DPV field for the DA entry in the address database. The VLANTable data is ignored in this case. This feature is enabled only on those ports that have their VLANTunnel bit set to a one. Doc. No. MV-S100952-U0, Rev. -Page 58 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Ingress Policy 3.5.2 Switching Frames Back to their Source Port The 88E6060 device supports the ability to return frames to the port at which they arrived. While this is not a standard way to handle Ethernet frames, some applications may require this ability on some ports. This feature can be enabled on a port-by-port basis by setting the port's own bit in its VLANTable register to a one. See section 3.5.1 and Table 45. 3.5.3 Port States The 88E6060 device supports four Port States per port as shown in Table 26. The Port States are used by the Queue Controller (section 3.6) in the 88E6060 device to adjust buffer allocation. They are used by the Ingress Policy blocks to control which frame types are allowed to enter and leave the switch, so that Spanning Tree or other bridge loop detection software can be supported. The PortState bits in the Port Control register (Table 44) determine each port's Port State, and they can be modified at any time. Table 26 below lists the Port States and their function. Two of the Port States require the detection of MGMT frames. A MGMT frame in the 88E6060 device is any multicast frame whose DA address is locked into the address database with an Entry_State value of 0xE (section 3.4.5.1). MGMT frames can tunnel through blocked ports. MGMT frames always ignore VLANs (i.e., they always go to the port indicated by the DA's DPV). These MGMT frames are typically used for 802.1D Spanning Tree Bridge Protocol Data Units (BPDUs), but any multicast address can be used supporting new and/or proprietary protocols. Table 26: Port State Options Port Sta t e Desc ription Disabled Frames are not allowed to enter (ingress) or leave (egress) a disabled port. Learning does not take place on disabled ports. Blocking/ Listening Only MGMT frames are allowed to enter or leave a blocked port. All other frame types are discarded. Learning is disabled on blocked ports. Learning Only MGMT frames are allowed to enter or leave a learning port. All other frame types are discarded, but learning takes place on all good frames even if they are not MGMT frames. Forwarding Normal operation. All frames are allowed to enter and leave a forwarding port. Learning takes place on all good frames. The default Port State for all the ports in the switch can be either Disabled or Forwarding depending upon the value of the SW_MODE pins (see Pin Description in Part 1 of this datasheet). The ports come up in the Forwarding Port State unless the SW_MODE is for CPU-attached mode. This enables the CPU to bring up the ports slowly after port-based VLANs are configured (for router WAN to LAN isolation) and so a Spanning tree protocol can be run (if required). 3.5.4 Switch's Ingress Header (Port 4 and Port 5 only) The detailed information regarding this feature requires an NDA with Marvell(R) Semiconductor. Please contact your local Marvell Sales Representative for more information. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 59 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.5.5 Switch's Ingress Trailer (Port 4 and Port 5 only) When a CPU needs to perform Spanning Tree or bridge loop detection or when it needs to be able to send frames out any port or ports, then the CPU's port needs to be configured for Ingress Trailer mode. Any MII port (Port 4 and Port 5) can be configured this way by setting the IngressMode bits in the port's Port Control register (Table 44 on page 94), but only the CPU's port should be configured this way. When the Ingress Trailer mode is enabled on a port, the last four bytes of the data portion of the frame are used to configure the switch--see Figure 15. The Ingress Policy block removes the Trailer from the frame and overwrites it with a new CRC, causing the frame to be four bytes smaller in size. This adjustment makes the frame `normal' for the rest of the network since the Trailer's data is intended for the switch only. Frame size checking is performed on the adjusted frame size. This means the CPU must always add four bytes of data to the end of every frame it sends into the switch when the Trailer mode is enabled. The Ingress Trailer gives the CPU the ability to override normal switch operation on the frame that it just transmitted but this override may not always be necessary. When the CPU requires the switch to process the frame with the switch's current ingress policy, the CPU sets the Trailer data in the frame to all zeros by inserting a four-byte pad. This zero padding clears the Override bit in the Trailer causing the switch to ignore the Trailer's data and process the frame normally after removing the Trailer from the frame. When the CPU needs to override all of the switch's Ingress policy including Port Based VLANs, it sets the fields in the Trailer as shown in Figure 15 and defined in Table 27. The ingress trailer is used to force a frame to egress out certain ports and it is the only way for the CPU to tunnel a frame through blocked ports.(by using the MGMT bit). When the CPU uses the trailer it must "know" where it wants the frame to go. Figure 15: Ingress Trailer Format b7 b0 RES = 0 7 Octets Preamble 1 Octet SFD 6 Octets Destination Address 6 Octets Source Address 2 Octets Length/Type MAC Client Data Pad IgnoreFCS LearnDisable Reserved = 0 Override Octets Within Frame Transmitted Top to Bottom into the Switch DPV [5:0] 2nd Octet Reserved = 0 RES = 0 RES = 0 3rd Octet MGMT 4 Octets Marvell Trailer 4 Octets FCS RES = 0 IEEE 802.3 Frame with Marvell Trailer In Front of FCS Marvell Ingress Trailer Format Doc. No. MV-S100952-U0, Rev. -Page 60 1st Octet 4th Octet Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Ingress Policy Table 27: Ingress Trailer Fields Por t State Desc rip t io n Override When this bit is set to a one, the Trailer data is used to override the switch's operation. When this bit is cleared to a zero, the Trailer's DPV and MGMT bits are ignored. LearnDisable When this bit is set to a one (with or without the Override bit being set) the Source Address contained in this frame will not be learned in the address database. IgnoreFCS When this bit is set to a one (with or without the Override bit being set) the frame's FCS is ignored (i.e., the FCS is not checked to see if the frame should be discarded due to a CRC error). The FCS is still a required part of the frame, however, its value is not verified if this bit is set in the Trailer. A new, correct CRC is written to the last four bytes of the frame and the frame is processed by the switch with the good CRC. DPV[5:0] The Destination Port Vector. These bits indicate which port or ports the frame is to be sent to if the Override bit is set to a one. A DPV of all zeros discards the frame. Bit 0 is assigned to physical Port 0 and must be set to a one for this frame to egress from that port, bit 1 for Port 1, bit 2 for Port 2, bit 3 for Port 3, and so on. MGMT The frame's management bit. When this bit is set to a one (along with the Override bit) indicates the frame is a MGMT frame and is allowed to Ingress and Egress through Blocked ports (section 3.5.3). Must be set on BPDU frames. RES = 0 These fields are reserved for future use and must be set to zeros. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 61 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.6 Queue Controller The 88E6060 queue controller uses an advanced non-blocking, output port queue architecture with Resource Reservation. As a result, the 88E6060 supports definable frame latencies without head-of-line blocking problems or non-blocked flow disturbances in any congested environment. 3.6.1 No Head-of-Line Blocking An output port that is slow or congested never affects the transmission of frames to ports that are not congested. The 88E6060 device is designed to ensure that all flows that are not congested traverse the switch without degradation regardless of the congestion elsewhere in the switch. 3.6.2 The Queues The queues in the 88E6060 device are shown in Figure 16. Figure 16: Switch Queues Free Queue 3.6.3 Port 0 Ingress Buffers Port 1 Ingress Buffers Port n Ingress Buffers Queue Manager Multicast Handler Output Queue Port 0 Output Queue Port 1 Output Queue Port n Queue Manager At reset1, the Queue Manager initializes the Free Queue by setting all of the buffer pointers to point into it and ensuring that all of the other queues are empty. The Queue Manager then takes the first available free buffer pointers from the Free Queue and assigns them to any Ingress port that is not disabled2 and whose link3 is up. When these conditions are met, the switch is ready to accept and switch packets. Whenever any port's link goes down or the port is set to the Disabled Port State, the port's Ingress buffers and Output Queue buffers are immediately returned to the Free Queue. This feature prevents "stale buffers" or "lost buffers" conditions and maximizes the size of the Free Queue so that of momentary congestion can be handled. When an enabled port's link comes back up, the port gets its Ingress Buffers back and it can start receiving frames again. 1. The Queue Manager is reset either by toggling the hardware RESETn pin, a software reset by the SWReset bit, or by an ATUSize change (both in the ATU Control register-Table 54). 2. When a port is in the Disabled Port State (section 3.5.3), its Ingress buffers are left in the Free Queue for other ports to use. 3. PHY based ports need to get a Link Up signal from the PHY. MII based ports have a link up state if they are enabled. Doc. No. MV-S100952-U0, Rev. -Page 62 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Queue Controller When a MAC receives a packet, it places it into the embedded memory at the address indicated by the input pointers that the MAC received from the Queue Manager. When packet reception is complete, the MAC transfers the pointers to the Queue Manager and requests new buffers from the Free Queue. When the Free Queue is empty, the MAC is not allocated any pointers until they become available. If the MAC starts to receive a packet when it has no pointers allocated, the packet is dropped. If flow control is enabled, it prevents this condition from occurring. The Queue Manager uses the data returned from the Lookup Engine (section 3.4.1) and the Ingress Policy (section 3.5) to determine which Output Queue or Queues the packet's pointer(s) should go to. At this point, the Queue Manager modifies the desired mapping of the frame, depending upon the mode of the switch and its level of congestion. Two modes are supported, with and without Flow Control. Both modes are handled at the same time and can be different per port. One port can have Flow Control enabled, while another has it disabled. When Flow Control is enabled on an ingress port, the frame is switched to the required output queue without modification. This operation is done so that frames are not dropped. The Queue Manager monitors which output queues are congested and enables or disables flow control on the ingress ports that are causing the congestion. This approach allows flows that are not congested to progress through the switch without degradation. When Flow Control is disabled on an ingress port, the frame can be discarded instead of being switched to the required Output Queue. If a frame is destined for more than one output queue, it can be switched to some queues and not to others. The decisions are quite complex because the Queue Manager takes many pieces of information into account before the decision is made. The Queue Manager monitors the current level of congestion in the Output Queues to which the frame is being switched, and the current number of free buffers in the Free Queue. As a result, flows that are not congested traverse the switch unimpeded. 3.6.4 Output Queues The Output Queues receive and transmit packets in the order received. This is very important for some forms of Ethernet traffic. The Output Queues are emptied as fast as possible, but they can empty at different rates, possibly owing to a port's being configured for a slower or faster speed, or because of network congestion (collisions or Flow Control). After a packet has been completely transmitted to the MAC, the Output Queue passes the transmitted packet's pointers to the Multicast Handler for processing, after which the MAC begins transmitting the next packet. 3.6.5 Multicast Handler The Multicast Handler receives the pointers from all of the packets that are transmitted. It looks up each pointer to determine whether each packet were directed to more than one output queue. If not, the pointer is returned to the Free Queue where it can be used again. When the frame is switched to multiple output queues, the Multicast Handler ensures that the frame has exited all of the ports to which it was switched before returning the pointers to the Free Queue. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 63 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.7 Egress Policy (Port 4 and Port 5 only) The Egress Policy block is used to modify frames, if directed to, as they exit the switch. Specific switch information can be added to the frame for the switch's CPU. 3.7.1 Switch's Egress Header The detailed information regarding this feature requires an NDA with Marvell Semiconductor. Please contact your local Marvell Sales Representative for more information. Doc. No. MV-S100952-U0, Rev. -Page 64 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Egress Policy (Port 4 and Port 5 only) 3.7.2 Switch's Egress Trailer If a CPU needs to perform Spanning Tree or bridge loop detection, the CPU must have information about the originating physical source ports of its received frames, since those frames' SA information cannot be relied upon. To get this physical source port data, the CPU's port needs to be configured for Egress Trailer mode (or egress header mode--section 3.7.1). Any MII port (Port 4 and Port 5) can be configured this way by setting the TrailerMode bit in the port's Port Control register (Table 44 on page 94), but only the CPU's port should be configured this way. When the Egress Trailer mode is enabled on a port, four extra bytes are added to the end of the frame before the frame's CRC or FCS, and a new CRC is appended to the end of the frame. When the frame is received by the CPU, the Trailer occupies the last four bytes of the frame. The CPU's software can examine portions of the frame to determine if it needs the frame's source port information. Generally it is needed only on MGMT/Spanning Tree frames. If the information is not needed, the CPU reduces the frame size variable by four and passes the frame to the appropriate routines for processing. Removing the Trailer from a frame essentially a subtraction operation without the need to move any data. Consequently CPU overhead is kept to a minimum. The format of the Egress Trailer is shown in Figure 17 and its fields are defined in Table 28. Figure 17: Egress Trailer Format b0 b7 7 Octets Preamble 1 Octet SFD 6 Octets Destination Address 6 Octets Source Address 2 Octets Length/Type RES = 0 1st Octet Valid - Always a 1 MAC Client Data Pad 4 Octets Marvell Trailer 4 Octets FCS Octets Within Frame Transmitted Top to Bottom by the Switch RES = 0 RES = 0 SPID [2:0] RES = 0 3rd Octet MGMT RES = 0 IEEE 802.3 Frame with Marvell Trailer In Front of FCS 2nd Octet 4th Octet Marvell Egress Trailer Format Table 28: Egress Trailer Fields Field De scrip tio n Valid When this bit is set to a one, it indicates the Trailer data is present. This bit is always a one. SPID[2:0] The Source Port ID. These bits indicate which physical port the frame entered the switch from. An SPID of all zeros indicates Port 0. An SPID of 0x1 indicates Port 1, 0x2 indicates Port 2, 0x3 indicates Port 3, and so on. MGMT The frame management bit. When this bit is set to a one, it indicates the frame is a MGMT frame and is allowed to ingress and egress through blocked ports (section 3.5.3). Should be set on BPDU frames. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 65 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 3.8 Spanning Tree Support IEEE 802.1D Spanning Tree is supported in the 88E6060 device with the help of an external CPU that runs the Spanning Tree algorithm. The 88E6060 device supports Spanning Tree by: * * * * * Detection of Bridge Protocol Data Unit (BPDU) frames. These frames are called MGMT (management) frames in the 88E6060 device. They are detected by loading the BPDU's multicast address (01:80:C2:00:00:00) into the address database with a MGMT Entry_State indicator (see section 3.4.5.1). Tunnelling of BPDU frames through Blocked ports. Blocked ports are controlled by the Port's PortState bits (section 3.5.3). When a port is in the Blocked state, all frames are discarded except for multicast frames with a DA that is contained in the address database with a MGMT indicator (see above). Redirection of BPDU frames. BPDU frames need to go to the CPU only, even though they are multicast frames. This is handled in the detection of BPDU frames above by mapping the BPDU's multicast address to the CPU port. (The value of the DPV bits when the address is loaded). Source Port information. The CPU needs information of the physical source port of origin of the BPDU frame. The source port is supplied in the frame's Egress Trailer that is sent to the CPU (section 3.7.2). CPU transmission of BPDU frames. The CPU needs to be able to transmit BPDU frames out of any physical port of the switch. This is supported only in the Ingress Trailer data that is supplied by the CPU (section 3.5.5). The ingress header cannot be used for this since it cannot force MGMT frames to go out a particular port. The 88E6060 device can support 802.1D Spanning Tree, or it can be used to perform simpler bridge loop detection on new link up. These different options are accommodated by running appropriate software on the attached CPU. Any vendor's proprietary protocol units can be handled with the same mechanism. 3.9 Embedded Memory The 88E6060 device contains an embedded 512Kb (8Kx64) Synchronous SRAM (SSRAM). The SSRAM is running at 50 MHz, and the data bus is 64 bits wide. The memory interface provides up to 3.2 Gbps bandwidth for packet reception/transmission and address mapping data accesses. This memory bandwidth is enough for all the ports running at full wire speed in full-duplex mode with minimum size frames of 64 bytes. 3.10 Interrupt Controller The 88E6060 device contains a switch Interrupt Controller that is used to merge various interrupts on to the CPU's interrupt signal. Each switch interrupt can be individually masked by an enable bit contained in the Switch Global Control register (Table 53). When an unmasked interrupt occurs and the interrupt pin goes active low, the CPU needs to read the Switch Global Status register (Table 49) to determine the source of the interrupt. When the interrupt comes from the switch core (from ATUFull, ATUDone or EEInt), the switch's interrupt pin goes inactive after the Switch Global Status register is read. The interrupt status bits are cleared on read. If the interrupt comes from the PHY (PHYInt), then the switch's interrupt pin goes inactive only after the PHY's interrupt is cleared by reading the appropriate registers in the PHY. See Table 60 for details. Doc. No. MV-S100952-U0, Rev. -Page 66 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Functional Description Port Monitoring Support 3.11 Port Monitoring Support Port monitoring is supported by the 88E6060 device with Egress only monitoring or Egress and Ingress monitoring. Egress monitoring duplicates egress frames from a particular port to a selected monitor port. Ingress monitoring duplicates any good ingress frames for a particular port to a selected monitor port (such frames are processed normally through the switch). Port monitoring is enabled by modifying the Port Association Vector (Table 46) for the particular port that is to be monitored. 3.12 Port Trunking Support Port Trunking is supported by the 88E6060 device with any combinations of ports. The ports that are to be associated with the trunk need to have all the port member's bits set in each of their Port Association Vectors (Table 46). Port based VLANs are then used to prevent loops and to load balance the trunk. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 67 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Section 4. Physical Interface (PHY) Functional Description The 88E6060 device contains five IEEE 802.3 100BASE-TX and 10BASE-T compliant media-dependent interfaces for support of Ethernet over unshielded twisted pair (UTP) copper cable. DSP-based advanced mixed signal processing technology supports attachment of up 150 meters of CAT 5 cable to each of these interfaces. An optional, per port, automatic MDI/MDIX crossover detection function gives true "plug and play" capability without the need for confusing crossover cables or crossover ports. The port 0 and port 1 interface can be configured to support IEEE 802.3 100BASE-FX by utilizing a pseudo-ECL (PECL) interface for fiber-optics. Doc. No. MV-S100952-U0, Rev. -Page 68 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description Figure 18: 88E6060 Device Transmit Block Diagram P[n]_TXD P[n]_TX_EN MAC Internal Interfaces Physical Coding Sublayer PCS 100BASE-T 10BASE-T 4B/5B Encoder Physical Media Attachment PMA Function Parallel to Serial Conversion Parallel to Serial Conversion Scrambler NRZ to Manchester Encoder NRZ to NRZI Encoder Physical Media Dependent PMD Sublayer Pre-Driver/ PECL Driver Digital FIR MultiMode DAC P[n]_TXN P[n]_TXP Media Dependent Interface MDI P[1:0]CONFIG Driver Twisted Pair (on all Ports) or Fiber Cable (Only Port 0 and Port 1) Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 69 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch P[n]_CRS_DV P[n]_RXD Figure 19: 88E6060 Device Receive Block Diagram Internal Interfaces Physical Coding Sublayer PCS Synchronizing FIFO 100BASE-T 10BASE-T 4B/5B Decoder Physical Media Attachment PMA Function Serial to Parallel Conversion Code Group Alignment Serial to Parallel Conversion SFD Alignment Descrambler Manchester to NRZ Decoder NRZI to NRZ Decoder Physical Media Dependent PMD Sublayer MLT-3 to Binary Decoder PECL Receiver Digital Adaptive Equalizer Clock Recovery 125MHz ADC Sample/Hold Twisted Pair (on all Ports) or Fiber Cable (Only Port 0 and Port 1) P[1:0]CONFIG P[1:0]_SDET P[x]_RXN Media Dependent Interface MDI 10Mbps Receiver AGC P[x]_RXP Baseline Wander Compensation Doc. No. MV-S100952-U0, Rev. -Page 70 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description Transmit PCS and PMA 4.1 Transmit PCS and PMA 4.1.1 100BASE-TX Transmitter The 100BASE-TX transmitter consists of several functional blocks that convert synchronous 4-bit nibble data to a scrambled MLT-3 125 Mbps serial data stream. 4.1.2 4B/5B Encoding For 100BASE-TX mode, the 4-bit nibble is converted to a 5-bit symbol with /J/K/ start-of-stream delimiters and /T/ R/ end-of-stream delimiters inserted as needed. The 5-bit symbol is then serialized and scrambled. 4.1.3 Scrambler In 100BASE-TX mode, the transmit data stream is scrambled in order to reduce radiated emissions on the twisted pair cable. The data is scrambled by exclusive ORing the NRZ signal with the output of an 11-bit wide linear feedback shift register (LFSR), which produces a 2047-bit repeating pseudo-random sequence. The scrambler reduces peak emissions by randomly spreading the signal energy over the transmit frequency range and eliminating peaks at certain frequencies. Note The enabling and disabling of the scrambler and the far end fault generator are controlled in the same way as for the descrambler detection and far end fault detection on the receive side. 4.1.4 NRZ to NRZI Conversion The data stream is converted from NRZ to NRZI. 4.1.5 Pre-Driver and Transmit Clock The 88E6060 device uses an all-digital clock generator circuit to create the various receive and transmit clocks necessary for 100BASE-TX, 100BASE-FX, and 10BASE-T modes of operation. For 100BASE-TX mode, the transmit data is converted to MLT-3-coded symbols. The digital time base generator (TBG) produces the locked 125 MHz transmit clock. For 100BASE-FX mode, NRZI data is presented directly to the multimode DAC. For 10BASE-T mode, the transmit data is converted to Manchester encoding. The digital time base generator (TBG) produces the 10 MHz transmit reference clock as well as the over-sampling clock for 10BASE-T waveshaping. 4.1.6 Multimode Transmit DAC The multimode transmit digital to analog converter (DAC) transmits MLT3-coded symbols in 100BASE-TX mode, NRZI symbols in 100BASE-FX mode, and Manchester-coded symbols in 10BASE-T mode. The transmit DAC utilizes a direct-drive current driver which is well balanced to produce very low common mode transmit noise. In 100BASE-TX mode, the multimode transmit DAC performs slew control to minimize high frequency EMI. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 71 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch In 100BASE-FX mode, the pseudo ECL level is generated through external resistive terminations. In 10BASE-T mode, the multimode transmit DAC generates the needed pre-equalization waveform. This preequalization is achieved by using a digital FIR filter. 4.2 Receive PCS and PMA 4.2.1 10-BASE-T/100BASE-TX Receiver The differential RXP and RXN pins are shared by the 100BASE-TX, 100BASE-FX (supported on Port 0 and Port 1) and 10BASE-T receivers. The 100BASE-TX receiver consists of several functional blocks that convert the scrambled MLT-3 125 Mbps serial data stream to the synchronous 4-bit nibble data presented to the MAC interfaces. 4.2.2 AGC and Baseline Wander In 100BASE-TX mode, after input to the AGC block, the signal is compensated for baseline wander by means of a digitally controlled Digital to Analog converter (DAC). It automatically removes the DC offset from the received signal before it reaches the input to the sample and hold stage of the ADC. 4.2.3 ADC and Digital Adaptive Equalizer In 100BASE-T mode, an analog to digital converter (ADC) samples and quantizes the input analog signal and sends the result into the digital adaptive equalizer. This equalizer removes inter-symbol interference at the receiver. The digital adaptive equalizer takes unequalized signals from the ADC output and uses a combination of feed-forward equalizer (FFE) and decision feedback equalizer (DFE) for the best optimized signal-to-noise (SNR) ratio. 4.2.4 Digital Phased Locked Loop (DPLL) In 100BASE-TX mode, the receive clock is locked to the incoming data stream and extracts a 125 MHz reference clock. The input data stream is quantized by the recovered clock and sent through to the digital adaptive equalizer from each port. Digital interpolator clock recovery circuits are optimized for MLT-3, NRZI, and Manchester modes. A digital approach makes the 88E6060 receiver path robust in the presence of variations in process, temperature, on-chip noise, and supply voltage. 4.2.5 NRZI to NRZ Conversion In 100BASE-TX mode, the recovered 100BASE-TX NRZI signal from the receiver is converted to NRZ data, descrambled, aligned, parallelized, and 5B/4B decoded. 4.2.6 Descrambler The descrambler is initially enabled upon hardware reset if 100BASE-TX is selected. The scrambler can be enabled or disabled via software by setting the descrambler bit (Table 71). Doc. No. MV-S100952-U0, Rev. -Page 72 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description Receive PCS and PMA The descrambler "locks" to the descrambler state after detecting a sufficient number of consecutive idle codegroups. The receiver does not attempt to decode the data stream unless the descrambler is locked. Once locked, the descrambler continuously monitors the data stream to make sure that it has not lost synchronization. The receiver descrambles the incoming data stream by exclusive ORing it with the output of an 11-bit wide linear feedback shift register (LFSR), which produces a 2047-bit non-repeating sequence. The descrambler is always forced into the "unlocked" state when a link failure condition is detected or when insufficient idle symbols are detected. 4.2.7 Serial-to-Parallel Conversion and 5B/4B Code-Group Alignment The Serial-to-Parallel /Symbol Alignment block performs serial to parallel conversion and aligns 5B code-groups to a nibble boundary. 4.2.8 5B/4B Decoder The 5B/4B decoder translates 5B code-groups into 4B nibbles to be presented to the MAC interfaces. The 5B/4B code mapping is shown in Table 29. 4.2.8.1 FIFO The 100BASE-X or 10BASE-T packet is placed into the FIFO in order to correct for any clock mismatch between the recovered clock and the reference clock REFCLK. 4.2.8.2 100BASE-FX Receiver In 100BASE-FX mode, a pseudo-ECL (PECL) receiver is used to decode the incoming NRZI signal passed to the NRZI-NRZ decoder. The NRZI signal from the receiver is converted to NRZ data, aligned, parallelized, and 5B/4B decoded as in the 100BASE-TX mode. 4.2.8.3 Far End Fault Indication (FEFI) When 100BASE-FX is selected and Bit 0 of CONFIG_A is low at hardware reset, the far end fault detect (FEFD) circuit is enabled. The FEFD enable state can be overridden by programming the FEFI bit (Table 71). Note The FEFI function is always disabled if 100BASE-TX is selected. 4.2.8.4 10BASE-T Receiver In 10BASE-T mode, the recovered 10BASE-T signal is decoded from Manchester to NRZ and then aligned. The alignment is necessary to ensure that the start of frame delimiter (SFD) is aligned to the nibble boundary. In 10BASE-T mode, a receiver is used to decode the differential voltage offset of the Manchester data. Carrier sense is decoded by measuring the magnitude of the voltage offset. In this mode, the recovered 10BASE-T signal is decoded from Manchester to NRZ data. The data stream is converted from serial to parallel format and aligned. The alignment is necessary to ensure that the start of frame delimiter (SFD) is aligned to a byte or nibble boundary. For cable lengths greater than 100 meters, the incoming signal has more attenuation. Hence, the receive voltage threshold should be lowered via the ExtendedDistance bit in the PHY Specific Control Register (Table 71). Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 73 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 29: 5B/4B Code Mapping PC S C o d e -G r ou p [4:0] 4 3 2 1 0 Name TXD/RXD < 3: 0 > 3 2 1 0 I n t e r p r e ta t i o n 11110 0 0000 Data 0 01001 1 0001 Data 1 10100 2 0010 Data 2 10101 3 0011 Data 3 01010 4 0100 Data 4 01110 6 0110 Data 6 01111 7 0111 Data 7 10010 8 1000 Data 8 10011 9 1001 Data 9 10110 A 1010 Data A 10111 B 1011 Data B 11010 C 1100 Data C 11011 D 1101 Data D 11100 E 1110 Data E 11101 F 1111 Data F 11111 I Undefined IDLE; used as inter-stream fill code 11000 J 0101 Start-of-Stream Delimiter, Part 1 of 2; always used in pairs with K 10001 K 0101 Start-of-Stream Delimiter, Part 2 of 2; always used in pairs with J 01101 T Undefined End-of-Stream Delimiter, Part 1 of 2; always used in pairs with R 00111 R Undefined End-of-Stream Delimiter, Part 2 of 2; always used in pairs with T 00100 H Undefined Transmit Error; used to force signaling errors 00000 V Undefined Invalid code 00001 V Undefined Invalid code 00010 V Undefined Invalid code 00011 V Undefined Invalid code 00101 V Undefined Invalid code 00110 V Undefined Invalid code 01000 V Undefined Invalid code 01100 V Undefined Invalid code 10000 V Undefined Invalid code 11001 V Undefined Invalid code Doc. No. MV-S100952-U0, Rev. -Page 74 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description Receive PCS and PMA 4.2.9 Setting Cable Characteristics Since cable characteristics differ between unshielded twisted pair and shielded twisted pair cable, optimal receiver performance can be obtained in 100BASE-TX and 10BASE-T modes by setting the TPSelect bit in the PHY Specific Control Register (Table 71) for cable type. 4.2.10 Scrambler/Descrambler The scrambler block is initially enabled upon hardware reset if 100BASE-TX is selected. If 100BASE-FX or 10BASE-T is selected, the scrambler is disabled by default. The scrambler is controlled by programming the DisScrambler bit in the PHY Specific Control Register (Table 71). The scrambler setting is also controlled by hardware configuration at the end of hardware reset. Table 30 shows the effect of various configuration settings on the scrambler. Table 30: Scrambler Settings P [ 1 : 0 ] _ C O N F IG ( If F X i s s e l e ct e d) D is S c r a m b le r B i t ( ) Scrambler/ D e s c r a m b le r High HW reset to 1 Disabled Low HW reset to 0 Enabled X User set to 1 Disabled X User set to 0 Enabled 4.2.11 Digital Clock Recovery/Generator The 88E6060 device uses an all-digital clock recovery and generator circuit to create all of the needed receive and transmit clocks. The digital time base generator (TBG) takes the 25 MHz or 50 MHz reference input clock (XTAL_IN) and produces the locked 25 MHz transmit clock for the MAC in 100BASE-TX mode. It produces a 2.5 MHz transmit clock for the MAC in 10BASE-T mode as well as producing the over-sample clock for 10BASE-T waveshaping. 4.2.12 Link Monitor The link monitor is responsible for determining whether link is established with a link partner. In 10BASE-T mode, link monitor function is performed by detecting the presence of the valid link pulses on the RXP/N pins. In 100BASE-TX mode, the link is established by scrambled idles. In 100BASE-FX mode, the external fiber-optic receiver performs the signal detection function and communicates this information with the 88E6060 device through SDET pin for Port 0 and Port 1. If Force Link Good is asserted (ForceLink bit is set high - PHY Specific Control Register, Table 71), the link is forced to be good, and the link monitor is bypassed. Pulse checking is disabled if Auto-Negotiation is disabled, and DisNLPCheck (PHY Specific Control Register, Table 71) is set high. If Auto-Negotiation is disabled and DisNLPGen (PHY Specific Control Register, Table 71) is set high, then the link pulse transmission is disabled. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 75 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 4.2.13 Auto-Negotiation Auto-Negotiation is initiated upon any of the following conditions: * Power up reset * Hardware reset * Software reset (SWReset bit--PHY Control Register, Table 61) * Restart Auto-Negotiation (RestartAneg bit--PHY Control Register, Table 61) * Transition from power down to power up (PwrDwn bit--PHY Control Register, Table 61) * Change from the linkfail state to the link-up state If Auto-Negotiation is enabled, the 88E6060 device negotiates with its link partner to determine the speed and duplex mode at which to operate. If the link partner is unable to Auto-Negotiate, the 88E6060 device goes into the parallel detect mode to determine the speed of the link partner. Under parallel detect mode, the duplex mode is fixed at half-duplex. After hardware reset, Auto-Negotiation can be enabled and disabled via the AnegEn bit (PHY Control Register Table 61). When Auto-Negotiation is disabled, the speed and duplex can be changed via the SpeedLSB and Duplex bits (PHY Control Register - Table 61), respectively. The abilities that are advertised can be changed via the Auto-Negotiation Advertisement Register (Table 65). 4.2.14 Register Update Changes to the AnegEn, SpeedLSB, and Duplex bits (Table 65) do not take effect unless one of the following takes place: * Software reset (SWReset bit - Table 61) * Restart Auto-Negotiation (RestartAneg bit - Table 61) * Transition from power down to power up (PwrDwn bit - Table 61) * Loss of the link The Auto-Negotiation Advertisement register (Table 65) is internally latched once every time Auto-Negotiation enters the ability detect state in the arbitration state machine. Hence, a write into the Auto-Negotiation Advertisement Register has no effect once the 88E6060 device begins to transmit Fast Link Pulses (FLPs). This guarantees that a sequence of FLPs transmitted is consistent with one another. The Next Page Transmit register (Table 69) is internally latched once every time Auto-Negotiation enters the next page exchange state in the arbitration state machine. 4.2.15 Next Page Support The 88E6060 device supports the use of next page during Auto-Negotiation. By default, the received base page and next page are stored in the Link Partner Ability register - Base Page (Table 66). The 88E6060 device has an option to write the received next page into the Link Partner Next Page register - Table 70 - (similar to the description provided in the IEEE 802.3ab standard) by programming the Reg8NxtPg bit (PHY Specific Control Register Table 71). 4.2.16 Status Registers Once the 88E6060 device completes Auto-Negotiation it updates the various status in the PHY Status (Table 72), Link Partner Ability (Next Page) (Table 67), and Auto-Negotiation Expansion (Table 68) registers. Speed, duplex, page received, and Auto-Negotiation completed status are also available in the PHY Specific Status (Table 72) and PHY Interrupt Status registers (Table 74). Doc. No. MV-S100952-U0, Rev. -Page 76 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description Power Management 4.3 Power Management The 88E6060 supports advanced power management modes that conserve power. 4.3.1 Low Power Modes Two low power modes are supported in the 88E6060. * * IEEE 802.3 Clause 22.2.4.1.5 compliant power down Energy Detect+TM IEEE 802.3 Clause 22.2.4.1.5 power-down compliance allows for the PHY to be placed in a low-power consumption state by register control. Energy Detect+TM allows the 88E6060 to wake up when energy is detected on the wire with the additional capability to wake up a link partner. The 10BASE-T link pulses are sent once every second while listening for energy on the line. 4.3.2 MAC Interface and PHY Configuration for Low Power Modes The 88E6060 has one CONFIG bit (in CONFIG_B - Table 3) dedicated to support the low power modes. Low power modes are also register programmable. The EDet bit (Table 71) enables the user to turn on Energy Detect+TM. When the low power mode is not selected, the PwrDwn bit (Table 61) can be used. If during the energy detect mode, the PHY wakes up and starts operating in normal mode, the EDet bit settings are retained. When the link is lost and energy is no longer detected, the 88E6060 returns to the mode stored in the EDet bit. Table 31 shows how these modes are entered . Table 31: Operating Mode Power Consumption Po wer Mode Est. Power How to Acti vate Mo de IEEE Power down See Section 9. PwrDwn bit write (Table 61) Energy Detect+ TM Same as IEEE Power down Configuration option & register EDet bit mode--see Section 9. write (Table 71) 4.3.3 IEEE Power Down Mode The standard IEEE power down mode is entered by setting the PwrDwn (Table 61 on page 107) bit equal to one. In this mode, the PHY does not respond to any MAC interface signals except the MDC/MDIO. It also does not respond to any activity on the CAT 5 cable. In this power down mode, the PHY cannot wake up on its own by detecting activity on the CAT 5 cable. It can only wake up by clearing the PwrDwn bit to 0. 4.3.3.1 Energy Detect +TM In this mode, the PHY sends out a single 10 Mbps NLP (Normal Link Pulse) every second. If the 88E6060 is in Energy Detect+TM mode, it can wake a connected device and it wakes upon the detection of a connected device. When ENA_EDET is 1, the mode of operation is Energy Detect+TM. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 77 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 4.4 Far End Fault Indication (FEFI) Far-end fault indication provides a mechanism for transferring information from the local station to the link partner that a remote fault has occurred in 100BASE-FX mode (Port 0 and Port 1 only). A remote fault is an error in the link that one station can detect while the other one cannot. An example of this is a disconnected fiber at a station's transmitter. This station is receiving valid data and detects that the link is good via the link monitor, but is not able to detect that its transmission is not propagating to the other station. A 100BASE-FX station that detects this remote fault modifies its transmitted idle stream pattern from all ones to a group of 84 ones followed by one zero. This is referred to as the FEFI idle pattern. The FEFI function is controlled by CONFIG_A connection and the DisFEFI bit (Table 71). Table 32 shows the various configuration settings affecting the FEFI function on hardware reset. Table 32: FEFI Select P n _ C O N F IG 1 E N _ F EF I (CONFIG_A) F EF I DisFEFI Bit (Table 71) Auto-Negotiation X Disabled HW set to 1 10BASE-T X Disabled HW set to 1 100BASE-TX X Disabled HW set to 1 100BASE-FX 0 Disabled HW set to 1 100BASE-FX 1 Enabled HW reset to 0 1. "n" in Pn_CONFIG may only take the values "0" or "1" 4.5 Virtual Cable TesterTM The 88E6060 PHY Virtual Cable TesterTM feature uses Time Domain Reflectometry (TDR) to determine the quality of the cables, connectors, and terminations. Some of the possible problems that can be diagnosed include opens, shorts, cable impedance mismatches, bad connectors, termination mismatches, and bad magnetics. The 88E6060 Switch Core conducts a cable diagnostic test by transmitting a signal of known amplitude (+1V) sequentially along each of the TX and RX pairs of an attached cable. The transmitted signal continues along the cable until it is reflected from a cable imperfection. The magnitude of this echo signal and its return time are shown in the VCT registers (Table 81 and Table 82) on the AmpRfln and DistRfln bits respectively. Using the information from these registers, the VCT registers (Table 81 and Table 82), the distance to the problem location and the type of problem can be determined. For example, the echo time can be converted to distance using Table 81 and Figure 26 . The polarity and magnitude of the reflection together with the distance indicates the type of discontinuity. For example, a +1V reflection indicates an open close to the PHY and a -1V reflection indicates a short close to the PHY. When the cable diagnostic feature is activated by setting the ENVCT bit to one (Table 81), a pre-determined amount of time elapses before a test pulse is transmitted. This is to ensure that the link partner loses link, so that it stops sending100BASE-TX idles or 10 Mbit data packets. This is necessary to be able to perform the TDR test. The TDR test can be performed either when there is no link partner or when the link partner is Auto-Negotiating or sending 10 Mbit idle link pulses. If the 88E6060 device receives a continuous signal for 125 ms, it declares a test Doc. No. MV-S100952-U0, Rev. -Page 78 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description Auto MDI/MDIX Crossover failure because it cannot start the TDR test. In the test failure case, the received data is not valid. The results of the test are also summarized in the VCTTst bits (Table 81 and Table 82). * * * * 11 = Test fail (The TDR test could not be run for reasons explained above) 00 = valid test, normal cable (no short or open in cable) 10 = valid test, open in cable (Impedance > 333 ohms) 01 = valid test, short in cable (Impedance < 33 ohms) The definition for shorts and opens is arbitrary and can be user-defined using the information in the VCT registers The impedance mismatch at the location of the discontinuity can also be calculated knowing the magnitude of the echo signal. Refer to the Application Note "Virtual Cable Tester -- How to Use TDR results" for details. 4.6 Auto MDI/MDIX Crossover The 88E6060 device automatically determines whether or not it needs to interchange cable sense between pairs so that an external crossover cable is not required. If the 88E6060 device interoperates with a device that cannot automatically correct for crossover, the 88E6060 PHY makes the necessary adjustment prior to commencing Auto-Negotiation. If the 88E6060 device interoperates with a device that implements MDI/MDIX crossover, a random algorithm as described in IEEE 802.3 section 40.4.4 determines which device performs the crossover. When the 88E6060 device interoperates with legacy 10BASE-T devices that do not implement Auto-Negotiation, it follows the same algorithm as described above since link pulses are present. However, when interoperating with legacy 100BASE-TX devices that do not implement Auto-Negotiation (i.e. link pulses are not present), the 88E6060 device uses signal detection to determine whether to implement crossover. The Auto MDI/MDIX crossover function can be disabled via the AutoMDI[X] bits (Table 71). The 88E6060 device is set to normal mode by default if auto MDI/MDIX crossover is disabled at hardware reset. The pin mapping in normal and crossed modes is specified in Table 33. Table 33: MDI/MDIX Pin Functions Phys ica l Pin Normal Crosse d 100B ASE-T X 10 BASE-T 1 00BA SE-T X 10 BASE-T TXP/TXN Transmit Transmit Receive Receive RXP/RXN Receive Receive Transmit Transmit Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 79 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 4.7 LED Interface The LED interface pins can either be controlled by a port's PHY or controlled directly, independently of the state of the PHY. Four display options are available and both interfaces (PHY or direct control) can be used together to provide even more LED combinations. The LEDs can be controlled through a parallel interface or via a serial interface that supports up to seven LEDs per port. Direct control of the parallel LEDs is achieved by writing to the PHY Manual LED Override register (Table 80). Any of the parallel LEDs can be turned on, off, or made to blink at variable rates independent of the state of the PHY. When the parallel LEDs are controlled by a port's PHY, their activity is determined by the PHY's state. Each LED can be programmed to indicate various PHY states, with variable blink rate. Some port PHY events configured to drive LED pins are too short to result in an observable change in LED state. For these events, pulse stretching is provided to translate a short PHY event into an observable LED response. The duration of a pulse stretch can be programmed via the PulseStretch bits (Table 79). The default pulse stretch duration is set to 170 to 340 ms. The pulse stretch duration applies to all applicable LED interface pins. Some of the status indicators signal multiple events by toggling LED interface pins resulting in a blinking LED. The blink period can be programmed via the BlinkRate bits (Table 79). The default blink period is set to 84 ms. The blink rate information is true for all applicable LEDs. 4.7.1 Parallel LED Interface These LED interface pins can be used to display port status information. The LED interface has three different status indicators for each port with four different default display options, using the Px_LED2, Px_LED1, and Px_LED0 pins.The LED Parallel Select Register (Table 77) specifies which single LED mode status to display on the LED interface pins. The default display for each mode is shown in Table 34 and the default mode that applies depends upon the hardware configuration established using the CONFIG_A pin--see Table 3. Table 34: Parallel LED Hardware Defaults LED Mod e --s et by CONFIG_A at r ese t P[4:0]_L ED2 P[4:0]_L ED1 P[4:0]_L ED0 0 LINK RX TX 1 LINK ACT SPEED 2 LINK/RX TX SPEED 3 LINK/ACT DUPLEX/COLX SPEED Doc. No. MV-S100952-U0, Rev. -Page 80 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description LED Interface Table 77 shows additional display modes that can be set up by software after startup. Table 35 defines all the possible Parallel LED Display modes. Table 35: Parallel LED Display Interpretation Statu s D escr ip tio n COLX Low = Collision activity High = No collision activity This status is pulse stretched to 170 ms. ERROR Low = Jabber, received error, false carrier, or FIFO over/underflow occurred High = None of the above occurred This status is pulse stretched to 170 ms. DUPLEX Low = Full-duplex High = Half-duplex DUPLEX/COLX Low = Full-duplex High = Half-duplex Blink = Collision activity (blink rate is 84ms active then 84 ms inactive) The collision activity is pulse stretched to 84 ms. SPEED Low = Speed is 100 Mbps High = Speed is 10 Mbps LINK Low = Link up High = Link down TX Low = Transmit activity High = No transmit activity This status is pulse stretched to 170 ms. RX Low = Receive activity High = No receive activity This status is pulse stretched to 170 ms. ACT Low = Transmit or received activity High = No transmit or receive activity This status is pulse stretched to 170 ms. LINK/RX Low = Link up High = Link down Blink = receive activity (blink rate is 84 ms active then 84ms inactive) The receive activity is pulse stretched to 84 ms. ACT (blink mode) High = No transmit or receive activity Blink = Transmit or receive activity (blink rate is 84ms active then 84 ms inactive) The transmit and receive activity is pulse stretched to 84 ms. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 81 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 4.7.2 Serial LED Interface The LEDSER, LEDENA, and LEDCLK pins are used for the serial interface. The CONFIG_A pin (see Table 3) is used to select one of four possible default LED modes which are numerically the same as those set up by the CONFIG_A pin in the parallel case. However, the default displays in this case are different. The serial LED interface can display a variety of different status indications in 100BASE-TX and 10BASE-T modes (see Table 37 and Table 38). Status to display, pulse stretching, and blink speed can be programmed via the LED Stream Select for Serial LEDs register (Table 78) 4.7.2.1 Single and Dual LED Modes Single LED mode is initiated at power up according to the CONFIG_A pin settings. Dual LED mode can be entered (or single mode can be reentered) by setting the appropriate register fields according to Table 78. These registers enable LED functions to be programmed individually in dual LED or single LED mode. The data states are sent out on the LEDSER data stream and may be extracted using the LEDCLK and LEDENA signals as shown in the example of Figure 20. 4.7.2.2 Single LED Modes In the single LED display mode, the same status is driven on both status 100 and status 10 positions in the bit stream. However, the LEDENA signal asserts only over the status that is set and de-asserts over the other position that is turned off in the bit stream. For example, DUPLEX shows the same status for DUPLEX100 and DUPLEX10. However, the LEDENA signal is high over Duplex100 position only for one clock period. Refer to Figure 20 for more details. 4.7.2.3 Dual LED Display Mode In the dual LED display mode, two LEDs are used: one for 10 Mbps, and one for 100 Mbps activity. A different status is driven on status 100 and status 10 positions in the bit stream. In this case, the LEDENA signal asserts over both 100 and 10 positions in this stream. For example, the LEDENA signal asserts over COLX100 and COLX10 in Figure 20. and remains high for two clock periods. If one of these status bits (shown in Table 38) is turned off, LEDENA is not asserted in both positions. Figure 20: Serial LEDENA High Clocking with COLX in Dual Mode, Error Off, and DUPLEX in Single Mode LEDENA 80 ns 80 ns 160 ns 160 ns COLX100 COLX10 ERROR DUPLEX OFF LEDENA not asserted Single Led Mode LEDENA asserted only 1 clock period LEDCLK LEDSER Dual Led Mode LEDENA High Doc. No. MV-S100952-U0, Rev. -Page 82 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description LED Interface The bit stream on LEDSER can be clocked into a shift register with LEDENA as the shift enable signal as shown in Figure 21. The rate of update of the serial LED interface is controlled by programming register 24.8:6. The default value is set to 42 ms. Figure 21: Serial LED Conversion LEDSER LEDENA LEDCLK IN ENA Shift Register After the LED data is shifted into the correct position, the shift sequence is suspended to allow the appropriate LEDs to light or extinguish depending on status. The LED implementation used in the 88E6060 device is self-synchronizing. The default display options are given in Table 36. Table 36: Serial LED Display Options (A = Active) LED Mode COL X ER ROR DU PL EX D UP LE X /CO LX SPEED L IN K TX RX ACT L IN K /R X L IN K /A CT 0 - A - A A - - - - - A 1 A A A - A - A - - A - 2 A A A - A A - - A - - 3 A A A - A A A A - - - The LED status bits are output in the order shown on the LEDSER pin synchronously with LEDCLK. All status signals for Port 5 are sent out first followed by those for Ports 4 through 0. Each bit in the stream occupies a period of 80 ns. Figure 22: Serial LED Display Order--(if all are selected) Table 37 and Table 38 show the status events that can be displayed by programming the 88E6060 device in single and dual LED display modes. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 83 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 4.7.2.4 Single LED Display Mode Table 37: Single LED Display Mode Status COLX D escr ip tio n Low = Collision activity High = No collision activity This status has a default pulse stretch duration of 170 ms. ERROR Low = Jabber, received error, false carrier, or FIFO over/underflow occurred High = None of the above occurred This status has a default pulse stretch duration of 170 ms. DUPLEX Low = Full-duplex High = Half-duplex DUPLEX/COLX SPEED LINK Low = Full-duplex High = Half-duplex Blink = Collision activity (blink rate is 84 ms active then 84 ms inactive) The collision activity is pulse stretched to 84 ms. Low = Speed is 100 Mbps High = Speed is 10 Mbps Low = Link up High = Link down TX Low = Transmit activity High = No transmit activity This status is pulse stretched to 170 ms. RX Low = Receive activity High = No receive activity This status is pulse stretched to 170 ms. ACT Low = Transmit or received activity High = No transmit or receive activity This status is pulse stretched to 170 ms. LINK/RX LINK/ACT Low = Link up High = Link down Blink = Receive activity (blink rate is 84 ms active then 84 ms inactive) The receive activity is pulse stretched to 84 ms. Low = Link up High = Link down Blink = Transmit or receive activity (blink rate is 84ms active then 84 ms inactive) The transmit and receive activity is pulse stretched to 170 ms. Doc. No. MV-S100952-U0, Rev. -Page 84 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Physical Interface (PHY) Functional Description LED Interface 4.7.2.5 Dual LED Display Mode Table 38: Dual LED Display Mode Eve nt Des cription COLX100 0 = 100 Mbps collision activity 1 = No 100 Mbps collision activity This status can be pulse stretched. COLX10 0 = 10 Mbps collision activity 1 = No 10 Mbps collision activity This status can be pulse stretched. ERROR100 0 = Received error, false carrier, or 100 Mbps FIFO over/underflow occurred. 1 = None of the above occurred This status can be pulse stretched. ERROR10 0 = Jabber or 10 Mbps FIFO over/underflow occurred 1 = None of the above occurred This status can be pulse stretched. DUPLEX100 0 = 100 Mbps full-duplex 1 = 100 Mbps half-duplex DUPLEX10 0 = 10 Mbps full-duplex 1 = 10 Mbps half-duplex DUPLEX/COLX100 0 = 100 Mbps full-duplex 1 = Half-duplex Blink = 100 Mbps collision activity The collision activity can be pulse stretched. The blink rate can be programmed. DUPLEX/COLX10 0 = 10 Mbps full-duplex 1 = 10 Mbps half-duplex Blink = 10 Mbps collision activity The collision activity can be pulse stretched. The blink rate can be programmed. SPEED100 0 = Speed is 100 Mbps 1 = Speed is 10 Mbps SPEED10 0 = Speed is 10 Mbps 1 = Speed is 100 Mbps LINK100 0 = 100 Mbps link up 1 = 100 Mbps link down LINK10 0 = 10 Mbps link up 1 = 10 Mbps link down TX100 0 = 100 Mbps transmit activity 1 = No 100 Mbps transmit activity This status can be pulse stretched. TX10 0 = 10 Mbps transmit activity 1 = No 10 Mbps transmit activity This status can be pulse stretched. RX100 0 = 100 Mbps receive activity 1 = No 100 Mbps receive activity This status can be pulse stretched. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 85 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 38: Dual LED Display Mode (Continued) Even t Desc ription RX10 0 = 10 Mbps receive activity 1 = No 10 Mbps receive activity This status can be pulse stretched. ACT100 0 = 100 Mbps transmit or 100 Mbps receive activity 1 = No 100 Mbps transmit or 100 Mbps receive activity This status can be pulse stretched. ACT10 0 = 10 Mbps transmit or 10 Mbps receive activity 1 = No 10 Mbps transmit or 10 Mbps receive activity This status can be pulse stretched. LINK/RX100 0 = 100 Mbps link up 1 = 100 Mbps link down Blink = 100 Mbps receive activity The receive activity can be pulse stretched. The blink rate can be programmed. LINK/RX10 0 = 10 Mbps link up 1 = 10 Mbps link down Blink = 10 Mbps receive activity The receive activity is can be pulse stretched The blink rate can be programmed. LINK/ACT100 0 = 100 Mbps link up 1 = 100 Mbps link down Blink = 100 Mbps transmit or 100 Mbps receive activity The transmit and receive activity can be pulse stretched. The blink rate can be programmed. LINK/ACT10 0 = 10 Mbps link up 1 = 10 Mbps link down Blink = 10 Mbps transmit or 10 Mbps receive activity The transmit and receive activity can be pulse stretched. The blink rate can be programmed. Doc. No. MV-S100952-U0, Rev. -Page 86 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Serial Management Interface (SMI) MDC/MDIO Read and Write Operations Section 5. Serial Management Interface (SMI) The 88E6060 serial management interface provides access to the internal registers via the MDC and MDIO signals and is compliant with IEEE 802.3u clause 22. MDC is the management data clock input whose frequency can run from DC to a maximum rate of 8.3 MHz. MDIO is the management data input/output which carries a bidirectional signal that runs synchronously with the MDC. The MDIO pin requires a pull-up resistor to pull the MDIO high during idle and turnaround times. 5.1 MDC/MDIO Read and Write Operations All of the relevant serial management registers, as well as several optional registers, are implemented in the 88E6060 Switch Core. A description of these registers can be found in Section 6. "Switch Register Description" . Note Access to the 88E6060 device's Switch and PHY registers is not possible when the Serial EEPROM is still loading the registers. A CPU can monitor the 88E6060 device INTn pin, which will go active (low) when the Serial EEPROM has been fully processed (i.e., a Halt instruction has been reached - see section 8). Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 87 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Figure 23: Typical MDC/MDIO Read Operation MDC MDIO z z (STA) MDIO z z (PHY) z Preamble 0 1 1 0 0 Opcode (Read) Start 1 1 0 0 0 PHY Address 0 0 0 0 0 z Register Address 0 0 0 1 0 0 1 TA 1 0 0 0 0 0 0 0 0 Register Data z Idle Figure 24: Typical MDC/MDIO Write Operation MDC MDIO z z (STA) z Preamble 0 1 0 1 Opcode (Write) Start 0 1 1 0 PHY Address 0 0 0 0 0 Register Address 0 1 0 0 0 0 0 0 0 0 TA 0 0 1 1 0 0 Register Data 0 0 0 z Idle Table 39 shows an example of a read operation of PHY address 04, register 0, with data of 04C0. Table 39: Serial Management Interface Protocol Example 32- B i t Preamble Star t o f F r am e O p co d e Re ad = 10 Wr it e = 01 5 -B i t Phy D ev i ce A dd r e ss 5 -B i t Phy R eg i s te r A d dr e ss 2 -B i t Tu r n ar o u n d R ea d = z 0 Wr it e = 10 16 -B it D ata F i el d Idle 11111111 01 10 00100 00000 z0 0000010011000000 11111111 Doc. No. MV-S100952-U0, Rev. -Page 88 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Section 6. Switch Register Description All of the 88E6060 registers are accessible using the IEEE Serial Management Interface (SMI) used for PHY devices (see MDC/MDIO pin description in Section 1 and Section 5 of this datasheet). The 88E6060 device uses 16 of the 32 possible Device Addresses. The16 Device Addresses are configurable at reset by use of the EE_CLK/ADDR4 pin (see Signal Description in part 1 of this datasheet). Figure 25 shows the register map assuming the lower 16 SMI Device Addresses are being used. Figure 25: 88E6060 Register Map SMI Device Address 1 2 3 0 PHY Control 1 PHY Status 2 PHY Identifier 4 5 6 7 8 9 A B C D E F Port Status Global Status Switch-MAC 0 Reserved PHY Identifier Switch Identifier 4 Auto-Neg Advertisement Port Control 5 Link Partner Ability Reserved 6 Auto-Neg Expansion Port Based VLAN Map 7 Next Page Transmit 8 Link Partner Next Page Global Control Reserved 3 Reserved A ATU Control B ATU Operation Reserved ATU Data D Reserved F Reserved 10 PHY Specific Control 1 Rx Frame Counter 11 PHY Specific Status Tx Frame Counter 12 PHY Interrupt Enable 13 PHY Interrupt Status 14 Interrupt Port Summary 15 Receive Error Counter 16 LED Parallel Select 17 LED Stream Select 18 LED Control 19 LED Override 1A VCT Control Reserved E Reserved 1B VCT Status 1C PHY Specific Control 2 ATU-MAC C Port Association Vector Reserved SMI Register Address 9 Free Plus 1D 1E Reserved 1F Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 89 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 6.1 Register Types The registers in the 88E6060 device are made up of one or more fields. The way in which each of these fields operate is defined by the field's Type. The function of each Type is described in Table 40. Table 40: Register Types Typ e Desc ription LH Register field with latching high function. If status is high, then the register is set to a one and remains set until a read operation is performed through the management interface or a reset occurs. LL Register field with latching low function. If status is low, then the register is cleared to a zero and remains cleared until a read operation is performed through the management interface or until a reset occurs. RES Reserved for future use. All reserved bits are read as zero unless otherwise noted. RO Read only. R/W Read and write with no definable initial value RWR Read/Write reset. All bits are readable and writable. After reset the register field is cleared to zero. RWS Read/Write set. All bits are readable and writable. After reset the register field is set to a non-zero value specified in the text. SC Self-Clear. Writing a one to this register causes the required function to be immediately executed, then the register field is cleared to zero when the function is complete. Update Value written to the register field does not take effect until a soft reset is executed. Retain Value written to the register field D0 WO Write only. Reads to this type of register field return undefined data. 6.2 Switch Core Registers Switch Core Registers are of two types: * Switch Port Registers--are separately configured for each port comprised in the switch. Each port has a unique associated SMI device address and this address is used to access that port's switch register set. * Switch Global Registers--are configured using a single SMI device address. A global register's setting affects all ports of the switch. The 88E6060 contains six ports (MACS). The supported ports are accessible using SMI device addresses 0x08 to 0x0D, or 0x18 to 0x1D depending upon the value of the EE_CLK/ADDR4 pin at reset (Section 1). The MACs are fully IEEE802.3 compliant. Since there is no IEEE standard covering required MAC registers, these registers are 88E6060 device specific. The switch contains many global registers that are used to control features and functions that are common to all ports in the switch. The global registers are accessible using SMI device address 0x0F (or 0x1F) depending upon the value of the EE_CLK/ADDR4 pin at reset. Doc. No. MV-S100952-U0, Rev. -Page 90 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers 6.2.1 Switch Core Register Map Table 41: Switch Core Register Map Des cri pt i on O ff s et Hex Offset Dec ima l Page Numbe r Switch Po rt R egiste rs (SMI Device Ad dr ess ) Port Status Register 0x00 0 page 92 Reserved Registers 0x01 - 0x02 1-2 page 93 Switch Identifier Register 0x03 3 page 93 Port Control Register 0x04 4 page 94 Reserved Registers 0x05 5 page 95 Port Based VLAN Map 0x06 6 page 96 0x07 - 0x0A 7 - 10 page 96 0x0B 11 page 97 0x0C - 0x0F 12 - 15 page 97 Rx Counter 0x10 16 page 98 Tx Counter 0x11 17 page 98 0x12 - 0x1F 18 - 31 page 98 Switch Global Status Register 0x00 0 page 99 Switch MAC Address Register Bytes 0 & 1 0x01 1 page 100 Switch MAC Address Register Bytes 2 & 3 0x02 2 page 100 Switch MAC Address Register Bytes 4 & 5 0x03 3 page 100 Switch Global Control Register 0x04 4 page 101 0x05 - 0x09 5-9 page 101 ATU Control Register 0x0A 10 page 102 ATU Operation Register 0x0B 11 page 103 ATU Data Register 0x0C 12 page 104 ATU MAC Address Register Bytes 0 & 1 0x0D 13 page 104 ATU Switch MAC Address Register Bytes 2 & 3 0x0E 14 page 104 ATU Switch MAC Address Register Bytes 4 & 5 0x0F 15 page 105 0x10 - 0x1F 16 - 31 page 105 Reserved Registers Port Association Vector Reserved Registers Reserved Registers Switch Glo ba l Reg i sters Reserved Registers Reserved Registers Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 91 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 6.2.2 Switch Port Registers Table 42: Port Status Register Offset: 0x00 (Hex), or 0 (Decimal) B i ts F i el d Ty p e D es c r ip t i o n 15 LinkPause RO Link Partner's Pause bit, returned from the link partner through Auto-Negotiation. This bit is valid for Ports with PHYs and when the Resolved bit is set to a one. 0 = MAC Pause not implemented in the link partner 1 = MAC Pause is implemented in the link partner 14 MyPause RO My Pause bit, sent to the link partner during Auto-Negotiation. This bit is valid for Ports with PHYs. It is set high if FD_FLOW_DIS (Section 1) is low during reset. 0 = MAC Pause not implemented in the local MAC 1 = MAC Pause is implemented in the local MAC 13 Resolved RO Link Mode is resolved. 0 = Link is undergoing Auto-Negotiation or the port is disabled 1 = Link has determined its Speed, Duplex and LinkPause settings 12 Link RO Link Status in real time (i.e., it is not latched). 0 = Link is down 1 = Link is up 11 PortMode RO Port mode. The value of this bit is always a one for Ports 0 thru 4 and it comes from Px_MODE3 during configuration for Port 5 and Port 4. 0 = SNI mode is enabled 1 = MII 10/100 or RMII 100 Mbps mode is enabled 10 PHYMode RO PHY mode. This bit is valid for all ports but it is meaningful for Port 5 and Port 4 only and only when the PortMode (bit 11 above) indicates an MII mode of operation (i.e., PortMode is a one). This bit may be either value for SNI configured ports - but all SNI port configurations are PHY mode. The value of this bit is always zero for Ports 0 to 3 (and Port 4 if Port 4's MII is disabled) and it comes from Px_MODE2 during configuration for Port 5 and Port 4 (if Port 4's MII is enabled). 0 = Pins are in MII MAC Mode (i.e., INCLK and OUTCLK are inputs) or the pins are in RMII PHY Mode (all RMII Modes are PHY mode where INCLK and OUTCLK are outputs). 1 = Pins are in MII PHY Mode (i.e., INCLK and OUTCLK are output) 9 Duplex RO Duplex mode. This bit is valid when the Resolved bit is set to a one. 0 = Half-duplex 1 = Full-duplex This bit can be written to on Port 5 and Port 4 only so that the Port's duplex can be modified after Reset occurs. Care must be taken to ensure this Port's duplex matches the duplex of its link partner. R/W on Port 4 & 5 Only Doc. No. MV-S100952-U0, Rev. -Page 92 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers Table 42: Port Status Register (Continued) Offset: 0x00 (Hex), or 0 (Decimal) B i ts F i e ld Ty p e D e s c r ip t i o n 8 Speed RO Speed mode. This bit is valid when the Resolved bit is set to a one and the PortMode (bit 11 above) is also a one. If the PortMode bit is a zero then the port's speed is 10 Mbps regardless of the value of this bit. When the port is configured in MII MAC mode, the Speed bit is undefined. 0 = 10 Mbps 1 = 100 Mbps 7:0 Reserved RES Reserved for future use. The PortMode, PHYMode, Duplex, and Speed bits for Port 5 and Port 4 come from the Px_MODE[3:0] pins at reset (if Port 4 is in MII mode). When the PortMode is a one, the PHYMode, Duplex, and Speed bits map the same as the other 10/100 ports that contain PHYs. When the PortMode is a zero the mapping is easier to see by looking at "RMII/MII/SNI Configuration" Table 19:. Note Registers 0x01 and 0x02 (Hex), or 1 and 2 (Decimal) are reserved. Table 43: Switch Identifier Register Offset: 0x03 (Hex), or 3 (Decimal) B i ts F i e ld Ty p e D e s c r ip t i o n 15:4 DeviceID RO Device Identifier. The 88E6060 is identified by the value 0x060. 3:0 RevID RO Revision Identifier. The initial version of the 88E6060 has a RevID of 0x0. This RevID field may change at any time. Contact a Marvell FAE for current information on the device revision identifier. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 93 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 44: Port Control Register Offset: 0x04 (Hex), or 4 (Decimal) B i ts F i el d Ty p e D e s c r ip t i o n 15 ForceFlow Control RWR Force Flow Control. This bit is used to enable full-duplex flow control or halfduplex back pressure on this port depending upon the port's current duplex. This bit can only be changed when the port is in the Disabled Port state (bits 1:0 below). 0 = Use configuration pin settings for flow control/back pressure 1 = Force flow control/back pressure to be enabled on this port 14 Trailer RWR Egress Trailer Mode (Port 4 and 5 only). 0 = Normal mode - frames are transmitted unmodified 1 = Add a Trailer to all frames transmitted out of the port. Egress Trailer mode is intended for management CPU ports for source port information on BPDU frame. 13:12 Reserved RES Reserved for future use. 11 Header RWR The detailed information regarding this feature requires an NDA with Marvell(R) Semiconductor. Please contact your local Marvell Sales Representative for more information. 10:9 Reserved RES Reserved for future use. 8 Ingress Mode RWR Ingress Mode (Port 4 and 5 only). 0 = Normal mode - frames are received unmodified 1 = CPU Port with Ingress Trailer mode - frames must be received with a Trailer and the Trailer is checked, potentially used and then removed from the frame. Trailer mode is intended for Ingress data control from a management CPU port so that BPDU frames can be directed. 7 VLAN Tunnel RWR VLAN Tunnel. When this bit is cleared to a zero, the VLANs defined in the VLANTable (Table 45, on page 96) are enforced for ALL frames. When this bit is set to a one, the VLANTable masking is bypassed for any frame entering this port with a DA that is currently `locked' in the ATU. This includes unicast as well as multicast frames. 6:2 Reserved RES Reserved for future use. Doc. No. MV-S100952-U0, Rev. -Page 94 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers Table 44: Port Control Register (Continued) Offset: 0x04 (Hex), or 4 (Decimal) B i ts F i e ld Ty p e D e s c r i p t io n 1:0 PortState RWR Port State. These bits are used to manage a port to determine what kind of frames, if any, are allowed to enter or leave a port for simple bridge loop detection or 802.1D Spanning Tree. The state of these bits can be changed at any time without disrupting frames currently in transit. The Port States are: Or RWS to 0b11 00 = Disabled. The switch port is completely disabled and it will not receive or transmit any frames. The QC will return any pre-allocated ingress queue buffers when the port is in this mode. 01 = Blocking/Listening. The switch will examine all frames without learning any SA addresses, and discard all but MGMT frames. MGMT (management) frames are the only kind of frame that can be tunneled through Blocked ports. A MGMT frame is any frame whose multicast DA address appears in the ATU Database with the MGMT Entry State. It will allow MGMT frames only to exit the port. This mode is used for BPDU handling for bridge loop detection and Spanning Tree support. 10 = Learning. The switch will examine all frames, learning all SA addresses, and still discard all but MGMT frames. It will allow MGMT frames only to exit the port. 11 = Forwarding. The switch will examine all frames, learning all SA addresses, and receive and transmit all frames like a normal switch. The PortState bits for all ports come up in the Forwarding state unless the SW_MODE[1:0] pins are set to 0b00, the CPU attached mode. Software Reset, (SWReset - Table 54 on page 102) causes the PortState bits to revert back to their reset state (i.e., either Disabled or Forwarding). Note Register 0x05 (Hex), or 5 (Decimal) is reserved. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 95 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch , Table 45: Port Based VLAN Map Offset: 0x06 (Hex), or 6 (Decimal) B i ts F i el d Ty p e / Reset Val u e D es c r ip t i o n 15:12 DBNum RWR Port's Default DataBase VLAN Number. This field can be used with VLANs to keep each VLAN's MAC address mapping database separate from the other VLANs. This allows the same MAC address to appear multiple times in the address database (at most one time per VLAN) with a different port mapping per entry. This field should be zero if not being used. It needs to be a unique number for each independent VLAN if used. 11:6 Reserved RES Reserved for future use. 5:0 VLANTable RWS to all ones except for this port's bit Port based VLAN Table. The bits in this table are used to restrict which output ports this input port can send frames to. These bits restrict where a port can send frames to (unless a VLANTunnel frame is being received - see Port Control register, Table 44). To send frames to Port 0, bit 0 of this register must be a one. To send frames to Port 1, bit 1 of this register must be a one, etc. After reset, all ports are accessible since all the other port number bits are set to a one. This Port's bit will always be zero at reset. This prevents frames exiting the port on which they arrived. This port's bit can be set to a one in the 88E6060 Switch Core enabling frames to be returned on their ingress port; consequently care should be taken in writing code to control these bits. This register is reset to 0x3E for Port 0 (SMI Device Address 0x8), and it resets to 0x3D for Port 1 (Addr 0x9) and to 0x3B for Port 2 (Addr 0xA), etc. Note Registers 0x07 - 0x0A (Hex), or 7 - 10 (Decimal) are reserved. Doc. No. MV-S100952-U0, Rev. -Page 96 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers Table 46: Port Association Vector Offset: 0x0B (Hex), or 11 (Decimal) B i ts F i e ld Ty p e D e s c r i p t io n 15 Ingress Monitor RWR Ingress Monitor enable. When this bit is set to a one ingress port monitoring is enabled on the same ports upon which egress port monitoring is enabled, as defined by the PAV bits below. This is the recommended operation mode for port monitoring. 14:6 Reserved RES Reserved for future use. 5:0 PAV RWS to all zeros except for this port's bit Port Association Vector for ATU learning. The value of these bits is used as the port's DPV on automatic ATU Learning or Entry_State refresh whenever these bits contain a non-zero value. When these bits are all zero automatic Learning and Entry_State refresh is disabled on this port. For normal switch operation this port's bit should be the only bit set in the vector. These bits must only be changed when frames are not entering the port (see PortState bits in Port Control - Table 44, on page 94). The PAV bits can be used to set up an egress port monitor. To configure Port 0 to receive a copy of the frames that exit Port 1, set bit 0 in Port 1's PAV register (along with Port 1's bit). To configure Port 0 to get a copy of the frames that exit Port 2, set bit 0 in Port 2's PAV register, etc. The PAV bits can be used to set up an ingress port monitor along with an egress port monitor. To configure Port 0 to receive a copy of the frames that enter Port 1 as well as exit Port 1, set bit 0 in Port 1's PAV register (along with Port 1's bit--bit 1) and set the IngressMonitor bit above. The PAV bits can be used to set up port trunking (along with the VLANTable bits (Table 45 on page 96). For the two ports that form a trunk, set both of the port's bits in both port's PAV registers. Then use the VLANTable to isolate the two ports from each other and to steer the traffic from the other ports down the required trunk line of the pair. Note Registers 0x0C - 0x0F (Hex), or 12 - 15 (Decimal) are reserved. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 97 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 47: Rx Counter Offset: 0x10 (Hex), or 16 (Decimal) B i ts F i el d Ty p e / Reset Val u e D e s c r ip t i o n 15:0 RxCtr RO Received Counter. When CtrMode is cleared to a zero (Global Control - Table 53, on page 101) this counter increments each time a good frame enters this port. It does not matter if the frame is switched or discarded by the switch. When CtrMode is set to a one this counter increments each time an error frame enters this port. An error frame is one that is 64 bytes or greater with a bad CRC (including alignment errors but not dribbles). Fragments and properly formed frames are not counted. The counter wraps back to zero. The only time this counter does not increment is when this port is Disabled (see PortState, Table 44, on page 94). This register can be cleared by changing the state of the CtrMode bit in the Switch Global Control register (Table 53 on page 101). Table 48: Tx Counter Offset: 0x11 (Hex), or 17 (Decimal) B i ts F i el d Ty p e / Reset Val u e D e s c r ip t i o n 15:0 TxCtr RO Transmit Counter. When CtrMode is cleared to a zero (see Global Control - Table 53 on page 101) this counter increments each time a frame successfully exits this port. When CtrMode is set to a one this counter increments each time a collision occurs during an attempted transmission. It no longer counts all transmitted frames - but only those transmission attempts that resulted in a collision. The counter wraps back to zero. The only time this counter does not increment is when this port is Disabled (see PortState field of Port Control Register (Table 44, on page 94). This register can be cleared by changing the state of the CtrMode bit in Global Control (Table 53 on page 101). Note Registers 0x12 - 0x1F (Hex), or 18 - 31 (Decimal) are reserved. Doc. No. MV-S100952-U0, Rev. -Page 98 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers 6.2.3 Switch Global Registers Table 49: Switch Global Status Register Offset: 0x00 (Hex), or 0 (Decimal) B i ts F i e ld Ty p e D e s c r i p t io n 15:14 Reserved RES Reserved for future use. 13:12 SW_Mode RO Switch Mode. These bits return the value of the SW_MODE[1:0] pins. 11 InitReady RO Switch Ready. This bit is set to a one when all the blocks inside the device have finished their initialization and are ready to accept frames. 10:4 Reserved RES Reserved for future use. 3 ATUFull LH ATU Full Interrupt. This bit is set to a one if the ATU cannot load or learn a new mapping owing to all of the available locations for an address being locked. It is automatically cleared when read. This bit's being high causes the 88E6060 INTn pin to go low if the ATUFullIntEn bit in GlobalControl (Table 53, on page 101) is set to a one. 2 ATUDone LH ATU Done Interrupt. This bit is set to a one whenever the ATUBusy bit (Table 55, on page 103) changes from a one to a zero. It is automatically cleared when read. This bit's being high causes the 88E6060 INTn pin to go low if the ATUDoneIntEn bit in Global Control (Table 53, on page 101) is set to a one. 1 PHYInt RO PHY Interrupt. This bit is set to a one when the PHYs interrupt logic has at least one active interrupt. This bit's being high causes the 88E6060 INTn pin to go low if the PHYIntEn bit in Global Control (Table 53, on page 101) is set to a one. 0 EEInt LH EEPROM Done Interrupt. This bit is set to a one after the EEPROM finishes loading registers, and it is automatically cleared when read. This bit's being high causes the 88E6060 INTn pin to go low when the EEIntEn bit in Global Control (Table 53 on page 101) is set to a one. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 99 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 50: Switch MAC Address Register Bytes 0 & 1 Offset: 0x01 (Hex), or 1 (Decimal) B i ts F i el d Ty p e D e s c r ip t i o n 15:9 MACByte0 RWR MAC Address Byte 0 (bits 47:41) is used as the switch's source address (SA) in transmitted full-duplex Pause frames. Since bit 0 of byte 0 (bit 40) is the multicast bit (it is the 1st bit down the wire) it is always transmitted as a zero, and its value cannot be changed. 8 DiffAddr RWR Different MAC addresses per Port. This bit is used to have all ports transmit the same or different source addresses in full-duplex Pause frames. 0 = All ports transmit the same SA 1 = Each port uses a different SA where bits 47:3 of the MAC address are the same, but bits 2:0 are the port number (Port 0 = 0, Port 1 = 1, and so on.) 7:0 MACByte1 RWR MAC Address Byte 1 (bits 39:32) is used as the switch's source address (SA) in transmitted full-duplex Pause frames. Table 51: Switch MAC Address Register Bytes 2 & 3 Offset: 0x02 (Hex), or 2 (Decimal) B i ts F i el d Ty p e D e s c r ip t i o n 15:8 MACByte2 RWR MAC Address Byte 2 (bits 31:24) is used as the switch's source address (SA) in transmitted full-duplex Pause frames. 7:0 MACByte3 RWR MAC Address Byte 3 (bits 23:16) is used as the switch's source address (SA) in transmitted full-duplex Pause frames. Table 52: Switch MAC Address Register Bytes 4 & 5 Offset: 0x03 (Hex), or 3 (Decimal) B i ts F i el d Ty p e D e s c r ip t i o n 15:8 MACByte4 RWR MAC Address Byte 4 (bits 15:8) is used as the switch's source address (SA) in transmitted full-duplex Pause frames. 7:0 MACByte5 RWR MAC Address Byte 5 (bits 7:0) is used as the switch's source address (SA) in transmitted full-duplex Pause frames. Note: Bits 2:0 of this register are ignored when DiffAddr is set to a one. Doc. No. MV-S100952-U0, Rev. -Page 100 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers Table 53: Switch Global Control Register Offset: 0x04 (Hex), or 4 (Decimal) B i ts F i e ld Ty p e D e s c r ip t io n 15:14 Reserved RES Reserved for future use. 13 Discard Excessive RWR Discard frames with Excessive Collisions. When this bit is set to a one frames that encounter 16 consecutive collisions are discarded. When this bit is cleared to a zero Egress frames are never discarded and the backoff range is reset after 16 consecutive collisions on a single frame. 12:11 Reserved RES Reserved for future use. 10 MaxFrame Size RWR Maximum Frame Size allowed. The Ingress block discards all frames that are less than 64 bytes in size. It also discards all frames that are greater than a certain size as follows: 0 = Max size is 1522 if IEEE 802.3ac tagged, or 1518 if not tagged 1 = Max size is 1536 9 ReLoad SC Reload the registers using the EEPROM. When this bit is set to a one the contents of the external EEPROM are used to load the registers just as if a reset had occurred. When the reload operation is done, this bit is cleared to a zero automatically, and the EEInt interrupt is set. 8 CtrMode RWR Counter Mode. When this bit is set to a one, the Rx counters for all ports (Table 47, on page 98) count Rx errors and the Tx counters for all ports (Table 48, on page 98) count Tx collisions. When this bit is cleared to a zero, the Rx counters for all ports count Rx frames and the Tx counters for all ports count Tx frames. The Rx counters and the Tx counters for all ports are cleared to a zero whenever this bit changes state (i.e., it transitions from a one to a zero or from a zero to a one). 7:4 Reserved RES Reserved for future use. 3 ATUFull IntEn RWR ATU Full Interrupt Enable. This bit must be set to a one to allow the ATU Full interrupt to drive the 88E6060 INTn pin low. 2 ATUDone IntEn RWR ATU Done Interrupt Enable. This bit must be set to a one to allow the ATU Done interrupt to drive the 88E6060 INTn pin low. 1 PHYIntEn RWR PHY Interrupt Enable. This bit must be set to a one to allow active interrupts enabled in PHY registers 0x12 to drive the 88E6060 INTn pin low. 0 EEIntEn RWS EEPROM Done Interrupt Enable. This bit must be set to a one to allow the EEPROM Done interrupt to drive the 88E6060 INTn pin low. Note Registers 0x05 - 0x09 (Hex), or 5 - 9 (Decimal) are reserved. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 101 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 54: ATU Control Register Offset: 0x0A (Hex), or 10 (Decimal) B i ts F i el d Ty p e D e s c r ip t i o n 15 SWReset SC Switch Software Reset. Writing a one to this bit causes the QC and the MAC state machines in the switch to be reset. Register values are not modified, except for the PortState bits (Table 44 on page 94) and the EEPROM is not re-read. The PHYs and ATU are not affected by this bit. When the reset operation finishes, this bit is cleared to a zero automatically. The reset occurs immediately. To prevent transmission of CRC frames, set all of the ports to the Disabled state (Table 44 on page 94) and wait for 2 ms (i.e., the time for a maximum frame to be transmitted at 10 Mbps) before setting the SWReset bit to a one. 14 LearnDis RWR ATU Learn Disable. 0 = Normal operation, learning is determined by the PortState (Table 44, on page 94) 1 = Automatic learning is disabled on all ports - CPU ATU loads still work 13:12 ATUSize RWS to 0x2 Address Translation Unit Table Size. The initial size of the ATU database is 1024 entries. The size of the ATU database can be modified at any time, but an ATU reset and a Switch Software Reset (bit 15 above) occurs automatically if the new ATUSize is different from the old ATUSize. 00 = 256 Entry Address Database 01 = 512 Entry Address Database 10 = 1024 Entry Address Database = default 11 = Reserved 11:4 AgeTime RWS to 0x13 ATU Age Time. These bits determine the time that each ATU Entry remains valid in the database, since its last access as a Source Address, before being purged. The value in this register times 16 is the age time in seconds. For example: The default value of 0x13 is 19 decimal. 19 x 16 = 304 seconds or just over 5 minutes. The minimum age time is 0x1 or 16 seconds. The maximum age time is 0xFF or 4080 seconds or 68 minutes. When the AgeTime is set to 0x0 the Aging function is disabled, and all learned addresses will remain in the database forever. 3:0 Reserved RES Reserved for future use. Doc. No. MV-S100952-U0, Rev. -Page 102 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers Table 55: ATU Operation Register Offset: 0x0B (Hex), or 11 (Decimal) B i ts F i e ld Ty p e / Reset Va lu e D e s c r i p t io n 15 ATUBusy SC Address Translation Unit Busy. This bit must be set to a one to start an ATU operation (see ATUOp below). Since only one ATU operation can be executing at one time, this bit must be zero before setting it to a one. When the requested ATU operation completes, this bit is automatically cleared to a zero. The transition of this bit from a one to a zero can be used to generate an interrupt (Table 49, on page 99). 14:12 ATUOp RWR Address Translation Unit Table Opcode. The 88E6060 device supports the following ATU operations. All of these operations can be executed while frames are transiting through the switch: 000 = No Operation 001 = Flush All Entries1 010 = Flush all Unlocked Entries2 011 = Load or Purge an Entry3 in a particular DBNum Database 100 = Get Next from a particular DBNum Database4 101 = Flush All Entries in a particular DBNum Database 110 = Flush All Unlocked Entries in a particular DBNum Database 111 = Reserved 11:4 Reserved RES Reserved for future use. 3:0 DBNum RWR ATU MAC Address Database Number. If multiple address databases are not being used, these bits must remain zero. If multiple address databases are being used these bits are used to set the required address database number that is to be used on the Database supported commands (ATUOps 0x3, 0x4, 0x5, and 0x6 above). 1. All frames flood until new addresses are learned. 2. An Unlocked entry is any unicast address with an EntryState less than 0xF. 3. An Entry is Loaded if the EntryState (Table 56, on page 104) is non-zero. An Entry is Purged if it exists and if the EntryState is zero. 4. A Get Next operation finds the next higher MAC address currently in a particular ATU database (defined by the DBNum field). The ATUByte[5:0] values (Table 57, on page 104) are used as the address to start from. To find the lowest MAC address set ATUByte[5:0] to ones. When the operation is done ATUByte[5:0] contains the next higher MAC address found. To find the next address simply issue the Get Next opcode again. If ATUByte[5:0] is returned set to all ones, no higher MAC address was found (if EntryState = 0) or the Broadcast Address was found (if EntryState 0) In either case, the end of the table was reached. To Search for a particular address, perform a Get Next operation using a MAC address with a value one less than the one being searched for. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 103 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 56: ATU Data Register Offset: 0x0C (Hex), or 12 (Decimal) B i ts F i el d Ty p e D e s cr ip t i o n 15:10 Reserved RES Reserved for future use. 9:4 PortVec RWR Port Vector. These bits are used as the input Port Vector for ATU load operation. It is the resulting Port Vector from the ATU Get Next operation. 3:0 EntryState RWR ATU Entry State. These bits are used as the input Entry State for ATU Load or purge operations. It is the resulting Entry State from the ATU Get Next operation. (See Table 22 for a description of this function.) Table 57: ATU Switch MAC Address Register Bytes 0 & 1 Offset: 0x0D (Hex), or 13 (Decimal) B i ts F ie l d Ty p e D e s c r ip t i o n 15:8 ATUByte0 RWR ATU MAC Address Byte 0 (bits 47:40) is used as the input MAC address for ATU load, purge, or Get Next operations. It is the resulting MAC address from ATU Get Next operation. Bit 0 of byte 0 (bit 40) is the multicast bit (it is the 1st bit down the wire). Any MAC address with the multicast bit set to a one is considered locked by the ATU. 7:0 ATUByte1 RWR ATU MAC Address Byte 1 (bits 39:32) is used as the input MAC address for ATU load, purge, or Get Next operations. It is the resulting MAC address from the ATU Get Next operation. Table 58: ATU Switch MAC Address Register Bytes 2 & 3 Offset: 0x0E (Hex), or 14 (Decimal) B i ts F ie l d Ty p e D e s c r ip t i o n 15:8 ATUByte2 RWR ATU MAC Address Byte 2 (bits 31:24) is used as the input MAC address for ATU load, purge or Get Next operations. It is the resulting MAC address from ATU Get Next operations. 7:0 ATUByte3 RWR ATU MAC Address Byte 3 (bits 23:16) that are used as the input MAC address for ATU load, purge or Get Next operations. It is the resulting MAC address from ATU Get Next operations. Doc. No. MV-S100952-U0, Rev. -Page 104 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Switch Register Description Switch Core Registers Table 59: ATU Switch MAC Address Register Bytes 4 & 5 Offset: 0x0F (Hex), or 15 (Decimal) B i ts F i el d Ty p e D e s cr ip t i o n 15:8 ATUByte4 RWR ATU MAC Address Byte 4 (bits 15:8) is used as the input MAC address for ATU load, purge or Get Next operations. It is the resulting MAC address from ATU Get Next operations. 7:0 ATUByte5 RWR ATU MAC Address Byte 5 (bits 7:0) is used as the input MAC address for ATU load, purge or Get Next operations. It is the resulting MAC address from ATU Get Next operations. Note Registers 0x10 - 0x1F (Hex), or 16 - 31 (Decimal) are reserved. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 105 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Section 7. PHY Registers The 88E6060 device contains five physical layer devices (PHYs). These devices are accessible using SMI device addresses 0x00 to 0x04 (or 0x10 to 0x14) depending upon the value of the EE_CLK/ADDR4 pin at reset. The PHYs are fully IEEE 802.3 compliant including their register interface. The PHYs in the 88E6060 device are identical to those in the Marvell(R) 88E3082 Octal Transceiver except that there are five transceivers (transceivers 5 to 7 do not exist and are not accessible). Table 60: PHY Register Map Desc ription Offse t Hex Offset Dec ima l Page Numbe r PHY Control Register 0x00 0 page 107 PHY Status Register 0x01 1 page 109 PHY Identifier 0x02 2 page 110 PHY Identifier 0x03 3 page 110 Auto-Negotiation Advertisement Register 0x04 4 page 111 Link Partner Ability Register (Base Page) 0x05 5 page 113 Link Partner Ability Register (Next Page) 0x05 5 page 113 Auto-Negotiation Expansion Register 0x06 6 page 114 Next Page Transmit Register 0x07 7 page 115 Link Partner Next Page Register 0x08 8 page 115 0x09-0x0F 9 - 15 page 116 PHY Specific Control Register I 0x10 16 page 116 PHY Specific Status Register 0x11 17 page 119 PHY Interrupt Enable 0x12 18 page 121 PHY Interrupt Status 0x13 19 page 122 Reserved Registers PHY Interrupt Port Summary (Common register to all ports) 0x14 20 page 123 PHY Receive Error Counter 0x15 21 page 124 LED Parallel Select Register 0x16 22 page 125 LED Stream Select Register 0x17 23 page 126 PHY LED Control Register 0x18 24 page 128 PHY Manual LED Override Register 0x19 25 page 129 VCTTM Control Register 0x1A 26 page 130 VCTTM Status Register 0x1B 27 page 131 PHY Specific Control Register II Reserved Registers 0x1C 28 page 132 0x1D to 0x1F 29 - 31 page 132 Doc. No. MV-S100952-U0, Rev. -Page 106 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 61: PHY Control Register Offset: 0x00 (Hex), or 0 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 SWReset SC 0x0 Self Clear PHY Software Reset Writing a 1 to this bit causes the PHY state machines to be reset. When the reset operation is done, this bit is cleared to 0 automatically. The reset occurs immediately. 1 = PHY reset 0 = Normal operation 14 Loopback R/W Retain 0 Enable Loopback Mode When loopback mode is activated, the transmitter data presented on TXD is looped back to RXD internally. The PHY has to be in forced 10 or 100 Mbps mode. AutoNegotiation must be disabled. 1 = Enable loopback 0 = Disable loopback 13 SpeedLSB R/W ANEG [2:0] Update Speed Selection (LSB) When a speed change occurs, the PHY drops link and tries to determine speed when Auto-Negotiation is on. Speed, Auto-Negotiation enable, and duplex enable take on the values set by ANEG[2:0] on hardware reset. A write to these registers has no effect unless any one of the following also occurs: Software reset is asserted (bit 15) or Power down (bit 11) transitions from power down to normal operation. 1 = 100 Mbps 0 = 10 Mbps 12 AnegEn R/W ANEG [2:0] Update Auto-Negotiation Enable Speed, Auto-Negotiation enable, and duplex enable take on the values set by ANEG[2:0] on hardware reset. A write to these registers has no effect unless any one of the following also occurs: Software reset is asserted (bit 15, above), Power down (bit 11, below), or transitions from power down to normal operation. If the AnegEn bit is set to 0, the speed and duplex bits of the PHY Control Register (Offset 0x00) take effect. If the AnegEn bit is set to 1, speed and duplex advertisement is found in the Auto-Negotiation Advertisement Register (Offset 0x04). 1 = Enable Auto-Negotiation Process 0 = Disable Auto-Negotiation Process Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 107 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 61: PHY Control Register (Continued) Offset: 0x00 (Hex), or 0 (Decimal) B its F i el d M od e HW Rst SW Rst D e sc r ip ti o n 11 PwrDwn R/W 0x0 0x0 Power Down Mode When the port is switched from power down to normal operation, software reset and restart Auto-Negotiation are performed even when bits Reset (bit 15, above) and Restart Auto-Negotiation (bit 9, below) are not set by the user. 1 = Power down 0 = Normal operation 10 Isolate RO Always 0 Always 0 Isolate Mode Will always be 0. The Isolate function is not available, since full MII is not implemented. 0 = Normal operation 9 RestartAneg SC 0x0 Self Clear Restart Auto-Negotiation Auto-Negotiation automatically restarts after hardware or software reset regardless of whether or not the restart bit is set. 1 = Restart Auto-Negotiation Process 0 = Normal operation 8 Duplex R/W ANEG [2:0] Update Duplex Mode Selection Speed, Auto-Negotiation enable, and duplex enable take on the values set by ANEG[2:0] on hardware reset. A write to these registers has no effect unless any one of the following also occurs: Software reset is asserted (bit 15), Power down (bit 11), or transitions from power down to normal operation. 1 = Full-duplex 0 = Half-duplex 7 ColTest RO Always 0 Always 0 Collision Test Mode Will always be 0. The Collision test is not available, since full MII is not implemented. 0 = Disable COL signal test 6 SpeedMSB RO Always 0 Always 0 Speed Selection Mode (MSB) Will always be 0. 0 = 100 Mbps or 10 Mbps 5:0 Reserved RO Always 0 Always 0 Will always be 0. Doc. No. MV-S100952-U0, Rev. -Page 108 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 62: PHY Status Register Offset: 0x01 (Hex), or 1 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 100T4 RO Always 0 Always 0 100BASE-T4 This protocol is not available. 0 = PHY not able to perform 100BASE-T4 14 100FDX RO Always 1 Always 1 100BASE-T and 100BASE-X full-duplex 1 = PHY able to perform full-duplex 13 100HDX RO Always 1 Always 1 100BASE-T and 100BASE-X half-duplex 1 = PHY able to perform half-duplex 12 10FDX RO Always 1 Always 1 10BASE-T full-duplex 1 = PHY able to perform full-duplex 11 10HPX RO Always 1 Always 1 10BASE-T half-duplex 1 = PHY able to perform half-duplex 10 100T2FDX RO Always 0 Always 0 100BASE-T2 full-duplex. This protocol is not available. 0 = PHY not able to perform full-duplex 9 100T2HDX RO Always 0 Always 0 100BASE-T2 half-duplex This protocol is not available. 0 = PHY not able to perform half-duplex 8 ExtdStatus RO Always 0 Always 0 Extended Status 0 = No extended status information in Register 15 7 Reserved RO Always 0 Always 0 Must always be 0. 6 MFPreSup RO Always 1 Always 1 MF Preamble Suppression Mode Must be always 1. 1 = PHY accepts management frames with preamble suppressed 5 AnegDone RO 0x0 0 Auto-Negotiation Complete 1 = Auto-Negotiation process completed 0 = Auto-Negotiation process not completed 4 RemoteFault RO, LH 0x0 0 Remote Fault Mode 1 = Remote fault condition detected 0 = Remote fault condition not detected 3 AnegAble RO Always 1 Always 1 Auto-Negotiation Ability Mode 1 = PHY able to perform Auto-Negotiation Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 109 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 62: PHY Status Register (Continued) Offset: 0x01 (Hex), or 1 (Decimal) B its F i el d M od e HW Rst SW Rst D e sc r ip ti o n 2 Link RO, LL 0x0 0 Link Status Mode This register indicates when link was lost since the last read. For the current link status, either read this register back-to-back or read RTLink in Table 72 on page 119. 1 = Link is up 0 = Link is down 1 JabberDet RO, LH 0x0 0 Jabber Detect 1 = Jabber condition detected 0 = Jabber condition not detected 0 ExtdReg RO Always 1 Always 1 Extended capability mode. 1 = Extended register capabilities Table 63: PHY Identifier Offset: 0x02 (Hex), or 2 (Decimal) B its F i el d Mode HW Rst SW Rst D e s c r i p t io n 15:0 OUI MSb RO 0x0141 0x0141 Organizationally Unique Identifier bits 3:18 0000000101000001 Marvell(R) OUI is 0x005043 Table 64: PHY Identifier Offset: 0x03 (Hex), or 3 (Decimal) B i ts Field Mode HW Rst SW Rst D e s c r ip t io n 15:10 OUI LSb RO Always 000011 Always 000011 Organizationally Unique Identifier bits19:24 9:4 ModelNum RO Varies Varies Model Number = 001000 3:0 RevNum RO Varies Varies Revision Number Contact Marvell(R) FAEs for information on the device revision number. Doc. No. MV-S100952-U0, Rev. -Page 110 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 65: Auto-Negotiation Advertisement Register Offset: 0x04 (Hex), or 4 (Decimal) B its F ie l d M od e HW Rst SW Rst D e s c r i p t io n 15 AnegAd NxtPage R/W 0x0 Retain Next Page 1 = Advertise 0 = Not advertised Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. 14 Ack RO Always 0 Always 0 Must be 0. 13 AnegAd ReFault R/W 0x0 Retain Remote Fault Mode 1 = Set Remote Fault bit 0 = Do not set Remote Fault bit Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. 12:11 Reserved R/W 0x0 Retain Must be 00. Reserved bits are R/W to allow for forward compatibility with future IEEE standards. Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. 10 AnegAd Pause R/W 0x0 Retain Pause Mode 1 = MAC Pause implemented 0 = MAC Pause not implemented Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. 9 AnegAd 100T4 RO Always 0 Always 0 100BASE-T4 mode 0 = Not capable of 100BASE-T4 8 AnegAd 100FDX R/W 0x1 Retain 100BASE-TX full-duplex Mode 1 = Advertise 0 = Not advertised Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 111 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 65: Auto-Negotiation Advertisement Register (Continued) Offset: 0x04 (Hex), or 4 (Decimal) B i ts Field Mode HW Rst SW Rst D e s c r ip t io n 7 AnegAd 100HDX R/W 0X1 Retain 100BASE-TX half-duplex Mode 1 = Advertise 0 = Not advertised Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. 6 AnegAd 10FDX R/W 0X1 Retain 10BASE-TX full-duplex Mode 1 = Advertise 0 = Not advertised Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. 5 AnegAd 10HDX R/W 0X1 Retain 10BASE-TX half-duplex Mode 1 = Advertise 0 = Not advertised Values programmed into the Auto-Negotiation Advertisement Register have no effect unless Auto-Negotiation is restarted (RestartAneg - Table 61 on page 107) or link goes down. 4:0 AnegAd Selector RO Always 0x01 Always 0x01 Selector Field Mode 00001 = 802.3 Doc. No. MV-S100952-U0, Rev. -Page 112 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 66: Link Partner Ability Register (Base Page) Offset: 0x05 (Hex), or 5 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 LPNxt Page RO 0x0 0 Next Page Mode Base page will be overwritten if next page is received and if Reg8NxtPg (Table 71 on page 116) is disabled. When Reg8NxtPg (Table 71 on page 116) is enabled, then next page is stored in the Link Partner Next Page register (Table 70 on page 115), and the Link Partner Ability Register (Table 66 on page 113) holds the base page. Received Code Word Bit 15 14 LPAck RO 0x0 0 Acknowledge Received Code Word Bit 14 13 LPRemote Fault RO 0x0 0 Remote Fault Received Code Word Bit 13 12:5 LPTechAble RO 0x00 0x00 Technology Ability Field Received Code Word Bit 12:5 4:0 LPSelector RO 00000 00000 Selector Field Received Code Word Bit 4:0 Table 67: Link Partner Ability Register (Next Page) Offset: 0x05 (Hex), or 5 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 LPNxtPage RO -- -- Next Page Mode Base page will be overwritten if next page is received and if Reg8NxtPg (Table 71 on page 116) is disabled. When Reg8NxtPg (Table 71 on page 116) is enabled, then next page is stored in the Link Partner Next Page register (Table 70 on page 115), and Link Partner Ability Register (Table 66 on page 113) holds the base page. Received Code Word Bit 15 14 LPAck RO -- -- Acknowledge Received Code Word Bit 14 13 LPMessage RO -- -- Message Page Received Code Word Bit 13 12 LPack2 RO -- -- Acknowledge 2 Received Code Word Bit 12 11 LPToggle RO -- -- Toggle Received Code Word Bit 11 Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 113 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 67: Link Partner Ability Register (Next Page) (Continued) Offset: 0x05 (Hex), or 5 (Decimal) B its F i el d M od e HW Rst SW Rst D e sc r ip ti o n 10:0 LPData RO -- -- Message/Unformatted Field Received Code Word Bit 10:0 Table 68: Auto-Negotiation Expansion Register Offset: 0x06 (Hex), or 6 (Decimal) B i ts Field Mode HW Rst SW Rst D e s c r ip t io n 15:5 Reserved RO Always 0x000 Always 0x000 Reserved. Must be 00000000000. The Auto-Negotiation Expansion Register is not valid until the AnegDone (Table 62 on page 109) indicates completed. 4 ParFaultDet RO 0x0 0x0 Parallel Detection Level 1 = A fault has been detected via the Parallel Detection function 0 = A fault has not been detected via the Parallel Detection function 3 LPNxtPg Able RO 0x0 0x0 Link Partner Next Page Able 1 = Link Partner is Next Page able 0 = Link Partner is not Next Page able 2 LocalNxtPg Able RO Always 0x1 Always 0x1 Local Next Page Able This bit is equivalent to AnegAble (Table 62 on page 109). 1 = Local Device is Next Page able 1 RxNewPage RO/LH 0x0 0x0 Page Received 1 = A New Page has been received 0 = A New Page has not been received 0 LPAnegAble RO 0x0 0x0 Link Partner Auto-Negotiation Able 1 = Link Partner is Auto-Negotiation able 0 = Link Partner is not Auto-Negotiation able Doc. No. MV-S100952-U0, Rev. -Page 114 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 69: Next Page Transmit Register Offset: 0x07 (Hex), or 7 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 TxNxtPage R/W 0x0 0x0 Next Page A write to the Next Page Transmit Register implicitly sets a variable in the Auto-Negotiation state machine indicating that the next page has been loaded. Transmit Code Word Bit 15 14 Reserved RO 0x0 0x0 Reserved Transmit Code Word Bit 14 13 TxMessage R/W 0x1 0x1 Message Page Mode Transmit Code Word Bit 13 12 TxAck2 R/W 0x0 0x0 Acknowledge2 Transmit Code Word Bit 12 11 TxToggle RO 0x0 0x0 Toggle Transmit Code Word Bit 11 10:0 TxData R/W 0x001 0x001 Message/Unformatted Field Transmit Code Word Bit 10:0 Table 70: Link Partner Next Page Register Offset: 0x08 (Hex), or 8 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 RxNxtPage RO 0x0 0x0 Next Page If Reg8NxtPg (Table 71 on page 116) is enabled, then next page is stored in the Link Partner Next Page register (Table 70 on page 115); otherwise, theLink Partner Next Page register (Table 70 on page 115) is cleared to all 0's. Received Code Word Bit 15 14 RxAck RO 0x0 0x0 Acknowledge Received Code Word Bit 14 13 RxMessage RO 0x0 0x0 Message Page Received Code Word Bit 13 12 RxAck2 RO 0x0 0x0 Acknowledge 2 Received Code Word Bit 12 11 RxToggle RO 0x0 0x0 Toggle Received Code Word Bit 11 10:0 RxData RO 0x001 0x000 Message/Unformatted Field Received Code Word Bit 10:0 Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 115 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Note Registers 0x09 through 0x0F (hexadecimal (9 through 15 decimal) are reserved. Do not read or write to these registers. Table 71: PHY Specific Control Register Offset: 0x10 (Hex), or 16 (Decimal) Bi ts Fi eld M ode HW Rst SW Rst D e s c r i p t io n 15 Reserved RES -- -- Reserved. 14 EDet R/W ENA_ EDET Retain Energy Detect 1 = Enable with sense and pulse 0 = Disable Enable with sense only is not supported Enable Energy Detect takes on the appropriate value defined by the CONFIG9 pin at hardware reset. 13 DisNLP Check R/W 0x0 0x0 Disable Normal Linkpulse Check Linkpulse check and generation disable have no effect, if Auto-Negotiation is enabled locally. 1 = Disable linkpulse check 0 = Enable linkpulse check 12 Reg8NxtPg R/W 0x0 0x0 Enable the Link Partner Next Page register (Table 67 on page 113) to store Next Page. If set to store next page in the Link Partner Next Page register (Table 67 on page 113), then 802.3u is violated to emulate 802.3ab. 1 = Store next page in the Link Partner Next Page register (Table 67 on page 113) 0 = Store next page in the Link Partner Ability Register (Base Page) register (Table 66 on page 113). 11 DisNLPGen R/W 0x0 0x0 Disable Linkpulse Generation. Linkpulse check and generation disable have no effect, when Auto-Negotiation is enabled locally. 1 = Disable linkpulse generation 0 = Enable linkpulse generation 10 ForceLink R/W 0x0 0x0 Force Link Good When link is forced to be good, the link state machine is bypassed and the link is always up. 1 = Force link good 0 = Normal operation 9 DisScrambler R/W ANEG [2:0] Retain Disable Scrambler If fiber mode is selected then the scrambler is disabled at hardware reset. 1 = Disable scrambler 0 = Enable scrambler Doc. No. MV-S100952-U0, Rev. -Page 116 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 71: PHY Specific Control Register (Continued) Offset: 0x10 (Hex), or 16 (Decimal) B i ts Field Mode HW Rst SW Rst Description 8 DisFEFI R/W DIS_ FEFI ANEG [2:0] Retain Disable FEFI In 100BASE-FX mode, Disable FEFI takes on the appropriate value defined by the CONFIG8 pin at hardware reset. FEFI is automatically disabled regardless of the state of this bit if copper mode is selected. 1 = Disable FEFI 0 = Enable FEFI For the 88E3083 device, this bit applies to Port 7 only. 7 ExtdDistance R/W 0x0 0x0 Enable Extended Distance When using cable exceeding 100 meters, the 10BASE-T receive threshold must be lowered in order to detect incoming signals. 1 = Lower 10BASE-T receive threshold 0 = Normal 10BASE-T receive threshold 6 TPSelect R/W ANEG [2:0] Update (Un)Shielded Twisted Pair This setting can be changed by writing to this bit followed by software reset. 1 = Shielded Twisted Pair 0 = Unshielded Twisted Pair - default 5:4 AutoMDI[X] R/W ENA_ XC,1 Update MDI/MDIX Crossover This setting can be changed by writing to these bits followed by software reset. If ENA_XC is 1 at hardware reset then bits 5:4 = 11 00 = Transmit on pins RXP/RXN, Receive on pins TXP/ TXN 01 = Transmit on pins TXP/TXN, Receive on pins RXP/ RXN 1x = Enable Automatic Crossover 3:2 RxFIFO Depth R/W 0x0 0x0 Receive FIFO Depth 00 = 4 Bytes 01 = 6 Bytes 10 = 8 Bytes 11 = Reserved 1 AutoPol R/W 0x0 00 Polarity Reversal If polarity is disabled, then the polarity is forced to be normal in 10BASE-T mode. Polarity reversal has no effect in 100BASE-TX mode. 1 = Disable automatic polarity reversal 0 = Enable automatic polarity reversal Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 117 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 71: PHY Specific Control Register (Continued) Offset: 0x10 (Hex), or 16 (Decimal) Bi ts Fi eld M ode HW Rst SW Rst D e s c r i p t io n 0 DisJabber R/W 0x0 00 Disable Jabber Jabber has no effect in full-duplex or in 100BASE-X mode. 1 = Disable jabber function 0 = Enable jabber function Doc. No. MV-S100952-U0, Rev. -Page 118 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 72: PHY Specific Status Register Offset: 0x11 (Hex), or 17 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 Reserved RES -- -- Reserved 14 ResSpeed RO ANEG [2:0] Retain Resolved Speed Speed and duplex takes on the values set by ANEG[2:0] pins on hardware reset only. The values are updated after the completion of Auto-Negotiation. The registers retain their values during software reset. 1 = 100 Mbps 0 = 10 Mbps 13 ResDuplex RO ANEG [2:0] Retain Resolved Duplex Mode Speed and duplex takes on the values set by ANEG[2:0] pins on hardware reset only. The values are updated after the completion of Auto-Negotiation. The registers retain their values during software reset. This bit is valid only after the resolved bit 11 is set. 1 = Full-duplex 0 = Half-duplex 12 RcvPage RO, LH 0x0 0x0 Page Receive Mode 1 = Page received 0 = Page not received 11 Resolved RO 0x0 0x0 Speed and Duplex Resolved. Speed and duplex bits (14 and 13) are valid only after the Resolved bit is set. The Resolved bit is set when Auto-Negotiation is completed or Auto-Negotiation is disabled. 1 = Resolved 0 = Not resolved 10 RTLink RO 0x0 0x0 Link (real time) 1 = Link up 0 = Link down 9:7 Reserved RES 0x0 0x0 Must be 000. 6 MDI/MDIX RO 0x1 0x1 MDI/MDIX Crossover Status 1 = Transmit on pins RXP/RXN, Receive on pins TXP/ TXN 0 = Transmit on pins TXP/TXN, Receive on pins RXP/ RXN 5 Reserved RES 0x4 0x4 Must be 0. 4 Sleep RO 0 0x0 Energy Detect Status 1 = Chip is in sleep mode (No wire activity) 0 = Chip is not in sleep mode (Active) 3:2 Reserved RES 0x0 0x0 Must be 00. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 119 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 72: PHY Specific Status Register (Continued) Offset: 0x11 (Hex), or 17 (Decimal) B its F i el d M od e HW Rst SW Rst D e sc r ip ti o n 1 RTPolarity RO 0x0 0x0 Polarity (real time) 1 = Reversed 0 = Normal 0 RTJabber RO Retain 0x0 Jabber (real time) 1 = Jabber 0 = No Jabber Doc. No. MV-S100952-U0, Rev. -Page 120 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 73: PHY Interrupt Enable Offset: 0x12 (Hex), or 18 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15 Reserved RES -- -- Reserved 14 SpeedIntEn R/W 0x0 Retain Speed Changed Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 13 DuplexIntEn R/W 0x0 Retain Duplex Changed Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 12 RcvPageIntEn R/W 0x0 Retain Page Received Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 11 AnegDone IntEn R/W 0x0 Retain Auto-Negotiation Completed Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 10 LinkIntEn R/W 0x0 Retain Link Status Changed Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 9 SymErrIntEn R/W 0x0 Retain Symbol Error Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 8 FlsCrsIntEn R/W 0x0 Retain False Carrier Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 7 FIFOErrInt R/W 0x0 Retain FIFO Over/Underflow Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 6 MDI[x]IntEn R/W 0x0 0x0 MDI/MDIX Crossover Changed Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 5 Reserved RES 0x0 Retain Must be 0. 4 EDetIntEn R/W 0x0 Retain Energy Detect Interrupt Enable 1 = Enable 0 = Disable 3:2 Reserved RES 0x0 Retain Must be 00. 1 PolarityIntEn R/W 0x0 Retain Polarity Changed Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable 0 JabberIntEn R/W 0x0 Retain Jabber Interrupt Enable 1 = Interrupt enable 0 = Interrupt disable Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 121 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 74: PHY Interrupt Status Offset: 0x13 (Hex), or 19 (Decimal) Bi ts Fi eld M ode HW Rst SW Rst D e s c r i p t io n 15 Reserved RES -- -- Reserved 14 SpeedInt RO, LH 0x0 0x0 Speed Changed 1 = Speed changed 0 = Speed not changed 13 DuplexInt RO, LH 0x0 0x0 Duplex Changed 1 = Duplex changed 0 = Duplex not changed 12 RxPageInt RO, LH 0x0 0x0 1 = Page received 0 = Page not received 11 AnegDoneInt RO, LH 0x0 0x0 Auto-Negotiation Completed 1 = Auto-Negotiation completed 0 = Auto-Negotiation not completed 10 LinkInt RO, LH 0x0 0x0 Link Status Changed 1 = Link status changed 0 = Link status not changed 9 SymErrInt RO, LH 0x0 0x0 Symbol Error 1 = Symbol error 0 = No symbol error 8 FlsCrsInt RO, LH 0x0 0x0 False Carrier 1 = False carrier 0 = No false carrier 7 FIFOErrInt RO, LH 0x0 0x0 FIFO Over /Underflow Error 1 = Over/underflow error 0 = No over/underflow error 6 MDIMDIXInt RO, LH 0x0 0x0 MDI/MDIX Crossover Changed 1 = MDI/MDIX crossover changed 0 = MDI/MDIX crossover not changed 5 Reserved RO Always 0 Always 0 Must be 0 4 EDetChg RO, LH 0x0 0x0 Energy Detect Changed 1 = Changed 0 = No Change 3:2 Reserved RO 0x0 0x0 Must be 00 1 PolarityInt RO 0x0 0x0 Polarity Changed 1 = Polarity changed 0 = Polarity not changed 0 JabberInt RO, LH 0x0 0x0 Jabber Mode 1 = Jabber 0 = No Jabber Doc. No. MV-S100952-U0, Rev. -Page 122 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 75: PHY Interrupt Port Summary (Global1) Offset: 0x14 (Hex), or 20 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15:5 Reserved RO 0x0 0x0 Must be 00000000000. 4 Port4Int Active RO 0x0 0x0 Port 4 Interrupt Active Bit is set high, if any enabled interrupt is active for the port. Bit is cleared only when all bits in register 19 are cleared. 1 = Port has active interrupt 0 = Port does not have active interrupt 3 Port3Int Active RO 0x0 0x0 Port 3 Interrupt Active Bit is set high, if any enabled interrupt is active for the port. Bit is cleared only when all bits in register 19 are cleared. 1 = Port has active interrupt 0 = Port does not have active interrupt 2 Port2Int Active RO 0x0 0x0 Port 2 Interrupt Active Bit is set high, if any enabled interrupt is active for the port. Bit is cleared only when all bits in register 19 are cleared. 1 = Port has active interrupt 0 = Port does not have active interrupt 1 Port1Int Active RO 0x0 0x0 Port 1 Interrupt Active Bit is set high, if any enabled interrupt is active for the port. Bit is cleared only when all bits in register 19 are cleared. 1 = Port has active interrupt 0 = Port does not have active interrupt 0 Port0Int Active RO 0x0 0x0 Port 0 Interrupt Active Bit is set high, if any enabled interrupt is active for the port. Bit is cleared only when all bits in register 19 are cleared. 1 = Port has active interrupt 0 = Port does not have active interrupt 1. This global register is accessible for writing or reading from any PHY port (i.e., only one physical register exists for all the PHY Ports). Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 123 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 76: Receive Error Counter Offset: 0x15 (Hex), or 21 (Decimal) B its F i e ld Mo de HW Rst SW Rst Description 15:0 RxErrCnt RO 0x0000 0x0000 Receive Error Count This register counts receive errors on the media interface. When the maximum receive error count reaches 0xFFFF, the counter will not roll over. Doc. No. MV-S100952-U0, Rev. -Page 124 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 77: LED Parallel Select Register (Global)1 2 Offset: 0x16 (Hex), or 22 (Decimal) Bi ts Fi eld M ode HW Rst SW Rst D es c r ip t i o n 15:12 Reserved RES 0000 Retain Must be 0000 11:8 LED2 R/W LED[1:0] 00 = LINK Retain LED2 Control The parallel LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 0000 = COLX, 0001 = ERROR, 0010 = DUPLEX, 0011 = DUPLEX/COLX, 0100 = SPEED, 0101 = LINK, 0110 = TX, 0111 = RX, 1000 = ACT, 1001 = LINK/RX, 1011 = ACT (BLINK mode), 1100 to 1111 = Force to 1 Retain LED1 Control The parallel LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 0000 = COLX, 0001 = ERROR, 0010 = DUPLEX, 0011 = DUPLEX/COLX, 0100 = SPEED, 0101 = LINK, 0110 = TX, 0111 = RX, 1000 = ACT, 1001 = LINK/RX, 1011 = ACT (BLINK mode), 1100 to 1111 = Force to 1 Retain LED0 Control The parallel LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 0000 = COLX, 0001 = ERROR, 0010 = DUPLEX, 0011 = DUPLEX/COLX, 0100 = SPEED, 0101 = LINK, 0110 = TX, 0111 = RX, 1000 = ACT, 1001 = LINK/RX, 1011 = ACT (BLINK mode), 1100 to 1111 = Force to 1 01 = LINK 10 = LINK/RX 11= LINK ACT 7:4 LED1 R/W LED[1:0] 00 = RX 01 = ACT 10 = TX 11= DUPLEX /COLX 3:0 LED0 R/W LED[1:0] 00 = TX 01 = SPEED 10 = SPEED 11= SPEED 1. See Table 34 on page 80 and Table 35 on page 81 for parallel LED display modes that can be selected by hardware pin configuration at reset. 2. This global register is accessible for writing or reading from any PHY port (i.e., only one physical register exists for all the PHY Ports). Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 125 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 78: LED Stream Select for Serial LEDs Offset: 0x17 (Hex), or 23 (Decimal) B its F u n c tio n M o de HW R st SW Rst D e s c r ip t i o n 15:14 LEDLnkActy R/W LED[1:0] Retain LED Link Activity The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single 13:12 LEDRcvLnk R/W LED[1:0] Retain LED Receive Link The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single 11:10 LEDActy R/W LED[1:0] Retain LED Activity The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single 9:8 LEDRcv R/W LED[1:0] Retain LED Receive The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single 7:6 LEDTx R/W LED[1:0] Retain Transmit The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single 5:4 LEDLnk R/W LED[1:0] Retain Link The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single Doc. No. MV-S100952-U0, Rev. -Page 126 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 78: LED Stream Select for Serial LEDs (Continued) Offset: 0x17 (Hex), or 23 (Decimal) B i ts F un c ti o n M od e HW Rst SW Rst Description 3:2 LEDSpd R/W LED[1:0] Retain Speed The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single 1:0 LEDDx/ COLX R/W LED[1:0] Retain LED Duplex/ COLX The serial LED settings take on the appropriate value defined by the CONFIG_A pin at hardware reset. 00 = Off 01 = Reserved 10 = Dual 11 = Single Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 127 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 79: PHY LED Control Register (Global1) Offset: 0X18 (Hex), 0r 24 (Decimal) B its F i e ld M od e HW Rst SW Rst D e s c r i p t io n 15 Reserved RO Always 0 Always 0 Must be 0. 14:12 PulseStretch R/W 0x4 Retain Pulse stretch duration. Default Value = 100. 000 = No pulse stretching 001 = 21 ms to 42 ms 010 = 42 ms to 84 ms 011 = 84 ms to 170 ms 100 = 170 ms to 340 ms 101 = 340 ms to 670 ms 110 = 670 ms to 1.3s 111 = 1.3s to 2.7s 11:9 BlinkRate R/W 0x1 Retain Blink Rate. This is a global setting. Default Value = 001 000 = 42 ms 001 = 84 ms 010 = 170 ms 011 = 340 ms 100 = 670 ms 101 to 111 = Reserved 8:6 SrStrUpdate R/W 0x2 Retain Serial Stream Update 000 = 10 ms 001 = 21 ms 010 = 42 ms 011 = 84 ms 100 = 170 ms 101 = 340 ms 110 to 111 = Reserved 5:4 Duplex R/W Retain LED[1:0] 00 = Off 01 = Single 10 = Single 11 = Single 00 = Off 01 = Reserved 10 = Dual 11 = Single 3:2 Error R/W 11 Retain 00 = Off 01 = Reserved 10 = Dual 11 = Single 1:0 COLX R/W Retain LED[1:0] 00 = Off 01 = Single 10 = Single 11 = Single 00 = Off 01 = Reserved 10 = Dual 11 = Single 1. This global register is accessible for writing or reading from any PHY port (i.e., only one physical register exists for all the PHY Ports). Doc. No. MV-S100952-U0, Rev. -Page 128 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 80: PHY Manual LED Override Offset: 0x19 (Hex), or 25 (Decimal) B its F i e ld M o de HW R st SW Rst D e s c r ip t i o n 15:6 Reserved R/W 0x0 Retain 0000000000 5:4 LED2 R/W 0x0 Retain 00 = Normal 01 = Blink 10 = LED Off 11 = LED On 3:2 LED1 R/W 0x0 Retain 00 = Normal 01 = Blink 10 = LED Off 11 = LED On 1:0 LED0 R/W 0x0 Retain 00 = Normal 01 = Blink 10 = LED Off 11 = LED On Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 129 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 81: VCTTM Register for TXP/N Pins Offset: 0x1A1 (Hex), or 26 (Decimal) B its F i el d M od e HW Rst SW Rst D e sc r ip ti o n 15 EnVCT R/W, SC 0x0 0x0 Enable VCT The 88E6060 device must be in forced 100 Mbps mode before enabling this bit. 1 = Run VCT 0 = VCT completed After running VCT once, bit 15 = 0 indicates VCT completed. The cable status is reported in the VCTTst bits in registers 26 and 27. Refer to the "Virtual Cable TesterTM" feature in section 4.5. 14:13 VCTTst RO 0x0 Retain VCT Test Status These VCT test status bits are valid after completion of VCT. 11 = Test fail 00 = valid test, normal cable (no short or open in cable) 10 = valid test, open in cable (Impedance > 333 ohm) 01 = valid test, short in cable (Impedance < 33 ohm) 12:8 AmpRfln RO 0x0 Retain Amplitude of Reflection The amplitude of reflection is stored in these register bits. These amplitude bits range from 0x07 to 0x1F. 0x1F = Maximum positive amplitude 0x13 = Zero amplitude 0x07 = Maximum negative amplitude These bits are valid after completion of VCT (bit 15) and if the VCT test status bits (bits 14:13) have not indicated test failure. 7:0 DistRfln RO 0x0 Retain Distance of Reflection These bits refer to the approximate distance (1m) to the open/short location, measured at nominal conditions (room temperature and typical VDDs). See Figure 26. These bits are valid after completion of VCT (bit 15) and if the VCT test status bits (bit 14:13) have not indicated test failure. 1. The results stored in this register apply to the TX pin pair. Doc. No. MV-S100952-U0, Rev. -Page 130 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary PHY Registers Table 82: VCTTM Register for RXP/N pins Offset: 0x1B1 (Hex), or 27 (Decimal) B i ts Field Mode HW Rst SW Rst Description 15 Reserved RO Always 0 Always 0 Reserved 14:13 VCTTst RO 0 Retain VCT Test Status The VCT test status bits are valid after completion of VCT. 11 = Test fail 00 = valid test, normal cable (no short or open in cable) 10 = valid test, open in cable (Impedance > 333 ohm) 01 = valid test, short in cable (Impedance < 33 ohm) 12:8 AmpRfln RO 0 Retain Amplitude of Reflection The amplitude of reflection is stored in these register bits. These amplitude bits range from 0x07 to 0x1F. 0x1F = Maximum positive amplitude 0x13 = Zero amplitude 0x07 = Maximum negative amplitude These bits are valid after completion of VCT (bit 15) and if VCT test status bits (bit 14:13) have not indicated test failure. 7:0 DistRfln RO 0 Retain Distance of Reflection These bits refer to the approximate distance (1m) to the open/short location, measured at nominal conditions (room temperature and typical VDDs). See Figure 26. These bits are valid after completion of VCT (bit 15) and if VCT test status bits (bits 14:13) have not indicated test failure. 1. The results stored in this register apply to the RX pin pair. Figure 26: Cable Fault Distance Trend Line RX/TX 200 150 y = 0.7816x - 18.261 100 50 0 0 50 100 150 150 200 Register 27[7:0] or 26[7:0] Copyright (c) 2008 Marvell January 3, 2008, Preliminary 250 300 Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 131 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch Table 83: PHY Specific Control Register II Offset: 0x1C (Hex), or 28 (Decimal) B i ts Field Mode HW Rst SW Rst D e s c r ip t io n 15:1 Reserved R/W 0x0 0x0 Must be 000000000000000 0 SelClsA R/W SEL_ CLASS A Update 1 = Select Class A driver; available for 100BASE-TX mode only --typically used in backplane or direct connect applications 0 = Select Class B driver--typically used in CAT 5 applications Note Registers 0x1D through 0x1F (hexadecimal (29 through 31 decimal) are reserved. Do not read or write to these registers. Doc. No. MV-S100952-U0, Rev. -Page 132 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary EEPROM Programming Format EEPROM Programming Details Section 8. EEPROM Programming Format 8.1 EEPROM Programming Details The 88E6060 device supports an optional external serial EEPROM device for programing its internal registers. The EEPROM data is read in once after RESETn is deasserted if the stand alone Switch Mode is not selected (see Table 14 on page 29). The 88E6060 supports 1K bit (93C46), 2K bit (93C56), or 4K bit (93C66) EEPROM devices. The size of the device is selected by the EE_DIN/EE_1K pin at reset--see Table 7 on page 21. The external EEPROM device must be configured in x16 data organization mode. Regardless of which particular device is attached, the EEPROM is read and processed in the same way: 1. 2. 3. 4. 5. 6. 7. 8. 9. Start at EEPROM address 0x00. Read in the 16 bits of data from the even address. This step is called the Command. If the just read in Command is all ones, terminate the serial EEPROM reading process and go to step 8. Increment the address by 1--to the next address. Read in the 16 bits of data from that address--This is called the RegData. Write RegData to the locations defined by the previous Command. Go to step 2. Set the EEInt bit in Global Status to a one (Table 49, on page 99) generating an Interrupt (if enabled). Done. The 16-bit Command determines which register or registers inside the 88E6060 are updated as follows. Refer to Figure 27 below. * Bit 15 determines which set of registers can be written. If bit 15 = 0 the PHY registers can be written (SMI Device Addresses 0x00 to 0x04) or the Switch Global registers can be written (SMI Device Address 0x7). If bit 15 = 1 the Switch registers can be written (SMI Device Addresses 0x08 to 0x0D). See section 6 and Figure 25 for more information on the registers and their addresses. * Bits 10:5 (or 9:5), the Device Vector, determines which Device Addresses are written. Each bit of the Device Vector that is set to a one causes one Device Address to be written. Bit 5 controls writes for Port 0 (either PHY address 0x00 or Switch address 0x08). Bit 6 controls writes for Port 1 (either PHY address 0x01 or Switch address 0x09). Bit 7 controls writes for Port 2, etc. The Switch Global registers (Switch address 0x0F) are written when bit 15 is a zero and bits 14:5 are ones. Care is needed to ensure that Reserved registers are not written. Bits 4:0, the Register Address, determine which SMI Register Address is written. * * * * Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 133 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch The format of the EEPROM Commands supports writing the same RegData to all the PHYs or all the Switch's MACs with one Command/RegData pair. The Command/RegData list can be as short or as long as needed. This makes optimum use of the limited number of Command/RegData pairs that can fit in a given size EEPROM1. The maximum number of Command/RegData pairs is one fewer than might be expected from a simple calculation because the last entry must be the End of List or Halt Indicator of all ones. Figure 27: EEPROM Data Format Addr 0 15 14 1 0 11 0 0 Addr 1 Addr 2 9 0 8 7 6 5 4 Device Vector 0 Switch Command Register Address RegData Register Data Written to Switch Register(s) 0 0 0 0 Addr 3 Any Even Addr 10 0 0 Device Vector PHY Command Register Address RegData Register Data Written to PHY Register(s) 15 14 0 1 Any Odd Addr Last Used Even Addr 1 1 1 1 1 8 7 6 5 1 1 1 1 4 0 Register Address Register Data Written to a Switch Global Register End of List Indicator = all 1's at 1st Even Addr Global Command RegData Command 1. 31 in the 93C46, 63 in the 93C56, and 127 in the 93C66 EEPROM. Doc. No. MV-S100952-U0, Rev. -Page 134 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Electrical Specifications Absolute Maximum Ratings Section 9. Electrical Specifications 9.1 Absolute Maximum Ratings Stresses above those listed in Absolute Maximum Ratings may cause permanent device failure. Functionality at or above these limits is not implied. Exposure to absolute maximum ratings for extended periods may affect device reliability. Table 84: Absolute Maximum Ratings Symbol Pa rame ter Min Typ M ax Units VDD(3.3) Power Supply Voltage on VDDO with respect to VSS -0.5 3.3 +3.6 V VDD(2.5) Power Supply Voltage on VDDAH with respect to VSS -0.5 2.5 +3.6 or VDD(3.3) +0.51 whichever is less V VDD(1.5) Power Supply Voltage on VDD, or VDDAL with respect to VSS -0.5 1.5 +3.6 or VDD(2.5) +0.52 whichever is less V VPIN Voltage applied to any input pin with respect to VSS -0.5 +3.6 or VDDO +0.53 whichever is less V TSTORAGE Storage temperature -55 +1254 C 1. VDD(2.5) must never be more than 0.5V greater than VDD(3.3) or damage will result. This implies that power must be applied to VDD(3.3) before or at the same time as VDD(2.5). 2. VDD(1.5) must never be more than 0.5V greater than VDD(2.5) or damage will result. This implies that power must be applied to VDD(2.5) before or at the same time as VDD(1.5). 3. VPIN must never be more than 0.5V greater than VDDO or damage will result. 4. 125C is the re-bake temperature. For extended storage time greater than 24 hours, +85C should be the maximum. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 135 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 9.2 Recommended Operating Conditions Table 85: Recommended Operating Conditions Symbol Para meter Condition VDD(3.3) 3.3V power supply For pins VDDO 3.135 3.3 3.465 V VDD(2.5) 2.5V power supply For pins VDDAH 2.375 2.5 2.625 V VDD(1.5) 1.5V power supply For pins VDD, VDDAL 1.425 1.5 1.575 V TA Ambient operating temperature Commercial Parts 0 70 C -40 85 Industrial Parts TJ Maximum junction temperature RSET Internal bias reference Min 1 Ty p Ma x 1980 2000 C 2 C 2020 125 Resistor value placed between RSET- and RSET+ pins Units 1. Industrial part numbers have an "I" following the commercial part numbers. See "Ordering Information" on page 162. 2. Refer to white paper on TJ Thermal Calculations for more Information. Doc. No. MV-S100952-U0, Rev. -Page 136 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Electrical Specifications Absolute Maximum Ratings 9.3 Package Thermal Information 9.3.1 Thermal Conditions for 128-pin PQFP Package Table 86: Thermal Conditions for 128-pin PQFP Package Sy mbol JA Parameter Condition 1 Thermal resistance - junction to ambient of the 88E6060 device 128-Pin PQFP package JA = (TJ - TA)/ P P = Total Power Dissipation JT Thermal characteristic parameter1 - junction to top center of the 88E6060 device 128-Pin PQFP package Min Typ Max Units JEDEC 4 in. x 4.5 in. 4layer PCB with no air flow 33.1 C/W JEDEC 4 in. x 4.5 in. 4layer PCB with 1 meter/sec air flow 30.3 C/W JEDEC 4 in. x 4.5 in. 4layer PCB with 2 meter/sec air flow 29.1 C/W JEDEC 4 in. x 4.5 in. 4layer PCB with 3 meter/sec air flow 28.3 C/W JEDEC 4 in. x 4.5 in. 4layer PCB with no air flow 2.3 C/W JEDEC with no air flow 16.7 C/W JEDEC with no air flow 25.7 C/W JT = (TJ - Tc)/P. P = Total Power Dissipation JC Thermal resistance1 - junction to case of the 88E6060 device 128-Pin PQFP package JC = (TJ - TC)/ PTop PTop = Power Dissipation from the top of the package Thermal resistance1 - junction to board of the 88E6060 device 128-Pin PQFP package JB JB = (TJ - TB)/ Pbottom Pbottom = power dissipation from the bottom of the package to the PCB surface. 1. Refer to white paper on TJ Thermal Calculations for more information. Copyright (c) 2008 Marvell January 3, 2008, Preliminary Doc. No. MV-S100952-U0, Rev. -Document Classification: Proprietary Information Page 137 Link Street(R) 88E6060 - Unrestricted Low Power, 6-port, 10/100 Ethernet Switch 9.4 DC Electrical Characteristics (Over full range of values listed in the Recommended Operating Conditions unless otherwise specified) Table 87: DC Electrical Characteristics Pa rame ter Pins Condition IDD(3.3) 3.3 volt Power to outputs VDDO No link on any port 15 mA All ports 10 Mbps 17 mA All ports 100 Mbps 22 mA Power Down Mode 18 mA Sleep Mode 18 mA No link on any port 40 mA All ports 10 Mbps and active 126 mA All ports 100 Mbps 111 mA Power Down Mode 32 mA Sleep Mode 36 mA No link on any port 10 mA All ports 10 Mbps and active 301 mA All ports 100 Mbps 103 mA Power Down Mode 0 mA Sleep Mode 0 mA No link on any port 0 mA All ports 10 Mbps and active 1 mA All ports 100 Mbps 29 mA Power Down Mode 1 mA Sleep Mode 0 mA No link on any port 40 mA All ports 10 Mbps and active 54 mA All ports 100 Mbps and active 119 mA Power Down Mode 39 mA Sleep Mode 36 mA IDD(2.5) 2 2.5 volt Power to analog core volt3 2.5 Power to Center Tap IDD(1.5) 1.5 volt Power to analog core 1.5 volt Power to digital core VDDAH External Magnetics Center Tap Pin VDDAL VDD Min Typ 1 Symbol Max Un i ts 1. The values listed are typical values with LED mode 3, 3 LEDs per port, and Auto-Negotiation on. 2. The 2.5V power source must supply an additional 100 mA (Typical) current from the center tap on the magnetics. (This number is not included in this table.) 3. The 2.5V power source must supply an additional 100 mA (Typical) current from the center tap on the magnetics. (This number is not included in this table.) Doc. No. MV-S100952-U0, Rev. -Page 138 Copyright (c) 2008 Marvell Document Classification: Proprietary Information January 3, 2008, Preliminary Electrical Specifications Absolute Maximum Ratings 9.4.1 Digital Operating Conditions (Over full range of values listed in the Recommended Operating Conditions unless otherwise specified) Table 88: Digital Operating Conditions Symbol Parameter Pins VIH High level input voltage All pins 2.0 XTAL_IN 1.4 All pins -0.5 Low level input voltage VIL VOH VOL IILK CIN High level output voltage Low level output voltage Input leakage current Input capacitance Cond i ti o n Mi n Typ LED IOH = -8 mA VDDO = Min Uni ts VDDO +0.5 V V XTAL_IN pins1 Ma x 0.8 V 0.6 V 2.4 V VIH(XTAL_IN) +0.2 XTAL_OUT IOH = -1 mA V All others IOH = -4 mA VDDO = Min LED pins1 IOL= 8 mA XTAL_OUT IOL = 1 mA INTn pin2 IOL= 8 mA All others IOL= 4 mA 0.4 V With pull-up resistor (typ. 120 k) 0