1dc37374bSHongtao Jia/*
2dc37374bSHongtao Jia * P1023 RDB Device Tree Source
3dc37374bSHongtao Jia *
4dc37374bSHongtao Jia * Copyright 2013 - 2014 Freescale Semiconductor Inc.
5dc37374bSHongtao Jia *
6dc37374bSHongtao Jia * Author: Chunhe Lan <Chunhe.Lan@freescale.com>
7dc37374bSHongtao Jia *
8dc37374bSHongtao Jia * Redistribution and use in source and binary forms, with or without
9dc37374bSHongtao Jia * modification, are permitted provided that the following conditions are met:
10dc37374bSHongtao Jia *     * Redistributions of source code must retain the above copyright
11dc37374bSHongtao Jia *       notice, this list of conditions and the following disclaimer.
12dc37374bSHongtao Jia *     * Redistributions in binary form must reproduce the above copyright
13dc37374bSHongtao Jia *       notice, this list of conditions and the following disclaimer in the
14dc37374bSHongtao Jia *       documentation and/or other materials provided with the distribution.
15dc37374bSHongtao Jia *     * Neither the name of Freescale Semiconductor nor the
16dc37374bSHongtao Jia *       names of its contributors may be used to endorse or promote products
17dc37374bSHongtao Jia *       derived from this software without specific prior written permission.
18dc37374bSHongtao Jia *
19dc37374bSHongtao Jia *
20dc37374bSHongtao Jia * ALTERNATIVELY, this software may be distributed under the terms of the
21dc37374bSHongtao Jia * GNU General Public License ("GPL") as published by the Free Software
22dc37374bSHongtao Jia * Foundation, either version 2 of that License or (at your option) any
23dc37374bSHongtao Jia * later version.
24dc37374bSHongtao Jia *
25dc37374bSHongtao Jia * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
26dc37374bSHongtao Jia * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27dc37374bSHongtao Jia * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28dc37374bSHongtao Jia * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
29dc37374bSHongtao Jia * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30dc37374bSHongtao Jia * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31dc37374bSHongtao Jia * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
32dc37374bSHongtao Jia * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33dc37374bSHongtao Jia * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34dc37374bSHongtao Jia * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35dc37374bSHongtao Jia */
36dc37374bSHongtao Jia
37dc37374bSHongtao Jia/include/ "p1023si-pre.dtsi"
38dc37374bSHongtao Jia
39dc37374bSHongtao Jia/ {
40dc37374bSHongtao Jia	model = "fsl,P1023";
41dc37374bSHongtao Jia	compatible = "fsl,P1023RDB";
42dc37374bSHongtao Jia	#address-cells = <2>;
43dc37374bSHongtao Jia	#size-cells = <2>;
44dc37374bSHongtao Jia	interrupt-parent = <&mpic>;
45dc37374bSHongtao Jia
46dc37374bSHongtao Jia	memory {
47dc37374bSHongtao Jia		device_type = "memory";
48dc37374bSHongtao Jia	};
49dc37374bSHongtao Jia
50dc37374bSHongtao Jia	reserved-memory {
51dc37374bSHongtao Jia		#address-cells = <2>;
52dc37374bSHongtao Jia		#size-cells = <2>;
53dc37374bSHongtao Jia		ranges;
54dc37374bSHongtao Jia
55dc37374bSHongtao Jia		bman_fbpr: bman-fbpr {
56dc37374bSHongtao Jia			size = <0 0x1000000>;
57dc37374bSHongtao Jia			alignment = <0 0x1000000>;
58dc37374bSHongtao Jia		};
59dc37374bSHongtao Jia		qman_fqd: qman-fqd {
60dc37374bSHongtao Jia			size = <0 0x400000>;
61dc37374bSHongtao Jia			alignment = <0 0x400000>;
62dc37374bSHongtao Jia		};
63dc37374bSHongtao Jia		qman_pfdr: qman-pfdr {
64dc37374bSHongtao Jia			size = <0 0x2000000>;
65dc37374bSHongtao Jia			alignment = <0 0x2000000>;
66dc37374bSHongtao Jia		};
67dc37374bSHongtao Jia	};
68dc37374bSHongtao Jia
69dc37374bSHongtao Jia	qportals: qman-portals@ff000000 {
70dc37374bSHongtao Jia		ranges = <0x0 0xf 0xff000000 0x200000>;
71dc37374bSHongtao Jia	};
72dc37374bSHongtao Jia
73dc37374bSHongtao Jia	bportals: bman-portals@ff200000 {
74dc37374bSHongtao Jia		ranges = <0x0 0xf 0xff200000 0x200000>;
75dc37374bSHongtao Jia	};
76dc37374bSHongtao Jia
77dc37374bSHongtao Jia	soc: soc@ff600000 {
78dc37374bSHongtao Jia		ranges = <0x0 0x0 0xff600000 0x200000>;
79dc37374bSHongtao Jia
80dc37374bSHongtao Jia		i2c@3000 {
81dc37374bSHongtao Jia			eeprom@53 {
82226b9391SJavier Martinez Canillas				compatible = "atmel,24c04";
83dc37374bSHongtao Jia				reg = <0x53>;
84dc37374bSHongtao Jia			};
85dc37374bSHongtao Jia
86dc37374bSHongtao Jia			rtc@6f {
87dc37374bSHongtao Jia				compatible = "microchip,mcp7941x";
88dc37374bSHongtao Jia				reg = <0x6f>;
89dc37374bSHongtao Jia			};
90dc37374bSHongtao Jia		};
91dc37374bSHongtao Jia
92dc37374bSHongtao Jia		usb@22000 {
93dc37374bSHongtao Jia			dr_mode = "host";
94dc37374bSHongtao Jia			phy_type = "ulpi";
95dc37374bSHongtao Jia		};
96dc37374bSHongtao Jia	};
97dc37374bSHongtao Jia
98dc37374bSHongtao Jia	lbc: localbus@ff605000 {
99dc37374bSHongtao Jia		reg = <0 0xff605000 0 0x1000>;
100dc37374bSHongtao Jia
101dc37374bSHongtao Jia		/* NOR, NAND Flashes */
102dc37374bSHongtao Jia		ranges = <0x0 0x0 0x0 0xec000000 0x04000000
103dc37374bSHongtao Jia			  0x1 0x0 0x0 0xffa00000 0x08000000>;
104dc37374bSHongtao Jia
105dc37374bSHongtao Jia		nor@0,0 {
106dc37374bSHongtao Jia			#address-cells = <1>;
107dc37374bSHongtao Jia			#size-cells = <1>;
108dc37374bSHongtao Jia			compatible = "cfi-flash";
109dc37374bSHongtao Jia			reg = <0x0 0x0 0x04000000>;
110dc37374bSHongtao Jia			bank-width = <2>;
111dc37374bSHongtao Jia			device-width = <1>;
112dc37374bSHongtao Jia
113dc37374bSHongtao Jia			partition@0 {
114dc37374bSHongtao Jia				/* 48MB for Root File System */
115dc37374bSHongtao Jia				reg = <0x00000000 0x03000000>;
116dc37374bSHongtao Jia				label = "NOR Root File System";
117dc37374bSHongtao Jia			};
118dc37374bSHongtao Jia
119dc37374bSHongtao Jia			partition@3000000 {
120dc37374bSHongtao Jia				/* 1MB for DTB Image */
121dc37374bSHongtao Jia				reg = <0x03000000 0x00100000>;
122dc37374bSHongtao Jia				label = "NOR DTB Image";
123dc37374bSHongtao Jia			};
124dc37374bSHongtao Jia
125dc37374bSHongtao Jia			partition@3100000 {
126dc37374bSHongtao Jia				/* 14MB for Linux Kernel Image */
127dc37374bSHongtao Jia				reg = <0x03100000 0x00e00000>;
128dc37374bSHongtao Jia				label = "NOR Linux Kernel Image";
129dc37374bSHongtao Jia			};
130dc37374bSHongtao Jia
131dc37374bSHongtao Jia			partition@3f00000 {
132dc37374bSHongtao Jia				/* This location must not be altered  */
133dc37374bSHongtao Jia				/* 512KB for u-boot Bootloader Image */
134dc37374bSHongtao Jia				/* 512KB for u-boot Environment Variables */
135dc37374bSHongtao Jia				reg = <0x03f00000 0x00100000>;
136dc37374bSHongtao Jia				label = "NOR U-Boot Image";
137dc37374bSHongtao Jia				read-only;
138dc37374bSHongtao Jia			};
139dc37374bSHongtao Jia		};
140dc37374bSHongtao Jia
141dc37374bSHongtao Jia		nand@1,0 {
142dc37374bSHongtao Jia			#address-cells = <1>;
143dc37374bSHongtao Jia			#size-cells = <1>;
144dc37374bSHongtao Jia			compatible = "fsl,elbc-fcm-nand";
145dc37374bSHongtao Jia			reg = <0x1 0x0 0x40000>;
146dc37374bSHongtao Jia
147dc37374bSHongtao Jia			partition@0 {
148dc37374bSHongtao Jia				/* This location must not be altered  */
149dc37374bSHongtao Jia				/* 1MB for u-boot Bootloader Image */
150dc37374bSHongtao Jia				reg = <0x0 0x00100000>;
151dc37374bSHongtao Jia				label = "NAND U-Boot Image";
152dc37374bSHongtao Jia				read-only;
153dc37374bSHongtao Jia			};
154dc37374bSHongtao Jia
155dc37374bSHongtao Jia			partition@100000 {
156dc37374bSHongtao Jia				/* 1MB for DTB Image */
157dc37374bSHongtao Jia				reg = <0x00100000 0x00100000>;
158dc37374bSHongtao Jia				label = "NAND DTB Image";
159dc37374bSHongtao Jia			};
160dc37374bSHongtao Jia
161dc37374bSHongtao Jia			partition@200000 {
162dc37374bSHongtao Jia				/* 14MB for Linux Kernel Image */
163dc37374bSHongtao Jia				reg = <0x00200000 0x00e00000>;
164dc37374bSHongtao Jia				label = "NAND Linux Kernel Image";
165dc37374bSHongtao Jia			};
166dc37374bSHongtao Jia
167dc37374bSHongtao Jia			partition@1000000 {
168dc37374bSHongtao Jia				/* 96MB for Root File System Image */
169dc37374bSHongtao Jia				reg = <0x01000000 0x06000000>;
170dc37374bSHongtao Jia				label = "NAND Root File System";
171dc37374bSHongtao Jia			};
172dc37374bSHongtao Jia
173dc37374bSHongtao Jia			partition@7000000 {
174dc37374bSHongtao Jia				/* 16MB for User Writable Area */
175dc37374bSHongtao Jia				reg = <0x07000000 0x01000000>;
176dc37374bSHongtao Jia				label = "NAND Writable User area";
177dc37374bSHongtao Jia			};
178dc37374bSHongtao Jia		};
179dc37374bSHongtao Jia	};
180dc37374bSHongtao Jia
181dc37374bSHongtao Jia	pci0: pcie@ff60a000 {
182dc37374bSHongtao Jia		reg = <0 0xff60a000 0 0x1000>;
183dc37374bSHongtao Jia		ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
184dc37374bSHongtao Jia			  0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
185dc37374bSHongtao Jia		pcie@0 {
186dc37374bSHongtao Jia			/* IRQ[0:3] are pulled up on board, set to active-low */
187dc37374bSHongtao Jia			interrupt-map-mask = <0xf800 0 0 7>;
188dc37374bSHongtao Jia			interrupt-map = <
189dc37374bSHongtao Jia				/* IDSEL 0x0 */
190dc37374bSHongtao Jia				0000 0 0 1 &mpic 0 1 0 0
191dc37374bSHongtao Jia				0000 0 0 2 &mpic 1 1 0 0
192dc37374bSHongtao Jia				0000 0 0 3 &mpic 2 1 0 0
193dc37374bSHongtao Jia				0000 0 0 4 &mpic 3 1 0 0
194dc37374bSHongtao Jia				>;
195dc37374bSHongtao Jia			ranges = <0x2000000 0x0 0xc0000000
196dc37374bSHongtao Jia				  0x2000000 0x0 0xc0000000
197dc37374bSHongtao Jia				  0x0 0x20000000
198dc37374bSHongtao Jia
199dc37374bSHongtao Jia				  0x1000000 0x0 0x0
200dc37374bSHongtao Jia				  0x1000000 0x0 0x0
201dc37374bSHongtao Jia				  0x0 0x100000>;
202dc37374bSHongtao Jia		};
203dc37374bSHongtao Jia	};
204dc37374bSHongtao Jia
205dc37374bSHongtao Jia	board_pci1: pci1: pcie@ff609000 {
206dc37374bSHongtao Jia		reg = <0 0xff609000 0 0x1000>;
207dc37374bSHongtao Jia		ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
208dc37374bSHongtao Jia			  0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
209dc37374bSHongtao Jia		pcie@0 {
210dc37374bSHongtao Jia			/*
211dc37374bSHongtao Jia			 * IRQ[4:6] only for PCIe, set to active-high,
212dc37374bSHongtao Jia			 * IRQ[7] is pulled up on board, set to active-low
213dc37374bSHongtao Jia			 */
214dc37374bSHongtao Jia			interrupt-map-mask = <0xf800 0 0 7>;
215dc37374bSHongtao Jia			interrupt-map = <
216dc37374bSHongtao Jia				/* IDSEL 0x0 */
217dc37374bSHongtao Jia				0000 0 0 1 &mpic 4 2 0 0
218dc37374bSHongtao Jia				0000 0 0 2 &mpic 5 2 0 0
219dc37374bSHongtao Jia				0000 0 0 3 &mpic 6 2 0 0
220dc37374bSHongtao Jia				0000 0 0 4 &mpic 7 1 0 0
221dc37374bSHongtao Jia				>;
222dc37374bSHongtao Jia			ranges = <0x2000000 0x0 0xa0000000
223dc37374bSHongtao Jia				  0x2000000 0x0 0xa0000000
224dc37374bSHongtao Jia				  0x0 0x20000000
225dc37374bSHongtao Jia
226dc37374bSHongtao Jia				  0x1000000 0x0 0x0
227dc37374bSHongtao Jia				  0x1000000 0x0 0x0
228dc37374bSHongtao Jia				  0x0 0x100000>;
229dc37374bSHongtao Jia		};
230dc37374bSHongtao Jia	};
231dc37374bSHongtao Jia
232dc37374bSHongtao Jia	pci2: pcie@ff60b000 {
233dc37374bSHongtao Jia		reg = <0 0xff60b000 0 0x1000>;
234dc37374bSHongtao Jia		ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
235dc37374bSHongtao Jia			  0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
236dc37374bSHongtao Jia		pcie@0 {
237dc37374bSHongtao Jia			/*
238dc37374bSHongtao Jia			 * IRQ[8:10] are pulled up on board, set to active-low
239dc37374bSHongtao Jia			 * IRQ[11] only for PCIe, set to active-high,
240dc37374bSHongtao Jia			 */
241dc37374bSHongtao Jia			interrupt-map-mask = <0xf800 0 0 7>;
242dc37374bSHongtao Jia			interrupt-map = <
243dc37374bSHongtao Jia				/* IDSEL 0x0 */
244dc37374bSHongtao Jia				0000 0 0 1 &mpic 8 1 0 0
245dc37374bSHongtao Jia				0000 0 0 2 &mpic 9 1 0 0
246dc37374bSHongtao Jia				0000 0 0 3 &mpic 10 1 0 0
247dc37374bSHongtao Jia				0000 0 0 4 &mpic 11 2 0 0
248dc37374bSHongtao Jia				>;
249dc37374bSHongtao Jia			ranges = <0x2000000 0x0 0x80000000
250dc37374bSHongtao Jia				  0x2000000 0x0 0x80000000
251dc37374bSHongtao Jia				  0x0 0x20000000
252dc37374bSHongtao Jia
253dc37374bSHongtao Jia				  0x1000000 0x0 0x0
254dc37374bSHongtao Jia				  0x1000000 0x0 0x0
255dc37374bSHongtao Jia				  0x0 0x100000>;
256dc37374bSHongtao Jia		};
257dc37374bSHongtao Jia	};
258dc37374bSHongtao Jia};
259dc37374bSHongtao Jia
260dc37374bSHongtao Jia/include/ "p1023si-post.dtsi"
261