1/*
2 * P4080/P4040 Silicon/SoC Device Tree Source (post include)
3 *
4 * Copyright 2011 Freescale Semiconductor Inc.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *     * Redistributions of source code must retain the above copyright
9 *       notice, this list of conditions and the following disclaimer.
10 *     * Redistributions in binary form must reproduce the above copyright
11 *       notice, this list of conditions and the following disclaimer in the
12 *       documentation and/or other materials provided with the distribution.
13 *     * Neither the name of Freescale Semiconductor nor the
14 *       names of its contributors may be used to endorse or promote products
15 *       derived from this software without specific prior written permission.
16 *
17 *
18 * ALTERNATIVELY, this software may be distributed under the terms of the
19 * GNU General Public License ("GPL") as published by the Free Software
20 * Foundation, either version 2 of that License or (at your option) any
21 * later version.
22 *
23 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
24 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35&lbc {
36	compatible = "fsl,p4080-elbc", "fsl,elbc", "simple-bus";
37	interrupts = <25 2 0 0>;
38	#address-cells = <2>;
39	#size-cells = <1>;
40};
41
42/* controller at 0x200000 */
43&pci0 {
44	compatible = "fsl,p4080-pcie", "fsl,qoriq-pcie-v2.1";
45	device_type = "pci";
46	#size-cells = <2>;
47	#address-cells = <3>;
48	bus-range = <0x0 0xff>;
49	clock-frequency = <33333333>;
50	interrupts = <16 2 1 15>;
51	fsl,iommu-parent = <&pamu0>;
52	fsl,liodn-reg = <&guts 0x500>; /* PEX1LIODNR */
53	pcie@0 {
54		reg = <0 0 0 0 0>;
55		#interrupt-cells = <1>;
56		#size-cells = <2>;
57		#address-cells = <3>;
58		device_type = "pci";
59		interrupts = <16 2 1 15>;
60		interrupt-map-mask = <0xf800 0 0 7>;
61		interrupt-map = <
62			/* IDSEL 0x0 */
63			0000 0 0 1 &mpic 40 1 0 0
64			0000 0 0 2 &mpic 1 1 0 0
65			0000 0 0 3 &mpic 2 1 0 0
66			0000 0 0 4 &mpic 3 1 0 0
67			>;
68	};
69};
70
71/* controller at 0x201000 */
72&pci1 {
73	compatible = "fsl,p4080-pcie", "fsl,qoriq-pcie-v2.1";
74	device_type = "pci";
75	#size-cells = <2>;
76	#address-cells = <3>;
77	bus-range = <0 0xff>;
78	clock-frequency = <33333333>;
79	interrupts = <16 2 1 14>;
80	fsl,iommu-parent = <&pamu0>;
81	fsl,liodn-reg = <&guts 0x504>; /* PEX2LIODNR */
82	pcie@0 {
83		reg = <0 0 0 0 0>;
84		#interrupt-cells = <1>;
85		#size-cells = <2>;
86		#address-cells = <3>;
87		device_type = "pci";
88		interrupts = <16 2 1 14>;
89		interrupt-map-mask = <0xf800 0 0 7>;
90		interrupt-map = <
91			/* IDSEL 0x0 */
92			0000 0 0 1 &mpic 41 1 0 0
93			0000 0 0 2 &mpic 5 1 0 0
94			0000 0 0 3 &mpic 6 1 0 0
95			0000 0 0 4 &mpic 7 1 0 0
96			>;
97	};
98};
99
100/* controller at 0x202000 */
101&pci2 {
102	compatible = "fsl,p4080-pcie", "fsl,qoriq-pcie-v2.1";
103	device_type = "pci";
104	#size-cells = <2>;
105	#address-cells = <3>;
106	bus-range = <0x0 0xff>;
107	clock-frequency = <33333333>;
108	interrupts = <16 2 1 13>;
109	fsl,iommu-parent = <&pamu0>;
110	fsl,liodn-reg = <&guts 0x508>; /* PEX3LIODNR */
111	pcie@0 {
112		reg = <0 0 0 0 0>;
113		#interrupt-cells = <1>;
114		#size-cells = <2>;
115		#address-cells = <3>;
116		device_type = "pci";
117		interrupts = <16 2 1 13>;
118		interrupt-map-mask = <0xf800 0 0 7>;
119		interrupt-map = <
120			/* IDSEL 0x0 */
121			0000 0 0 1 &mpic 42 1 0 0
122			0000 0 0 2 &mpic 9 1 0 0
123			0000 0 0 3 &mpic 10 1 0 0
124			0000 0 0 4 &mpic 11 1 0 0
125			>;
126	};
127};
128
129&rio {
130	compatible = "fsl,srio";
131	interrupts = <16 2 1 11>;
132	#address-cells = <2>;
133	#size-cells = <2>;
134	fsl,srio-rmu-handle = <&rmu>;
135	fsl,iommu-parent = <&pamu0>;
136	ranges;
137
138	port1 {
139		#address-cells = <2>;
140		#size-cells = <2>;
141		cell-index = <1>;
142		fsl,liodn-reg = <&guts 0x510>; /* RIO1LIODNR */
143	};
144
145	port2 {
146		#address-cells = <2>;
147		#size-cells = <2>;
148		cell-index = <2>;
149		fsl,liodn-reg = <&guts 0x514>; /* RIO2LIODNR */
150	};
151};
152
153&dcsr {
154	#address-cells = <1>;
155	#size-cells = <1>;
156	compatible = "fsl,dcsr", "simple-bus";
157
158	dcsr-epu@0 {
159		compatible = "fsl,p4080-dcsr-epu", "fsl,dcsr-epu";
160		interrupts = <52 2 0 0
161			      84 2 0 0
162			      85 2 0 0>;
163		reg = <0x0 0x1000>;
164	};
165	dcsr-npc {
166		compatible = "fsl,dcsr-npc";
167		reg = <0x1000 0x1000 0x1000000 0x8000>;
168	};
169	dcsr-nxc@2000 {
170		compatible = "fsl,dcsr-nxc";
171		reg = <0x2000 0x1000>;
172	};
173	dcsr-corenet {
174		compatible = "fsl,dcsr-corenet";
175		reg = <0x8000 0x1000 0xB0000 0x1000>;
176	};
177	dcsr-dpaa@9000 {
178		compatible = "fsl,p4080-dcsr-dpaa", "fsl,dcsr-dpaa";
179		reg = <0x9000 0x1000>;
180	};
181	dcsr-ocn@11000 {
182		compatible = "fsl,p4080-dcsr-ocn", "fsl,dcsr-ocn";
183		reg = <0x11000 0x1000>;
184	};
185	dcsr-ddr@12000 {
186		compatible = "fsl,dcsr-ddr";
187		dev-handle = <&ddr1>;
188		reg = <0x12000 0x1000>;
189	};
190	dcsr-ddr@13000 {
191		compatible = "fsl,dcsr-ddr";
192		dev-handle = <&ddr2>;
193		reg = <0x13000 0x1000>;
194	};
195	dcsr-nal@18000 {
196		compatible = "fsl,p4080-dcsr-nal", "fsl,dcsr-nal";
197		reg = <0x18000 0x1000>;
198	};
199	dcsr-rcpm@22000 {
200		compatible = "fsl,p4080-dcsr-rcpm", "fsl,dcsr-rcpm";
201		reg = <0x22000 0x1000>;
202	};
203	dcsr-cpu-sb-proxy@40000 {
204		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
205		cpu-handle = <&cpu0>;
206		reg = <0x40000 0x1000>;
207	};
208	dcsr-cpu-sb-proxy@41000 {
209		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
210		cpu-handle = <&cpu1>;
211		reg = <0x41000 0x1000>;
212	};
213	dcsr-cpu-sb-proxy@42000 {
214		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
215		cpu-handle = <&cpu2>;
216		reg = <0x42000 0x1000>;
217	};
218	dcsr-cpu-sb-proxy@43000 {
219		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
220		cpu-handle = <&cpu3>;
221		reg = <0x43000 0x1000>;
222	};
223	dcsr-cpu-sb-proxy@44000 {
224		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
225		cpu-handle = <&cpu4>;
226		reg = <0x44000 0x1000>;
227	};
228	dcsr-cpu-sb-proxy@45000 {
229		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
230		cpu-handle = <&cpu5>;
231		reg = <0x45000 0x1000>;
232	};
233	dcsr-cpu-sb-proxy@46000 {
234		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
235		cpu-handle = <&cpu6>;
236		reg = <0x46000 0x1000>;
237	};
238	dcsr-cpu-sb-proxy@47000 {
239		compatible = "fsl,dcsr-e500mc-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
240		cpu-handle = <&cpu7>;
241		reg = <0x47000 0x1000>;
242	};
243
244};
245
246&soc {
247	#address-cells = <1>;
248	#size-cells = <1>;
249	device_type = "soc";
250	compatible = "simple-bus";
251
252	soc-sram-error {
253		compatible = "fsl,soc-sram-error";
254		interrupts = <16 2 1 29>;
255	};
256
257	corenet-law@0 {
258		compatible = "fsl,corenet-law";
259		reg = <0x0 0x1000>;
260		fsl,num-laws = <32>;
261	};
262
263	ddr1: memory-controller@8000 {
264		compatible = "fsl,qoriq-memory-controller-v4.4", "fsl,qoriq-memory-controller";
265		reg = <0x8000 0x1000>;
266		interrupts = <16 2 1 23>;
267	};
268
269	ddr2: memory-controller@9000 {
270		compatible = "fsl,qoriq-memory-controller-v4.4","fsl,qoriq-memory-controller";
271		reg = <0x9000 0x1000>;
272		interrupts = <16 2 1 22>;
273	};
274
275	cpc: l3-cache-controller@10000 {
276		compatible = "fsl,p4080-l3-cache-controller", "cache";
277		reg = <0x10000 0x1000
278		       0x11000 0x1000>;
279		interrupts = <16 2 1 27
280			      16 2 1 26>;
281	};
282
283	corenet-cf@18000 {
284		compatible = "fsl,corenet1-cf", "fsl,corenet-cf";
285		reg = <0x18000 0x1000>;
286		interrupts = <16 2 1 31>;
287		fsl,ccf-num-csdids = <32>;
288		fsl,ccf-num-snoopids = <32>;
289	};
290
291	iommu@20000 {
292		compatible = "fsl,pamu-v1.0", "fsl,pamu";
293		reg = <0x20000 0x5000>; /* for compatibility with older PAMU drivers */
294		ranges = <0 0x20000 0x5000>;
295		#address-cells = <1>;
296		#size-cells = <1>;
297		interrupts = <
298			24 2 0 0
299			16 2 1 30>;
300		fsl,portid-mapping = <0x00f80000>;
301
302		pamu0: pamu@0 {
303			reg = <0 0x1000>;
304			fsl,primary-cache-geometry = <32 1>;
305			fsl,secondary-cache-geometry = <128 2>;
306		};
307
308		pamu1: pamu@1000 {
309			reg = <0x1000 0x1000>;
310			fsl,primary-cache-geometry = <32 1>;
311			fsl,secondary-cache-geometry = <128 2>;
312		};
313
314		pamu2: pamu@2000 {
315			reg = <0x2000 0x1000>;
316			fsl,primary-cache-geometry = <32 1>;
317			fsl,secondary-cache-geometry = <128 2>;
318		};
319
320		pamu3: pamu@3000 {
321			reg = <0x3000 0x1000>;
322			fsl,primary-cache-geometry = <32 1>;
323			fsl,secondary-cache-geometry = <128 2>;
324		};
325
326		pamu4: pamu@4000 {
327			reg = <0x4000 0x1000>;
328			fsl,primary-cache-geometry = <32 1>;
329			fsl,secondary-cache-geometry = <128 2>;
330		};
331	};
332
333/include/ "qoriq-rmu-0.dtsi"
334	rmu@d3000 {
335		fsl,iommu-parent = <&pamu0>;
336		fsl,liodn-reg = <&guts 0x540>; /* RMULIODNR */
337	};
338
339/include/ "qoriq-mpic.dtsi"
340
341	guts: global-utilities@e0000 {
342		compatible = "fsl,qoriq-device-config-1.0";
343		reg = <0xe0000 0xe00>;
344		fsl,has-rstcr;
345		#sleep-cells = <1>;
346		fsl,liodn-bits = <12>;
347	};
348
349	pins: global-utilities@e0e00 {
350		compatible = "fsl,qoriq-pin-control-1.0";
351		reg = <0xe0e00 0x200>;
352		#sleep-cells = <2>;
353	};
354
355	clockgen: global-utilities@e1000 {
356		compatible = "fsl,p4080-clockgen", "fsl,qoriq-clockgen-1.0";
357		ranges = <0x0 0xe1000 0x1000>;
358		reg = <0xe1000 0x1000>;
359		clock-frequency = <0>;
360		#address-cells = <1>;
361		#size-cells = <1>;
362
363		sysclk: sysclk {
364			#clock-cells = <0>;
365			compatible = "fsl,qoriq-sysclk-1.0";
366			clock-output-names = "sysclk";
367		};
368
369		pll0: pll0@800 {
370			#clock-cells = <1>;
371			reg = <0x800 0x4>;
372			compatible = "fsl,qoriq-core-pll-1.0";
373			clocks = <&sysclk>;
374			clock-output-names = "pll0", "pll0-div2";
375		};
376
377		pll1: pll1@820 {
378			#clock-cells = <1>;
379			reg = <0x820 0x4>;
380			compatible = "fsl,qoriq-core-pll-1.0";
381			clocks = <&sysclk>;
382			clock-output-names = "pll1", "pll1-div2";
383		};
384
385		pll2: pll2@840 {
386			#clock-cells = <1>;
387			reg = <0x840 0x4>;
388			compatible = "fsl,qoriq-core-pll-1.0";
389			clocks = <&sysclk>;
390			clock-output-names = "pll2", "pll2-div2";
391		};
392
393		pll3: pll3@860 {
394			#clock-cells = <1>;
395			reg = <0x860 0x4>;
396			compatible = "fsl,qoriq-core-pll-1.0";
397			clocks = <&sysclk>;
398			clock-output-names = "pll3", "pll3-div2";
399		};
400
401		mux0: mux0@0 {
402			#clock-cells = <0>;
403			reg = <0x0 0x4>;
404			compatible = "fsl,qoriq-core-mux-1.0";
405			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
406			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
407			clock-output-names = "cmux0";
408		};
409
410		mux1: mux1@20 {
411			#clock-cells = <0>;
412			reg = <0x20 0x4>;
413			compatible = "fsl,qoriq-core-mux-1.0";
414			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
415			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
416			clock-output-names = "cmux1";
417		};
418
419		mux2: mux2@40 {
420			#clock-cells = <0>;
421			reg = <0x40 0x4>;
422			compatible = "fsl,qoriq-core-mux-1.0";
423			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
424			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
425			clock-output-names = "cmux2";
426		};
427
428		mux3: mux3@60 {
429			#clock-cells = <0>;
430			reg = <0x60 0x4>;
431			compatible = "fsl,qoriq-core-mux-1.0";
432			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
433			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
434			clock-output-names = "cmux3";
435		};
436
437		mux4: mux4@80 {
438			#clock-cells = <0>;
439			reg = <0x80 0x4>;
440			compatible = "fsl,qoriq-core-mux-1.0";
441			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
442			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
443			clock-output-names = "cmux4";
444		};
445
446		mux5: mux5@a0 {
447			#clock-cells = <0>;
448			reg = <0xa0 0x4>;
449			compatible = "fsl,qoriq-core-mux-1.0";
450			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
451			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
452			clock-output-names = "cmux5";
453		};
454
455		mux6: mux6@c0 {
456			#clock-cells = <0>;
457			reg = <0xc0 0x4>;
458			compatible = "fsl,qoriq-core-mux-1.0";
459			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
460			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
461			clock-output-names = "cmux6";
462		};
463
464		mux7: mux7@e0 {
465			#clock-cells = <0>;
466			reg = <0xe0 0x4>;
467			compatible = "fsl,qoriq-core-mux-1.0";
468			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
469			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
470			clock-output-names = "cmux7";
471		};
472	};
473
474	rcpm: global-utilities@e2000 {
475		compatible = "fsl,qoriq-rcpm-1.0";
476		reg = <0xe2000 0x1000>;
477		#sleep-cells = <1>;
478	};
479
480	sfp: sfp@e8000 {
481		compatible = "fsl,p4080-sfp", "fsl,qoriq-sfp-1.0";
482		reg	   = <0xe8000 0x1000>;
483	};
484
485	serdes: serdes@ea000 {
486		compatible = "fsl,p4080-serdes";
487		reg	   = <0xea000 0x1000>;
488	};
489
490/include/ "qoriq-dma-0.dtsi"
491	dma@100300 {
492		fsl,iommu-parent = <&pamu0>;
493		fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
494	};
495
496/include/ "qoriq-dma-1.dtsi"
497	dma@101300 {
498		fsl,iommu-parent = <&pamu0>;
499		fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
500	};
501
502/include/ "qoriq-espi-0.dtsi"
503	spi@110000 {
504		fsl,espi-num-chipselects = <4>;
505	};
506
507/include/ "qoriq-esdhc-0.dtsi"
508	sdhc@114000 {
509		fsl,iommu-parent = <&pamu1>;
510		fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
511		voltage-ranges = <3300 3300>;
512		sdhci,auto-cmd12;
513	};
514
515/include/ "qoriq-i2c-0.dtsi"
516/include/ "qoriq-i2c-1.dtsi"
517/include/ "qoriq-duart-0.dtsi"
518/include/ "qoriq-duart-1.dtsi"
519/include/ "qoriq-gpio-0.dtsi"
520/include/ "qoriq-usb2-mph-0.dtsi"
521	usb@210000 {
522		compatible = "fsl-usb2-mph-v1.6", "fsl,mpc85xx-usb2-mph", "fsl-usb2-mph";
523		fsl,iommu-parent = <&pamu1>;
524		fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
525		port0;
526	};
527/include/ "qoriq-usb2-dr-0.dtsi"
528	usb@211000 {
529		compatible = "fsl-usb2-dr-v1.6", "fsl,mpc85xx-usb2-dr", "fsl-usb2-dr";
530		fsl,iommu-parent = <&pamu1>;
531		fsl,liodn-reg = <&guts 0x524>; /* USB2LIODNR */
532	};
533/include/ "qoriq-sec4.0-0.dtsi"
534crypto: crypto@300000 {
535		fsl,iommu-parent = <&pamu1>;
536	};
537};
538