blob: e7c36bc88fa031b39af5a49b260911a3e3b62068 [file] [log] [blame]
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +10001/*
2 * phyCORE-MPC5200B-tiny (pcm030) board Device Tree Source
3 *
4 * Copyright 2006 Pengutronix
5 * Sascha Hauer <s.hauer@pengutronix.de>
6 * Copyright 2007 Pengutronix
7 * Juergen Beisert <j.beisert@pengutronix.de>
8 *
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
13 */
14
15/dts-v1/;
16
17/ {
18 model = "phytec,pcm030";
19 compatible = "phytec,pcm030";
20 #address-cells = <1>;
21 #size-cells = <1>;
Grant Likelyb8842452009-02-03 12:30:26 -070022 interrupt-parent = <&mpc5200_pic>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100023
24 cpus {
25 #address-cells = <1>;
26 #size-cells = <0>;
27
28 PowerPC,5200@0 {
29 device_type = "cpu";
30 reg = <0>;
31 d-cache-line-size = <32>;
32 i-cache-line-size = <32>;
Grant Likelyb8842452009-02-03 12:30:26 -070033 d-cache-size = <0x4000>; // L1, 16K
34 i-cache-size = <0x4000>; // L1, 16K
35 timebase-frequency = <0>; // from bootloader
36 bus-frequency = <0>; // from bootloader
37 clock-frequency = <0>; // from bootloader
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100038 };
39 };
40
41 memory {
42 device_type = "memory";
Grant Likelyb8842452009-02-03 12:30:26 -070043 reg = <0x00000000 0x04000000>; // 64MB
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100044 };
45
46 soc5200@f0000000 {
47 #address-cells = <1>;
48 #size-cells = <1>;
49 compatible = "fsl,mpc5200b-immr";
Grant Likelyb8842452009-02-03 12:30:26 -070050 ranges = <0 0xf0000000 0x0000c000>;
51 bus-frequency = <0>; // from bootloader
52 system-frequency = <0>; // from bootloader
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100053
54 cdm@200 {
55 compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm";
56 reg = <0x200 0x38>;
57 };
58
59 mpc5200_pic: interrupt-controller@500 {
Grant Likelyb8842452009-02-03 12:30:26 -070060 // 5200 interrupts are encoded into two levels;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100061 interrupt-controller;
62 #interrupt-cells = <3>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100063 compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic";
64 reg = <0x500 0x80>;
65 };
66
Grant Likelyb8842452009-02-03 12:30:26 -070067 timer@600 { // General Purpose Timer
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100068 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100069 reg = <0x600 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -070070 interrupts = <1 9 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100071 fsl,has-wdt;
72 };
73
Grant Likelyb8842452009-02-03 12:30:26 -070074 timer@610 { // General Purpose Timer
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100075 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100076 reg = <0x610 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -070077 interrupts = <1 10 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100078 };
79
Grant Likelyb8842452009-02-03 12:30:26 -070080 gpt2: timer@620 { // General Purpose Timer in GPIO mode
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100081 compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100082 reg = <0x620 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -070083 interrupts = <1 11 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100084 gpio-controller;
85 #gpio-cells = <2>;
86 };
87
Grant Likelyb8842452009-02-03 12:30:26 -070088 gpt3: timer@630 { // General Purpose Timer in GPIO mode
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100089 compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100090 reg = <0x630 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -070091 interrupts = <1 12 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100092 gpio-controller;
93 #gpio-cells = <2>;
94 };
95
Grant Likelyb8842452009-02-03 12:30:26 -070096 gpt4: timer@640 { // General Purpose Timer in GPIO mode
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100097 compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +100098 reg = <0x640 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -070099 interrupts = <1 13 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000100 gpio-controller;
101 #gpio-cells = <2>;
102 };
103
Grant Likelyb8842452009-02-03 12:30:26 -0700104 gpt5: timer@650 { // General Purpose Timer in GPIO mode
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000105 compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000106 reg = <0x650 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -0700107 interrupts = <1 14 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000108 gpio-controller;
109 #gpio-cells = <2>;
110 };
111
Grant Likelyb8842452009-02-03 12:30:26 -0700112 gpt6: timer@660 { // General Purpose Timer in GPIO mode
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000113 compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000114 reg = <0x660 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -0700115 interrupts = <1 15 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000116 gpio-controller;
117 #gpio-cells = <2>;
118 };
119
Grant Likelyb8842452009-02-03 12:30:26 -0700120 gpt7: timer@670 { // General Purpose Timer in GPIO mode
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000121 compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000122 reg = <0x670 0x10>;
Grant Likelyb8842452009-02-03 12:30:26 -0700123 interrupts = <1 16 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000124 gpio-controller;
125 #gpio-cells = <2>;
126 };
127
128 rtc@800 { // Real time clock
129 compatible = "fsl,mpc5200b-rtc","fsl,mpc5200-rtc";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000130 reg = <0x800 0x100>;
Grant Likelyb8842452009-02-03 12:30:26 -0700131 interrupts = <1 5 0 1 6 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000132 };
133
134 can@900 {
135 compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
Grant Likelyb8842452009-02-03 12:30:26 -0700136 interrupts = <2 17 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000137 reg = <0x900 0x80>;
138 };
139
140 can@980 {
141 compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
Grant Likelyb8842452009-02-03 12:30:26 -0700142 interrupts = <2 18 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000143 reg = <0x980 0x80>;
144 };
145
146 gpio_simple: gpio@b00 {
147 compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
148 reg = <0xb00 0x40>;
Grant Likelyb8842452009-02-03 12:30:26 -0700149 interrupts = <1 7 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000150 gpio-controller;
151 #gpio-cells = <2>;
152 };
153
Grant Likelyb8842452009-02-03 12:30:26 -0700154 gpio_wkup: gpio@c00 {
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000155 compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
156 reg = <0xc00 0x40>;
Grant Likelyb8842452009-02-03 12:30:26 -0700157 interrupts = <1 8 0 0 3 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000158 gpio-controller;
159 #gpio-cells = <2>;
160 };
161
162 spi@f00 {
163 compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
164 reg = <0xf00 0x20>;
Grant Likelyb8842452009-02-03 12:30:26 -0700165 interrupts = <2 13 0 2 14 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000166 };
167
168 usb@1000 {
169 compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
170 reg = <0x1000 0xff>;
Grant Likelyb8842452009-02-03 12:30:26 -0700171 interrupts = <2 6 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000172 };
173
174 dma-controller@1200 {
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000175 compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
176 reg = <0x1200 0x80>;
Grant Likelyb8842452009-02-03 12:30:26 -0700177 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
178 3 4 0 3 5 0 3 6 0 3 7 0
179 3 8 0 3 9 0 3 10 0 3 11 0
180 3 12 0 3 13 0 3 14 0 3 15 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000181 };
182
183 xlb@1f00 {
184 compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
185 reg = <0x1f00 0x100>;
186 };
187
188 ac97@2000 { /* PSC1 in ac97 mode */
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000189 compatible = "mpc5200b-psc-ac97","fsl,mpc5200b-psc-ac97";
190 cell-index = <0>;
191 reg = <0x2000 0x100>;
Grant Likelyb8842452009-02-03 12:30:26 -0700192 interrupts = <2 1 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000193 };
194
195 /* PSC2 port is used by CAN1/2 */
196
197 serial@2400 { /* PSC3 in UART mode */
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000198 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000199 cell-index = <2>;
200 reg = <0x2400 0x100>;
Grant Likelyb8842452009-02-03 12:30:26 -0700201 interrupts = <2 3 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000202 };
203
204 /* PSC4 is ??? */
205
206 /* PSC5 is ??? */
207
208 serial@2c00 { /* PSC6 in UART mode */
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000209 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000210 cell-index = <5>;
211 reg = <0x2c00 0x100>;
Grant Likelyb8842452009-02-03 12:30:26 -0700212 interrupts = <2 4 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000213 };
214
215 ethernet@3000 {
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000216 compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
217 reg = <0x3000 0x400>;
Grant Likelyb8842452009-02-03 12:30:26 -0700218 local-mac-address = [ 00 00 00 00 00 00 ];
219 interrupts = <2 5 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000220 phy-handle = <&phy0>;
221 };
222
223 mdio@3000 {
224 #address-cells = <1>;
225 #size-cells = <0>;
Grant Likelyb8842452009-02-03 12:30:26 -0700226 compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
227 reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
228 interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000229
Grant Likelyb8842452009-02-03 12:30:26 -0700230 phy0: ethernet-phy@0 {
231 reg = <0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000232 };
233 };
234
235 ata@3a00 {
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000236 compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
237 reg = <0x3a00 0x100>;
Grant Likelyb8842452009-02-03 12:30:26 -0700238 interrupts = <2 7 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000239 };
240
241 i2c@3d00 {
242 #address-cells = <1>;
243 #size-cells = <0>;
244 compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000245 reg = <0x3d00 0x40>;
Grant Likelyb8842452009-02-03 12:30:26 -0700246 interrupts = <2 15 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000247 };
248
249 i2c@3d40 {
250 #address-cells = <1>;
251 #size-cells = <0>;
252 compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000253 reg = <0x3d40 0x40>;
Grant Likelyb8842452009-02-03 12:30:26 -0700254 interrupts = <2 16 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000255 rtc@51 {
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000256 compatible = "nxp,pcf8563";
257 reg = <0x51>;
258 };
Wolfram Sangc155ee12009-06-17 00:30:17 -0600259 eeprom@52 {
260 compatible = "catalyst,24c32";
261 reg = <0x52>;
Wolfram Sang55271022010-11-17 13:00:50 +0100262 pagesize = <32>;
Wolfram Sangc155ee12009-06-17 00:30:17 -0600263 };
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000264 };
265
266 sram@8000 {
Grant Likelyb8842452009-02-03 12:30:26 -0700267 compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000268 reg = <0x8000 0x4000>;
269 };
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000270 };
271
272 pci@f0000d00 {
273 #interrupt-cells = <1>;
274 #size-cells = <2>;
275 #address-cells = <3>;
276 device_type = "pci";
277 compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
278 reg = <0xf0000d00 0x100>;
Grant Likelyb8842452009-02-03 12:30:26 -0700279 interrupt-map-mask = <0xf800 0 0 7>;
280 interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
281 0xc000 0 0 2 &mpc5200_pic 1 1 3
282 0xc000 0 0 3 &mpc5200_pic 1 2 3
283 0xc000 0 0 4 &mpc5200_pic 1 3 3
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000284
Grant Likelyb8842452009-02-03 12:30:26 -0700285 0xc800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
286 0xc800 0 0 2 &mpc5200_pic 1 2 3
287 0xc800 0 0 3 &mpc5200_pic 1 3 3
288 0xc800 0 0 4 &mpc5200_pic 0 0 3>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000289 clock-frequency = <0>; // From boot loader
Grant Likelyb8842452009-02-03 12:30:26 -0700290 interrupts = <2 8 0 2 9 0 2 10 0>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000291 bus-range = <0 0>;
Grant Likelyb8842452009-02-03 12:30:26 -0700292 ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
293 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
294 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
s.hauer@pengutronix.de106757b2008-04-25 23:48:05 +1000295 };
296};