blob: d9540791e4342034ca9509826104a9ae06ab32d2 [file] [log] [blame]
Haiying Wang48936a02010-05-21 10:16:12 -04001/*
2 * P1021 MDS Device Tree Source
3 *
4 * Copyright 2010 Freescale Semiconductor Inc.
5 *
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 Galaffeb33d2011-11-02 10:15:30 -050012/include/ "fsl/p1021si-pre.dtsi"
Haiying Wang48936a02010-05-21 10:16:12 -040013/ {
14 model = "fsl,P1021";
15 compatible = "fsl,P1021MDS";
Haiying Wang48936a02010-05-21 10:16:12 -040016
17 aliases {
Haiying Wang48936a02010-05-21 10:16:12 -040018 ethernet3 = &enet3;
19 ethernet4 = &enet4;
Haiying Wang48936a02010-05-21 10:16:12 -040020 };
21
22 memory {
23 device_type = "memory";
24 };
25
Kumar Galaffeb33d2011-11-02 10:15:30 -050026 lbc: localbus@ffe05000 {
27 reg = <0x0 0xffe05000 0x0 0x1000>;
Haiying Wang48936a02010-05-21 10:16:12 -040028
29 /* NAND Flash, BCSR, PMC0/1*/
30 ranges = <0x0 0x0 0x0 0xfc000000 0x02000000
31 0x1 0x0 0x0 0xf8000000 0x00008000
32 0x2 0x0 0x0 0xf8010000 0x00020000
33 0x3 0x0 0x0 0xf8020000 0x00020000>;
34
35 nand@0,0 {
36 #address-cells = <1>;
37 #size-cells = <1>;
38 compatible = "fsl,p1021-fcm-nand",
39 "fsl,elbc-fcm-nand";
40 reg = <0x0 0x0 0x40000>;
41
42 partition@0 {
43 /* This location must not be altered */
44 /* 1MB for u-boot Bootloader Image */
45 reg = <0x0 0x00100000>;
46 label = "NAND (RO) U-Boot Image";
47 read-only;
48 };
49
50 partition@100000 {
51 /* 1MB for DTB Image */
52 reg = <0x00100000 0x00100000>;
53 label = "NAND (RO) DTB Image";
54 read-only;
55 };
56
57 partition@200000 {
58 /* 4MB for Linux Kernel Image */
59 reg = <0x00200000 0x00400000>;
60 label = "NAND (RO) Linux Kernel Image";
61 read-only;
62 };
63
64 partition@600000 {
65 /* 5MB for Compressed Root file System Image */
66 reg = <0x00600000 0x00500000>;
67 label = "NAND (RO) Compressed RFS Image";
68 read-only;
69 };
70
71 partition@b00000 {
72 /* 6MB for JFFS2 based Root file System */
73 reg = <0x00a00000 0x00600000>;
74 label = "NAND (RW) JFFS2 Root File System";
75 };
76
77 partition@1100000 {
78 /* 14MB for JFFS2 based Root file System */
79 reg = <0x01100000 0x00e00000>;
80 label = "NAND (RW) Writable User area";
81 };
82
83 partition@1f00000 {
84 /* 1MB for microcode */
85 reg = <0x01f00000 0x00100000>;
86 label = "NAND (RO) QE Ucode";
87 read-only;
88 };
89 };
90
91 bcsr@1,0 {
92 #address-cells = <1>;
93 #size-cells = <1>;
94 compatible = "fsl,p1021mds-bcsr";
95 reg = <1 0 0x8000>;
96 ranges = <0 1 0 0x8000>;
97 };
98
99 pib@2,0 {
100 compatible = "fsl,p1021mds-pib";
101 reg = <2 0 0x10000>;
102 };
103
104 pib@3,0 {
105 compatible = "fsl,p1021mds-pib";
106 reg = <3 0 0x10000>;
107 };
108 };
109
Kumar Galaffeb33d2011-11-02 10:15:30 -0500110 soc: soc@ffe00000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400111 compatible = "fsl,p1021-immr", "simple-bus";
Kumar Galaffeb33d2011-11-02 10:15:30 -0500112 ranges = <0x0 0x0 0xffe00000 0x100000>;
Haiying Wang48936a02010-05-21 10:16:12 -0400113
114 i2c@3000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400115 rtc@68 {
116 compatible = "dallas,ds1374";
117 reg = <0x68>;
118 };
119 };
120
Haiying Wang48936a02010-05-21 10:16:12 -0400121 spi@7000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400122
Kumar Galaffeb33d2011-11-02 10:15:30 -0500123 flash@0 {
Haiying Wang48936a02010-05-21 10:16:12 -0400124 #address-cells = <1>;
125 #size-cells = <1>;
Kumar Galaffeb33d2011-11-02 10:15:30 -0500126 compatible = "spansion,s25sl12801";
Haiying Wang48936a02010-05-21 10:16:12 -0400127 reg = <0>;
Haiying Wang48936a02010-05-21 10:16:12 -0400128 spi-max-frequency = <40000000>; /* input clock */
Kumar Galaffeb33d2011-11-02 10:15:30 -0500129
Haiying Wang48936a02010-05-21 10:16:12 -0400130 partition@u-boot {
131 label = "u-boot-spi";
132 reg = <0x00000000 0x00100000>;
133 read-only;
134 };
135 partition@kernel {
136 label = "kernel-spi";
137 reg = <0x00100000 0x00500000>;
138 read-only;
139 };
140 partition@dtb {
141 label = "dtb-spi";
142 reg = <0x00600000 0x00100000>;
143 read-only;
144 };
145 partition@fs {
146 label = "file system-spi";
147 reg = <0x00700000 0x00900000>;
148 };
149 };
150 };
151
Haiying Wang48936a02010-05-21 10:16:12 -0400152 usb@22000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400153 phy_type = "ulpi";
154 };
155
Kumar Galaffeb33d2011-11-02 10:15:30 -0500156 mdio@24000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400157 phy0: ethernet-phy@0 {
Kumar Galaffeb33d2011-11-02 10:15:30 -0500158 interrupts = <1 1 0 0>;
Haiying Wang48936a02010-05-21 10:16:12 -0400159 reg = <0x0>;
160 };
161 phy1: ethernet-phy@1 {
Kumar Galaffeb33d2011-11-02 10:15:30 -0500162 interrupts = <2 1 0 0>;
Haiying Wang48936a02010-05-21 10:16:12 -0400163 reg = <0x1>;
164 };
165 phy4: ethernet-phy@4 {
Haiying Wang48936a02010-05-21 10:16:12 -0400166 reg = <0x4>;
167 };
Andy Fleming22066942012-01-04 15:28:31 -0600168 tbi-phy@5 {
169 device_type = "tbi-phy";
170 reg = <0x5>;
171 };
Haiying Wang48936a02010-05-21 10:16:12 -0400172 };
173
174 mdio@25000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400175 tbi0: tbi-phy@11 {
176 reg = <0x11>;
177 device_type = "tbi-phy";
178 };
179 };
180
Kumar Galaffeb33d2011-11-02 10:15:30 -0500181 ethernet@b0000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400182 phy-handle = <&phy0>;
183 phy-connection-type = "rgmii-id";
Haiying Wang48936a02010-05-21 10:16:12 -0400184 };
185
Kumar Galaffeb33d2011-11-02 10:15:30 -0500186 ethernet@b1000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400187 phy-handle = <&phy4>;
188 tbi-handle = <&tbi0>;
189 phy-connection-type = "sgmii";
Haiying Wang48936a02010-05-21 10:16:12 -0400190 };
191
Kumar Galaffeb33d2011-11-02 10:15:30 -0500192 ethernet@b2000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400193 phy-handle = <&phy1>;
194 phy-connection-type = "rgmii-id";
Haiying Wang48936a02010-05-21 10:16:12 -0400195 };
196
197 par_io@e0100 {
198 #address-cells = <1>;
199 #size-cells = <1>;
200 reg = <0xe0100 0x60>;
201 ranges = <0x0 0xe0100 0x60>;
202 device_type = "par_io";
203 num-ports = <3>;
204 pio1: ucc_pin@01 {
205 pio-map = <
206 /* port pin dir open_drain assignment has_irq */
207 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
208 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
209 0x0 0x17 0x2 0x0 0x2 0x0 /* CLK12 */
Kumar Galaffeb33d2011-11-02 10:15:30 -0500210 0x0 0x18 0x2 0x0 0x1 0x0 /* CLK9 */
Haiying Wang48936a02010-05-21 10:16:12 -0400211 0x0 0x7 0x1 0x0 0x2 0x0 /* ENET1_TXD0_SER1_TXD0 */
212 0x0 0x9 0x1 0x0 0x2 0x0 /* ENET1_TXD1_SER1_TXD1 */
213 0x0 0xb 0x1 0x0 0x2 0x0 /* ENET1_TXD2_SER1_TXD2 */
214 0x0 0xc 0x1 0x0 0x2 0x0 /* ENET1_TXD3_SER1_TXD3 */
215 0x0 0x6 0x2 0x0 0x2 0x0 /* ENET1_RXD0_SER1_RXD0 */
216 0x0 0xa 0x2 0x0 0x2 0x0 /* ENET1_RXD1_SER1_RXD1 */
217 0x0 0xe 0x2 0x0 0x2 0x0 /* ENET1_RXD2_SER1_RXD2 */
218 0x0 0xf 0x2 0x0 0x2 0x0 /* ENET1_RXD3_SER1_RXD3 */
219 0x0 0x5 0x1 0x0 0x2 0x0 /* ENET1_TX_EN_SER1_RTS_B */
220 0x0 0xd 0x1 0x0 0x2 0x0 /* ENET1_TX_ER */
221 0x0 0x4 0x2 0x0 0x2 0x0 /* ENET1_RX_DV_SER1_CTS_B */
222 0x0 0x8 0x2 0x0 0x2 0x0 /* ENET1_RX_ER_SER1_CD_B */
223 0x0 0x11 0x2 0x0 0x2 0x0 /* ENET1_CRS */
224 0x0 0x10 0x2 0x0 0x2 0x0>; /* ENET1_COL */
225 };
226
227 pio2: ucc_pin@02 {
228 pio-map = <
229 /* port pin dir open_drain assignment has_irq */
230 0x1 0x13 0x1 0x0 0x1 0x0 /* QE_MUX_MDC */
231 0x1 0x14 0x3 0x0 0x1 0x0 /* QE_MUX_MDIO */
232 0x1 0xb 0x2 0x0 0x1 0x0 /* CLK13 */
233 0x1 0x7 0x1 0x0 0x2 0x0 /* ENET5_TXD0_SER5_TXD0 */
234 0x1 0xa 0x1 0x0 0x2 0x0 /* ENET5_TXD1_SER5_TXD1 */
235 0x1 0x6 0x2 0x0 0x2 0x0 /* ENET5_RXD0_SER5_RXD0 */
236 0x1 0x9 0x2 0x0 0x2 0x0 /* ENET5_RXD1_SER5_RXD1 */
237 0x1 0x5 0x1 0x0 0x2 0x0 /* ENET5_TX_EN_SER5_RTS_B */
238 0x1 0x4 0x2 0x0 0x2 0x0 /* ENET5_RX_DV_SER5_CTS_B */
239 0x1 0x8 0x2 0x0 0x2 0x0>; /* ENET5_RX_ER_SER5_CD_B */
240 };
241 };
242 };
243
244 pci0: pcie@ffe09000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400245 reg = <0 0xffe09000 0 0x1000>;
Haiying Wang48936a02010-05-21 10:16:12 -0400246 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
247 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
Haiying Wang48936a02010-05-21 10:16:12 -0400248 pcie@0 {
Haiying Wang48936a02010-05-21 10:16:12 -0400249 ranges = <0x2000000 0x0 0xa0000000
250 0x2000000 0x0 0xa0000000
251 0x0 0x20000000
252
253 0x1000000 0x0 0x0
254 0x1000000 0x0 0x0
255 0x0 0x100000>;
256 };
257 };
258
259 pci1: pcie@ffe0a000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400260 reg = <0 0xffe0a000 0 0x1000>;
Haiying Wang48936a02010-05-21 10:16:12 -0400261 ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
262 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
Haiying Wang48936a02010-05-21 10:16:12 -0400263 pcie@0 {
Haiying Wang48936a02010-05-21 10:16:12 -0400264 ranges = <0x2000000 0x0 0xc0000000
265 0x2000000 0x0 0xc0000000
266 0x0 0x20000000
267
268 0x1000000 0x0 0x0
269 0x1000000 0x0 0x0
270 0x0 0x100000>;
271 };
272 };
273
Kumar Galaffeb33d2011-11-02 10:15:30 -0500274 qe: qe@ffe80000 {
Haiying Wang48936a02010-05-21 10:16:12 -0400275 ranges = <0x0 0x0 0xffe80000 0x40000>;
276 reg = <0 0xffe80000 0 0x480>;
277 brg-frequency = <0>;
278 bus-frequency = <0>;
Anton Vorontsovdee9ad72010-06-08 09:55:50 +0000279 status = "disabled"; /* no firmware loaded */
Haiying Wang48936a02010-05-21 10:16:12 -0400280
Haiying Wang48936a02010-05-21 10:16:12 -0400281 enet3: ucc@2000 {
282 device_type = "network";
283 compatible = "ucc_geth";
Haiying Wang48936a02010-05-21 10:16:12 -0400284 local-mac-address = [ 00 00 00 00 00 00 ];
285 rx-clock-name = "clk12";
286 tx-clock-name = "clk9";
287 pio-handle = <&pio1>;
288 phy-handle = <&qe_phy0>;
289 phy-connection-type = "mii";
290 };
291
292 mdio@2120 {
Haiying Wang48936a02010-05-21 10:16:12 -0400293 qe_phy0: ethernet-phy@0 {
294 interrupt-parent = <&mpic>;
Kumar Galaffeb33d2011-11-02 10:15:30 -0500295 interrupts = <4 1 0 0>;
Haiying Wang48936a02010-05-21 10:16:12 -0400296 reg = <0x0>;
297 device_type = "ethernet-phy";
298 };
299 qe_phy1: ethernet-phy@03 {
300 interrupt-parent = <&mpic>;
Kumar Galaffeb33d2011-11-02 10:15:30 -0500301 interrupts = <5 1 0 0>;
Haiying Wang48936a02010-05-21 10:16:12 -0400302 reg = <0x3>;
303 device_type = "ethernet-phy";
304 };
305 tbi-phy@11 {
306 reg = <0x11>;
307 device_type = "tbi-phy";
308 };
309 };
310
311 enet4: ucc@2400 {
312 device_type = "network";
313 compatible = "ucc_geth";
Haiying Wang48936a02010-05-21 10:16:12 -0400314 local-mac-address = [ 00 00 00 00 00 00 ];
315 rx-clock-name = "none";
316 tx-clock-name = "clk13";
317 pio-handle = <&pio2>;
318 phy-handle = <&qe_phy1>;
319 phy-connection-type = "rmii";
320 };
Haiying Wang48936a02010-05-21 10:16:12 -0400321 };
322};
Kumar Galaffeb33d2011-11-02 10:15:30 -0500323
324/include/ "fsl/p1021si-post.dtsi"