1/*
2 * P1021 RDB Device Tree Source stub (no addresses or top-level ranges)
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 THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35&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 Vitesse-7385 Firmware";
49			read-only;
50		};
51
52		partition@40000 {
53			/* 256KB for DTB Image */
54			reg = <0x00040000 0x00040000>;
55			label = "NOR DTB Image";
56		};
57
58		partition@80000 {
59			/* 3.5 MB for Linux Kernel Image */
60			reg = <0x00080000 0x00380000>;
61			label = "NOR Linux Kernel Image";
62		};
63
64		partition@400000 {
65			/* 10.75MB for JFFS2 based Root file System */
66			reg = <0x00400000 0x00ac0000>;
67			label = "NOR JFFS2 Root File System";
68		};
69
70		partition@ec0000 {
71			/* This location must not be altered  */
72			/* 256KB for QE ucode firmware*/
73			reg = <0x00ec0000 0x00040000>;
74			label = "NOR QE microcode firmware";
75			read-only;
76		};
77
78		partition@f00000 {
79			/* This location must not be altered  */
80			/* 512KB for u-boot Bootloader Image */
81			/* 512KB for u-boot Environment Variables */
82			reg = <0x00f00000 0x00100000>;
83			label = "NOR U-Boot Image";
84		};
85	};
86
87	nand@1,0 {
88		#address-cells = <1>;
89		#size-cells = <1>;
90		compatible = "fsl,p1021-fcm-nand",
91			     "fsl,elbc-fcm-nand";
92		reg = <0x1 0x0 0x40000>;
93
94		partition@0 {
95			/* This location must not be altered  */
96			/* 1MB for u-boot Bootloader Image */
97			reg = <0x0 0x00100000>;
98			label = "NAND U-Boot Image";
99			read-only;
100		};
101
102		partition@100000 {
103			/* 1MB for DTB Image */
104			reg = <0x00100000 0x00100000>;
105			label = "NAND DTB Image";
106		};
107
108		partition@200000 {
109			/* 4MB for Linux Kernel Image */
110			reg = <0x00200000 0x00400000>;
111			label = "NAND Linux Kernel Image";
112		};
113
114		partition@600000 {
115			/* 4MB for Compressed Root file System Image */
116			reg = <0x00600000 0x00400000>;
117			label = "NAND Compressed RFS Image";
118		};
119
120		partition@a00000 {
121			/* 7MB for JFFS2 based Root file System */
122			reg = <0x00a00000 0x00700000>;
123			label = "NAND JFFS2 Root File System";
124		};
125
126		partition@1100000 {
127			/* 15MB for User Writable Area  */
128			reg = <0x01100000 0x00f00000>;
129			label = "NAND Writable User area";
130		};
131	};
132
133	L2switch@2,0 {
134		#address-cells = <1>;
135		#size-cells = <1>;
136		compatible = "vitesse-7385";
137		reg = <0x2 0x0 0x20000>;
138	};
139};
140
141&soc {
142	i2c@3000 {
143		rtc@68 {
144			compatible = "pericom,pt7c4338";
145			reg = <0x68>;
146		};
147	};
148
149	spi@7000 {
150		flash@0 {
151			#address-cells = <1>;
152			#size-cells = <1>;
153			compatible = "spansion,s25sl12801", "jedec,spi-nor";
154			reg = <0>;
155			spi-max-frequency = <40000000>; /* input clock */
156
157			partition@u-boot {
158				/* 512KB for u-boot Bootloader Image */
159				reg = <0x0 0x00080000>;
160				label = "SPI Flash U-Boot Image";
161				read-only;
162			};
163
164			partition@dtb {
165				/* 512KB for DTB Image */
166				reg = <0x00080000 0x00080000>;
167				label = "SPI Flash DTB Image";
168			};
169
170			partition@kernel {
171				/* 4MB for Linux Kernel Image */
172				reg = <0x00100000 0x00400000>;
173				label = "SPI Flash Linux Kernel Image";
174			};
175
176			partition@fs {
177				/* 4MB for Compressed RFS Image */
178				reg = <0x00500000 0x00400000>;
179				label = "SPI Flash Compressed RFSImage";
180			};
181
182			partition@jffs-fs {
183				/* 7MB for JFFS2 based RFS */
184				reg = <0x00900000 0x00700000>;
185				label = "SPI Flash JFFS2 RFS";
186			};
187		};
188	};
189
190	usb@22000 {
191		phy_type = "ulpi";
192	};
193
194	mdio@24000 {
195		phy0: ethernet-phy@0 {
196			interrupt-parent = <&mpic>;
197			interrupts = <3 1 0 0>;
198			reg = <0x0>;
199		};
200
201		phy1: ethernet-phy@1 {
202			interrupt-parent = <&mpic>;
203			interrupts = <2 1 0 0>;
204			reg = <0x1>;
205		};
206
207		tbi0: tbi-phy@11 {
208			reg = <0x11>;
209			device_type = "tbi-phy";
210		};
211	};
212
213	mdio@25000 {
214		tbi1: tbi-phy@11 {
215			reg = <0x11>;
216			device_type = "tbi-phy";
217		};
218	};
219
220	mdio@26000 {
221		tbi2: tbi-phy@11 {
222			reg = <0x11>;
223			device_type = "tbi-phy";
224		};
225	};
226
227	ptp_clock@b0e00 {
228		compatible = "fsl,etsec-ptp";
229		reg = <0xb0e00 0xb0>;
230		interrupts = <68 2 0 0 69 2 0 0>;
231		fsl,tclk-period	= <10>;
232		fsl,tmr-prsc	= <2>;
233		fsl,tmr-add	= <0x80000016>;
234		fsl,tmr-fiper1	= <999999990>;
235		fsl,tmr-fiper2	= <99990>;
236		fsl,max-adj	= <199999999>;
237	};
238
239	enet0: ethernet@b0000 {
240		fixed-link = <1 1 1000 0 0>;
241		phy-connection-type = "rgmii-id";
242
243	};
244
245	enet1: ethernet@b1000 {
246		phy-handle = <&phy0>;
247		tbi-handle = <&tbi1>;
248		phy-connection-type = "sgmii";
249	};
250
251	enet2: ethernet@b2000 {
252		phy-handle = <&phy1>;
253		tbi-handle = <&tbi2>;
254		phy-connection-type = "rgmii-id";
255	};
256};
257