blob: 09598bb5d443497669ebdc998fbbca30e085371f [file] [log] [blame]
Andy Flemingc2882bb2007-02-09 17:28:31 -06001/*
2 * MPC8568E MDS Device Tree Source
3 *
Kumar Gala32f960e2008-04-17 01:28:15 -05004 * Copyright 2007, 2008 Freescale Semiconductor Inc.
Andy Flemingc2882bb2007-02-09 17:28:31 -06005 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
10 */
11
Kumar Gala1a23b4a2011-11-10 08:05:16 -060012/include/ "fsl/mpc8568si-pre.dtsi"
Andy Flemingc2882bb2007-02-09 17:28:31 -060013
Andy Flemingc2882bb2007-02-09 17:28:31 -060014/ {
15 model = "MPC8568EMDS";
Kumar Gala52094872007-02-17 16:04:23 -060016 compatible = "MPC8568EMDS", "MPC85xxMDS";
Andy Flemingc2882bb2007-02-09 17:28:31 -060017
Kumar Galaea082fa2007-12-12 01:46:12 -060018 aliases {
Kumar Galaea082fa2007-12-12 01:46:12 -060019 pci0 = &pci0;
20 pci1 = &pci1;
Kumar Gala1a23b4a2011-11-10 08:05:16 -060021 rapidio0 = &rio;
Andy Flemingc2882bb2007-02-09 17:28:31 -060022 };
23
24 memory {
25 device_type = "memory";
Kumar Gala1a23b4a2011-11-10 08:05:16 -060026 reg = <0x0 0x0 0x0 0x0>;
Andy Flemingc2882bb2007-02-09 17:28:31 -060027 };
28
Kumar Gala1a23b4a2011-11-10 08:05:16 -060029 lbc: localbus@e0005000 {
30 reg = <0x0 0xe0005000 0x0 0x1000>;
Anton Vorontsove98efaf2010-02-06 00:06:26 +030031 ranges = <0x0 0x0 0xfe000000 0x02000000
32 0x1 0x0 0xf8000000 0x00008000
33 0x2 0x0 0xf0000000 0x04000000
34 0x4 0x0 0xf8008000 0x00008000
35 0x5 0x0 0xf8010000 0x00008000>;
36
37 nor@0,0 {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 compatible = "cfi-flash";
41 reg = <0x0 0x0 0x02000000>;
42 bank-width = <2>;
43 device-width = <2>;
44 };
45
46 bcsr@1,0 {
47 #address-cells = <1>;
48 #size-cells = <1>;
49 compatible = "fsl,mpc8568mds-bcsr";
50 reg = <1 0 0x8000>;
51 ranges = <0 1 0 0x8000>;
52
53 bcsr5: gpio-controller@11 {
54 #gpio-cells = <2>;
55 compatible = "fsl,mpc8568mds-bcsr-gpio";
56 reg = <0x5 0x1>;
57 gpio-controller;
58 };
59 };
60
61 pib@4,0 {
62 compatible = "fsl,mpc8568mds-pib";
63 reg = <4 0 0x8000>;
64 };
65
66 pib@5,0 {
67 compatible = "fsl,mpc8568mds-pib";
68 reg = <5 0 0x8000>;
69 };
Andy Flemingc2882bb2007-02-09 17:28:31 -060070 };
71
Kumar Gala1a23b4a2011-11-10 08:05:16 -060072 soc: soc8568@e0000000 {
73 ranges = <0x0 0x0 0xe0000000 0x100000>;
Kumar Gala4da421d2007-05-15 13:20:05 -050074
Anton Vorontsov3cfee0a2009-09-16 01:43:59 +040075 i2c-sleep-nexus {
Anton Vorontsov3cfee0a2009-09-16 01:43:59 +040076 i2c@3000 {
Anton Vorontsov3cfee0a2009-09-16 01:43:59 +040077 rtc@68 {
78 compatible = "dallas,ds1374";
79 reg = <0x68>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -060080 interrupts = <3 1 0 0>;
Anton Vorontsov3cfee0a2009-09-16 01:43:59 +040081 };
Anton Vorontsovc0e4eb22007-10-02 17:47:43 +040082 };
Kumar Galadee80552008-06-27 13:45:19 -050083 };
84
Kumar Galae77b28e2007-12-12 00:28:35 -060085 enet0: ethernet@24000 {
Andy Flemingb31a1d82008-12-16 15:29:15 -080086 tbi-handle = <&tbi0>;
Kumar Gala52094872007-02-17 16:04:23 -060087 phy-handle = <&phy2>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -060088 };
Anton Vorontsov84ba4a52009-03-19 21:01:48 +030089
Kumar Gala1a23b4a2011-11-10 08:05:16 -060090 mdio@24520 {
91 phy0: ethernet-phy@7 {
92 interrupts = <1 1 0 0>;
93 reg = <0x7>;
94 device_type = "ethernet-phy";
95 };
96 phy1: ethernet-phy@1 {
97 interrupts = <2 1 0 0>;
98 reg = <0x1>;
99 device_type = "ethernet-phy";
100 };
101 phy2: ethernet-phy@2 {
102 interrupts = <1 1 0 0>;
103 reg = <0x2>;
104 device_type = "ethernet-phy";
105 };
106 phy3: ethernet-phy@3 {
107 interrupts = <2 1 0 0>;
108 reg = <0x3>;
109 device_type = "ethernet-phy";
110 };
111 tbi0: tbi-phy@11 {
112 reg = <0x11>;
113 device_type = "tbi-phy";
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300114 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600115 };
116
Kumar Galae77b28e2007-12-12 00:28:35 -0600117 enet1: ethernet@25000 {
Andy Flemingb31a1d82008-12-16 15:29:15 -0800118 tbi-handle = <&tbi1>;
Kumar Gala52094872007-02-17 16:04:23 -0600119 phy-handle = <&phy3>;
Anton Vorontsov3cfee0a2009-09-16 01:43:59 +0400120 sleep = <&pmc 0x00000040>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600121 };
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300122
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600123 mdio@25520 {
124 tbi1: tbi-phy@11 {
125 reg = <0x11>;
126 device_type = "tbi-phy";
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300127 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600128 };
129
Andy Flemingc2882bb2007-02-09 17:28:31 -0600130 par_io@e0100 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600131 num-ports = <7>;
132
Kumar Gala52094872007-02-17 16:04:23 -0600133 pio1: ucc_pin@01 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600134 pio-map = <
135 /* port pin dir open_drain assignment has_irq */
Kumar Gala32f960e2008-04-17 01:28:15 -0500136 0x4 0xa 0x1 0x0 0x2 0x0 /* TxD0 */
137 0x4 0x9 0x1 0x0 0x2 0x0 /* TxD1 */
138 0x4 0x8 0x1 0x0 0x2 0x0 /* TxD2 */
139 0x4 0x7 0x1 0x0 0x2 0x0 /* TxD3 */
140 0x4 0x17 0x1 0x0 0x2 0x0 /* TxD4 */
141 0x4 0x16 0x1 0x0 0x2 0x0 /* TxD5 */
142 0x4 0x15 0x1 0x0 0x2 0x0 /* TxD6 */
143 0x4 0x14 0x1 0x0 0x2 0x0 /* TxD7 */
144 0x4 0xf 0x2 0x0 0x2 0x0 /* RxD0 */
145 0x4 0xe 0x2 0x0 0x2 0x0 /* RxD1 */
146 0x4 0xd 0x2 0x0 0x2 0x0 /* RxD2 */
147 0x4 0xc 0x2 0x0 0x2 0x0 /* RxD3 */
148 0x4 0x1d 0x2 0x0 0x2 0x0 /* RxD4 */
149 0x4 0x1c 0x2 0x0 0x2 0x0 /* RxD5 */
150 0x4 0x1b 0x2 0x0 0x2 0x0 /* RxD6 */
151 0x4 0x1a 0x2 0x0 0x2 0x0 /* RxD7 */
152 0x4 0xb 0x1 0x0 0x2 0x0 /* TX_EN */
153 0x4 0x18 0x1 0x0 0x2 0x0 /* TX_ER */
154 0x4 0x10 0x2 0x0 0x2 0x0 /* RX_DV */
155 0x4 0x1e 0x2 0x0 0x2 0x0 /* RX_ER */
156 0x4 0x11 0x2 0x0 0x2 0x0 /* RX_CLK */
157 0x4 0x13 0x1 0x0 0x2 0x0 /* GTX_CLK */
158 0x1 0x1f 0x2 0x0 0x3 0x0>; /* GTX125 */
Andy Flemingc2882bb2007-02-09 17:28:31 -0600159 };
Kumar Gala86a04d92007-10-02 09:51:32 -0500160
Kumar Gala52094872007-02-17 16:04:23 -0600161 pio2: ucc_pin@02 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600162 pio-map = <
163 /* port pin dir open_drain assignment has_irq */
Kumar Gala32f960e2008-04-17 01:28:15 -0500164 0x5 0xa 0x1 0x0 0x2 0x0 /* TxD0 */
165 0x5 0x9 0x1 0x0 0x2 0x0 /* TxD1 */
166 0x5 0x8 0x1 0x0 0x2 0x0 /* TxD2 */
167 0x5 0x7 0x1 0x0 0x2 0x0 /* TxD3 */
168 0x5 0x17 0x1 0x0 0x2 0x0 /* TxD4 */
169 0x5 0x16 0x1 0x0 0x2 0x0 /* TxD5 */
170 0x5 0x15 0x1 0x0 0x2 0x0 /* TxD6 */
171 0x5 0x14 0x1 0x0 0x2 0x0 /* TxD7 */
172 0x5 0xf 0x2 0x0 0x2 0x0 /* RxD0 */
173 0x5 0xe 0x2 0x0 0x2 0x0 /* RxD1 */
174 0x5 0xd 0x2 0x0 0x2 0x0 /* RxD2 */
175 0x5 0xc 0x2 0x0 0x2 0x0 /* RxD3 */
176 0x5 0x1d 0x2 0x0 0x2 0x0 /* RxD4 */
177 0x5 0x1c 0x2 0x0 0x2 0x0 /* RxD5 */
178 0x5 0x1b 0x2 0x0 0x2 0x0 /* RxD6 */
179 0x5 0x1a 0x2 0x0 0x2 0x0 /* RxD7 */
180 0x5 0xb 0x1 0x0 0x2 0x0 /* TX_EN */
181 0x5 0x18 0x1 0x0 0x2 0x0 /* TX_ER */
182 0x5 0x10 0x2 0x0 0x2 0x0 /* RX_DV */
183 0x5 0x1e 0x2 0x0 0x2 0x0 /* RX_ER */
184 0x5 0x11 0x2 0x0 0x2 0x0 /* RX_CLK */
185 0x5 0x13 0x1 0x0 0x2 0x0 /* GTX_CLK */
186 0x1 0x1f 0x2 0x0 0x3 0x0 /* GTX125 */
187 0x4 0x6 0x3 0x0 0x2 0x0 /* MDIO */
188 0x4 0x5 0x1 0x0 0x2 0x0>; /* MDC */
Andy Flemingc2882bb2007-02-09 17:28:31 -0600189 };
190 };
191 };
192
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600193 qe: qe@e0080000 {
194 ranges = <0x0 0x0 0xe0080000 0x40000>;
195 reg = <0x0 0xe0080000 0x0 0x480>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600196
197 spi@4c0 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600198 mode = "cpu";
199 };
200
201 spi@500 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600202 mode = "cpu";
203 };
204
Kumar Galae77b28e2007-12-12 00:28:35 -0600205 enet2: ucc@2000 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600206 device_type = "network";
207 compatible = "ucc_geth";
Timur Tabieae98262007-06-22 14:33:15 -0500208 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600209 rx-clock-name = "none";
210 tx-clock-name = "clk16";
Kumar Gala52094872007-02-17 16:04:23 -0600211 pio-handle = <&pio1>;
Anton Vorontsovaf6521e2007-10-05 21:46:53 +0400212 phy-handle = <&phy0>;
213 phy-connection-type = "rgmii-id";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600214 };
215
Kumar Galae77b28e2007-12-12 00:28:35 -0600216 enet3: ucc@3000 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600217 device_type = "network";
218 compatible = "ucc_geth";
Timur Tabieae98262007-06-22 14:33:15 -0500219 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600220 rx-clock-name = "none";
221 tx-clock-name = "clk16";
Kumar Gala52094872007-02-17 16:04:23 -0600222 pio-handle = <&pio2>;
Anton Vorontsovaf6521e2007-10-05 21:46:53 +0400223 phy-handle = <&phy1>;
224 phy-connection-type = "rgmii-id";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600225 };
226
227 mdio@2120 {
228 #address-cells = <1>;
229 #size-cells = <0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500230 reg = <0x2120 0x18>;
Anton Vorontsovd0a2f822008-01-24 18:40:01 +0300231 compatible = "fsl,ucc-mdio";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600232
233 /* These are the same PHYs as on
234 * gianfar's MDIO bus */
Anton Vorontsovaf6521e2007-10-05 21:46:53 +0400235 qe_phy0: ethernet-phy@07 {
Kumar Gala52094872007-02-17 16:04:23 -0600236 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600237 interrupts = <1 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500238 reg = <0x7>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600239 device_type = "ethernet-phy";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600240 };
Kumar Gala52094872007-02-17 16:04:23 -0600241 qe_phy1: ethernet-phy@01 {
242 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600243 interrupts = <2 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500244 reg = <0x1>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600245 device_type = "ethernet-phy";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600246 };
Kumar Gala52094872007-02-17 16:04:23 -0600247 qe_phy2: ethernet-phy@02 {
248 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600249 interrupts = <1 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500250 reg = <0x2>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600251 device_type = "ethernet-phy";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600252 };
Kumar Gala52094872007-02-17 16:04:23 -0600253 qe_phy3: ethernet-phy@03 {
254 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600255 interrupts = <2 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500256 reg = <0x3>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600257 device_type = "ethernet-phy";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600258 };
259 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600260 };
Kumar Gala86a04d92007-10-02 09:51:32 -0500261
Kumar Galaea082fa2007-12-12 01:46:12 -0600262 pci0: pci@e0008000 {
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600263 reg = <0x0 0xe0008000 0x0 0x1000>;
264 ranges = <0x2000000 0x0 0x80000000 0x0 0x80000000 0x0 0x20000000
265 0x1000000 0x0 0x00000000 0x0 0xe2000000 0x0 0x800000>;
266 clock-frequency = <66666666>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500267 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500268 interrupt-map = <
269 /* IDSEL 0x12 AD18 */
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600270 0x9000 0x0 0x0 0x1 &mpic 0x5 0x1 0 0
271 0x9000 0x0 0x0 0x2 &mpic 0x6 0x1 0 0
272 0x9000 0x0 0x0 0x3 &mpic 0x7 0x1 0 0
273 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1 0 0
Kumar Gala86a04d92007-10-02 09:51:32 -0500274
275 /* IDSEL 0x13 AD19 */
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600276 0x9800 0x0 0x0 0x1 &mpic 0x6 0x1 0 0
277 0x9800 0x0 0x0 0x2 &mpic 0x7 0x1 0 0
278 0x9800 0x0 0x0 0x3 &mpic 0x4 0x1 0 0
279 0x9800 0x0 0x0 0x4 &mpic 0x5 0x1 0 0>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500280 };
281
282 /* PCI Express */
Kumar Galaea082fa2007-12-12 01:46:12 -0600283 pci1: pcie@e000a000 {
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600284 ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x10000000
285 0x1000000 0x0 0x00000000 0x0 0xe2800000 0x0 0x800000>;
286 reg = <0x0 0xe000a000 0x0 0x1000>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500287 pcie@0 {
Kumar Gala32f960e2008-04-17 01:28:15 -0500288 ranges = <0x2000000 0x0 0xa0000000
289 0x2000000 0x0 0xa0000000
290 0x0 0x10000000
Kumar Gala86a04d92007-10-02 09:51:32 -0500291
Kumar Gala32f960e2008-04-17 01:28:15 -0500292 0x1000000 0x0 0x0
293 0x1000000 0x0 0x0
294 0x0 0x800000>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500295 };
296 };
Anton Vorontsov5e8306f2009-05-02 06:16:56 +0400297
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600298 rio: rapidio@e00c00000 {
299 reg = <0x0 0xe00c0000 0x0 0x20000>;
Kumar Gala54986962011-11-17 08:01:40 -0600300 port1 {
301 ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>;
302 };
Anton Vorontsov5e8306f2009-05-02 06:16:56 +0400303 };
Anton Vorontsove98efaf2010-02-06 00:06:26 +0300304
305 leds {
306 compatible = "gpio-leds";
307
308 green {
309 gpios = <&bcsr5 1 0>;
310 };
311
312 amber {
313 gpios = <&bcsr5 2 0>;
314 };
315
316 red {
317 gpios = <&bcsr5 3 0>;
318 };
319 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600320};
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600321
322/include/ "fsl/mpc8568si-post.dtsi"