blob: 01706a3396031e3a3f2398b1cb2be464736d5297 [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
Hongtao Jiadc373742015-09-18 12:00:24 +080012/include/ "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>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -060094 };
95 phy1: ethernet-phy@1 {
96 interrupts = <2 1 0 0>;
97 reg = <0x1>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -060098 };
99 phy2: ethernet-phy@2 {
100 interrupts = <1 1 0 0>;
101 reg = <0x2>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600102 };
103 phy3: ethernet-phy@3 {
104 interrupts = <2 1 0 0>;
105 reg = <0x3>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600106 };
107 tbi0: tbi-phy@11 {
108 reg = <0x11>;
109 device_type = "tbi-phy";
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300110 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600111 };
112
Kumar Galae77b28e2007-12-12 00:28:35 -0600113 enet1: ethernet@25000 {
Andy Flemingb31a1d82008-12-16 15:29:15 -0800114 tbi-handle = <&tbi1>;
Kumar Gala52094872007-02-17 16:04:23 -0600115 phy-handle = <&phy3>;
Anton Vorontsov3cfee0a2009-09-16 01:43:59 +0400116 sleep = <&pmc 0x00000040>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600117 };
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300118
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600119 mdio@25520 {
120 tbi1: tbi-phy@11 {
121 reg = <0x11>;
122 device_type = "tbi-phy";
Anton Vorontsov84ba4a52009-03-19 21:01:48 +0300123 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600124 };
125
Andy Flemingc2882bb2007-02-09 17:28:31 -0600126 par_io@e0100 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600127 num-ports = <7>;
128
Kumar Gala52094872007-02-17 16:04:23 -0600129 pio1: ucc_pin@01 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600130 pio-map = <
131 /* port pin dir open_drain assignment has_irq */
Kumar Gala32f960e2008-04-17 01:28:15 -0500132 0x4 0xa 0x1 0x0 0x2 0x0 /* TxD0 */
133 0x4 0x9 0x1 0x0 0x2 0x0 /* TxD1 */
134 0x4 0x8 0x1 0x0 0x2 0x0 /* TxD2 */
135 0x4 0x7 0x1 0x0 0x2 0x0 /* TxD3 */
136 0x4 0x17 0x1 0x0 0x2 0x0 /* TxD4 */
137 0x4 0x16 0x1 0x0 0x2 0x0 /* TxD5 */
138 0x4 0x15 0x1 0x0 0x2 0x0 /* TxD6 */
139 0x4 0x14 0x1 0x0 0x2 0x0 /* TxD7 */
140 0x4 0xf 0x2 0x0 0x2 0x0 /* RxD0 */
141 0x4 0xe 0x2 0x0 0x2 0x0 /* RxD1 */
142 0x4 0xd 0x2 0x0 0x2 0x0 /* RxD2 */
143 0x4 0xc 0x2 0x0 0x2 0x0 /* RxD3 */
144 0x4 0x1d 0x2 0x0 0x2 0x0 /* RxD4 */
145 0x4 0x1c 0x2 0x0 0x2 0x0 /* RxD5 */
146 0x4 0x1b 0x2 0x0 0x2 0x0 /* RxD6 */
147 0x4 0x1a 0x2 0x0 0x2 0x0 /* RxD7 */
148 0x4 0xb 0x1 0x0 0x2 0x0 /* TX_EN */
149 0x4 0x18 0x1 0x0 0x2 0x0 /* TX_ER */
150 0x4 0x10 0x2 0x0 0x2 0x0 /* RX_DV */
151 0x4 0x1e 0x2 0x0 0x2 0x0 /* RX_ER */
152 0x4 0x11 0x2 0x0 0x2 0x0 /* RX_CLK */
153 0x4 0x13 0x1 0x0 0x2 0x0 /* GTX_CLK */
154 0x1 0x1f 0x2 0x0 0x3 0x0>; /* GTX125 */
Andy Flemingc2882bb2007-02-09 17:28:31 -0600155 };
Kumar Gala86a04d92007-10-02 09:51:32 -0500156
Kumar Gala52094872007-02-17 16:04:23 -0600157 pio2: ucc_pin@02 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600158 pio-map = <
159 /* port pin dir open_drain assignment has_irq */
Kumar Gala32f960e2008-04-17 01:28:15 -0500160 0x5 0xa 0x1 0x0 0x2 0x0 /* TxD0 */
161 0x5 0x9 0x1 0x0 0x2 0x0 /* TxD1 */
162 0x5 0x8 0x1 0x0 0x2 0x0 /* TxD2 */
163 0x5 0x7 0x1 0x0 0x2 0x0 /* TxD3 */
164 0x5 0x17 0x1 0x0 0x2 0x0 /* TxD4 */
165 0x5 0x16 0x1 0x0 0x2 0x0 /* TxD5 */
166 0x5 0x15 0x1 0x0 0x2 0x0 /* TxD6 */
167 0x5 0x14 0x1 0x0 0x2 0x0 /* TxD7 */
168 0x5 0xf 0x2 0x0 0x2 0x0 /* RxD0 */
169 0x5 0xe 0x2 0x0 0x2 0x0 /* RxD1 */
170 0x5 0xd 0x2 0x0 0x2 0x0 /* RxD2 */
171 0x5 0xc 0x2 0x0 0x2 0x0 /* RxD3 */
172 0x5 0x1d 0x2 0x0 0x2 0x0 /* RxD4 */
173 0x5 0x1c 0x2 0x0 0x2 0x0 /* RxD5 */
174 0x5 0x1b 0x2 0x0 0x2 0x0 /* RxD6 */
175 0x5 0x1a 0x2 0x0 0x2 0x0 /* RxD7 */
176 0x5 0xb 0x1 0x0 0x2 0x0 /* TX_EN */
177 0x5 0x18 0x1 0x0 0x2 0x0 /* TX_ER */
178 0x5 0x10 0x2 0x0 0x2 0x0 /* RX_DV */
179 0x5 0x1e 0x2 0x0 0x2 0x0 /* RX_ER */
180 0x5 0x11 0x2 0x0 0x2 0x0 /* RX_CLK */
181 0x5 0x13 0x1 0x0 0x2 0x0 /* GTX_CLK */
182 0x1 0x1f 0x2 0x0 0x3 0x0 /* GTX125 */
183 0x4 0x6 0x3 0x0 0x2 0x0 /* MDIO */
184 0x4 0x5 0x1 0x0 0x2 0x0>; /* MDC */
Andy Flemingc2882bb2007-02-09 17:28:31 -0600185 };
186 };
187 };
188
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600189 qe: qe@e0080000 {
190 ranges = <0x0 0x0 0xe0080000 0x40000>;
191 reg = <0x0 0xe0080000 0x0 0x480>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600192
193 spi@4c0 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600194 mode = "cpu";
195 };
196
197 spi@500 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600198 mode = "cpu";
199 };
200
Kumar Galae77b28e2007-12-12 00:28:35 -0600201 enet2: ucc@2000 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600202 device_type = "network";
203 compatible = "ucc_geth";
Timur Tabieae98262007-06-22 14:33:15 -0500204 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600205 rx-clock-name = "none";
206 tx-clock-name = "clk16";
Kumar Gala52094872007-02-17 16:04:23 -0600207 pio-handle = <&pio1>;
Anton Vorontsovaf6521e2007-10-05 21:46:53 +0400208 phy-handle = <&phy0>;
209 phy-connection-type = "rgmii-id";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600210 };
211
Kumar Galae77b28e2007-12-12 00:28:35 -0600212 enet3: ucc@3000 {
Andy Flemingc2882bb2007-02-09 17:28:31 -0600213 device_type = "network";
214 compatible = "ucc_geth";
Timur Tabieae98262007-06-22 14:33:15 -0500215 local-mac-address = [ 00 00 00 00 00 00 ];
Timur Tabi9fb1e352007-12-03 15:17:59 -0600216 rx-clock-name = "none";
217 tx-clock-name = "clk16";
Kumar Gala52094872007-02-17 16:04:23 -0600218 pio-handle = <&pio2>;
Anton Vorontsovaf6521e2007-10-05 21:46:53 +0400219 phy-handle = <&phy1>;
220 phy-connection-type = "rgmii-id";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600221 };
222
223 mdio@2120 {
224 #address-cells = <1>;
225 #size-cells = <0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500226 reg = <0x2120 0x18>;
Anton Vorontsovd0a2f822008-01-24 18:40:01 +0300227 compatible = "fsl,ucc-mdio";
Andy Flemingc2882bb2007-02-09 17:28:31 -0600228
229 /* These are the same PHYs as on
230 * gianfar's MDIO bus */
Anton Vorontsovaf6521e2007-10-05 21:46:53 +0400231 qe_phy0: ethernet-phy@07 {
Kumar Gala52094872007-02-17 16:04:23 -0600232 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600233 interrupts = <1 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500234 reg = <0x7>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600235 };
Kumar Gala52094872007-02-17 16:04:23 -0600236 qe_phy1: ethernet-phy@01 {
237 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600238 interrupts = <2 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500239 reg = <0x1>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600240 };
Kumar Gala52094872007-02-17 16:04:23 -0600241 qe_phy2: ethernet-phy@02 {
242 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600243 interrupts = <1 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500244 reg = <0x2>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600245 };
Kumar Gala52094872007-02-17 16:04:23 -0600246 qe_phy3: ethernet-phy@03 {
247 interrupt-parent = <&mpic>;
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600248 interrupts = <2 1 0 0>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500249 reg = <0x3>;
Andy Flemingc2882bb2007-02-09 17:28:31 -0600250 };
251 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600252 };
Kumar Gala86a04d92007-10-02 09:51:32 -0500253
Kumar Galaea082fa2007-12-12 01:46:12 -0600254 pci0: pci@e0008000 {
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600255 reg = <0x0 0xe0008000 0x0 0x1000>;
256 ranges = <0x2000000 0x0 0x80000000 0x0 0x80000000 0x0 0x20000000
257 0x1000000 0x0 0x00000000 0x0 0xe2000000 0x0 0x800000>;
258 clock-frequency = <66666666>;
Kumar Gala32f960e2008-04-17 01:28:15 -0500259 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500260 interrupt-map = <
261 /* IDSEL 0x12 AD18 */
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600262 0x9000 0x0 0x0 0x1 &mpic 0x5 0x1 0 0
263 0x9000 0x0 0x0 0x2 &mpic 0x6 0x1 0 0
264 0x9000 0x0 0x0 0x3 &mpic 0x7 0x1 0 0
265 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1 0 0
Kumar Gala86a04d92007-10-02 09:51:32 -0500266
267 /* IDSEL 0x13 AD19 */
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600268 0x9800 0x0 0x0 0x1 &mpic 0x6 0x1 0 0
269 0x9800 0x0 0x0 0x2 &mpic 0x7 0x1 0 0
270 0x9800 0x0 0x0 0x3 &mpic 0x4 0x1 0 0
271 0x9800 0x0 0x0 0x4 &mpic 0x5 0x1 0 0>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500272 };
273
274 /* PCI Express */
Kumar Galaea082fa2007-12-12 01:46:12 -0600275 pci1: pcie@e000a000 {
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600276 ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x10000000
277 0x1000000 0x0 0x00000000 0x0 0xe2800000 0x0 0x800000>;
278 reg = <0x0 0xe000a000 0x0 0x1000>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500279 pcie@0 {
Kumar Gala32f960e2008-04-17 01:28:15 -0500280 ranges = <0x2000000 0x0 0xa0000000
281 0x2000000 0x0 0xa0000000
282 0x0 0x10000000
Kumar Gala86a04d92007-10-02 09:51:32 -0500283
Kumar Gala32f960e2008-04-17 01:28:15 -0500284 0x1000000 0x0 0x0
285 0x1000000 0x0 0x0
286 0x0 0x800000>;
Kumar Gala86a04d92007-10-02 09:51:32 -0500287 };
288 };
Anton Vorontsov5e8306f2009-05-02 06:16:56 +0400289
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600290 rio: rapidio@e00c00000 {
291 reg = <0x0 0xe00c0000 0x0 0x20000>;
Kumar Gala54986962011-11-17 08:01:40 -0600292 port1 {
293 ranges = <0x0 0x0 0x0 0xc0000000 0x0 0x20000000>;
294 };
Anton Vorontsov5e8306f2009-05-02 06:16:56 +0400295 };
Anton Vorontsove98efaf2010-02-06 00:06:26 +0300296
297 leds {
298 compatible = "gpio-leds";
299
300 green {
301 gpios = <&bcsr5 1 0>;
302 };
303
304 amber {
305 gpios = <&bcsr5 2 0>;
306 };
307
308 red {
309 gpios = <&bcsr5 3 0>;
310 };
311 };
Andy Flemingc2882bb2007-02-09 17:28:31 -0600312};
Kumar Gala1a23b4a2011-11-10 08:05:16 -0600313
Hongtao Jiadc373742015-09-18 12:00:24 +0800314/include/ "mpc8568si-post.dtsi"