1dc37374bSHongtao Jia/*
2dc37374bSHongtao Jia * MPC8568E MDS Device Tree Source
3dc37374bSHongtao Jia *
4dc37374bSHongtao Jia * Copyright 2007, 2008 Freescale Semiconductor Inc.
5dc37374bSHongtao Jia *
6dc37374bSHongtao Jia * This program is free software; you can redistribute  it and/or modify it
7dc37374bSHongtao Jia * under  the terms of  the GNU General  Public License as published by the
8dc37374bSHongtao Jia * Free Software Foundation;  either version 2 of the  License, or (at your
9dc37374bSHongtao Jia * option) any later version.
10dc37374bSHongtao Jia */
11dc37374bSHongtao Jia
12dc37374bSHongtao Jia/include/ "mpc8568si-pre.dtsi"
13dc37374bSHongtao Jia
14dc37374bSHongtao Jia/ {
15dc37374bSHongtao Jia	model = "MPC8568EMDS";
16dc37374bSHongtao Jia	compatible = "MPC8568EMDS", "MPC85xxMDS";
17dc37374bSHongtao Jia
18dc37374bSHongtao Jia	aliases {
19dc37374bSHongtao Jia		pci0 = &pci0;
20dc37374bSHongtao Jia		pci1 = &pci1;
21dc37374bSHongtao Jia		rapidio0 = &rio;
22dc37374bSHongtao Jia	};
23dc37374bSHongtao Jia
24dc37374bSHongtao Jia	memory {
25dc37374bSHongtao Jia		device_type = "memory";
26dc37374bSHongtao Jia		reg = <0x0 0x0 0x0 0x0>;
27dc37374bSHongtao Jia	};
28dc37374bSHongtao Jia
29dc37374bSHongtao Jia	lbc: localbus@e0005000 {
30dc37374bSHongtao Jia		reg = <0x0 0xe0005000 0x0 0x1000>;
31dc37374bSHongtao Jia		ranges = <0x0 0x0 0xfe000000 0x02000000
32dc37374bSHongtao Jia			  0x1 0x0 0xf8000000 0x00008000
33dc37374bSHongtao Jia			  0x2 0x0 0xf0000000 0x04000000
34dc37374bSHongtao Jia			  0x4 0x0 0xf8008000 0x00008000
35dc37374bSHongtao Jia			  0x5 0x0 0xf8010000 0x00008000>;
36dc37374bSHongtao Jia
37dc37374bSHongtao Jia		nor@0,0 {
38dc37374bSHongtao Jia			#address-cells = <1>;
39dc37374bSHongtao Jia			#size-cells = <1>;
40dc37374bSHongtao Jia			compatible = "cfi-flash";
41dc37374bSHongtao Jia			reg = <0x0 0x0 0x02000000>;
42dc37374bSHongtao Jia			bank-width = <2>;
43dc37374bSHongtao Jia			device-width = <2>;
44dc37374bSHongtao Jia		};
45dc37374bSHongtao Jia
46dc37374bSHongtao Jia		bcsr@1,0 {
47dc37374bSHongtao Jia			#address-cells = <1>;
48dc37374bSHongtao Jia			#size-cells = <1>;
49dc37374bSHongtao Jia			compatible = "fsl,mpc8568mds-bcsr";
50dc37374bSHongtao Jia			reg = <1 0 0x8000>;
51dc37374bSHongtao Jia			ranges = <0 1 0 0x8000>;
52dc37374bSHongtao Jia
53dc37374bSHongtao Jia			bcsr5: gpio-controller@11 {
54dc37374bSHongtao Jia				#gpio-cells = <2>;
55dc37374bSHongtao Jia				compatible = "fsl,mpc8568mds-bcsr-gpio";
56dc37374bSHongtao Jia				reg = <0x5 0x1>;
57dc37374bSHongtao Jia				gpio-controller;
58dc37374bSHongtao Jia			};
59dc37374bSHongtao Jia		};
60dc37374bSHongtao Jia
61dc37374bSHongtao Jia		pib@4,0 {
62dc37374bSHongtao Jia			compatible = "fsl,mpc8568mds-pib";
63dc37374bSHongtao Jia			reg = <4 0 0x8000>;
64dc37374bSHongtao Jia		};
65dc37374bSHongtao Jia
66dc37374bSHongtao Jia		pib@5,0 {
67dc37374bSHongtao Jia			compatible = "fsl,mpc8568mds-pib";
68dc37374bSHongtao Jia			reg = <5 0 0x8000>;
69dc37374bSHongtao Jia		};
70dc37374bSHongtao Jia	};
71dc37374bSHongtao Jia
72dc37374bSHongtao Jia	soc: soc8568@e0000000 {
73dc37374bSHongtao Jia		ranges = <0x0 0x0 0xe0000000 0x100000>;
74dc37374bSHongtao Jia
75dc37374bSHongtao Jia		i2c-sleep-nexus {
76dc37374bSHongtao Jia			i2c@3000 {
77dc37374bSHongtao Jia				rtc@68 {
78dc37374bSHongtao Jia					compatible = "dallas,ds1374";
79dc37374bSHongtao Jia					reg = <0x68>;
80dc37374bSHongtao Jia					interrupts = <3 1 0 0>;
81dc37374bSHongtao Jia				};
82dc37374bSHongtao Jia			};
83dc37374bSHongtao Jia		};
84dc37374bSHongtao Jia
85dc37374bSHongtao Jia		enet0: ethernet@24000 {
86dc37374bSHongtao Jia			tbi-handle = <&tbi0>;
87dc37374bSHongtao Jia			phy-handle = <&phy2>;
88dc37374bSHongtao Jia		};
89dc37374bSHongtao Jia
90dc37374bSHongtao Jia		mdio@24520 {
91dc37374bSHongtao Jia			phy0: ethernet-phy@7 {
92dc37374bSHongtao Jia				interrupts = <1 1 0 0>;
93dc37374bSHongtao Jia				reg = <0x7>;
94dc37374bSHongtao Jia			};
95dc37374bSHongtao Jia			phy1: ethernet-phy@1 {
96dc37374bSHongtao Jia				interrupts = <2 1 0 0>;
97dc37374bSHongtao Jia				reg = <0x1>;
98dc37374bSHongtao Jia			};
99dc37374bSHongtao Jia			phy2: ethernet-phy@2 {
100dc37374bSHongtao Jia				interrupts = <1 1 0 0>;
101dc37374bSHongtao Jia				reg = <0x2>;
102dc37374bSHongtao Jia			};
103dc37374bSHongtao Jia			phy3: ethernet-phy@3 {
104dc37374bSHongtao Jia				interrupts = <2 1 0 0>;
105dc37374bSHongtao Jia				reg = <0x3>;
106dc37374bSHongtao Jia			};
107dc37374bSHongtao Jia			tbi0: tbi-phy@11 {
108dc37374bSHongtao Jia				reg = <0x11>;
109dc37374bSHongtao Jia				device_type = "tbi-phy";
110dc37374bSHongtao Jia			};
111dc37374bSHongtao Jia		};
112dc37374bSHongtao Jia
113dc37374bSHongtao Jia		enet1: ethernet@25000 {
114dc37374bSHongtao Jia			tbi-handle = <&tbi1>;
115dc37374bSHongtao Jia			phy-handle = <&phy3>;
116dc37374bSHongtao Jia			sleep = <&pmc 0x00000040>;
117dc37374bSHongtao Jia		};
118dc37374bSHongtao Jia
119dc37374bSHongtao Jia		mdio@25520 {
120dc37374bSHongtao Jia			tbi1: tbi-phy@11 {
121dc37374bSHongtao Jia				reg = <0x11>;
122dc37374bSHongtao Jia				device_type = "tbi-phy";
123dc37374bSHongtao Jia			};
124dc37374bSHongtao Jia		};
125dc37374bSHongtao Jia
126dc37374bSHongtao Jia		par_io@e0100 {
127dc37374bSHongtao Jia			num-ports = <7>;
128dc37374bSHongtao Jia
129dc37374bSHongtao Jia			pio1: ucc_pin@01 {
130dc37374bSHongtao Jia				pio-map = <
131dc37374bSHongtao Jia			/* port  pin  dir  open_drain  assignment  has_irq */
132dc37374bSHongtao Jia					0x4  0xa  0x1  0x0  0x2  0x0 	/* TxD0 */
133dc37374bSHongtao Jia					0x4  0x9  0x1  0x0  0x2  0x0 	/* TxD1 */
134dc37374bSHongtao Jia					0x4  0x8  0x1  0x0  0x2  0x0 	/* TxD2 */
135dc37374bSHongtao Jia					0x4  0x7  0x1  0x0  0x2  0x0 	/* TxD3 */
136dc37374bSHongtao Jia					0x4  0x17  0x1  0x0  0x2  0x0 	/* TxD4 */
137dc37374bSHongtao Jia					0x4  0x16  0x1  0x0  0x2  0x0 	/* TxD5 */
138dc37374bSHongtao Jia					0x4  0x15  0x1  0x0  0x2  0x0 	/* TxD6 */
139dc37374bSHongtao Jia					0x4  0x14  0x1  0x0  0x2  0x0 	/* TxD7 */
140dc37374bSHongtao Jia					0x4  0xf  0x2  0x0  0x2  0x0 	/* RxD0 */
141dc37374bSHongtao Jia					0x4  0xe  0x2  0x0  0x2  0x0 	/* RxD1 */
142dc37374bSHongtao Jia					0x4  0xd  0x2  0x0  0x2  0x0 	/* RxD2 */
143dc37374bSHongtao Jia					0x4  0xc  0x2  0x0  0x2  0x0 	/* RxD3 */
144dc37374bSHongtao Jia					0x4  0x1d  0x2  0x0  0x2  0x0 	/* RxD4 */
145dc37374bSHongtao Jia					0x4  0x1c  0x2  0x0  0x2  0x0 	/* RxD5 */
146dc37374bSHongtao Jia					0x4  0x1b  0x2  0x0  0x2  0x0 	/* RxD6 */
147dc37374bSHongtao Jia					0x4  0x1a  0x2  0x0  0x2  0x0 	/* RxD7 */
148dc37374bSHongtao Jia					0x4  0xb  0x1  0x0  0x2  0x0 	/* TX_EN */
149dc37374bSHongtao Jia					0x4  0x18  0x1  0x0  0x2  0x0 	/* TX_ER */
150dc37374bSHongtao Jia					0x4  0x10  0x2  0x0  0x2  0x0 	/* RX_DV */
151dc37374bSHongtao Jia					0x4  0x1e  0x2  0x0  0x2  0x0 	/* RX_ER */
152dc37374bSHongtao Jia					0x4  0x11  0x2  0x0  0x2  0x0 	/* RX_CLK */
153dc37374bSHongtao Jia					0x4  0x13  0x1  0x0  0x2  0x0 	/* GTX_CLK */
154dc37374bSHongtao Jia					0x1  0x1f  0x2  0x0  0x3  0x0>;	/* GTX125 */
155dc37374bSHongtao Jia			};
156dc37374bSHongtao Jia
157dc37374bSHongtao Jia			pio2: ucc_pin@02 {
158dc37374bSHongtao Jia				pio-map = <
159dc37374bSHongtao Jia			/* port  pin  dir  open_drain  assignment  has_irq */
160dc37374bSHongtao Jia					0x5  0xa 0x1  0x0  0x2  0x0   /* TxD0 */
161dc37374bSHongtao Jia					0x5  0x9 0x1  0x0  0x2  0x0   /* TxD1 */
162dc37374bSHongtao Jia					0x5  0x8 0x1  0x0  0x2  0x0   /* TxD2 */
163dc37374bSHongtao Jia					0x5  0x7 0x1  0x0  0x2  0x0   /* TxD3 */
164dc37374bSHongtao Jia					0x5  0x17 0x1  0x0  0x2  0x0   /* TxD4 */
165dc37374bSHongtao Jia					0x5  0x16 0x1  0x0  0x2  0x0   /* TxD5 */
166dc37374bSHongtao Jia					0x5  0x15 0x1  0x0  0x2  0x0   /* TxD6 */
167dc37374bSHongtao Jia					0x5  0x14 0x1  0x0  0x2  0x0   /* TxD7 */
168dc37374bSHongtao Jia					0x5  0xf 0x2  0x0  0x2  0x0   /* RxD0 */
169dc37374bSHongtao Jia					0x5  0xe 0x2  0x0  0x2  0x0   /* RxD1 */
170dc37374bSHongtao Jia					0x5  0xd 0x2  0x0  0x2  0x0   /* RxD2 */
171dc37374bSHongtao Jia					0x5  0xc 0x2  0x0  0x2  0x0   /* RxD3 */
172dc37374bSHongtao Jia					0x5  0x1d 0x2  0x0  0x2  0x0   /* RxD4 */
173dc37374bSHongtao Jia					0x5  0x1c 0x2  0x0  0x2  0x0   /* RxD5 */
174dc37374bSHongtao Jia					0x5  0x1b 0x2  0x0  0x2  0x0   /* RxD6 */
175dc37374bSHongtao Jia					0x5  0x1a 0x2  0x0  0x2  0x0   /* RxD7 */
176dc37374bSHongtao Jia					0x5  0xb 0x1  0x0  0x2  0x0   /* TX_EN */
177dc37374bSHongtao Jia					0x5  0x18 0x1  0x0  0x2  0x0   /* TX_ER */
178dc37374bSHongtao Jia					0x5  0x10 0x2  0x0  0x2  0x0   /* RX_DV */
179dc37374bSHongtao Jia					0x5  0x1e 0x2  0x0  0x2  0x0   /* RX_ER */
180dc37374bSHongtao Jia					0x5  0x11 0x2  0x0  0x2  0x0   /* RX_CLK */
181dc37374bSHongtao Jia					0x5  0x13 0x1  0x0  0x2  0x0   /* GTX_CLK */
182dc37374bSHongtao Jia					0x1  0x1f 0x2  0x0  0x3  0x0   /* GTX125 */
183dc37374bSHongtao Jia					0x4  0x6 0x3  0x0  0x2  0x0   /* MDIO */
184dc37374bSHongtao Jia					0x4  0x5 0x1  0x0  0x2  0x0>; /* MDC */
185dc37374bSHongtao Jia			};
186dc37374bSHongtao Jia		};
187dc37374bSHongtao Jia	};
188dc37374bSHongtao Jia
189dc37374bSHongtao Jia	qe: qe@e0080000 {
190dc37374bSHongtao Jia		ranges = <0x0 0x0 0xe0080000 0x40000>;
191dc37374bSHongtao Jia		reg = <0x0 0xe0080000 0x0 0x480>;
192dc37374bSHongtao Jia
193dc37374bSHongtao Jia		spi@4c0 {
194dc37374bSHongtao Jia			mode = "cpu";
195dc37374bSHongtao Jia		};
196dc37374bSHongtao Jia
197dc37374bSHongtao Jia		spi@500 {
198dc37374bSHongtao Jia			mode = "cpu";
199dc37374bSHongtao Jia		};
200dc37374bSHongtao Jia
201dc37374bSHongtao Jia		enet2: ucc@2000 {
202dc37374bSHongtao Jia			device_type = "network";
203dc37374bSHongtao Jia			compatible = "ucc_geth";
204dc37374bSHongtao Jia			local-mac-address = [ 00 00 00 00 00 00 ];
205dc37374bSHongtao Jia			rx-clock-name = "none";
206dc37374bSHongtao Jia			tx-clock-name = "clk16";
207dc37374bSHongtao Jia			pio-handle = <&pio1>;
208dc37374bSHongtao Jia			phy-handle = <&phy0>;
209dc37374bSHongtao Jia			phy-connection-type = "rgmii-id";
210dc37374bSHongtao Jia		};
211dc37374bSHongtao Jia
212dc37374bSHongtao Jia		enet3: ucc@3000 {
213dc37374bSHongtao Jia			device_type = "network";
214dc37374bSHongtao Jia			compatible = "ucc_geth";
215dc37374bSHongtao Jia			local-mac-address = [ 00 00 00 00 00 00 ];
216dc37374bSHongtao Jia			rx-clock-name = "none";
217dc37374bSHongtao Jia			tx-clock-name = "clk16";
218dc37374bSHongtao Jia			pio-handle = <&pio2>;
219dc37374bSHongtao Jia			phy-handle = <&phy1>;
220dc37374bSHongtao Jia			phy-connection-type = "rgmii-id";
221dc37374bSHongtao Jia		};
222dc37374bSHongtao Jia
223dc37374bSHongtao Jia		mdio@2120 {
224dc37374bSHongtao Jia			#address-cells = <1>;
225dc37374bSHongtao Jia			#size-cells = <0>;
226dc37374bSHongtao Jia			reg = <0x2120 0x18>;
227dc37374bSHongtao Jia			compatible = "fsl,ucc-mdio";
228dc37374bSHongtao Jia
229dc37374bSHongtao Jia			/* These are the same PHYs as on
230dc37374bSHongtao Jia			 * gianfar's MDIO bus */
231dc37374bSHongtao Jia			qe_phy0: ethernet-phy@07 {
232dc37374bSHongtao Jia				interrupt-parent = <&mpic>;
233dc37374bSHongtao Jia				interrupts = <1 1 0 0>;
234dc37374bSHongtao Jia				reg = <0x7>;
235dc37374bSHongtao Jia			};
236dc37374bSHongtao Jia			qe_phy1: ethernet-phy@01 {
237dc37374bSHongtao Jia				interrupt-parent = <&mpic>;
238dc37374bSHongtao Jia				interrupts = <2 1 0 0>;
239dc37374bSHongtao Jia				reg = <0x1>;
240dc37374bSHongtao Jia			};
241dc37374bSHongtao Jia			qe_phy2: ethernet-phy@02 {
242dc37374bSHongtao Jia				interrupt-parent = <&mpic>;
243dc37374bSHongtao Jia				interrupts = <1 1 0 0>;
244dc37374bSHongtao Jia				reg = <0x2>;
245dc37374bSHongtao Jia			};
246dc37374bSHongtao Jia			qe_phy3: ethernet-phy@03 {
247dc37374bSHongtao Jia				interrupt-parent = <&mpic>;
248dc37374bSHongtao Jia				interrupts = <2 1 0 0>;
249dc37374bSHongtao Jia				reg = <0x3>;
250dc37374bSHongtao Jia			};
251dc37374bSHongtao Jia		};
252dc37374bSHongtao Jia	};
253dc37374bSHongtao Jia
254dc37374bSHongtao Jia	pci0: pci@e0008000 {
255dc37374bSHongtao Jia		reg = <0x0 0xe0008000 0x0 0x1000>;
256dc37374bSHongtao Jia		ranges = <0x2000000 0x0 0x80000000 0x0 0x80000000 0x0 0x20000000
257dc37374bSHongtao Jia			  0x1000000 0x0 0x00000000 0x0 0xe2000000 0x0 0x800000>;
258dc37374bSHongtao Jia		clock-frequency = <66666666>;
259dc37374bSHongtao Jia		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
260dc37374bSHongtao Jia		interrupt-map = <
261dc37374bSHongtao Jia			/* IDSEL 0x12 AD18 */
262dc37374bSHongtao Jia			0x9000 0x0 0x0 0x1 &mpic 0x5 0x1 0 0
263dc37374bSHongtao Jia			0x9000 0x0 0x0 0x2 &mpic 0x6 0x1 0 0
264dc37374bSHongtao Jia			0x9000 0x0 0x0 0x3 &mpic 0x7 0x1 0 0
265dc37374bSHongtao Jia			0x9000 0x0 0x0 0x4 &mpic 0x4 0x1 0 0
266dc37374bSHongtao Jia
267dc37374bSHongtao Jia			/* IDSEL 0x13 AD19 */
268dc37374bSHongtao Jia			0x9800 0x0 0x0 0x1 &mpic 0x6 0x1 0 0
269dc37374bSHongtao Jia			0x9800 0x0 0x0 0x2 &mpic 0x7 0x1 0 0
270dc37374bSHongtao Jia			0x9800 0x0 0x0 0x3 &mpic 0x4 0x1 0 0
271dc37374bSHongtao Jia			0x9800 0x0 0x0 0x4 &mpic 0x5 0x1 0 0>;
272dc37374bSHongtao Jia	};
273dc37374bSHongtao Jia
274dc37374bSHongtao Jia	/* PCI Express */
275dc37374bSHongtao Jia	pci1: pcie@e000a000 {
276dc37374bSHongtao Jia		ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x10000000
277dc37374bSHongtao Jia			  0x1000000 0x0 0x00000000 0x0 0xe2800000 0x0 0x800000>;
278dc37374bSHongtao Jia		reg = <0x0 0xe000a000 0x0 0x1000>;
279dc37374bSHongtao Jia		pcie@0 {
280dc37374bSHongtao Jia			ranges = <0x2000000 0x0 0xa0000000
281dc37374bSHongtao Jia				  0x2000000 0x0 0xa0000000
282dc37374bSHongtao Jia				  0x0 0x10000000
283dc37374bSHongtao Jia
284dc37374bSHongtao Jia				  0x1000000 0x0 0x0
285dc37374bSHongtao Jia				  0x1000000 0x0 0x0
286dc37374bSHongtao Jia				  0x0 0x800000>;
287dc37374bSHongtao Jia		};
288dc37374bSHongtao Jia	};
289dc37374bSHongtao Jia
290dc37374bSHongtao Jia	rio: rapidio@e00c00000 {
291dc37374bSHongtao Jia		reg = <0x0 0xe00c0000 0x0 0x20000>;
292dc37374bSHongtao Jia		port1 {
293dc37374bSHongtao Jia			ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>;
294dc37374bSHongtao Jia		};
295dc37374bSHongtao Jia	};
296dc37374bSHongtao Jia
297dc37374bSHongtao Jia	leds {
298dc37374bSHongtao Jia		compatible = "gpio-leds";
299dc37374bSHongtao Jia
300dc37374bSHongtao Jia		green {
301dc37374bSHongtao Jia			gpios = <&bcsr5 1 0>;
302dc37374bSHongtao Jia		};
303dc37374bSHongtao Jia
304dc37374bSHongtao Jia		amber {
305dc37374bSHongtao Jia			gpios = <&bcsr5 2 0>;
306dc37374bSHongtao Jia		};
307dc37374bSHongtao Jia
308dc37374bSHongtao Jia		red {
309dc37374bSHongtao Jia			gpios = <&bcsr5 3 0>;
310dc37374bSHongtao Jia		};
311dc37374bSHongtao Jia	};
312dc37374bSHongtao Jia};
313dc37374bSHongtao Jia
314dc37374bSHongtao Jia/include/ "mpc8568si-post.dtsi"
315