aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorWingMan Kwok <w-kwok2@ti.com>2015-03-20 16:11:25 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-20 22:03:09 -0400
commit9a391c7ba7dcfc64754140ce13d5fc55d149531a (patch)
tree34e3249f144288d09892defee67eab9a22f2b610 /Documentation
parentda866ba055bf934c21bd936bbec01d69deffef95 (diff)
net: netcp: ethss: enhancement to support NetCP 1.5 ethss
NetCP 1.5 available on newer K2 SoCs such as K2E and K2L introduced 3 variants of the ethss subsystem, 9 port, 5 port and 2 port. These have one host port towards the CPU and N external slave ports. To customize the driver for these new ethss sub systems, multiple compatibility strings are introduced. Currently some of parameters that are different on different variants such as number of ALE ports, stats modules and number of ports are defined through constants. These are now changed to variables in gbe_priv data that get set based on the compatibility string. This is required as there are no hardware identification registers available to distinguish among the variants of NetCP 1.5 ethss. However there is identification register available to differentiate between NetCP 1.4 vs NetCP 1.5 and the same is made use of in the code to differentiate them. For more reading on the details of this peripheral, please refer to the User Guide available at http://www.ti.com/lit/pdf/spruhz3 Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: WingMan Kwok <w-kwok2@ti.com> CC: "David S. Miller" <davem@davemloft.net> CC: Mugunthan V N <mugunthanvnm@ti.com> CC: "Lad, Prabhakar" <prabhakar.csengg@gmail.com> CC: Grygorii Strashko <grygorii.strashko@ti.com> CC: Christoph Jaeger <cj@linux.com> CC: Lokesh Vutla <lokeshvutla@ti.com> CC: Markus Pargmann <mpa@pengutronix.de> CC: Kumar Gala <galak@codeaurora.org> CC: Ian Campbell <ijc+devicetree@hellion.org.uk> CC: Mark Rutland <mark.rutland@arm.com> CC: Pawel Moll <pawel.moll@arm.com> CC: Rob Herring <robh+dt@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/net/keystone-netcp.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/keystone-netcp.txt b/Documentation/devicetree/bindings/net/keystone-netcp.txt
index 8368abdd5a34..d0e6fa38f335 100644
--- a/Documentation/devicetree/bindings/net/keystone-netcp.txt
+++ b/Documentation/devicetree/bindings/net/keystone-netcp.txt
@@ -65,12 +65,30 @@ NetCP device properties: Device specification for NetCP sub-modules.
651Gb/10Gb (gbe/xgbe) ethernet switch sub-module specifications. 651Gb/10Gb (gbe/xgbe) ethernet switch sub-module specifications.
66Required properties: 66Required properties:
67- label: Must be "netcp-gbe" for 1Gb & "netcp-xgbe" for 10Gb. 67- label: Must be "netcp-gbe" for 1Gb & "netcp-xgbe" for 10Gb.
68- compatible: Must be one of below:-
69 "ti,netcp-gbe" for 1GbE on NetCP 1.4
70 "ti,netcp-gbe-5" for 1GbE N NetCP 1.5 (N=5)
71 "ti,netcp-gbe-9" for 1GbE N NetCP 1.5 (N=9)
72 "ti,netcp-gbe-2" for 1GbE N NetCP 1.5 (N=2)
73 "ti,netcp-xgbe" for 10 GbE
74
68- reg: register location and the size for the following register 75- reg: register location and the size for the following register
69 regions in the specified order. 76 regions in the specified order.
70 - switch subsystem registers 77 - switch subsystem registers
71 - sgmii port3/4 module registers (only for NetCP 1.4) 78 - sgmii port3/4 module registers (only for NetCP 1.4)
72 - switch module registers 79 - switch module registers
73 - serdes registers (only for 10G) 80 - serdes registers (only for 10G)
81
82 NetCP 1.4 ethss, here is the order
83 index #0 - switch subsystem registers
84 index #1 - sgmii port3/4 module registers
85 index #2 - switch module registers
86
87 NetCP 1.5 ethss 9 port, 5 port and 2 port
88 index #0 - switch subsystem registers
89 index #1 - switch module registers
90 index #2 - serdes registers
91
74- tx-channel: the navigator packet dma channel name for tx. 92- tx-channel: the navigator packet dma channel name for tx.
75- tx-queue: the navigator queue number associated with the tx dma channel. 93- tx-queue: the navigator queue number associated with the tx dma channel.
76- interfaces: specification for each of the switch port to be registered as a 94- interfaces: specification for each of the switch port to be registered as a