xref: /linux/scripts/dtc/include-prefixes/arm/ti/keystone/keystone-k2l-netcp.dtsi (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Device Tree Source for Keystone 2 Lamarr 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 = <0x70000000 0x10000>; /* 1MB OSR mem */
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			};
79724ba675SRob Herring		};
80724ba675SRob Herring	};
81724ba675SRob Herring
82724ba675SRob Herring	descriptor-regions {
83724ba675SRob Herring		#address-cells = <1>;
84724ba675SRob Herring		#size-cells = <1>;
85724ba675SRob Herring		ranges;
86724ba675SRob Herring		region-12 {
87724ba675SRob Herring			id = <12>;
88724ba675SRob Herring			region-spec = <8192 128>;	/* num_desc desc_size */
89724ba675SRob Herring			link-index = <0x4000>;
90724ba675SRob Herring		};
91724ba675SRob Herring	};
92724ba675SRob Herring
93724ba675SRob Herring	pdsps {
94724ba675SRob Herring		#address-cells = <1>;
95724ba675SRob Herring		#size-cells = <1>;
96724ba675SRob Herring		ranges;
97724ba675SRob Herring		pdsp0@2a10000 {
98724ba675SRob Herring			reg = <0x2a10000 0x1000    /*iram */
99724ba675SRob Herring			       0x2a0f000 0x100     /*reg*/
100724ba675SRob Herring			       0x2a0c000 0x3c8	   /*intd */
101724ba675SRob Herring			       0x2a20000 0x4000>;  /*cmd*/
102724ba675SRob Herring			id = <0>;
103724ba675SRob Herring		};
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
116724ba675SRob Herring	dma_gbe: dma_gbe@0 {
117724ba675SRob Herring		reg = <0x26186000 0x100>,
118724ba675SRob Herring			  <0x26187000 0x2a0>,
119724ba675SRob Herring			  <0x26188000 0xb60>,
120724ba675SRob Herring			  <0x26186100 0x80>,
121724ba675SRob Herring			  <0x26189000 0x1000>;
122724ba675SRob Herring		reg-names = "global", "txchan", "rxchan",
123724ba675SRob Herring				"txsched", "rxflow";
124724ba675SRob Herring	};
125724ba675SRob Herring};
126724ba675SRob Herring
127724ba675SRob Herringnetcp: netcp@26000000 {
128724ba675SRob Herring	reg = <0x2620110 0x8>;
129724ba675SRob Herring	reg-names = "efuse";
130724ba675SRob Herring	compatible = "ti,netcp-1.0";
131724ba675SRob Herring	#address-cells = <1>;
132724ba675SRob Herring	#size-cells = <1>;
133724ba675SRob Herring
134724ba675SRob Herring	/* NetCP address range */
135724ba675SRob Herring	ranges = <0 0x26000000 0x1000000>;
136724ba675SRob Herring
137724ba675SRob Herring	clocks = <&clkpa>, <&clkcpgmac>;
138724ba675SRob Herring	clock-names = "pa_clk", "ethss_clk";
139724ba675SRob Herring	dma-coherent;
140724ba675SRob Herring
141724ba675SRob Herring	ti,navigator-dmas = <&dma_gbe 0>,
142724ba675SRob Herring			<&dma_gbe 8>,
143724ba675SRob Herring			<&dma_gbe 0>;
144724ba675SRob Herring	ti,navigator-dma-names = "netrx0", "netrx1", "nettx";
145724ba675SRob Herring
146724ba675SRob Herring	netcp-devices {
147724ba675SRob Herring		#address-cells = <1>;
148724ba675SRob Herring		#size-cells = <1>;
149724ba675SRob Herring		ranges;
150724ba675SRob Herring		gbe@200000 { /* ETHSS */
151724ba675SRob Herring			label = "netcp-gbe";
152724ba675SRob Herring			compatible = "ti,netcp-gbe-5";
153724ba675SRob Herring			reg = <0x200000 0x900>, <0x220000 0x20000>;
154724ba675SRob Herring			/* enable-ale; */
155724ba675SRob Herring			tx-queue = <896>;
156724ba675SRob Herring			tx-channel = "nettx";
157724ba675SRob Herring
158724ba675SRob Herring			cpts {
159724ba675SRob Herring				clocks = <&cpts_refclk_mux>;
160724ba675SRob Herring				clock-names = "cpts";
161724ba675SRob Herring
162724ba675SRob Herring				cpts_refclk_mux: cpts-refclk-mux {
163724ba675SRob Herring					#clock-cells = <0>;
164724ba675SRob Herring					clocks = <&chipclk12>, <&chipclk13>,
165724ba675SRob Herring						 <&timi0>, <&timi1>,
166724ba675SRob Herring						 <&tsrefclk>;
167724ba675SRob Herring					ti,mux-tbl = <0x0>, <0x1>, <0x2>,
168724ba675SRob Herring						<0x3>, <0x8>;
169724ba675SRob Herring					assigned-clocks = <&cpts_refclk_mux>;
170724ba675SRob Herring					assigned-clock-parents = <&chipclk12>;
171724ba675SRob Herring				};
172724ba675SRob Herring			};
173724ba675SRob Herring
174724ba675SRob Herring			interfaces {
175724ba675SRob Herring				gbe0: interface-0 {
176724ba675SRob Herring					slave-port = <0>;
177724ba675SRob Herring					link-interface = <1>;
178724ba675SRob Herring					phy-handle = <&ethphy0>;
179724ba675SRob Herring				};
180724ba675SRob Herring				gbe1: interface-1 {
181724ba675SRob Herring					slave-port = <1>;
182724ba675SRob Herring					link-interface = <1>;
183724ba675SRob Herring					phy-handle = <&ethphy1>;
184724ba675SRob Herring				};
185724ba675SRob Herring			};
186724ba675SRob Herring
187724ba675SRob Herring			secondary-slave-ports {
188724ba675SRob Herring				port-2 {
189724ba675SRob Herring					slave-port = <2>;
190724ba675SRob Herring					link-interface = <2>;
191724ba675SRob Herring				};
192724ba675SRob Herring				port-3 {
193724ba675SRob Herring					slave-port = <3>;
194724ba675SRob Herring					link-interface = <2>;
195724ba675SRob Herring				};
196724ba675SRob Herring			};
197724ba675SRob Herring		};
198724ba675SRob Herring	};
199724ba675SRob Herring
200724ba675SRob Herring	netcp-interfaces {
201724ba675SRob Herring		interface-0 {
202724ba675SRob Herring			rx-channel = "netrx0";
203724ba675SRob Herring			rx-pool = <1024 12>;
204724ba675SRob Herring			tx-pool = <1024 12>;
205724ba675SRob Herring			rx-queue-depth = <128 128 0 0>;
206724ba675SRob Herring			rx-buffer-size = <1518 4096 0 0>;
207724ba675SRob Herring			rx-queue = <528>;
208724ba675SRob Herring			tx-completion-queue = <530>;
209724ba675SRob Herring			efuse-mac = <1>;
210724ba675SRob Herring			netcp-gbe = <&gbe0>;
211724ba675SRob Herring
212724ba675SRob Herring		};
213724ba675SRob Herring		interface-1 {
214724ba675SRob Herring			rx-channel = "netrx1";
215724ba675SRob Herring			rx-pool = <1024 12>;
216724ba675SRob Herring			tx-pool = <1024 12>;
217724ba675SRob Herring			rx-queue-depth = <128 128 0 0>;
218724ba675SRob Herring			rx-buffer-size = <1518 4096 0 0>;
219724ba675SRob Herring			rx-queue = <529>;
220724ba675SRob Herring			tx-completion-queue = <531>;
221724ba675SRob Herring			efuse-mac = <0>;
222724ba675SRob Herring			local-mac-address = [02 18 31 7e 3e 7f];
223724ba675SRob Herring			netcp-gbe = <&gbe1>;
224724ba675SRob Herring		};
225724ba675SRob Herring	};
226724ba675SRob Herring};
227724ba675SRob Herring
228724ba675SRob Herringsa_subsys: subsys@26080000 {
229724ba675SRob Herring	#address-cells = <1>;
230724ba675SRob Herring	#size-cells = <1>;
231724ba675SRob Herring	compatible = "simple-bus";
232724ba675SRob Herring	ranges = <0 0x26080000 0x40000>;
233724ba675SRob Herring
234724ba675SRob Herring	sa_config: subsys@0 {
235724ba675SRob Herring		compatible = "syscon";
236724ba675SRob Herring		reg = <0x0 0x100>;
237724ba675SRob Herring	};
238724ba675SRob Herring
239724ba675SRob Herring	rng@24000 {
240724ba675SRob Herring		compatible = "ti,keystone-rng";
241724ba675SRob Herring		reg = <0x24000 0x1000>;
242724ba675SRob Herring		ti,syscon-sa-cfg = <&sa_config>;
243724ba675SRob Herring		clocks = <&clksa>;
244724ba675SRob Herring		clock-names = "fck";
245724ba675SRob Herring	};
246724ba675SRob Herring};
247