public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 05/11] net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP
Date: Thu, 15 Jan 2015 13:02:22 -0800	[thread overview]
Message-ID: <54B82ADE.5030909@freescale.com> (raw)
In-Reply-To: <1421064519-6248-6-git-send-email-codrin.ciubotariu@freescale.com>



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@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

  parent reply	other threads:[~2015-01-15 21:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-12 12:08 [U-Boot] [PATCH v3 00/11] Add driver for VSC9953 Ethernet Switch Codrin Ciubotariu
2015-01-12 12:08 ` [U-Boot] [PATCH v3 01/11] net/fm: Fix error when FMAN MAC has no PHY Codrin Ciubotariu
2015-01-23  0:37   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 02/11] arch/powerpc: Fix mapping of Freescale SerDes protocols Codrin Ciubotariu
2015-01-23  0:38   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 03/11] arch/powerpc: Add SGMII support for the L2 Switch ports Codrin Ciubotariu
2015-01-23  0:39   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 04/11] net/fm: Enable FMAN ports if l2switch ports are connected over SGMII Codrin Ciubotariu
2015-01-23  0:39   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 05/11] net/vsc9953: Add driver for Vitesse VSC9953 L2 Switch IP Codrin Ciubotariu
2015-01-15 20:59   ` York Sun
2015-01-15 21:02   ` York Sun [this message]
2015-01-15 21:42   ` Joe Hershberger
2015-01-23  0:40   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 06/11] arch/powerpc: Enable VSC9953 driver on T1040 and T1020 Codrin Ciubotariu
2015-01-15 21:26   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 07/11] board/T1040qds: Fix lane-to-slot mapping for SerDes protocol 0x89 Codrin Ciubotariu
2015-01-23  0:42   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 08/11] board/T1040qds: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs Codrin Ciubotariu
2015-01-23  0:42   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 09/11] board/T104xrdb: " Codrin Ciubotariu
2015-01-23  0:43   ` York Sun
2015-01-12 12:08 ` [U-Boot] [PATCH v3 10/11] board/T1040qds: Add VSC9953 support for T1040qds board Codrin Ciubotariu
2015-01-12 12:08 ` [U-Boot] [PATCH v3 11/11] board/T1040rdb: Add VSC9953 support for T1040rdb board Codrin Ciubotariu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B82ADE.5030909@freescale.com \
    --to=yorksun@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox