1/*
2 * P1010 RDB Device Tree Source stub (no addresses or top-level ranges)
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&board_ifc {
36	nor@0,0 {
37		#address-cells = <1>;
38		#size-cells = <1>;
39		compatible = "cfi-flash";
40		reg = <0x0 0x0 0x2000000>;
41		bank-width = <2>;
42		device-width = <1>;
43
44		partition@40000 {
45			/* 256KB for DTB Image */
46			reg = <0x00040000 0x00040000>;
47			label = "NOR DTB Image";
48		};
49
50		partition@80000 {
51			/* 7 MB for Linux Kernel Image */
52			reg = <0x00080000 0x00700000>;
53			label = "NOR Linux Kernel Image";
54		};
55
56		partition@800000 {
57			/* 20MB for JFFS2 based Root file System */
58			reg = <0x00800000 0x01400000>;
59			label = "NOR JFFS2 Root File System";
60		};
61
62		partition@1f00000 {
63			/* This location must not be altered  */
64			/* 512KB for u-boot Bootloader Image */
65			/* 512KB for u-boot Environment Variables */
66			reg = <0x01f00000 0x00100000>;
67			label = "NOR U-Boot Image";
68			read-only;
69		};
70	};
71
72	nand@1,0 {
73		#address-cells = <1>;
74		#size-cells = <1>;
75		compatible = "fsl,ifc-nand";
76		reg = <0x1 0x0 0x10000>;
77
78		partition@0 {
79			/* This location must not be altered  */
80			/* 1MB for u-boot Bootloader Image */
81			reg = <0x0 0x00100000>;
82			label = "NAND U-Boot Image";
83			read-only;
84		};
85
86		partition@100000 {
87			/* 1MB for DTB Image */
88			reg = <0x00100000 0x00100000>;
89			label = "NAND DTB Image";
90		};
91
92		partition@200000 {
93			/* 4MB for Linux Kernel Image */
94			reg = <0x00200000 0x00400000>;
95			label = "NAND Linux Kernel Image";
96		};
97
98		partition@600000 {
99			/* 4MB for Compressed Root file System Image */
100			reg = <0x00600000 0x00400000>;
101			label = "NAND Compressed RFS Image";
102		};
103
104		partition@a00000 {
105			/* 15MB for JFFS2 based Root file System */
106			reg = <0x00a00000 0x00f00000>;
107			label = "NAND JFFS2 Root File System";
108		};
109
110		partition@1900000 {
111			/* 7MB for User Area */
112			reg = <0x01900000 0x00700000>;
113			label = "NAND User area";
114		};
115	};
116
117	cpld@3,0 {
118		#address-cells = <1>;
119		#size-cells = <1>;
120		compatible = "fsl,p1010rdb-cpld";
121		reg = <0x3 0x0 0x0000020>;
122		bank-width = <1>;
123		device-width = <1>;
124	};
125};
126
127&board_soc {
128	i2c@3000 {
129		rtc@68 {
130			compatible = "pericom,pt7c4338";
131			reg = <0x68>;
132		};
133	};
134
135	spi@7000 {
136		flash@0 {
137			#address-cells = <1>;
138			#size-cells = <1>;
139			compatible = "spansion,s25sl12801";
140			reg = <0>;
141			spi-max-frequency = <40000000>;
142
143			partition@0 {
144				/* 1MB for u-boot Bootloader Image */
145				/* 1MB for Environment */
146				reg = <0x0 0x00100000>;
147				label = "SPI Flash U-Boot Image";
148				read-only;
149			};
150
151			partition@100000 {
152				/* 512KB for DTB Image */
153				reg = <0x00100000 0x00080000>;
154				label = "SPI Flash DTB Image";
155			};
156
157			partition@180000 {
158				/* 4MB for Linux Kernel Image */
159				reg = <0x00180000 0x00400000>;
160				label = "SPI Flash Linux Kernel Image";
161			};
162
163			partition@580000 {
164				/* 4MB for Compressed RFS Image */
165				reg = <0x00580000 0x00400000>;
166				label = "SPI Flash Compressed RFSImage";
167			};
168
169			partition@980000 {
170				/* 6.5MB for JFFS2 based RFS */
171				reg = <0x00980000 0x00680000>;
172				label = "SPI Flash JFFS2 RFS";
173			};
174		};
175	};
176
177	usb@22000 {
178		phy_type = "utmi";
179		dr_mode = "host";
180	};
181
182	mdio@24000 {
183		phy0: ethernet-phy@0 {
184			interrupts = <3 1 0 0>;
185			reg = <0x1>;
186		};
187
188		phy1: ethernet-phy@1 {
189			interrupts = <2 1 0 0>;
190			reg = <0x0>;
191		};
192
193		phy2: ethernet-phy@2 {
194			interrupts = <2 1 0 0>;
195			reg = <0x2>;
196		};
197
198		tbi-phy@3 {
199			device_type = "tbi-phy";
200			reg = <0x3>;
201		};
202	};
203
204	mdio@25000 {
205		tbi0: tbi-phy@11 {
206			reg = <0x11>;
207			device_type = "tbi-phy";
208		};
209	};
210
211	mdio@26000 {
212		tbi1: tbi-phy@11 {
213			reg = <0x11>;
214			device_type = "tbi-phy";
215		};
216	};
217
218	enet0: ethernet@b0000 {
219		phy-handle = <&phy0>;
220		phy-connection-type = "rgmii-id";
221	};
222
223	enet1: ethernet@b1000 {
224		phy-handle = <&phy1>;
225		tbi-handle = <&tbi0>;
226		phy-connection-type = "sgmii";
227	};
228
229	enet2: ethernet@b2000 {
230		phy-handle = <&phy2>;
231		tbi-handle = <&tbi1>;
232		phy-connection-type = "sgmii";
233	};
234};
235