[U-Boot] [PATCH v3 05/11] net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP

York Sun yorksun at freescale.com
Thu Jan 15 22:02:22 CET 2015



On 01/12/2015 04:08 AM, Codrin Ciubotariu wrote:
> This patch adds a driver for VSC9953 L2 Switch. This Vitesse IP
> is integrated in Freescale T1040 and T1020 SoCs.
> The L2 switch has 10 Ethernet ports: 2 internal fixed-links
> (ports 8 and 9) at 2.5 Gbps and and 8 external ports at 1 Gbps.
> The external ports may be connected to PHYs over QSGMII and SGMII.
> 
> Commands have also been added to enable/disable a port and to
> check a port's link speed, duplexity and status. The commands are:
> 
> 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
> 
> For more detailse please see doc/README.t1040-l2switch
> 
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu at freescale.com>
> ---
> 
> Changes for v2:
> 	- 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;
> 
> Changes for v3: Removed "Change-id" line from comment;
> 
>  doc/README.t1040-l2switch |  49 +++++
>  drivers/net/Makefile      |   1 +
>  drivers/net/vsc9953.c     | 497 ++++++++++++++++++++++++++++++++++++++++++++++
>  include/vsc9953.h         | 402 +++++++++++++++++++++++++++++++++++++
>  4 files changed, 949 insertions(+)
>  create mode 100644 doc/README.t1040-l2switch
>  create mode 100644 drivers/net/vsc9953.c
>  create mode 100644 include/vsc9953.h
> 
> diff --git a/doc/README.t1040-l2switch b/doc/README.t1040-l2switch
> new file mode 100644
> index 0000000..6324f18
> --- /dev/null
> +++ b/doc/README.t1040-l2switch
> @@ -0,0 +1,49 @@
> +This file contains information for VSC9953, a Vitesse L2 Switch IP
> +which is integrated in the T1040/T1020 Freescale SoCs.
> +
> +About Device:
> +=============
> +VSC9953 is an 8-port Gigabit Ethernet switch supports the following features:
> +	-	8192 MAC addresses
> +	-	Static Address provisioning
> +	-	Dynamic learning of MAC addresses and aging
> +	-	4096 VLANs
> +	-	Independent and shared VLAN learning (IVL, SVL)
> +	-	Policing with storm control and MC/BC protection
> +	-	IPv4 and IPv6 multicast
> +	-	Jumbo frames (9.6 KB)
> +	-	Access Control List
> +	-	VLAN editing, translation and remarking
> +	-	RMON counters per port
> +
> +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 at DTSEC1 and FM1 at 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
> +=>
> +

Extra line at the end. No need to respin the patch. I can remove it when I apply
the patch.

York



More information about the U-Boot mailing list