
This patches add support for VSC9953, a Vitesse L2 Switch IP which is integrated in the T1040/T1020 Freescale SoCs.
About Device: ============= The Seville Gigabit Ethernet switch core contains eight 10/100/1000 Mbps Ethernet ports and two 10/100/1000/2500 Mbps ports. It provides a rich set of Ethernet switching features such as advanced TCAM-based VLAN and QoS processing as well as security processing using a TCAM.
Switch interfaces: - 8 Gigabit switch ports (ports 0 to 7) are external and are connected to external PHYs - 2 switch ports (ports 8 and 9) of 2.5 G are connected (fixed links) to FMan ports (FM1@DTSEC1 and FM1@DTSEC2)
Commands Overview: ============= Commands supported - enable/disable a port - check a port's link speed, duplexity and status.
Commands syntax ethsw port <port_nr> enable|disable - enable/disable an l2 switch port ethsw port <port_nr> show - show an l2 switch port's configuration
port_nr=0..9; use "all" for all ports
=> ethsw port all show Port Status Link Speed Duplex 0 enabled down 10 half 1 enabled down 10 half 2 enabled down 10 half 3 enabled up 1000 full 4 disabled down - half 5 disabled down - half 6 disabled down - half 7 disabled down - half 8 enabled up 2500 full 9 enabled up 2500 full =>
Changes for v2: - split the bug fix from the implementation of SerDes protocols of L2 Switch ports patch; - added debug messages if MDIO reads or writes timeout; - added debug messages when reset of VSC9953 switch fails; - replaced Copyright and license to the generic one; - added patch descriptions;
Changes for v3: - replaced the arrays type from 'int' to 'u8' int the fix for mapping of Freescale SerDes protocols; - removed "Change-id" lines from almost all the patches;
Codrin Ciubotariu (11): net/fm: Fix error when FMAN MAC has no PHY arch/powerpc: Fix mapping of Freescale SerDes protocols arch/powerpc: Add SGMII support for the L2 Switch ports net/fm: Enable FMAN ports if l2switch ports are connected over SGMII net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP arch/powerpc: Enable VSC9953 driver on T1040 and T1020 board/T1040qds: Fix lane-to-slot mapping for SerDes protocol 0x89 board/T1040qds: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs board/T104xrdb: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs board/T1040qds: Add VSC9953 support for T1040qds board board/T1040rdb: Add VSC9953 support for T1040rdb board
arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c | 73 ++-- arch/powerpc/cpu/mpc85xx/t1040_serdes.c | 8 +- arch/powerpc/cpu/mpc8xxx/cpu.c | 5 + arch/powerpc/include/asm/config_mpc85xx.h | 3 + arch/powerpc/include/asm/fsl_serdes.h | 7 + board/freescale/t1040qds/eth.c | 93 +++++ board/freescale/t104xrdb/eth.c | 59 ++- doc/README.t1040-l2switch | 49 +++ drivers/net/Makefile | 1 + drivers/net/fm/eth.c | 30 +- drivers/net/fm/t1040.c | 3 +- drivers/net/vsc9953.c | 497 +++++++++++++++++++++++++ include/configs/T1040QDS.h | 4 + include/configs/T104xRDB.h | 6 + include/vsc9953.h | 402 ++++++++++++++++++++ 15 files changed, 1191 insertions(+), 49 deletions(-) create mode 100644 doc/README.t1040-l2switch create mode 100644 drivers/net/vsc9953.c create mode 100644 include/vsc9953.h