aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorKaricheri, Muralidharan <m-karicheri2@ti.com>2015-03-20 16:11:22 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-20 22:03:09 -0400
commit21e0e0ddda5be2905ca163cab2da5bb1880a790c (patch)
tree01dd5b75b9b674082a56b74d840f551c9cd16687 /Documentation
parente170f409924235478317bd6f2062d3a0c874ff9a (diff)
net: netcp: use separate reg region for individual ethss modules
Ethss has multiple modules within the sub system - switch sub system - sgmii - mdio - switch module NetCP driver re-uses existing davinci mdio driver. It requires to have its own register region to map the reg space. So restructure the code to use separate reg region for the individual modules it manages. Use range property to define register space of NetCP and use reg property to define individual reg spaces. So MDIO will have its own reg space to map. This is a pre-requisite to enable MDIO driver for NetCP. 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.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/net/keystone-netcp.txt b/Documentation/devicetree/bindings/net/keystone-netcp.txt
index f9c07710478d..8368abdd5a34 100644
--- a/Documentation/devicetree/bindings/net/keystone-netcp.txt
+++ b/Documentation/devicetree/bindings/net/keystone-netcp.txt
@@ -49,6 +49,7 @@ Required properties:
49- compatible: Should be "ti,netcp-1.0" 49- compatible: Should be "ti,netcp-1.0"
50- clocks: phandle to the reference clocks for the subsystem. 50- clocks: phandle to the reference clocks for the subsystem.
51- dma-id: Navigator packet dma instance id. 51- dma-id: Navigator packet dma instance id.
52- ranges: address range of NetCP (includes, Ethernet SS, PA and SA)
52 53
53Optional properties: 54Optional properties:
54- reg: register location and the size for the following register 55- reg: register location and the size for the following register
@@ -66,8 +67,10 @@ Required properties:
66- label: Must be "netcp-gbe" for 1Gb & "netcp-xgbe" for 10Gb. 67- label: Must be "netcp-gbe" for 1Gb & "netcp-xgbe" for 10Gb.
67- reg: register location and the size for the following register 68- reg: register location and the size for the following register
68 regions in the specified order. 69 regions in the specified order.
69 - subsystem registers 70 - switch subsystem registers
70 - serdes registers 71 - sgmii port3/4 module registers (only for NetCP 1.4)
72 - switch module registers
73 - serdes registers (only for 10G)
71- tx-channel: the navigator packet dma channel name for tx. 74- tx-channel: the navigator packet dma channel name for tx.
72- tx-queue: the navigator queue number associated with the tx dma channel. 75- tx-queue: the navigator queue number associated with the tx dma channel.
73- interfaces: specification for each of the switch port to be registered as a 76- interfaces: specification for each of the switch port to be registered as a
@@ -120,14 +123,13 @@ Optional properties:
120 123
121Example binding: 124Example binding:
122 125
123netcp: netcp@2090000 { 126netcp: netcp@2000000 {
124 reg = <0x2620110 0x8>; 127 reg = <0x2620110 0x8>;
125 reg-names = "efuse"; 128 reg-names = "efuse";
126 compatible = "ti,netcp-1.0"; 129 compatible = "ti,netcp-1.0";
127 #address-cells = <1>; 130 #address-cells = <1>;
128 #size-cells = <1>; 131 #size-cells = <1>;
129 ranges; 132 ranges = <0 0x2000000 0xfffff>;
130
131 clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>; 133 clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
132 dma-coherent; 134 dma-coherent;
133 /* big-endian; */ 135 /* big-endian; */
@@ -137,9 +139,9 @@ netcp: netcp@2090000 {
137 #address-cells = <1>; 139 #address-cells = <1>;
138 #size-cells = <1>; 140 #size-cells = <1>;
139 ranges; 141 ranges;
140 gbe@0x2090000 { 142 gbe@90000 {
141 label = "netcp-gbe"; 143 label = "netcp-gbe";
142 reg = <0x2090000 0xf00>; 144 reg = <0x90000 0x300>, <0x90400 0x400>, <0x90800 0x700>;
143 /* enable-ale; */ 145 /* enable-ale; */
144 tx-queue = <648>; 146 tx-queue = <648>;
145 tx-channel = <8>; 147 tx-channel = <8>;