1/*
2 * P1020 RDB Device Tree Source stub (no addresses or top-level ranges)
3 *
4 * Copyright 2011-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 THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35&board_lbc {
36	nor@0,0 {
37		#address-cells = <1>;
38		#size-cells = <1>;
39		compatible = "cfi-flash";
40		reg = <0x0 0x0 0x1000000>;
41		bank-width = <2>;
42		device-width = <1>;
43
44		partition@0 {
45			/* This location must not be altered  */
46			/* 256KB for Vitesse 7385 Switch firmware */
47			reg = <0x0 0x00040000>;
48			label = "NOR (RO) Vitesse-7385 Firmware";
49			read-only;
50		};
51
52		partition@40000 {
53			/* 256KB for DTB Image */
54			reg = <0x00040000 0x00040000>;
55			label = "NOR (RO) DTB Image";
56			read-only;
57		};
58
59		partition@80000 {
60			/* 3.5 MB for Linux Kernel Image */
61			reg = <0x00080000 0x00380000>;
62			label = "NOR (RO) Linux Kernel Image";
63			read-only;
64		};
65
66		partition@400000 {
67			/* 11MB for JFFS2 based Root file System */
68			reg = <0x00400000 0x00b00000>;
69			label = "NOR (RW) JFFS2 Root File System";
70		};
71
72		partition@f00000 {
73			/* This location must not be altered  */
74			/* 512KB for u-boot Bootloader Image */
75			/* 512KB for u-boot Environment Variables */
76			reg = <0x00f00000 0x00100000>;
77			label = "NOR (RO) U-Boot Image";
78			read-only;
79		};
80	};
81
82	nand@1,0 {
83		#address-cells = <1>;
84		#size-cells = <1>;
85		compatible = "fsl,p1020-fcm-nand",
86			     "fsl,elbc-fcm-nand";
87		reg = <0x1 0x0 0x40000>;
88
89		partition@0 {
90			/* This location must not be altered  */
91			/* 1MB for u-boot Bootloader Image */
92			reg = <0x0 0x00100000>;
93			label = "NAND (RO) U-Boot Image";
94			read-only;
95		};
96
97		partition@100000 {
98			/* 1MB for DTB Image */
99			reg = <0x00100000 0x00100000>;
100			label = "NAND (RO) DTB Image";
101			read-only;
102		};
103
104		partition@200000 {
105			/* 4MB for Linux Kernel Image */
106			reg = <0x00200000 0x00400000>;
107			label = "NAND (RO) Linux Kernel Image";
108			read-only;
109		};
110
111		partition@600000 {
112			/* 4MB for Compressed Root file System Image */
113			reg = <0x00600000 0x00400000>;
114			label = "NAND (RO) Compressed RFS Image";
115			read-only;
116		};
117
118		partition@a00000 {
119			/* 7MB for JFFS2 based Root file System */
120			reg = <0x00a00000 0x00700000>;
121			label = "NAND (RW) JFFS2 Root File System";
122		};
123
124		partition@1100000 {
125			/* 15MB for JFFS2 based Root file System */
126			reg = <0x01100000 0x00f00000>;
127			label = "NAND (RW) Writable User area";
128		};
129	};
130
131	L2switch@2,0 {
132		#address-cells = <1>;
133		#size-cells = <1>;
134		compatible = "vitesse-7385";
135		reg = <0x2 0x0 0x20000>;
136	};
137};
138
139&board_soc {
140	i2c@3000 {
141		rtc@68 {
142			compatible = "dallas,ds1339";
143			reg = <0x68>;
144		};
145	};
146
147	spi@7000 {
148		flash@0 {
149			#address-cells = <1>;
150			#size-cells = <1>;
151			compatible = "spansion,s25sl12801";
152			reg = <0>;
153			spi-max-frequency = <40000000>; /* input clock */
154
155			partition@u-boot {
156				/* 512KB for u-boot Bootloader Image */
157				reg = <0x0 0x00080000>;
158				label = "u-boot";
159				read-only;
160			};
161
162			partition@dtb {
163				/* 512KB for DTB Image */
164				reg = <0x00080000 0x00080000>;
165				label = "dtb";
166				read-only;
167			};
168
169			partition@kernel {
170				/* 4MB for Linux Kernel Image */
171				reg = <0x00100000 0x00400000>;
172				label = "kernel";
173				read-only;
174			};
175
176			partition@fs {
177				/* 4MB for Compressed RFS Image */
178				reg = <0x00500000 0x00400000>;
179				label = "file system";
180				read-only;
181			};
182
183			partition@jffs-fs {
184				/* 7MB for JFFS2 based RFS */
185				reg = <0x00900000 0x00700000>;
186				label = "file system jffs2";
187			};
188		};
189	};
190
191	usb@22000 {
192		phy_type = "ulpi";
193		dr_mode = "host";
194	};
195
196	/* USB2 is shared with localbus. It is used
197	   only in case of SPI and SD boot after
198	   appropriate device-tree fixup done by uboot */
199	usb@23000 {
200		phy_type = "ulpi";
201		dr_mode = "host";
202	};
203
204	mdio@24000 {
205		phy0: ethernet-phy@0 {
206			interrupt-parent = <&mpic>;
207			interrupts = <3 1>;
208			reg = <0x0>;
209		};
210
211		phy1: ethernet-phy@1 {
212			interrupt-parent = <&mpic>;
213			interrupts = <2 1>;
214			reg = <0x1>;
215		};
216
217		tbi-phy@2 {
218			device_type = "tbi-phy";
219			reg = <0x2>;
220		};
221	};
222
223	mdio@25000 {
224		tbi0: tbi-phy@11 {
225			reg = <0x11>;
226			device_type = "tbi-phy";
227		};
228	};
229
230	enet0: ethernet@b0000 {
231		fixed-link = <1 1 1000 0 0>;
232		phy-connection-type = "rgmii-id";
233
234	};
235
236	enet1: ethernet@b1000 {
237		phy-handle = <&phy0>;
238		tbi-handle = <&tbi0>;
239		phy-connection-type = "sgmii";
240	};
241
242	enet2: ethernet@b2000 {
243		phy-handle = <&phy1>;
244		phy-connection-type = "rgmii-id";
245	};
246};
247