blob: 64923245f0e5adb8d481a62a49f95f709b8ed048 [file] [log] [blame]
Josh Boyerfd0ed742008-03-06 21:15:07 -06001/*
2 * Device Tree Source for AMCC Yosemite
3 *
4 * Copyright 2008 IBM Corp.
5 * Josh Boyer <jwboyer@linux.vnet.ibm.com>
6 *
7 * This file is licensed under the terms of the GNU General Public
8 * License version 2. This program is licensed "as is" without
9 * any warranty of any kind, whether express or implied.
10 */
11
David Gibson71f34972008-05-15 16:46:39 +100012/dts-v1/;
13
Josh Boyerfd0ed742008-03-06 21:15:07 -060014/ {
15 #address-cells = <2>;
16 #size-cells = <1>;
17 model = "amcc,yosemite";
Josh Boyer38d56f12008-08-19 11:27:05 -040018 compatible = "amcc,yosemite";
David Gibson71f34972008-05-15 16:46:39 +100019 dcr-parent = <&{/cpus/cpu@0}>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060020
21 aliases {
22 ethernet0 = &EMAC0;
23 ethernet1 = &EMAC1;
24 serial0 = &UART0;
25 serial1 = &UART1;
26 serial2 = &UART2;
27 serial3 = &UART3;
28 };
29
30 cpus {
31 #address-cells = <1>;
32 #size-cells = <0>;
33
34 cpu@0 {
35 device_type = "cpu";
36 model = "PowerPC,440EP";
David Gibson71f34972008-05-15 16:46:39 +100037 reg = <0x00000000>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060038 clock-frequency = <0>; /* Filled in by zImage */
39 timebase-frequency = <0>; /* Filled in by zImage */
David Gibson71f34972008-05-15 16:46:39 +100040 i-cache-line-size = <32>;
41 d-cache-line-size = <32>;
42 i-cache-size = <32768>;
43 d-cache-size = <32768>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060044 dcr-controller;
45 dcr-access-method = "native";
46 };
47 };
48
49 memory {
50 device_type = "memory";
David Gibson71f34972008-05-15 16:46:39 +100051 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by zImage */
Josh Boyerfd0ed742008-03-06 21:15:07 -060052 };
53
54 UIC0: interrupt-controller0 {
55 compatible = "ibm,uic-440ep","ibm,uic";
56 interrupt-controller;
57 cell-index = <0>;
David Gibson71f34972008-05-15 16:46:39 +100058 dcr-reg = <0x0c0 0x009>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060059 #address-cells = <0>;
60 #size-cells = <0>;
61 #interrupt-cells = <2>;
62 };
63
64 UIC1: interrupt-controller1 {
65 compatible = "ibm,uic-440ep","ibm,uic";
66 interrupt-controller;
67 cell-index = <1>;
David Gibson71f34972008-05-15 16:46:39 +100068 dcr-reg = <0x0d0 0x009>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060069 #address-cells = <0>;
70 #size-cells = <0>;
71 #interrupt-cells = <2>;
David Gibson71f34972008-05-15 16:46:39 +100072 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
Josh Boyerfd0ed742008-03-06 21:15:07 -060073 interrupt-parent = <&UIC0>;
74 };
75
76 SDR0: sdr {
77 compatible = "ibm,sdr-440ep";
David Gibson71f34972008-05-15 16:46:39 +100078 dcr-reg = <0x00e 0x002>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060079 };
80
81 CPR0: cpr {
82 compatible = "ibm,cpr-440ep";
David Gibson71f34972008-05-15 16:46:39 +100083 dcr-reg = <0x00c 0x002>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060084 };
85
86 plb {
87 compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
88 #address-cells = <2>;
89 #size-cells = <1>;
90 ranges;
91 clock-frequency = <0>; /* Filled in by zImage */
92
93 SDRAM0: sdram {
94 compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
David Gibson71f34972008-05-15 16:46:39 +100095 dcr-reg = <0x010 0x002>;
Josh Boyerfd0ed742008-03-06 21:15:07 -060096 };
97
98 DMA0: dma {
99 compatible = "ibm,dma-440ep", "ibm,dma-440gp";
David Gibson71f34972008-05-15 16:46:39 +1000100 dcr-reg = <0x100 0x027>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600101 };
102
103 MAL0: mcmal {
104 compatible = "ibm,mcmal-440ep", "ibm,mcmal-440gp", "ibm,mcmal";
David Gibson71f34972008-05-15 16:46:39 +1000105 dcr-reg = <0x180 0x062>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600106 num-tx-chans = <4>;
107 num-rx-chans = <2>;
108 interrupt-parent = <&MAL0>;
David Gibson71f34972008-05-15 16:46:39 +1000109 interrupts = <0x0 0x1 0x2 0x3 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600110 #interrupt-cells = <1>;
111 #address-cells = <0>;
112 #size-cells = <0>;
David Gibson71f34972008-05-15 16:46:39 +1000113 interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
114 /*RXEOB*/ 0x1 &UIC0 0xb 0x4
115 /*SERR*/ 0x2 &UIC1 0x0 0x4
116 /*TXDE*/ 0x3 &UIC1 0x1 0x4
117 /*RXDE*/ 0x4 &UIC1 0x2 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600118 };
119
120 POB0: opb {
121 compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
122 #address-cells = <1>;
123 #size-cells = <1>;
124 /* Bamboo is oddball in the 44x world and doesn't use the ERPN
125 * bits.
126 */
David Gibson71f34972008-05-15 16:46:39 +1000127 ranges = <0x00000000 0x00000000 0x00000000 0x80000000
128 0x80000000 0x00000000 0x80000000 0x80000000>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600129 interrupt-parent = <&UIC1>;
David Gibson71f34972008-05-15 16:46:39 +1000130 interrupts = <0x7 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600131 clock-frequency = <0>; /* Filled in by zImage */
132
133 EBC0: ebc {
134 compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
David Gibson71f34972008-05-15 16:46:39 +1000135 dcr-reg = <0x012 0x002>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600136 #address-cells = <2>;
137 #size-cells = <1>;
138 clock-frequency = <0>; /* Filled in by zImage */
David Gibson71f34972008-05-15 16:46:39 +1000139 interrupts = <0x5 0x1>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600140 interrupt-parent = <&UIC1>;
141 };
142
143 UART0: serial@ef600300 {
144 device_type = "serial";
145 compatible = "ns16550";
David Gibson71f34972008-05-15 16:46:39 +1000146 reg = <0xef600300 0x00000008>;
147 virtual-reg = <0xef600300>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600148 clock-frequency = <0>; /* Filled in by zImage */
David Gibson71f34972008-05-15 16:46:39 +1000149 current-speed = <115200>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600150 interrupt-parent = <&UIC0>;
David Gibson71f34972008-05-15 16:46:39 +1000151 interrupts = <0x0 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600152 };
153
154 UART1: serial@ef600400 {
155 device_type = "serial";
156 compatible = "ns16550";
David Gibson71f34972008-05-15 16:46:39 +1000157 reg = <0xef600400 0x00000008>;
158 virtual-reg = <0xef600400>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600159 clock-frequency = <0>;
160 current-speed = <0>;
161 interrupt-parent = <&UIC0>;
David Gibson71f34972008-05-15 16:46:39 +1000162 interrupts = <0x1 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600163 };
164
165 UART2: serial@ef600500 {
166 device_type = "serial";
167 compatible = "ns16550";
David Gibson71f34972008-05-15 16:46:39 +1000168 reg = <0xef600500 0x00000008>;
169 virtual-reg = <0xef600500>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600170 clock-frequency = <0>;
171 current-speed = <0>;
172 interrupt-parent = <&UIC0>;
David Gibson71f34972008-05-15 16:46:39 +1000173 interrupts = <0x3 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600174 status = "disabled";
175 };
176
177 UART3: serial@ef600600 {
178 device_type = "serial";
179 compatible = "ns16550";
David Gibson71f34972008-05-15 16:46:39 +1000180 reg = <0xef600600 0x00000008>;
181 virtual-reg = <0xef600600>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600182 clock-frequency = <0>;
183 current-speed = <0>;
184 interrupt-parent = <&UIC0>;
David Gibson71f34972008-05-15 16:46:39 +1000185 interrupts = <0x4 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600186 status = "disabled";
187 };
188
189 IIC0: i2c@ef600700 {
190 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
David Gibson71f34972008-05-15 16:46:39 +1000191 reg = <0xef600700 0x00000014>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600192 interrupt-parent = <&UIC0>;
David Gibson71f34972008-05-15 16:46:39 +1000193 interrupts = <0x2 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600194 };
195
196 IIC1: i2c@ef600800 {
197 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
David Gibson71f34972008-05-15 16:46:39 +1000198 reg = <0xef600800 0x00000014>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600199 interrupt-parent = <&UIC0>;
David Gibson71f34972008-05-15 16:46:39 +1000200 interrupts = <0x7 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600201 };
202
203 spi@ef600900 {
204 compatible = "amcc,spi-440ep";
David Gibson71f34972008-05-15 16:46:39 +1000205 reg = <0xef600900 0x00000006>;
206 interrupts = <0x8 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600207 interrupt-parent = <&UIC0>;
208 };
209
210 ZMII0: emac-zmii@ef600d00 {
211 compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
David Gibson71f34972008-05-15 16:46:39 +1000212 reg = <0xef600d00 0x0000000c>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600213 };
214
215 EMAC0: ethernet@ef600e00 {
216 device_type = "network";
217 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
218 interrupt-parent = <&UIC1>;
David Gibson71f34972008-05-15 16:46:39 +1000219 interrupts = <0x1c 0x4 0x1d 0x4>;
220 reg = <0xef600e00 0x00000070>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600221 local-mac-address = [000000000000];
222 mal-device = <&MAL0>;
223 mal-tx-channel = <0 1>;
224 mal-rx-channel = <0>;
225 cell-index = <0>;
David Gibson71f34972008-05-15 16:46:39 +1000226 max-frame-size = <1500>;
227 rx-fifo-size = <4096>;
228 tx-fifo-size = <2048>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600229 phy-mode = "rmii";
David Gibson71f34972008-05-15 16:46:39 +1000230 phy-map = <0x00000000>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600231 zmii-device = <&ZMII0>;
232 zmii-channel = <0>;
233 };
234
235 EMAC1: ethernet@ef600f00 {
236 device_type = "network";
237 compatible = "ibm,emac-440ep", "ibm,emac-440gp", "ibm,emac";
238 interrupt-parent = <&UIC1>;
David Gibson71f34972008-05-15 16:46:39 +1000239 interrupts = <0x1e 0x4 0x1f 0x4>;
240 reg = <0xef600f00 0x00000070>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600241 local-mac-address = [000000000000];
242 mal-device = <&MAL0>;
243 mal-tx-channel = <2 3>;
244 mal-rx-channel = <1>;
245 cell-index = <1>;
David Gibson71f34972008-05-15 16:46:39 +1000246 max-frame-size = <1500>;
247 rx-fifo-size = <4096>;
248 tx-fifo-size = <2048>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600249 phy-mode = "rmii";
David Gibson71f34972008-05-15 16:46:39 +1000250 phy-map = <0x00000000>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600251 zmii-device = <&ZMII0>;
252 zmii-channel = <1>;
253 };
254
255 usb@ef601000 {
256 compatible = "ohci-be";
David Gibson71f34972008-05-15 16:46:39 +1000257 reg = <0xef601000 0x00000080>;
258 interrupts = <0x8 0x4 0x9 0x4>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600259 interrupt-parent = < &UIC1 >;
260 };
261 };
262
263 PCI0: pci@ec000000 {
264 device_type = "pci";
265 #interrupt-cells = <1>;
266 #size-cells = <2>;
267 #address-cells = <3>;
268 compatible = "ibm,plb440ep-pci", "ibm,plb-pci";
269 primary;
David Gibson71f34972008-05-15 16:46:39 +1000270 reg = <0x00000000 0xeec00000 0x00000008 /* Config space access */
271 0x00000000 0xeed00000 0x00000004 /* IACK */
272 0x00000000 0xeed00000 0x00000004 /* Special cycle */
273 0x00000000 0xef400000 0x00000040>; /* Internal registers */
Josh Boyerfd0ed742008-03-06 21:15:07 -0600274
275 /* Outbound ranges, one memory and one IO,
276 * later cannot be changed. Chip supports a second
277 * IO range but we don't use it for now
278 */
David Gibson71f34972008-05-15 16:46:39 +1000279 ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x20000000
280 0x01000000 0x00000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600281
282 /* Inbound 2GB range starting at 0 */
David Gibson71f34972008-05-15 16:46:39 +1000283 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600284
David Gibson71f34972008-05-15 16:46:39 +1000285 interrupt-map-mask = <0xf800 0x0 0x0 0x0>;
Josh Boyerfd0ed742008-03-06 21:15:07 -0600286 interrupt-map = <
Curtis Wald06a5bad2009-12-04 07:10:26 -0500287 /* IDSEL 12 */
288 0x6000 0x0 0x0 0x0 &UIC0 0x19 0x8
Josh Boyerfd0ed742008-03-06 21:15:07 -0600289 >;
290 };
291 };
292
293 chosen {
294 linux,stdout-path = "/plb/opb/serial@ef600300";
295 };
296};