Loading...
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for Keystone 2 Edison Netcp driver
4 *
5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/
6 */
7
8qmss: qmss@2a40000 {
9 compatible = "ti,keystone-navigator-qmss";
10 dma-coherent;
11 #address-cells = <1>;
12 #size-cells = <1>;
13 clocks = <&chipclk13>;
14 ranges;
15 queue-range = <0 0x2000>;
16 linkram0 = <0x100000 0x4000>;
17 linkram1 = <0 0x10000>;
18
19 qmgrs {
20 #address-cells = <1>;
21 #size-cells = <1>;
22 ranges;
23 qmgr0 {
24 managed-queues = <0 0x2000>;
25 reg = <0x2a40000 0x20000>,
26 <0x2a06000 0x400>,
27 <0x2a02000 0x1000>,
28 <0x2a03000 0x1000>,
29 <0x23a80000 0x20000>,
30 <0x2a80000 0x20000>;
31 reg-names = "peek", "status", "config",
32 "region", "push", "pop";
33 };
34 };
35 queue-pools {
36 qpend {
37 qpend-0 {
38 qrange = <658 8>;
39 interrupts =<0 40 0xf04 0 41 0xf04 0 42 0xf04
40 0 43 0xf04 0 44 0xf04 0 45 0xf04
41 0 46 0xf04 0 47 0xf04>;
42 };
43 qpend-1 {
44 qrange = <528 16>;
45 interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
46 0 51 0xf04 0 52 0xf04 0 53 0xf04
47 0 54 0xf04 0 55 0xf04 0 56 0xf04
48 0 57 0xf04 0 58 0xf04 0 59 0xf04
49 0 60 0xf04 0 61 0xf04 0 62 0xf04
50 0 63 0xf04>;
51 qalloc-by-id;
52 };
53 qpend-2 {
54 qrange = <544 16>;
55 interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
56 0 59 0xf04 0 68 0xf04 0 69 0xf04
57 0 70 0xf04 0 71 0xf04 0 72 0xf04
58 0 73 0xf04 0 74 0xf04 0 75 0xf04
59 0 76 0xf04 0 77 0xf04 0 78 0xf04
60 0 79 0xf04>;
61 };
62 };
63 general-purpose {
64 gp-0 {
65 qrange = <4000 64>;
66 };
67 netcp-tx {
68 qrange = <896 128>;
69 qalloc-by-id;
70 };
71 };
72 accumulator {
73 acc-low-0 {
74 qrange = <480 32>;
75 accumulator = <0 47 16 2 50>;
76 interrupts = <0 226 0xf01>;
77 multi-queue;
78 qalloc-by-id;
79 };
80 };
81 };
82
83 descriptor-regions {
84 #address-cells = <1>;
85 #size-cells = <1>;
86 ranges;
87 region-12 {
88 id = <12>;
89 region-spec = <8192 128>; /* num_desc desc_size */
90 link-index = <0x4000>;
91 };
92 };
93
94 pdsps {
95 #address-cells = <1>;
96 #size-cells = <1>;
97 ranges;
98 pdsp0@0x2a10000 {
99 reg = <0x2a10000 0x1000 /*iram */
100 0x2a0f000 0x100 /*reg*/
101 0x2a0c000 0x3c8 /*intd */
102 0x2a20000 0x4000>; /*cmd*/
103 id = <0>;
104 };
105 };
106}; /* qmss */
107
108knav_dmas: knav_dmas@0 {
109 compatible = "ti,keystone-navigator-dma";
110 clocks = <&papllclk>;
111 #address-cells = <1>;
112 #size-cells = <1>;
113 ranges;
114 ti,navigator-cloud-address = <0x23a80000 0x23a90000
115 0x23a80000 0x23a90000>;
116
117 dma_gbe: dma_gbe@0 {
118 reg = <0x24186000 0x100>,
119 <0x24187000 0x2a0>,
120 <0x24188000 0xb60>,
121 <0x24186100 0x80>,
122 <0x24189000 0x1000>;
123 reg-names = "global", "txchan", "rxchan",
124 "txsched", "rxflow";
125 };
126};
127
128netcp: netcp@24000000 {
129 reg = <0x2620110 0x8>;
130 reg-names = "efuse";
131 compatible = "ti,netcp-1.0";
132 #address-cells = <1>;
133 #size-cells = <1>;
134
135 /* NetCP address range */
136 ranges = <0 0x24000000 0x1000000>;
137
138 clocks = <&clkpa>, <&clkcpgmac>, <&chipclk12>;
139 clock-names = "pa_clk", "ethss_clk", "cpts";
140 dma-coherent;
141
142 ti,navigator-dmas = <&dma_gbe 0>,
143 <&dma_gbe 8>,
144 <&dma_gbe 0>;
145 ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
146
147 netcp-devices {
148 #address-cells = <1>;
149 #size-cells = <1>;
150 ranges;
151 gbe@200000 { /* ETHSS */
152 label = "netcp-gbe";
153 compatible = "ti,netcp-gbe-9";
154 reg = <0x200000 0x900>, <0x220000 0x20000>;
155 /* enable-ale; */
156 tx-queue = <896>;
157 tx-channel = "nettx";
158
159 interfaces {
160 gbe0: interface-0 {
161 slave-port = <0>;
162 link-interface = <1>;
163 phy-handle = <ðphy0>;
164 };
165 gbe1: interface-1 {
166 slave-port = <1>;
167 link-interface = <1>;
168 phy-handle = <ðphy1>;
169 };
170 };
171
172 secondary-slave-ports {
173 port-2 {
174 slave-port = <2>;
175 link-interface = <2>;
176 };
177 port-3 {
178 slave-port = <3>;
179 link-interface = <2>;
180 };
181 port-4 {
182 slave-port = <4>;
183 link-interface = <2>;
184 };
185 port-5 {
186 slave-port = <5>;
187 link-interface = <2>;
188 };
189 port-6 {
190 slave-port = <6>;
191 link-interface = <2>;
192 };
193 port-7 {
194 slave-port = <7>;
195 link-interface = <2>;
196 };
197 };
198 };
199 };
200
201 netcp-interfaces {
202 interface-0 {
203 rx-channel = "netrx0";
204 rx-pool = <1024 12>;
205 tx-pool = <1024 12>;
206 rx-queue-depth = <128 128 0 0>;
207 rx-buffer-size = <1518 4096 0 0>;
208 rx-queue = <528>;
209 tx-completion-queue = <530>;
210 efuse-mac = <1>;
211 netcp-gbe = <&gbe0>;
212
213 };
214 interface-1 {
215 rx-channel = "netrx1";
216 rx-pool = <1024 12>;
217 tx-pool = <1024 12>;
218 rx-queue-depth = <128 128 0 0>;
219 rx-buffer-size = <1518 4096 0 0>;
220 rx-queue = <529>;
221 tx-completion-queue = <531>;
222 efuse-mac = <0>;
223 local-mac-address = [02 18 31 7e 3e 00];
224 netcp-gbe = <&gbe1>;
225 };
226 };
227};
228
229sa_subsys: subsys@24080000 {
230 #address-cells = <1>;
231 #size-cells = <1>;
232 compatible = "simple-bus";
233 ranges = <0 0x24080000 0x40000>;
234
235 sa_config: subsys@0 {
236 compatible = "syscon";
237 reg = <0x0 0x100>;
238 };
239
240 rng@24000 {
241 compatible = "ti,keystone-rng";
242 reg = <0x24000 0x1000>;
243 ti,syscon-sa-cfg = <&sa_config>;
244 clocks = <&clksa>;
245 clock-names = "fck";
246 };
247};
1/*
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 accumulator {
76 acc-low-0 {
77 qrange = <480 32>;
78 accumulator = <0 47 16 2 50>;
79 interrupts = <0 226 0xf01>;
80 multi-queue;
81 qalloc-by-id;
82 };
83 };
84 };
85
86 descriptor-regions {
87 #address-cells = <1>;
88 #size-cells = <1>;
89 ranges;
90 region-12 {
91 id = <12>;
92 region-spec = <8192 128>; /* num_desc desc_size */
93 link-index = <0x4000>;
94 };
95 };
96
97 pdsps {
98 #address-cells = <1>;
99 #size-cells = <1>;
100 ranges;
101 pdsp0@0x2a10000 {
102 reg = <0x2a10000 0x1000 /*iram */
103 0x2a0f000 0x100 /*reg*/
104 0x2a0c000 0x3c8 /*intd */
105 0x2a20000 0x4000>; /*cmd*/
106 id = <0>;
107 };
108 };
109}; /* qmss */
110
111knav_dmas: knav_dmas@0 {
112 compatible = "ti,keystone-navigator-dma";
113 clocks = <&papllclk>;
114 #address-cells = <1>;
115 #size-cells = <1>;
116 ranges;
117 ti,navigator-cloud-address = <0x23a80000 0x23a90000
118 0x23a80000 0x23a90000>;
119
120 dma_gbe: dma_gbe@0 {
121 reg = <0x24186000 0x100>,
122 <0x24187000 0x2a0>,
123 <0x24188000 0xb60>,
124 <0x24186100 0x80>,
125 <0x24189000 0x1000>;
126 reg-names = "global", "txchan", "rxchan",
127 "txsched", "rxflow";
128 };
129};
130
131netcp: netcp@24000000 {
132 reg = <0x2620110 0x8>;
133 reg-names = "efuse";
134 compatible = "ti,netcp-1.0";
135 #address-cells = <1>;
136 #size-cells = <1>;
137
138 /* NetCP address range */
139 ranges = <0 0x24000000 0x1000000>;
140
141 clocks = <&papllclk>, <&clkcpgmac>, <&chipclk12>;
142 dma-coherent;
143
144 ti,navigator-dmas = <&dma_gbe 0>,
145 <&dma_gbe 8>,
146 <&dma_gbe 0>;
147 ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
148
149 netcp-devices {
150 #address-cells = <1>;
151 #size-cells = <1>;
152 ranges;
153 gbe@200000 { /* ETHSS */
154 label = "netcp-gbe";
155 compatible = "ti,netcp-gbe-9";
156 reg = <0x200000 0x900>, <0x220000 0x20000>;
157 /* enable-ale; */
158 tx-queue = <896>;
159 tx-channel = "nettx";
160
161 interfaces {
162 gbe0: interface-0 {
163 slave-port = <0>;
164 link-interface = <1>;
165 phy-handle = <ðphy0>;
166 };
167 gbe1: interface-1 {
168 slave-port = <1>;
169 link-interface = <1>;
170 phy-handle = <ðphy1>;
171 };
172 };
173
174 secondary-slave-ports {
175 port-2 {
176 slave-port = <2>;
177 link-interface = <2>;
178 };
179 port-3 {
180 slave-port = <3>;
181 link-interface = <2>;
182 };
183 port-4 {
184 slave-port = <4>;
185 link-interface = <2>;
186 };
187 port-5 {
188 slave-port = <5>;
189 link-interface = <2>;
190 };
191 port-6 {
192 slave-port = <6>;
193 link-interface = <2>;
194 };
195 port-7 {
196 slave-port = <7>;
197 link-interface = <2>;
198 };
199 };
200 };
201 };
202
203 netcp-interfaces {
204 interface-0 {
205 rx-channel = "netrx0";
206 rx-pool = <1024 12>;
207 tx-pool = <1024 12>;
208 rx-queue-depth = <128 128 0 0>;
209 rx-buffer-size = <1518 4096 0 0>;
210 rx-queue = <528>;
211 tx-completion-queue = <530>;
212 efuse-mac = <1>;
213 netcp-gbe = <&gbe0>;
214
215 };
216 interface-1 {
217 rx-channel = "netrx1";
218 rx-pool = <1024 12>;
219 tx-pool = <1024 12>;
220 rx-queue-depth = <128 128 0 0>;
221 rx-buffer-size = <1518 4096 0 0>;
222 rx-queue = <529>;
223 tx-completion-queue = <531>;
224 efuse-mac = <0>;
225 local-mac-address = [02 18 31 7e 3e 00];
226 netcp-gbe = <&gbe1>;
227 };
228 };
229};