xref: /linux/arch/arm/boot/dts/ti/keystone/keystone-k2e-netcp.dtsi (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Device Tree Source for Keystone 2 Edison Netcp driver
4724ba675SRob Herring *
5*11621bedSNishanth Menon * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com/
6724ba675SRob Herring */
7724ba675SRob Herring
8724ba675SRob Herringqmss: qmss@2a40000 {
9724ba675SRob Herring	compatible = "ti,keystone-navigator-qmss";
10724ba675SRob Herring	dma-coherent;
11724ba675SRob Herring	#address-cells = <1>;
12724ba675SRob Herring	#size-cells = <1>;
13724ba675SRob Herring	clocks = <&chipclk13>;
14724ba675SRob Herring	ranges;
15724ba675SRob Herring	queue-range = <0 0x2000>;
16724ba675SRob Herring	linkram0 = <0x100000 0x4000>;
17724ba675SRob Herring	linkram1 = <0 0x10000>;
18724ba675SRob Herring
19724ba675SRob Herring	qmgrs {
20724ba675SRob Herring		#address-cells = <1>;
21724ba675SRob Herring		#size-cells = <1>;
22724ba675SRob Herring		ranges;
23724ba675SRob Herring		qmgr0 {
24724ba675SRob Herring			managed-queues = <0 0x2000>;
25724ba675SRob Herring			reg = <0x2a40000 0x20000>,
26724ba675SRob Herring			      <0x2a06000 0x400>,
27724ba675SRob Herring			      <0x2a02000 0x1000>,
28724ba675SRob Herring			      <0x2a03000 0x1000>,
29724ba675SRob Herring			      <0x23a80000 0x20000>,
30724ba675SRob Herring			      <0x2a80000 0x20000>;
31724ba675SRob Herring			reg-names = "peek", "status", "config",
32724ba675SRob Herring				    "region", "push", "pop";
33724ba675SRob Herring		};
34724ba675SRob Herring	};
35724ba675SRob Herring	queue-pools {
36724ba675SRob Herring		qpend {
37724ba675SRob Herring			qpend-0 {
38724ba675SRob Herring				qrange = <658 8>;
39724ba675SRob Herring				interrupts = <0 40 0xf04 0 41 0xf04 0 42 0xf04
40724ba675SRob Herring					      0 43 0xf04 0 44 0xf04 0 45 0xf04
41724ba675SRob Herring					      0 46 0xf04 0 47 0xf04>;
42724ba675SRob Herring			};
43724ba675SRob Herring			qpend-1 {
44724ba675SRob Herring				qrange = <528 16>;
45724ba675SRob Herring				interrupts = <0 48 0xf04 0 49 0xf04 0 50 0xf04
46724ba675SRob Herring					      0 51 0xf04 0 52 0xf04 0 53 0xf04
47724ba675SRob Herring					      0 54 0xf04 0 55 0xf04 0 56 0xf04
48724ba675SRob Herring					      0 57 0xf04 0 58 0xf04 0 59 0xf04
49724ba675SRob Herring					      0 60 0xf04 0 61 0xf04 0 62 0xf04
50724ba675SRob Herring					      0 63 0xf04>;
51724ba675SRob Herring				qalloc-by-id;
52724ba675SRob Herring			};
53724ba675SRob Herring			qpend-2 {
54724ba675SRob Herring				qrange = <544 16>;
55724ba675SRob Herring				interrupts = <0 64 0xf04 0 65 0xf04 0 66 0xf04
56724ba675SRob Herring					      0 59 0xf04 0 68 0xf04 0 69 0xf04
57724ba675SRob Herring					      0 70 0xf04 0 71 0xf04 0 72 0xf04
58724ba675SRob Herring					      0 73 0xf04 0 74 0xf04 0 75 0xf04
59724ba675SRob Herring					      0 76 0xf04 0 77 0xf04 0 78 0xf04
60724ba675SRob Herring					      0 79 0xf04>;
61724ba675SRob Herring			};
62724ba675SRob Herring		};
63724ba675SRob Herring		general-purpose {
64724ba675SRob Herring			gp-0 {
65724ba675SRob Herring				qrange = <4000 64>;
66724ba675SRob Herring			};
67724ba675SRob Herring			netcp-tx {
68724ba675SRob Herring				qrange = <896 128>;
69724ba675SRob Herring				qalloc-by-id;
70724ba675SRob Herring			};
71724ba675SRob Herring		};
72724ba675SRob Herring		accumulator {
73724ba675SRob Herring			acc-low-0 {
74724ba675SRob Herring				qrange = <480 32>;
75724ba675SRob Herring				accumulator = <0 47 16 2 50>;
76724ba675SRob Herring				interrupts = <0 226 0xf01>;
77724ba675SRob Herring				multi-queue;
78724ba675SRob Herring				qalloc-by-id;
79724ba675SRob Herring			};
80724ba675SRob Herring		};
81724ba675SRob Herring	};
82724ba675SRob Herring
83724ba675SRob Herring	descriptor-regions {
84724ba675SRob Herring		#address-cells = <1>;
85724ba675SRob Herring		#size-cells = <1>;
86724ba675SRob Herring		ranges;
87724ba675SRob Herring		region-12 {
88724ba675SRob Herring			id = <12>;
89724ba675SRob Herring			region-spec = <8192 128>;	/* num_desc desc_size */
90724ba675SRob Herring			link-index = <0x4000>;
91724ba675SRob Herring		};
92724ba675SRob Herring	};
93724ba675SRob Herring
94724ba675SRob Herring	pdsps {
95724ba675SRob Herring		#address-cells = <1>;
96724ba675SRob Herring		#size-cells = <1>;
97724ba675SRob Herring		ranges;
98724ba675SRob Herring		pdsp0@2a10000 {
99724ba675SRob Herring			reg = <0x2a10000 0x1000    /*iram */
100724ba675SRob Herring			       0x2a0f000 0x100     /*reg*/
101724ba675SRob Herring			       0x2a0c000 0x3c8	   /*intd */
102724ba675SRob Herring			       0x2a20000 0x4000>;  /*cmd*/
103724ba675SRob Herring			id = <0>;
104724ba675SRob Herring		};
105724ba675SRob Herring	};
106724ba675SRob Herring}; /* qmss */
107724ba675SRob Herring
108724ba675SRob Herringknav_dmas: knav_dmas@0 {
109724ba675SRob Herring	compatible = "ti,keystone-navigator-dma";
110724ba675SRob Herring	clocks = <&papllclk>;
111724ba675SRob Herring	#address-cells = <1>;
112724ba675SRob Herring	#size-cells = <1>;
113724ba675SRob Herring	ranges;
114724ba675SRob Herring	ti,navigator-cloud-address = <0x23a80000 0x23a90000
115724ba675SRob Herring				 0x23a80000 0x23a90000>;
116724ba675SRob Herring
117724ba675SRob Herring	dma_gbe: dma_gbe@0 {
118724ba675SRob Herring		reg = <0x24186000 0x100>,
119724ba675SRob Herring			  <0x24187000 0x2a0>,
120724ba675SRob Herring			  <0x24188000 0xb60>,
121724ba675SRob Herring			  <0x24186100 0x80>,
122724ba675SRob Herring			  <0x24189000 0x1000>;
123724ba675SRob Herring		reg-names = "global", "txchan", "rxchan",
124724ba675SRob Herring				"txsched", "rxflow";
125724ba675SRob Herring	};
126724ba675SRob Herring};
127724ba675SRob Herring
128724ba675SRob Herringnetcp: netcp@24000000 {
129724ba675SRob Herring	reg = <0x2620110 0x8>;
130724ba675SRob Herring	reg-names = "efuse";
131724ba675SRob Herring	compatible = "ti,netcp-1.0";
132724ba675SRob Herring	#address-cells = <1>;
133724ba675SRob Herring	#size-cells = <1>;
134724ba675SRob Herring
135724ba675SRob Herring	/* NetCP address range */
136724ba675SRob Herring	ranges = <0 0x24000000 0x1000000>;
137724ba675SRob Herring
138724ba675SRob Herring	clocks = <&clkpa>, <&clkcpgmac>;
139724ba675SRob Herring	clock-names = "pa_clk", "ethss_clk";
140724ba675SRob Herring	dma-coherent;
141724ba675SRob Herring
142724ba675SRob Herring	ti,navigator-dmas = <&dma_gbe 0>,
143724ba675SRob Herring			<&dma_gbe 8>,
144724ba675SRob Herring			<&dma_gbe 0>;
145724ba675SRob Herring	ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
146724ba675SRob Herring
147724ba675SRob Herring	netcp-devices {
148724ba675SRob Herring		#address-cells = <1>;
149724ba675SRob Herring		#size-cells = <1>;
150724ba675SRob Herring		ranges;
151724ba675SRob Herring		gbe@200000 { /* ETHSS */
152724ba675SRob Herring			label = "netcp-gbe";
153724ba675SRob Herring			compatible = "ti,netcp-gbe-9";
154724ba675SRob Herring			reg = <0x200000 0x900>, <0x220000 0x20000>;
155724ba675SRob Herring			/* enable-ale; */
156724ba675SRob Herring			tx-queue = <896>;
157724ba675SRob Herring			tx-channel = "nettx";
158724ba675SRob Herring
159724ba675SRob Herring			cpts {
160724ba675SRob Herring				clocks = <&cpts_refclk_mux>;
161724ba675SRob Herring				clock-names = "cpts";
162724ba675SRob Herring
163724ba675SRob Herring				cpts_refclk_mux: cpts-refclk-mux {
164724ba675SRob Herring					#clock-cells = <0>;
165724ba675SRob Herring					clocks = <&chipclk12>, <&chipclk13>,
166724ba675SRob Herring						 <&timi0>, <&timi1>,
167724ba675SRob Herring						 <&tsipclka>, <&tsrefclk>,
168724ba675SRob Herring						 <&tsipclkb>;
169724ba675SRob Herring					ti,mux-tbl = <0x0>, <0x1>, <0x2>,
170724ba675SRob Herring						<0x3>, <0x4>, <0x8>, <0xc>;
171724ba675SRob Herring					assigned-clocks = <&cpts_refclk_mux>;
172724ba675SRob Herring					assigned-clock-parents = <&chipclk12>;
173724ba675SRob Herring				};
174724ba675SRob Herring			};
175724ba675SRob Herring
176724ba675SRob Herring			interfaces {
177724ba675SRob Herring				gbe0: interface-0 {
178724ba675SRob Herring					slave-port = <0>;
179724ba675SRob Herring					link-interface = <1>;
180724ba675SRob Herring					phy-handle = <&ethphy0>;
181724ba675SRob Herring				};
182724ba675SRob Herring				gbe1: interface-1 {
183724ba675SRob Herring					slave-port = <1>;
184724ba675SRob Herring					link-interface = <1>;
185724ba675SRob Herring					phy-handle = <&ethphy1>;
186724ba675SRob Herring				};
187724ba675SRob Herring			};
188724ba675SRob Herring
189724ba675SRob Herring			secondary-slave-ports {
190724ba675SRob Herring				port-2 {
191724ba675SRob Herring					slave-port = <2>;
192724ba675SRob Herring					link-interface = <2>;
193724ba675SRob Herring				};
194724ba675SRob Herring				port-3 {
195724ba675SRob Herring					slave-port = <3>;
196724ba675SRob Herring					link-interface = <2>;
197724ba675SRob Herring				};
198724ba675SRob Herring				port-4 {
199724ba675SRob Herring					slave-port = <4>;
200724ba675SRob Herring					link-interface = <2>;
201724ba675SRob Herring				};
202724ba675SRob Herring				port-5 {
203724ba675SRob Herring					slave-port = <5>;
204724ba675SRob Herring					link-interface = <2>;
205724ba675SRob Herring				};
206724ba675SRob Herring				port-6 {
207724ba675SRob Herring					slave-port = <6>;
208724ba675SRob Herring					link-interface = <2>;
209724ba675SRob Herring				};
210724ba675SRob Herring				port-7 {
211724ba675SRob Herring					slave-port = <7>;
212724ba675SRob Herring					link-interface = <2>;
213724ba675SRob Herring				};
214724ba675SRob Herring			};
215724ba675SRob Herring		};
216724ba675SRob Herring	};
217724ba675SRob Herring
218724ba675SRob Herring	netcp-interfaces {
219724ba675SRob Herring		interface-0 {
220724ba675SRob Herring			rx-channel = "netrx0";
221724ba675SRob Herring			rx-pool = <1024 12>;
222724ba675SRob Herring			tx-pool = <1024 12>;
223724ba675SRob Herring			rx-queue-depth = <128 128 0 0>;
224724ba675SRob Herring			rx-buffer-size = <1518 4096 0 0>;
225724ba675SRob Herring			rx-queue = <528>;
226724ba675SRob Herring			tx-completion-queue = <530>;
227724ba675SRob Herring			efuse-mac = <1>;
228724ba675SRob Herring			netcp-gbe = <&gbe0>;
229724ba675SRob Herring
230724ba675SRob Herring		};
231724ba675SRob Herring		interface-1 {
232724ba675SRob Herring			rx-channel = "netrx1";
233724ba675SRob Herring			rx-pool = <1024 12>;
234724ba675SRob Herring			tx-pool = <1024 12>;
235724ba675SRob Herring			rx-queue-depth = <128 128 0 0>;
236724ba675SRob Herring			rx-buffer-size = <1518 4096 0 0>;
237724ba675SRob Herring			rx-queue = <529>;
238724ba675SRob Herring			tx-completion-queue = <531>;
239724ba675SRob Herring			efuse-mac = <0>;
240724ba675SRob Herring			local-mac-address = [02 18 31 7e 3e 00];
241724ba675SRob Herring			netcp-gbe = <&gbe1>;
242724ba675SRob Herring		};
243724ba675SRob Herring	};
244724ba675SRob Herring};
245724ba675SRob Herring
246724ba675SRob Herringsa_subsys: subsys@24080000 {
247724ba675SRob Herring	#address-cells = <1>;
248724ba675SRob Herring	#size-cells = <1>;
249724ba675SRob Herring	compatible = "simple-bus";
250724ba675SRob Herring	ranges = <0 0x24080000 0x40000>;
251724ba675SRob Herring
252724ba675SRob Herring	sa_config: subsys@0 {
253724ba675SRob Herring		compatible = "syscon";
254724ba675SRob Herring		reg = <0x0 0x100>;
255724ba675SRob Herring	};
256724ba675SRob Herring
257724ba675SRob Herring	rng@24000 {
258724ba675SRob Herring		compatible = "ti,keystone-rng";
259724ba675SRob Herring		reg = <0x24000 0x1000>;
260724ba675SRob Herring		ti,syscon-sa-cfg = <&sa_config>;
261724ba675SRob Herring		clocks = <&clksa>;
262724ba675SRob Herring		clock-names = "fck";
263724ba675SRob Herring	};
264724ba675SRob Herring};
265