1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * P1021 RDB Device Tree Source stub (no addresses or top-level ranges)
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Copyright 2012 Freescale Semiconductor Inc.
5*c66ec88fSEmmanuel Vadot *
6*c66ec88fSEmmanuel Vadot * Redistribution and use in source and binary forms, with or without
7*c66ec88fSEmmanuel Vadot * modification, are permitted provided that the following conditions are met:
8*c66ec88fSEmmanuel Vadot *     * Redistributions of source code must retain the above copyright
9*c66ec88fSEmmanuel Vadot *       notice, this list of conditions and the following disclaimer.
10*c66ec88fSEmmanuel Vadot *     * Redistributions in binary form must reproduce the above copyright
11*c66ec88fSEmmanuel Vadot *       notice, this list of conditions and the following disclaimer in the
12*c66ec88fSEmmanuel Vadot *       documentation and/or other materials provided with the distribution.
13*c66ec88fSEmmanuel Vadot *     * Neither the name of Freescale Semiconductor nor the
14*c66ec88fSEmmanuel Vadot *       names of its contributors may be used to endorse or promote products
15*c66ec88fSEmmanuel Vadot *       derived from this software without specific prior written permission.
16*c66ec88fSEmmanuel Vadot *
17*c66ec88fSEmmanuel Vadot *
18*c66ec88fSEmmanuel Vadot * ALTERNATIVELY, this software may be distributed under the terms of the
19*c66ec88fSEmmanuel Vadot * GNU General Public License ("GPL") as published by the Free Software
20*c66ec88fSEmmanuel Vadot * Foundation, either version 2 of that License or (at your option) any
21*c66ec88fSEmmanuel Vadot * later version.
22*c66ec88fSEmmanuel Vadot *
23*c66ec88fSEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
24*c66ec88fSEmmanuel Vadot * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25*c66ec88fSEmmanuel Vadot * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26*c66ec88fSEmmanuel Vadot * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27*c66ec88fSEmmanuel Vadot * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28*c66ec88fSEmmanuel Vadot * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29*c66ec88fSEmmanuel Vadot * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30*c66ec88fSEmmanuel Vadot * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31*c66ec88fSEmmanuel Vadot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32*c66ec88fSEmmanuel Vadot * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33*c66ec88fSEmmanuel Vadot */
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot&lbc {
36*c66ec88fSEmmanuel Vadot	nor@0,0 {
37*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
38*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
39*c66ec88fSEmmanuel Vadot		compatible = "cfi-flash";
40*c66ec88fSEmmanuel Vadot		reg = <0x0 0x0 0x1000000>;
41*c66ec88fSEmmanuel Vadot		bank-width = <2>;
42*c66ec88fSEmmanuel Vadot		device-width = <1>;
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot		partition@0 {
45*c66ec88fSEmmanuel Vadot			/* This location must not be altered  */
46*c66ec88fSEmmanuel Vadot			/* 256KB for Vitesse 7385 Switch firmware */
47*c66ec88fSEmmanuel Vadot			reg = <0x0 0x00040000>;
48*c66ec88fSEmmanuel Vadot			label = "NOR Vitesse-7385 Firmware";
49*c66ec88fSEmmanuel Vadot			read-only;
50*c66ec88fSEmmanuel Vadot		};
51*c66ec88fSEmmanuel Vadot
52*c66ec88fSEmmanuel Vadot		partition@40000 {
53*c66ec88fSEmmanuel Vadot			/* 256KB for DTB Image */
54*c66ec88fSEmmanuel Vadot			reg = <0x00040000 0x00040000>;
55*c66ec88fSEmmanuel Vadot			label = "NOR DTB Image";
56*c66ec88fSEmmanuel Vadot		};
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadot		partition@80000 {
59*c66ec88fSEmmanuel Vadot			/* 3.5 MB for Linux Kernel Image */
60*c66ec88fSEmmanuel Vadot			reg = <0x00080000 0x00380000>;
61*c66ec88fSEmmanuel Vadot			label = "NOR Linux Kernel Image";
62*c66ec88fSEmmanuel Vadot		};
63*c66ec88fSEmmanuel Vadot
64*c66ec88fSEmmanuel Vadot		partition@400000 {
65*c66ec88fSEmmanuel Vadot			/* 10.75MB for JFFS2 based Root file System */
66*c66ec88fSEmmanuel Vadot			reg = <0x00400000 0x00ac0000>;
67*c66ec88fSEmmanuel Vadot			label = "NOR JFFS2 Root File System";
68*c66ec88fSEmmanuel Vadot		};
69*c66ec88fSEmmanuel Vadot
70*c66ec88fSEmmanuel Vadot		partition@ec0000 {
71*c66ec88fSEmmanuel Vadot			/* This location must not be altered  */
72*c66ec88fSEmmanuel Vadot			/* 256KB for QE ucode firmware*/
73*c66ec88fSEmmanuel Vadot			reg = <0x00ec0000 0x00040000>;
74*c66ec88fSEmmanuel Vadot			label = "NOR QE microcode firmware";
75*c66ec88fSEmmanuel Vadot			read-only;
76*c66ec88fSEmmanuel Vadot		};
77*c66ec88fSEmmanuel Vadot
78*c66ec88fSEmmanuel Vadot		partition@f00000 {
79*c66ec88fSEmmanuel Vadot			/* This location must not be altered  */
80*c66ec88fSEmmanuel Vadot			/* 512KB for u-boot Bootloader Image */
81*c66ec88fSEmmanuel Vadot			/* 512KB for u-boot Environment Variables */
82*c66ec88fSEmmanuel Vadot			reg = <0x00f00000 0x00100000>;
83*c66ec88fSEmmanuel Vadot			label = "NOR U-Boot Image";
84*c66ec88fSEmmanuel Vadot		};
85*c66ec88fSEmmanuel Vadot	};
86*c66ec88fSEmmanuel Vadot
87*c66ec88fSEmmanuel Vadot	nand@1,0 {
88*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
89*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
90*c66ec88fSEmmanuel Vadot		compatible = "fsl,p1021-fcm-nand",
91*c66ec88fSEmmanuel Vadot			     "fsl,elbc-fcm-nand";
92*c66ec88fSEmmanuel Vadot		reg = <0x1 0x0 0x40000>;
93*c66ec88fSEmmanuel Vadot
94*c66ec88fSEmmanuel Vadot		partition@0 {
95*c66ec88fSEmmanuel Vadot			/* This location must not be altered  */
96*c66ec88fSEmmanuel Vadot			/* 1MB for u-boot Bootloader Image */
97*c66ec88fSEmmanuel Vadot			reg = <0x0 0x00100000>;
98*c66ec88fSEmmanuel Vadot			label = "NAND U-Boot Image";
99*c66ec88fSEmmanuel Vadot			read-only;
100*c66ec88fSEmmanuel Vadot		};
101*c66ec88fSEmmanuel Vadot
102*c66ec88fSEmmanuel Vadot		partition@100000 {
103*c66ec88fSEmmanuel Vadot			/* 1MB for DTB Image */
104*c66ec88fSEmmanuel Vadot			reg = <0x00100000 0x00100000>;
105*c66ec88fSEmmanuel Vadot			label = "NAND DTB Image";
106*c66ec88fSEmmanuel Vadot		};
107*c66ec88fSEmmanuel Vadot
108*c66ec88fSEmmanuel Vadot		partition@200000 {
109*c66ec88fSEmmanuel Vadot			/* 4MB for Linux Kernel Image */
110*c66ec88fSEmmanuel Vadot			reg = <0x00200000 0x00400000>;
111*c66ec88fSEmmanuel Vadot			label = "NAND Linux Kernel Image";
112*c66ec88fSEmmanuel Vadot		};
113*c66ec88fSEmmanuel Vadot
114*c66ec88fSEmmanuel Vadot		partition@600000 {
115*c66ec88fSEmmanuel Vadot			/* 4MB for Compressed Root file System Image */
116*c66ec88fSEmmanuel Vadot			reg = <0x00600000 0x00400000>;
117*c66ec88fSEmmanuel Vadot			label = "NAND Compressed RFS Image";
118*c66ec88fSEmmanuel Vadot		};
119*c66ec88fSEmmanuel Vadot
120*c66ec88fSEmmanuel Vadot		partition@a00000 {
121*c66ec88fSEmmanuel Vadot			/* 7MB for JFFS2 based Root file System */
122*c66ec88fSEmmanuel Vadot			reg = <0x00a00000 0x00700000>;
123*c66ec88fSEmmanuel Vadot			label = "NAND JFFS2 Root File System";
124*c66ec88fSEmmanuel Vadot		};
125*c66ec88fSEmmanuel Vadot
126*c66ec88fSEmmanuel Vadot		partition@1100000 {
127*c66ec88fSEmmanuel Vadot			/* 15MB for User Writable Area  */
128*c66ec88fSEmmanuel Vadot			reg = <0x01100000 0x00f00000>;
129*c66ec88fSEmmanuel Vadot			label = "NAND Writable User area";
130*c66ec88fSEmmanuel Vadot		};
131*c66ec88fSEmmanuel Vadot	};
132*c66ec88fSEmmanuel Vadot
133*c66ec88fSEmmanuel Vadot	L2switch@2,0 {
134*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
135*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
136*c66ec88fSEmmanuel Vadot		compatible = "vitesse-7385";
137*c66ec88fSEmmanuel Vadot		reg = <0x2 0x0 0x20000>;
138*c66ec88fSEmmanuel Vadot	};
139*c66ec88fSEmmanuel Vadot};
140*c66ec88fSEmmanuel Vadot
141*c66ec88fSEmmanuel Vadot&soc {
142*c66ec88fSEmmanuel Vadot	i2c@3000 {
143*c66ec88fSEmmanuel Vadot		rtc@68 {
144*c66ec88fSEmmanuel Vadot			compatible = "pericom,pt7c4338";
145*c66ec88fSEmmanuel Vadot			reg = <0x68>;
146*c66ec88fSEmmanuel Vadot		};
147*c66ec88fSEmmanuel Vadot	};
148*c66ec88fSEmmanuel Vadot
149*c66ec88fSEmmanuel Vadot	spi@7000 {
150*c66ec88fSEmmanuel Vadot		flash@0 {
151*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
152*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
153*c66ec88fSEmmanuel Vadot			compatible = "spansion,s25sl12801", "jedec,spi-nor";
154*c66ec88fSEmmanuel Vadot			reg = <0>;
155*c66ec88fSEmmanuel Vadot			spi-max-frequency = <40000000>; /* input clock */
156*c66ec88fSEmmanuel Vadot
157*c66ec88fSEmmanuel Vadot			partition@u-boot {
158*c66ec88fSEmmanuel Vadot				/* 512KB for u-boot Bootloader Image */
159*c66ec88fSEmmanuel Vadot				reg = <0x0 0x00080000>;
160*c66ec88fSEmmanuel Vadot				label = "SPI Flash U-Boot Image";
161*c66ec88fSEmmanuel Vadot				read-only;
162*c66ec88fSEmmanuel Vadot			};
163*c66ec88fSEmmanuel Vadot
164*c66ec88fSEmmanuel Vadot			partition@dtb {
165*c66ec88fSEmmanuel Vadot				/* 512KB for DTB Image */
166*c66ec88fSEmmanuel Vadot				reg = <0x00080000 0x00080000>;
167*c66ec88fSEmmanuel Vadot				label = "SPI Flash DTB Image";
168*c66ec88fSEmmanuel Vadot			};
169*c66ec88fSEmmanuel Vadot
170*c66ec88fSEmmanuel Vadot			partition@kernel {
171*c66ec88fSEmmanuel Vadot				/* 4MB for Linux Kernel Image */
172*c66ec88fSEmmanuel Vadot				reg = <0x00100000 0x00400000>;
173*c66ec88fSEmmanuel Vadot				label = "SPI Flash Linux Kernel Image";
174*c66ec88fSEmmanuel Vadot			};
175*c66ec88fSEmmanuel Vadot
176*c66ec88fSEmmanuel Vadot			partition@fs {
177*c66ec88fSEmmanuel Vadot				/* 4MB for Compressed RFS Image */
178*c66ec88fSEmmanuel Vadot				reg = <0x00500000 0x00400000>;
179*c66ec88fSEmmanuel Vadot				label = "SPI Flash Compressed RFSImage";
180*c66ec88fSEmmanuel Vadot			};
181*c66ec88fSEmmanuel Vadot
182*c66ec88fSEmmanuel Vadot			partition@jffs-fs {
183*c66ec88fSEmmanuel Vadot				/* 7MB for JFFS2 based RFS */
184*c66ec88fSEmmanuel Vadot				reg = <0x00900000 0x00700000>;
185*c66ec88fSEmmanuel Vadot				label = "SPI Flash JFFS2 RFS";
186*c66ec88fSEmmanuel Vadot			};
187*c66ec88fSEmmanuel Vadot		};
188*c66ec88fSEmmanuel Vadot	};
189*c66ec88fSEmmanuel Vadot
190*c66ec88fSEmmanuel Vadot	usb@22000 {
191*c66ec88fSEmmanuel Vadot		phy_type = "ulpi";
192*c66ec88fSEmmanuel Vadot	};
193*c66ec88fSEmmanuel Vadot
194*c66ec88fSEmmanuel Vadot	mdio@24000 {
195*c66ec88fSEmmanuel Vadot		phy0: ethernet-phy@0 {
196*c66ec88fSEmmanuel Vadot			interrupt-parent = <&mpic>;
197*c66ec88fSEmmanuel Vadot			interrupts = <3 1 0 0>;
198*c66ec88fSEmmanuel Vadot			reg = <0x0>;
199*c66ec88fSEmmanuel Vadot		};
200*c66ec88fSEmmanuel Vadot
201*c66ec88fSEmmanuel Vadot		phy1: ethernet-phy@1 {
202*c66ec88fSEmmanuel Vadot			interrupt-parent = <&mpic>;
203*c66ec88fSEmmanuel Vadot			interrupts = <2 1 0 0>;
204*c66ec88fSEmmanuel Vadot			reg = <0x1>;
205*c66ec88fSEmmanuel Vadot		};
206*c66ec88fSEmmanuel Vadot
207*c66ec88fSEmmanuel Vadot		tbi0: tbi-phy@11 {
208*c66ec88fSEmmanuel Vadot			reg = <0x11>;
209*c66ec88fSEmmanuel Vadot			device_type = "tbi-phy";
210*c66ec88fSEmmanuel Vadot		};
211*c66ec88fSEmmanuel Vadot	};
212*c66ec88fSEmmanuel Vadot
213*c66ec88fSEmmanuel Vadot	mdio@25000 {
214*c66ec88fSEmmanuel Vadot		tbi1: tbi-phy@11 {
215*c66ec88fSEmmanuel Vadot			reg = <0x11>;
216*c66ec88fSEmmanuel Vadot			device_type = "tbi-phy";
217*c66ec88fSEmmanuel Vadot		};
218*c66ec88fSEmmanuel Vadot	};
219*c66ec88fSEmmanuel Vadot
220*c66ec88fSEmmanuel Vadot	mdio@26000 {
221*c66ec88fSEmmanuel Vadot		tbi2: tbi-phy@11 {
222*c66ec88fSEmmanuel Vadot			reg = <0x11>;
223*c66ec88fSEmmanuel Vadot			device_type = "tbi-phy";
224*c66ec88fSEmmanuel Vadot		};
225*c66ec88fSEmmanuel Vadot	};
226*c66ec88fSEmmanuel Vadot
227*c66ec88fSEmmanuel Vadot	ptp_clock@b0e00 {
228*c66ec88fSEmmanuel Vadot		compatible = "fsl,etsec-ptp";
229*c66ec88fSEmmanuel Vadot		reg = <0xb0e00 0xb0>;
230*c66ec88fSEmmanuel Vadot		interrupts = <68 2 0 0 69 2 0 0>;
231*c66ec88fSEmmanuel Vadot		fsl,tclk-period	= <10>;
232*c66ec88fSEmmanuel Vadot		fsl,tmr-prsc	= <2>;
233*c66ec88fSEmmanuel Vadot		fsl,tmr-add	= <0x80000016>;
234*c66ec88fSEmmanuel Vadot		fsl,tmr-fiper1	= <999999990>;
235*c66ec88fSEmmanuel Vadot		fsl,tmr-fiper2	= <99990>;
236*c66ec88fSEmmanuel Vadot		fsl,max-adj	= <199999999>;
237*c66ec88fSEmmanuel Vadot	};
238*c66ec88fSEmmanuel Vadot
239*c66ec88fSEmmanuel Vadot	enet0: ethernet@b0000 {
240*c66ec88fSEmmanuel Vadot		fixed-link = <1 1 1000 0 0>;
241*c66ec88fSEmmanuel Vadot		phy-connection-type = "rgmii-id";
242*c66ec88fSEmmanuel Vadot
243*c66ec88fSEmmanuel Vadot	};
244*c66ec88fSEmmanuel Vadot
245*c66ec88fSEmmanuel Vadot	enet1: ethernet@b1000 {
246*c66ec88fSEmmanuel Vadot		phy-handle = <&phy0>;
247*c66ec88fSEmmanuel Vadot		tbi-handle = <&tbi1>;
248*c66ec88fSEmmanuel Vadot		phy-connection-type = "sgmii";
249*c66ec88fSEmmanuel Vadot	};
250*c66ec88fSEmmanuel Vadot
251*c66ec88fSEmmanuel Vadot	enet2: ethernet@b2000 {
252*c66ec88fSEmmanuel Vadot		phy-handle = <&phy1>;
253*c66ec88fSEmmanuel Vadot		tbi-handle = <&tbi2>;
254*c66ec88fSEmmanuel Vadot		phy-connection-type = "rgmii-id";
255*c66ec88fSEmmanuel Vadot	};
256*c66ec88fSEmmanuel Vadot};
257