1dc37374bSHongtao Jia/*
2dc37374bSHongtao Jia * P1025 TWR Device Tree Source stub (no addresses or top-level ranges)
3dc37374bSHongtao Jia *
4dc37374bSHongtao Jia * Copyright 2013 Freescale Semiconductor Inc.
5dc37374bSHongtao Jia *
6dc37374bSHongtao Jia * Redistribution and use in source and binary forms, with or without
7dc37374bSHongtao Jia * modification, are permitted provided that the following conditions are met:
8dc37374bSHongtao Jia *     * Redistributions of source code must retain the above copyright
9dc37374bSHongtao Jia *       notice, this list of conditions and the following disclaimer.
10dc37374bSHongtao Jia *     * Redistributions in binary form must reproduce the above copyright
11dc37374bSHongtao Jia *       notice, this list of conditions and the following disclaimer in the
12dc37374bSHongtao Jia *       documentation and/or other materials provided with the distribution.
13dc37374bSHongtao Jia *     * Neither the name of Freescale Semiconductor nor the
14dc37374bSHongtao Jia *       names of its contributors may be used to endorse or promote products
15dc37374bSHongtao Jia *       derived from this software without specific prior written permission.
16dc37374bSHongtao Jia *
17dc37374bSHongtao Jia *
18dc37374bSHongtao Jia * ALTERNATIVELY, this software may be distributed under the terms of the
19dc37374bSHongtao Jia * GNU General Public License ("GPL") as published by the Free Software
20dc37374bSHongtao Jia * Foundation, either version 2 of that License or (at your option) any
21dc37374bSHongtao Jia * later version.
22dc37374bSHongtao Jia *
23dc37374bSHongtao Jia * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
24dc37374bSHongtao Jia * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25dc37374bSHongtao Jia * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26dc37374bSHongtao Jia * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27dc37374bSHongtao Jia * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28dc37374bSHongtao Jia * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29dc37374bSHongtao Jia * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30dc37374bSHongtao Jia * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31dc37374bSHongtao Jia * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32dc37374bSHongtao Jia * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33dc37374bSHongtao Jia */
34dc37374bSHongtao Jia
35dc37374bSHongtao Jia/{
36dc37374bSHongtao Jia       aliases {
37dc37374bSHongtao Jia		ethernet3 = &enet3;
38dc37374bSHongtao Jia		ethernet4 = &enet4;
39dc37374bSHongtao Jia       };
40dc37374bSHongtao Jia};
41dc37374bSHongtao Jia
42dc37374bSHongtao Jia&lbc {
43dc37374bSHongtao Jia	nor@0,0 {
44dc37374bSHongtao Jia		#address-cells = <1>;
45dc37374bSHongtao Jia		#size-cells = <1>;
46dc37374bSHongtao Jia		compatible = "cfi-flash";
47dc37374bSHongtao Jia		reg = <0x0 0x0 0x4000000>;
48dc37374bSHongtao Jia		bank-width = <2>;
49dc37374bSHongtao Jia		device-width = <1>;
50dc37374bSHongtao Jia
51dc37374bSHongtao Jia		partition@0 {
52dc37374bSHongtao Jia			/* This location must not be altered  */
53dc37374bSHongtao Jia			/* 256KB for Vitesse 7385 Switch firmware */
54dc37374bSHongtao Jia			reg = <0x0 0x00040000>;
55dc37374bSHongtao Jia			label = "NOR Vitesse-7385 Firmware";
56dc37374bSHongtao Jia			read-only;
57dc37374bSHongtao Jia		};
58dc37374bSHongtao Jia
59dc37374bSHongtao Jia		partition@40000 {
60dc37374bSHongtao Jia			/* 256KB for DTB Image */
61dc37374bSHongtao Jia			reg = <0x00040000 0x00040000>;
62dc37374bSHongtao Jia			label = "NOR DTB Image";
63dc37374bSHongtao Jia		};
64dc37374bSHongtao Jia
65dc37374bSHongtao Jia		partition@80000 {
66dc37374bSHongtao Jia			/* 5.5 MB for Linux Kernel Image */
67dc37374bSHongtao Jia			reg = <0x00080000 0x00580000>;
68dc37374bSHongtao Jia			label = "NOR Linux Kernel Image";
69dc37374bSHongtao Jia		};
70dc37374bSHongtao Jia
71dc37374bSHongtao Jia		partition@400000 {
72dc37374bSHongtao Jia			/* 56.75MB for Root file System */
73dc37374bSHongtao Jia			reg = <0x00600000 0x038c0000>;
74dc37374bSHongtao Jia			label = "NOR Root File System";
75dc37374bSHongtao Jia		};
76dc37374bSHongtao Jia
77dc37374bSHongtao Jia		partition@ec0000 {
78dc37374bSHongtao Jia			/* This location must not be altered  */
79dc37374bSHongtao Jia			/* 256KB for QE ucode firmware*/
80dc37374bSHongtao Jia			reg = <0x03ec0000 0x00040000>;
81dc37374bSHongtao Jia			label = "NOR QE microcode firmware";
82dc37374bSHongtao Jia			read-only;
83dc37374bSHongtao Jia		};
84dc37374bSHongtao Jia
85dc37374bSHongtao Jia		partition@f00000 {
86dc37374bSHongtao Jia			/* This location must not be altered  */
87dc37374bSHongtao Jia			/* 512KB for u-boot Bootloader Image */
88dc37374bSHongtao Jia			/* 512KB for u-boot Environment Variables */
89dc37374bSHongtao Jia			reg = <0x03f00000 0x00100000>;
90dc37374bSHongtao Jia			label = "NOR U-Boot Image";
91dc37374bSHongtao Jia			read-only;
92dc37374bSHongtao Jia		};
93dc37374bSHongtao Jia	};
94dc37374bSHongtao Jia
95dc37374bSHongtao Jia	/* CS2 for Display */
96dc37374bSHongtao Jia	display@2,0 {
97dc37374bSHongtao Jia		compatible = "solomon,ssd1289fb";
98dc37374bSHongtao Jia		reg = <0x2 0x0000 0x0004>;
99dc37374bSHongtao Jia	};
100dc37374bSHongtao Jia
101dc37374bSHongtao Jia};
102dc37374bSHongtao Jia
103dc37374bSHongtao Jia&soc {
104dc37374bSHongtao Jia	usb@22000 {
105dc37374bSHongtao Jia		phy_type = "ulpi";
106dc37374bSHongtao Jia	};
107dc37374bSHongtao Jia
108dc37374bSHongtao Jia	mdio@24000 {
109dc37374bSHongtao Jia		phy0: ethernet-phy@2 {
110dc37374bSHongtao Jia			interrupt-parent = <&mpic>;
111dc37374bSHongtao Jia			interrupts = <1 1 0 0>;
112dc37374bSHongtao Jia			reg = <0x2>;
113dc37374bSHongtao Jia		};
114dc37374bSHongtao Jia
115dc37374bSHongtao Jia		phy1: ethernet-phy@1 {
116dc37374bSHongtao Jia			interrupt-parent = <&mpic>;
117dc37374bSHongtao Jia			interrupts = <2 1 0 0>;
118dc37374bSHongtao Jia			reg = <0x1>;
119dc37374bSHongtao Jia		};
120dc37374bSHongtao Jia
121dc37374bSHongtao Jia		tbi0: tbi-phy@11 {
122dc37374bSHongtao Jia			reg = <0x11>;
123dc37374bSHongtao Jia			device_type = "tbi-phy";
124dc37374bSHongtao Jia		};
125dc37374bSHongtao Jia	};
126dc37374bSHongtao Jia
127dc37374bSHongtao Jia	mdio@25000 {
128dc37374bSHongtao Jia		tbi1: tbi-phy@11 {
129dc37374bSHongtao Jia			reg = <0x11>;
130dc37374bSHongtao Jia			device_type = "tbi-phy";
131dc37374bSHongtao Jia		};
132dc37374bSHongtao Jia	};
133dc37374bSHongtao Jia
134dc37374bSHongtao Jia	mdio@26000 {
135dc37374bSHongtao Jia		tbi2: tbi-phy@11 {
136dc37374bSHongtao Jia			reg = <0x11>;
137dc37374bSHongtao Jia			device_type = "tbi-phy";
138dc37374bSHongtao Jia		};
139dc37374bSHongtao Jia	};
140dc37374bSHongtao Jia
141dc37374bSHongtao Jia	ptp_clock@b0e00 {
142dc37374bSHongtao Jia		compatible = "fsl,etsec-ptp";
143dc37374bSHongtao Jia		reg = <0xb0e00 0xb0>;
144dc37374bSHongtao Jia		interrupts = <68 2 0 0 69 2 0 0>;
145dc37374bSHongtao Jia		fsl,tclk-period	= <10>;
146dc37374bSHongtao Jia		fsl,tmr-prsc	= <2>;
147dc37374bSHongtao Jia		fsl,tmr-add	= <0xc0000021>;
148dc37374bSHongtao Jia		fsl,tmr-fiper1	= <999999990>;
149dc37374bSHongtao Jia		fsl,tmr-fiper2	= <99990>;
150dc37374bSHongtao Jia		fsl,max-adj	= <133333332>;
151dc37374bSHongtao Jia	};
152dc37374bSHongtao Jia
153dc37374bSHongtao Jia	enet0: ethernet@b0000 {
154dc37374bSHongtao Jia		phy-handle = <&phy0>;
155dc37374bSHongtao Jia		phy-connection-type = "rgmii-id";
156dc37374bSHongtao Jia
157dc37374bSHongtao Jia	};
158dc37374bSHongtao Jia
159dc37374bSHongtao Jia	enet1: ethernet@b1000 {
160dc37374bSHongtao Jia		status = "disabled";
161dc37374bSHongtao Jia	};
162dc37374bSHongtao Jia
163dc37374bSHongtao Jia	enet2: ethernet@b2000 {
164dc37374bSHongtao Jia		phy-handle = <&phy1>;
165dc37374bSHongtao Jia		phy-connection-type = "rgmii-id";
166dc37374bSHongtao Jia	};
167dc37374bSHongtao Jia
168dc37374bSHongtao Jia	par_io@e0100 {
169dc37374bSHongtao Jia		#address-cells = <1>;
170dc37374bSHongtao Jia		#size-cells = <1>;
171dc37374bSHongtao Jia		reg = <0xe0100 0x60>;
172dc37374bSHongtao Jia		ranges = <0x0 0xe0100 0x60>;
173dc37374bSHongtao Jia		device_type = "par_io";
174dc37374bSHongtao Jia		num-ports = <3>;
175600ecc19SMathieu Malaterre		pio1: ucc_pin@1 {
176dc37374bSHongtao Jia			pio-map = <
177dc37374bSHongtao Jia		/* port  pin  dir  open_drain  assignment  has_irq */
178dc37374bSHongtao Jia				0x1  0x13 0x1  0x0  0x1  0x0    /* QE_MUX_MDC */
179dc37374bSHongtao Jia				0x1  0x14 0x3  0x0  0x1  0x0    /* QE_MUX_MDIO */
180dc37374bSHongtao Jia				0x0  0x17 0x2  0x0  0x2  0x0    /* CLK12 */
181dc37374bSHongtao Jia				0x0  0x18 0x2  0x0  0x1  0x0    /* CLK9 */
182dc37374bSHongtao Jia				0x0  0x7  0x1  0x0  0x2  0x0    /* ENET1_TXD0_SER1_TXD0 */
183dc37374bSHongtao Jia				0x0  0x9  0x1  0x0  0x2  0x0    /* ENET1_TXD1_SER1_TXD1 */
184dc37374bSHongtao Jia				0x0  0xb  0x1  0x0  0x2  0x0    /* ENET1_TXD2_SER1_TXD2 */
185dc37374bSHongtao Jia				0x0  0xc  0x1  0x0  0x2  0x0    /* ENET1_TXD3_SER1_TXD3 */
186dc37374bSHongtao Jia				0x0  0x6  0x2  0x0  0x2  0x0    /* ENET1_RXD0_SER1_RXD0 */
187dc37374bSHongtao Jia				0x0  0xa  0x2  0x0  0x2  0x0    /* ENET1_RXD1_SER1_RXD1 */
188dc37374bSHongtao Jia				0x0  0xe  0x2  0x0  0x2  0x0    /* ENET1_RXD2_SER1_RXD2 */
189dc37374bSHongtao Jia				0x0  0xf  0x2  0x0  0x2  0x0    /* ENET1_RXD3_SER1_RXD3 */
190dc37374bSHongtao Jia				0x0  0x5  0x1  0x0  0x2  0x0    /* ENET1_TX_EN_SER1_RTS_B */
191dc37374bSHongtao Jia				0x0  0xd  0x1  0x0  0x2  0x0    /* ENET1_TX_ER */
192dc37374bSHongtao Jia				0x0  0x4  0x2  0x0  0x2  0x0    /* ENET1_RX_DV_SER1_CTS_B */
193dc37374bSHongtao Jia				0x0  0x8  0x2  0x0  0x2  0x0    /* ENET1_RX_ER_SER1_CD_B */
194dc37374bSHongtao Jia				0x0  0x11 0x2  0x0  0x2  0x0    /* ENET1_CRS */
195dc37374bSHongtao Jia				0x0  0x10 0x2  0x0  0x2  0x0>;    /* ENET1_COL */
196dc37374bSHongtao Jia		};
197dc37374bSHongtao Jia
198600ecc19SMathieu Malaterre		pio2: ucc_pin@2 {
199dc37374bSHongtao Jia			pio-map = <
200dc37374bSHongtao Jia		/* port  pin  dir  open_drain  assignment  has_irq */
201dc37374bSHongtao Jia				0x1  0x13 0x1  0x0  0x1  0x0    /* QE_MUX_MDC */
202dc37374bSHongtao Jia				0x1  0x14 0x3  0x0  0x1  0x0    /* QE_MUX_MDIO */
203dc37374bSHongtao Jia				0x1  0xb  0x2  0x0  0x1  0x0    /* CLK13 */
204dc37374bSHongtao Jia				0x1  0x7  0x1  0x0  0x2  0x0    /* ENET5_TXD0_SER5_TXD0 */
205dc37374bSHongtao Jia				0x1  0xa  0x1  0x0  0x2  0x0    /* ENET5_TXD1_SER5_TXD1 */
206dc37374bSHongtao Jia				0x1  0x6  0x2  0x0  0x2  0x0    /* ENET5_RXD0_SER5_RXD0 */
207dc37374bSHongtao Jia				0x1  0x9  0x2  0x0  0x2  0x0    /* ENET5_RXD1_SER5_RXD1 */
208dc37374bSHongtao Jia				0x1  0x5  0x1  0x0  0x2  0x0    /* ENET5_TX_EN_SER5_RTS_B */
209dc37374bSHongtao Jia				0x1  0x4  0x2  0x0  0x2  0x0    /* ENET5_RX_DV_SER5_CTS_B */
210dc37374bSHongtao Jia				0x1  0x8  0x2  0x0  0x2  0x0>;    /* ENET5_RX_ER_SER5_CD_B */
211dc37374bSHongtao Jia		};
212dc37374bSHongtao Jia
213600ecc19SMathieu Malaterre		pio3: ucc_pin@3 {
214dc37374bSHongtao Jia			pio-map = <
215dc37374bSHongtao Jia		/* port  pin  dir  open_drain  assignment  has_irq */
216dc37374bSHongtao Jia				0x0  0x16 0x2  0x0  0x2  0x0    /* SER7_CD_B*/
217dc37374bSHongtao Jia				0x0  0x12 0x2  0x0  0x2  0x0    /* SER7_CTS_B*/
218dc37374bSHongtao Jia				0x0  0x13 0x1  0x0  0x2  0x0    /* SER7_RTS_B*/
219dc37374bSHongtao Jia				0x0  0x14 0x2  0x0  0x2  0x0    /* SER7_RXD0*/
220dc37374bSHongtao Jia				0x0  0x15 0x1  0x0  0x2  0x0>;    /* SER7_TXD0*/
221dc37374bSHongtao Jia		};
222dc37374bSHongtao Jia
223600ecc19SMathieu Malaterre		pio4: ucc_pin@4 {
224dc37374bSHongtao Jia			pio-map = <
225dc37374bSHongtao Jia		/* port  pin  dir  open_drain  assignment  has_irq */
226dc37374bSHongtao Jia				0x1  0x0  0x2  0x0  0x2  0x0    /* SER3_CD_B*/
227dc37374bSHongtao Jia				0x0  0x1c 0x2  0x0  0x2  0x0    /* SER3_CTS_B*/
228dc37374bSHongtao Jia				0x0  0x1d 0x1  0x0  0x2  0x0    /* SER3_RTS_B*/
229dc37374bSHongtao Jia				0x0  0x1e 0x2  0x0  0x2  0x0    /* SER3_RXD0*/
230dc37374bSHongtao Jia				0x0  0x1f 0x1  0x0  0x2  0x0>;    /* SER3_TXD0*/
231dc37374bSHongtao Jia		};
232dc37374bSHongtao Jia	};
233dc37374bSHongtao Jia};
234dc37374bSHongtao Jia
235dc37374bSHongtao Jia&qe {
236dc37374bSHongtao Jia	enet3: ucc@2000 {
237dc37374bSHongtao Jia		device_type = "network";
238dc37374bSHongtao Jia		compatible = "ucc_geth";
239dc37374bSHongtao Jia		rx-clock-name = "clk12";
240dc37374bSHongtao Jia		tx-clock-name = "clk9";
241dc37374bSHongtao Jia		pio-handle = <&pio1>;
242dc37374bSHongtao Jia		phy-handle = <&qe_phy0>;
243dc37374bSHongtao Jia		phy-connection-type = "mii";
244dc37374bSHongtao Jia	};
245dc37374bSHongtao Jia
246dc37374bSHongtao Jia	mdio@2120 {
247dc37374bSHongtao Jia		qe_phy0: ethernet-phy@18 {
248dc37374bSHongtao Jia			interrupt-parent = <&mpic>;
249dc37374bSHongtao Jia			interrupts = <4 1 0 0>;
250dc37374bSHongtao Jia			reg = <0x18>;
251dc37374bSHongtao Jia			device_type = "ethernet-phy";
252dc37374bSHongtao Jia		};
253dc37374bSHongtao Jia		qe_phy1: ethernet-phy@19 {
254dc37374bSHongtao Jia			interrupt-parent = <&mpic>;
255dc37374bSHongtao Jia			interrupts = <5 1 0 0>;
256dc37374bSHongtao Jia			reg = <0x19>;
257dc37374bSHongtao Jia			device_type = "ethernet-phy";
258dc37374bSHongtao Jia		};
259dc37374bSHongtao Jia		tbi-phy@11 {
260dc37374bSHongtao Jia			reg = <0x11>;
261dc37374bSHongtao Jia			device_type = "tbi-phy";
262dc37374bSHongtao Jia		};
263dc37374bSHongtao Jia	};
264dc37374bSHongtao Jia
265dc37374bSHongtao Jia	enet4: ucc@2400 {
266dc37374bSHongtao Jia		device_type = "network";
267dc37374bSHongtao Jia		compatible = "ucc_geth";
268dc37374bSHongtao Jia		rx-clock-name = "none";
269dc37374bSHongtao Jia		tx-clock-name = "clk13";
270dc37374bSHongtao Jia		pio-handle = <&pio2>;
271dc37374bSHongtao Jia		phy-handle = <&qe_phy1>;
272dc37374bSHongtao Jia		phy-connection-type = "rmii";
273dc37374bSHongtao Jia	};
274dc37374bSHongtao Jia
275dc37374bSHongtao Jia	serial2: ucc@2600 {
276dc37374bSHongtao Jia		device_type = "serial";
277dc37374bSHongtao Jia		compatible = "ucc_uart";
278dc37374bSHongtao Jia		port-number = <0>;
279dc37374bSHongtao Jia		rx-clock-name = "brg6";
280dc37374bSHongtao Jia		tx-clock-name = "brg6";
281dc37374bSHongtao Jia		pio-handle = <&pio3>;
282dc37374bSHongtao Jia	};
283dc37374bSHongtao Jia
284dc37374bSHongtao Jia	serial3: ucc@2200 {
285dc37374bSHongtao Jia		device_type = "serial";
286dc37374bSHongtao Jia		compatible = "ucc_uart";
287dc37374bSHongtao Jia		port-number = <1>;
288dc37374bSHongtao Jia		rx-clock-name = "brg2";
289dc37374bSHongtao Jia		tx-clock-name = "brg2";
290dc37374bSHongtao Jia		pio-handle = <&pio4>;
291dc37374bSHongtao Jia	};
292dc37374bSHongtao Jia};
293