blob: b13b3c94e7fc251eacc37a382f1d9f9c2f100c4b [file] [log] [blame]
Lokesh Vutla16d7f5b2015-09-19 15:00:22 +05301/*
2 * Device Tree Source for Keystone 2 Edison Netcp driver
3 *
4 * Copyright 2015 Texas Instruments, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11qmss: qmss@2a40000 {
12 compatible = "ti,keystone-navigator-qmss";
13 dma-coherent;
14 #address-cells = <1>;
15 #size-cells = <1>;
16 clocks = <&chipclk13>;
17 ranges;
18 queue-range = <0 0x2000>;
19 linkram0 = <0x100000 0x4000>;
20 linkram1 = <0 0x10000>;
21
22 qmgrs {
23 #address-cells = <1>;
24 #size-cells = <1>;
25 ranges;
26 qmgr0 {
27 managed-queues = <0 0x2000>;
28 reg = <0x2a40000 0x20000>,
29 <0x2a06000 0x400>,
30 <0x2a02000 0x1000>,
31 <0x2a03000 0x1000>,
32 <0x23a80000 0x20000>,
33 <0x2a80000 0x20000>;
34 reg-names = "peek", "status", "config",
35 "region", "push", "pop";
36 };
37 };
38 queue-pools {
39 qpend {
40 qpend-0 {
41 qrange = <658 8>;
42 interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
43 0 43 0xf04 0 44 0xf04 0 45 0xf04
44 0 46 0xf04 0 47 0xf04>;
45 };
46 qpend-1 {
47 qrange = <528 16>;
48 interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
49 0 51 0xf04 0 52 0xf04 0 53 0xf04
50 0 54 0xf04 0 55 0xf04 0 56 0xf04
51 0 57 0xf04 0 58 0xf04 0 59 0xf04
52 0 60 0xf04 0 61 0xf04 0 62 0xf04
53 0 63 0xf04>;
54 qalloc-by-id;
55 };
56 qpend-2 {
57 qrange = <544 16>;
58 interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
59 0 59 0xf04 0 68 0xf04 0 69 0xf04
60 0 70 0xf04 0 71 0xf04 0 72 0xf04
61 0 73 0xf04 0 74 0xf04 0 75 0xf04
62 0 76 0xf04 0 77 0xf04 0 78 0xf04
63 0 79 0xf04>;
64 };
65 };
66 general-purpose {
67 gp-0 {
68 qrange = <4000 64>;
69 };
70 netcp-tx {
71 qrange = <896 128>;
72 qalloc-by-id;
73 };
74 };
75 };
76 descriptor-regions {
77 #address-cells = <1>;
78 #size-cells = <1>;
79 ranges;
80 region-12 {
81 id = <12>;
82 region-spec = <8192 128>; /* num_desc desc_size */
83 link-index = <0x4000>;
84 };
85 };
86}; /* qmss */
87
88knav_dmas: knav_dmas@0 {
89 compatible = "ti,keystone-navigator-dma";
90 clocks = <&papllclk>;
91 #address-cells = <1>;
92 #size-cells = <1>;
93 ranges;
94 ti,navigator-cloud-address = <0x23a80000 0x23a90000
95 0x23a80000 0x23a90000>;
96
97 dma_gbe: dma_gbe@0 {
98 reg = <0x24186000 0x100>,
99 <0x24187000 0x2a0>,
100 <0x24188000 0xb60>,
101 <0x24186100 0x80>,
102 <0x24189000 0x1000>;
103 reg-names = "global", "txchan", "rxchan",
104 "txsched", "rxflow";
105 };
106};
107
108netcp: netcp@24000000 {
109 reg = <0x2620110 0x8>;
110 reg-names = "efuse";
111 compatible = "ti,netcp-1.0";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 /* NetCP address range */
116 ranges = <0 0x24000000 0x1000000>;
117
118 clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
119 dma-coherent;
120
121 ti,navigator-dmas = <&dma_gbe 0>,
122 <&dma_gbe 8>,
123 <&dma_gbe 0>;
124 ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
125
126 netcp-devices {
127 #address-cells = <1>;
128 #size-cells = <1>;
129 ranges;
130 gbe@200000 { /* ETHSS */
131 label = "netcp-gbe";
132 compatible = "ti,netcp-gbe-9";
133 reg = <0x200000 0x900>, <0x220000 0x20000>;
134 /* enable-ale; */
135 tx-queue = <896>;
136 tx-channel = "nettx";
137
138 interfaces {
139 gbe0: interface-0 {
140 slave-port = <0>;
141 link-interface = <1>;
142 phy-handle = <&ethphy0>;
143 };
144 gbe1: interface-1 {
145 slave-port = <1>;
146 link-interface = <1>;
147 phy-handle = <&ethphy1>;
148 };
149 };
150
151 secondary-slave-ports {
152 port-2 {
153 slave-port = <2>;
154 link-interface = <2>;
155 };
156 port-3 {
157 slave-port = <3>;
158 link-interface = <2>;
159 };
160 port-4 {
161 slave-port = <4>;
162 link-interface = <2>;
163 };
164 port-5 {
165 slave-port = <5>;
166 link-interface = <2>;
167 };
168 port-6 {
169 slave-port = <6>;
170 link-interface = <2>;
171 };
172 port-7 {
173 slave-port = <7>;
174 link-interface = <2>;
175 };
176 };
177 };
178 };
179
180 netcp-interfaces {
181 interface-0 {
182 rx-channel = "netrx0";
183 rx-pool = <1024 12>;
184 tx-pool = <1024 12>;
185 rx-queue-depth = <128 128 0 0>;
186 rx-buffer-size = <1518 4096 0 0>;
187 rx-queue = <528>;
188 tx-completion-queue = <530>;
189 efuse-mac = <1>;
190 netcp-gbe = <&gbe0>;
191
192 };
193 interface-1 {
194 rx-channel = "netrx1";
195 rx-pool = <1024 12>;
196 tx-pool = <1024 12>;
197 rx-queue-depth = <128 128 0 0>;
198 rx-buffer-size = <1518 4096 0 0>;
199 rx-queue = <529>;
200 tx-completion-queue = <531>;
201 efuse-mac = <0>;
202 local-mac-address = [02 18 31 7e 3e 00];
203 netcp-gbe = <&gbe1>;
204 };
205 };
206};