1/*
2 * B4420 Silicon/SoC Device Tree Source (post include)
3 *
4 * Copyright 2012 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
32 * this software, even if advised of the possibility of such damage.
33 */
34
35&ifc {
36	#address-cells = <2>;
37	#size-cells = <1>;
38	compatible = "fsl,ifc", "simple-bus";
39	interrupts = <25 2 0 0>;
40};
41
42/* controller at 0x200000 */
43&pci0 {
44	compatible = "fsl,b4-pcie", "fsl,qoriq-pcie-v2.4";
45	device_type = "pci";
46	#size-cells = <2>;
47	#address-cells = <3>;
48	bus-range = <0x0 0xff>;
49	interrupts = <20 2 0 0>;
50	fsl,iommu-parent = <&pamu0>;
51	pcie@0 {
52		#interrupt-cells = <1>;
53		#size-cells = <2>;
54		#address-cells = <3>;
55		device_type = "pci";
56		reg = <0 0 0 0 0>;
57		interrupts = <20 2 0 0>;
58		interrupt-map-mask = <0xf800 0 0 7>;
59		interrupt-map = <
60			/* IDSEL 0x0 */
61			0000 0 0 1 &mpic 40 1 0 0
62			0000 0 0 2 &mpic 1 1 0 0
63			0000 0 0 3 &mpic 2 1 0 0
64			0000 0 0 4 &mpic 3 1 0 0
65			>;
66	};
67};
68
69&dcsr {
70	#address-cells = <1>;
71	#size-cells = <1>;
72	compatible = "fsl,dcsr", "simple-bus";
73
74	dcsr-epu@0 {
75		compatible = "fsl,b4-dcsr-epu", "fsl,dcsr-epu";
76		interrupts = <52 2 0 0
77			      84 2 0 0
78			      85 2 0 0
79			      94 2 0 0
80			      95 2 0 0>;
81		reg = <0x0 0x1000>;
82	};
83	dcsr-npc {
84		compatible = "fsl,b4-dcsr-cnpc", "fsl,dcsr-cnpc";
85		reg = <0x1000 0x1000 0x1002000 0x10000>;
86	};
87	dcsr-nxc@2000 {
88		compatible = "fsl,dcsr-nxc";
89		reg = <0x2000 0x1000>;
90	};
91	dcsr-corenet {
92		compatible = "fsl,dcsr-corenet";
93		reg = <0x8000 0x1000 0x1A000 0x1000>;
94	};
95	dcsr-dpaa@9000 {
96		compatible = "fsl,b4-dcsr-dpaa", "fsl,dcsr-dpaa";
97		reg = <0x9000 0x1000>;
98	};
99	dcsr-ocn@11000 {
100		compatible = "fsl,b4-dcsr-ocn", "fsl,dcsr-ocn";
101		reg = <0x11000 0x1000>;
102	};
103	dcsr-ddr@12000 {
104		compatible = "fsl,dcsr-ddr";
105		dev-handle = <&ddr1>;
106		reg = <0x12000 0x1000>;
107	};
108	dcsr-nal@18000 {
109		compatible = "fsl,b4-dcsr-nal", "fsl,dcsr-nal";
110		reg = <0x18000 0x1000>;
111	};
112	dcsr-rcpm@22000 {
113		compatible = "fsl,b4-dcsr-rcpm", "fsl,dcsr-rcpm";
114		reg = <0x22000 0x1000>;
115	};
116	dcsr-snpc@30000 {
117		compatible = "fsl,b4-dcsr-snpc", "fsl,dcsr-snpc";
118		reg = <0x30000 0x1000 0x1022000 0x10000>;
119	};
120	dcsr-snpc@31000 {
121		compatible = "fsl,b4-dcsr-snpc", "fsl,dcsr-snpc";
122		reg = <0x31000 0x1000 0x1042000 0x10000>;
123	};
124	dcsr-cpu-sb-proxy@100000 {
125		compatible = "fsl,dcsr-e6500-sb-proxy", "fsl,dcsr-cpu-sb-proxy";
126		cpu-handle = <&cpu0>;
127		reg = <0x100000 0x1000 0x101000 0x1000>;
128	};
129};
130
131&soc {
132	#address-cells = <1>;
133	#size-cells = <1>;
134	device_type = "soc";
135	compatible = "simple-bus";
136
137	soc-sram-error {
138		compatible = "fsl,soc-sram-error";
139		interrupts = <16 2 1 2>;
140	};
141
142	corenet-law@0 {
143		compatible = "fsl,corenet-law";
144		reg = <0x0 0x1000>;
145		fsl,num-laws = <32>;
146	};
147
148	ddr1: memory-controller@8000 {
149		compatible = "fsl,qoriq-memory-controller-v4.5", "fsl,qoriq-memory-controller";
150		reg = <0x8000 0x1000>;
151		interrupts = <16 2 1 8>;
152	};
153
154	cpc: l3-cache-controller@10000 {
155		compatible = "fsl,b4-l3-cache-controller", "cache";
156		reg = <0x10000 0x1000>;
157		interrupts = <16 2 1 4>;
158	};
159
160	corenet-cf@18000 {
161		compatible = "fsl,corenet2-cf", "fsl,corenet-cf";
162		reg = <0x18000 0x1000>;
163		interrupts = <16 2 1 0>;
164		fsl,ccf-num-csdids = <32>;
165		fsl,ccf-num-snoopids = <32>;
166	};
167
168	iommu@20000 {
169		compatible =  "fsl,pamu-v1.0", "fsl,pamu";
170		reg = <0x20000 0x4000>;
171		fsl,portid-mapping = <0x8000>;
172		#address-cells = <1>;
173		#size-cells = <1>;
174		interrupts = <
175			24 2 0 0
176			16 2 1 1>;
177
178
179		/* PCIe, DMA, SRIO */
180		pamu0: pamu@0 {
181			reg = <0 0x1000>;
182			fsl,primary-cache-geometry = <8 1>;
183			fsl,secondary-cache-geometry = <32 2>;
184		};
185
186		/* AXI2, Maple */
187		pamu1: pamu@1000 {
188			reg = <0x1000 0x1000>;
189			fsl,primary-cache-geometry = <32 1>;
190			fsl,secondary-cache-geometry = <32 2>;
191		};
192
193		/* Q/BMan */
194		pamu2: pamu@2000 {
195			reg = <0x2000 0x1000>;
196			fsl,primary-cache-geometry = <32 1>;
197			fsl,secondary-cache-geometry = <32 2>;
198		};
199
200		/* AXI1, FMAN */
201		pamu3: pamu@3000 {
202			reg = <0x3000 0x1000>;
203			fsl,primary-cache-geometry = <32 1>;
204			fsl,secondary-cache-geometry = <32 2>;
205		};
206	};
207
208/include/ "qoriq-mpic4.3.dtsi"
209
210	guts: global-utilities@e0000 {
211		compatible = "fsl,b4-device-config";
212		reg = <0xe0000 0xe00>;
213		fsl,has-rstcr;
214		fsl,liodn-bits = <12>;
215	};
216
217	clockgen: global-utilities@e1000 {
218		compatible = "fsl,b4-clockgen", "fsl,qoriq-clockgen-2.0";
219		reg = <0xe1000 0x1000>;
220	};
221
222	rcpm: global-utilities@e2000 {
223		compatible = "fsl,b4-rcpm", "fsl,qoriq-rcpm-2.0";
224		reg = <0xe2000 0x1000>;
225	};
226
227/include/ "elo3-dma-0.dtsi"
228	dma@100300 {
229		fsl,iommu-parent = <&pamu0>;
230		fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
231	};
232
233/include/ "elo3-dma-1.dtsi"
234	dma@101300 {
235		fsl,iommu-parent = <&pamu0>;
236		fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
237	};
238
239/include/ "qonverge-usb2-dr-0.dtsi"
240	usb0: usb@210000 {
241		compatible = "fsl-usb2-dr-v2.4", "fsl-usb2-dr";
242		fsl,iommu-parent = <&pamu1>;
243		fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
244	};
245
246/include/ "qoriq-espi-0.dtsi"
247	spi@110000 {
248		fsl,espi-num-chipselects = <4>;
249	};
250
251/include/ "qoriq-esdhc-0.dtsi"
252	sdhc@114000 {
253		sdhci,auto-cmd12;
254		fsl,iommu-parent = <&pamu1>;
255		fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
256	};
257
258/include/ "qoriq-i2c-0.dtsi"
259/include/ "qoriq-i2c-1.dtsi"
260/include/ "qoriq-duart-0.dtsi"
261/include/ "qoriq-duart-1.dtsi"
262/include/ "qoriq-sec5.3-0.dtsi"
263
264	L2: l2-cache-controller@c20000 {
265		compatible = "fsl,b4-l2-cache-controller";
266		reg = <0xc20000 0x1000>;
267		next-level-cache = <&cpc>;
268	};
269};
270