This document is the user guide for Micrel Switch
This Micrel Switch Usage Guide, revision 1.0 dated October 30, 2014, describes how to modify a host network driver to support Micrel switch features. It lists the supported switches as KSZ8463, KSZ8863/73, KSZ9566/7, and KSZ9897 equivalents and notes that most switch drivers are Linux SPI drivers, with I2C drivers available if needed.
The guide covers the software driver implementation, Distributed Switch Architecture (DSA), host network driver modifications, switch APIs and PTP functions, hardware limitations, and the RSTP daemon. It explains that the switch is usually connected to a MAC controller through a MII/RGMII interface and is implemented as a Linux PHY device, with a virtual MDIO bus and PHY 0 for the whole switch.
| Supported switches | KSZ8463, KSZ8863/73, KSZ9566/7, and KSZ9897 equivalents |
|---|---|
| Primary driver type | Linux SPI driver |
| Alternate driver interface | I2C drivers available if needed |
| Host connection | MII/RGMII interface to a MAC controller |
| PHY mapping | PHY 0 for the whole switch; PHY 1 for port 1; PHY 2 for port 2; and so on |
| Host port | Generally the last port of the switch |
The guide covers KSZ8463, KSZ8863/73, KSZ9566/7 and KSZ9897 equivalents.
It is usually connected through a MII/RGMII interface.
Make sure the MII interface is connected correctly on the system board and the correct MII mode is used.
CONFIG_NET_DSA_TAIL_TAG is defined when Micrel DSA support is selected.