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,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
301		pamu0: pamu@0 {
302			reg = <0 0x1000>;
303			fsl,primary-cache-geometry = <32 1>;
304			fsl,secondary-cache-geometry = <128 2>;
305		};
306
307		pamu1: pamu@1000 {
308			reg = <0x1000 0x1000>;
309			fsl,primary-cache-geometry = <32 1>;
310			fsl,secondary-cache-geometry = <128 2>;
311		};
312
313		pamu2: pamu@2000 {
314			reg = <0x2000 0x1000>;
315			fsl,primary-cache-geometry = <32 1>;
316			fsl,secondary-cache-geometry = <128 2>;
317		};
318
319		pamu3: pamu@3000 {
320			reg = <0x3000 0x1000>;
321			fsl,primary-cache-geometry = <32 1>;
322			fsl,secondary-cache-geometry = <128 2>;
323		};
324
325		pamu4: pamu@4000 {
326			reg = <0x4000 0x1000>;
327			fsl,primary-cache-geometry = <32 1>;
328			fsl,secondary-cache-geometry = <128 2>;
329		};
330	};
331
332/include/ "qoriq-rmu-0.dtsi"
333	rmu@d3000 {
334		fsl,iommu-parent = <&pamu0>;
335		fsl,liodn-reg = <&guts 0x540>; /* RMULIODNR */
336	};
337
338/include/ "qoriq-mpic.dtsi"
339
340	guts: global-utilities@e0000 {
341		compatible = "fsl,qoriq-device-config-1.0";
342		reg = <0xe0000 0xe00>;
343		fsl,has-rstcr;
344		#sleep-cells = <1>;
345		fsl,liodn-bits = <12>;
346	};
347
348	pins: global-utilities@e0e00 {
349		compatible = "fsl,qoriq-pin-control-1.0";
350		reg = <0xe0e00 0x200>;
351		#sleep-cells = <2>;
352	};
353
354	clockgen: global-utilities@e1000 {
355		compatible = "fsl,p4080-clockgen", "fsl,qoriq-clockgen-1.0";
356		ranges = <0x0 0xe1000 0x1000>;
357		reg = <0xe1000 0x1000>;
358		clock-frequency = <0>;
359		#address-cells = <1>;
360		#size-cells = <1>;
361
362		sysclk: sysclk {
363			#clock-cells = <0>;
364			compatible = "fsl,qoriq-sysclk-1.0";
365			clock-output-names = "sysclk";
366		};
367
368		pll0: pll0@800 {
369			#clock-cells = <1>;
370			reg = <0x800 0x4>;
371			compatible = "fsl,qoriq-core-pll-1.0";
372			clocks = <&sysclk>;
373			clock-output-names = "pll0", "pll0-div2";
374		};
375
376		pll1: pll1@820 {
377			#clock-cells = <1>;
378			reg = <0x820 0x4>;
379			compatible = "fsl,qoriq-core-pll-1.0";
380			clocks = <&sysclk>;
381			clock-output-names = "pll1", "pll1-div2";
382		};
383
384		pll2: pll2@840 {
385			#clock-cells = <1>;
386			reg = <0x840 0x4>;
387			compatible = "fsl,qoriq-core-pll-1.0";
388			clocks = <&sysclk>;
389			clock-output-names = "pll2", "pll2-div2";
390		};
391
392		pll3: pll3@860 {
393			#clock-cells = <1>;
394			reg = <0x860 0x4>;
395			compatible = "fsl,qoriq-core-pll-1.0";
396			clocks = <&sysclk>;
397			clock-output-names = "pll3", "pll3-div2";
398		};
399
400		mux0: mux0@0 {
401			#clock-cells = <0>;
402			reg = <0x0 0x4>;
403			compatible = "fsl,qoriq-core-mux-1.0";
404			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
405			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
406			clock-output-names = "cmux0";
407		};
408
409		mux1: mux1@20 {
410			#clock-cells = <0>;
411			reg = <0x20 0x4>;
412			compatible = "fsl,qoriq-core-mux-1.0";
413			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
414			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
415			clock-output-names = "cmux1";
416		};
417
418		mux2: mux2@40 {
419			#clock-cells = <0>;
420			reg = <0x40 0x4>;
421			compatible = "fsl,qoriq-core-mux-1.0";
422			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
423			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
424			clock-output-names = "cmux2";
425		};
426
427		mux3: mux3@60 {
428			#clock-cells = <0>;
429			reg = <0x60 0x4>;
430			compatible = "fsl,qoriq-core-mux-1.0";
431			clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
432			clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
433			clock-output-names = "cmux3";
434		};
435
436		mux4: mux4@80 {
437			#clock-cells = <0>;
438			reg = <0x80 0x4>;
439			compatible = "fsl,qoriq-core-mux-1.0";
440			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
441			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
442			clock-output-names = "cmux4";
443		};
444
445		mux5: mux5@a0 {
446			#clock-cells = <0>;
447			reg = <0xa0 0x4>;
448			compatible = "fsl,qoriq-core-mux-1.0";
449			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
450			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
451			clock-output-names = "cmux5";
452		};
453
454		mux6: mux6@c0 {
455			#clock-cells = <0>;
456			reg = <0xc0 0x4>;
457			compatible = "fsl,qoriq-core-mux-1.0";
458			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
459			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
460			clock-output-names = "cmux6";
461		};
462
463		mux7: mux7@e0 {
464			#clock-cells = <0>;
465			reg = <0xe0 0x4>;
466			compatible = "fsl,qoriq-core-mux-1.0";
467			clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
468			clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
469			clock-output-names = "cmux7";
470		};
471	};
472
473	rcpm: global-utilities@e2000 {
474		compatible = "fsl,qoriq-rcpm-1.0";
475		reg = <0xe2000 0x1000>;
476		#sleep-cells = <1>;
477	};
478
479	sfp: sfp@e8000 {
480		compatible = "fsl,p4080-sfp", "fsl,qoriq-sfp-1.0";
481		reg	   = <0xe8000 0x1000>;
482	};
483
484	serdes: serdes@ea000 {
485		compatible = "fsl,p4080-serdes";
486		reg	   = <0xea000 0x1000>;
487	};
488
489/include/ "qoriq-dma-0.dtsi"
490	dma@100300 {
491		fsl,iommu-parent = <&pamu0>;
492		fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
493	};
494
495/include/ "qoriq-dma-1.dtsi"
496	dma@101300 {
497		fsl,iommu-parent = <&pamu0>;
498		fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
499	};
500
501/include/ "qoriq-espi-0.dtsi"
502	spi@110000 {
503		fsl,espi-num-chipselects = <4>;
504	};
505
506/include/ "qoriq-esdhc-0.dtsi"
507	sdhc@114000 {
508		fsl,iommu-parent = <&pamu1>;
509		fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
510		voltage-ranges = <3300 3300>;
511		sdhci,auto-cmd12;
512	};
513
514/include/ "qoriq-i2c-0.dtsi"
515/include/ "qoriq-i2c-1.dtsi"
516/include/ "qoriq-duart-0.dtsi"
517/include/ "qoriq-duart-1.dtsi"
518/include/ "qoriq-gpio-0.dtsi"
519/include/ "qoriq-usb2-mph-0.dtsi"
520	usb@210000 {
521		compatible = "fsl-usb2-mph-v1.6", "fsl,mpc85xx-usb2-mph", "fsl-usb2-mph";
522		fsl,iommu-parent = <&pamu1>;
523		fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
524		port0;
525	};
526/include/ "qoriq-usb2-dr-0.dtsi"
527	usb@211000 {
528		compatible = "fsl-usb2-dr-v1.6", "fsl,mpc85xx-usb2-dr", "fsl-usb2-dr";
529		fsl,iommu-parent = <&pamu1>;
530		fsl,liodn-reg = <&guts 0x524>; /* USB2LIODNR */
531	};
532/include/ "qoriq-sec4.0-0.dtsi"
533crypto: crypto@300000 {
534		fsl,iommu-parent = <&pamu1>;
535	};
536};
537