blob: 62fabcca68273b7b0c3bd0598efc19b75ca06da6 [file] [log] [blame]
aurel322c9fade2008-12-16 10:44:14 +00001/*
2 * Device Tree Source for AMCC Bamboo
3 *
4 * Copyright (c) 2006, 2007 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
Alexander Grafc148b2b2012-01-03 21:58:57 +010012/dts-v1/;
13
aurel322c9fade2008-12-16 10:44:14 +000014/ {
15 #address-cells = <2>;
16 #size-cells = <1>;
17 model = "amcc,bamboo";
18 compatible = "amcc,bamboo";
Alexander Grafc148b2b2012-01-03 21:58:57 +010019 dcr-parent = <&{/cpus/cpu@0}>;
aurel322c9fade2008-12-16 10:44:14 +000020
21 aliases {
22 serial0 = &UART0;
23 serial1 = &UART1;
24 };
25
26 cpus {
27 #address-cells = <1>;
28 #size-cells = <0>;
29
30 cpu@0 {
31 device_type = "cpu";
32 model = "PowerPC,440EP";
33 reg = <0>;
Alexander Grafc148b2b2012-01-03 21:58:57 +010034 clock-frequency = <0x1fca0550>;
35 timebase-frequency = <0x017d7840>;
36 i-cache-line-size = <0x20>;
37 d-cache-line-size = <0x20>;
38 i-cache-size = <0x8000>;
39 d-cache-size = <0x8000>;
aurel322c9fade2008-12-16 10:44:14 +000040 dcr-controller;
41 dcr-access-method = "native";
42 };
43 };
44
45 memory {
46 device_type = "memory";
Alexander Grafc148b2b2012-01-03 21:58:57 +010047 reg = <0x0 0x0 0x9000000>;
aurel322c9fade2008-12-16 10:44:14 +000048 };
49
50 UIC0: interrupt-controller0 {
51 compatible = "ibm,uic-440ep","ibm,uic";
52 interrupt-controller;
Alexander Grafc148b2b2012-01-03 21:58:57 +010053 cell-index = <0x0>;
54 dcr-reg = <0x0c0 0x009>;
55 #address-cells = <0x0>;
56 #size-cells = <0x0>;
57 #interrupt-cells = <0x2>;
aurel322c9fade2008-12-16 10:44:14 +000058 };
aurel322c9fade2008-12-16 10:44:14 +000059
60 SDR0: sdr {
61 compatible = "ibm,sdr-440ep";
Alexander Grafc148b2b2012-01-03 21:58:57 +010062 dcr-reg = <0x00e 0x002>;
aurel322c9fade2008-12-16 10:44:14 +000063 };
64
65 CPR0: cpr {
66 compatible = "ibm,cpr-440ep";
Alexander Grafc148b2b2012-01-03 21:58:57 +010067 dcr-reg = <0x00c 0x002>;
aurel322c9fade2008-12-16 10:44:14 +000068 };
69
70 plb {
71 compatible = "ibm,plb-440ep", "ibm,plb-440gp", "ibm,plb4";
72 #address-cells = <2>;
73 #size-cells = <1>;
74 ranges;
Alexander Grafc148b2b2012-01-03 21:58:57 +010075 clock-frequency = <0x07f28154>;
aurel322c9fade2008-12-16 10:44:14 +000076
77 SDRAM0: sdram {
78 compatible = "ibm,sdram-440ep", "ibm,sdram-405gp";
Alexander Grafc148b2b2012-01-03 21:58:57 +010079 dcr-reg = <0x010 0x2>;
aurel322c9fade2008-12-16 10:44:14 +000080 };
81
82 DMA0: dma {
83 compatible = "ibm,dma-440ep", "ibm,dma-440gp";
Alexander Grafc148b2b2012-01-03 21:58:57 +010084 dcr-reg = <0x100 0x027>;
aurel322c9fade2008-12-16 10:44:14 +000085 };
86
87 POB0: opb {
88 compatible = "ibm,opb-440ep", "ibm,opb-440gp", "ibm,opb";
89 #address-cells = <1>;
90 #size-cells = <1>;
91 /* Bamboo is oddball in the 44x world and doesn't use the ERPN
92 * bits.
93 */
Alexander Grafc148b2b2012-01-03 21:58:57 +010094 ranges = <0x00000000 0x0 0x00000000 0x80000000
95 0x80000000 0x0 0x80000000 0x80000000>;
aurel322c9fade2008-12-16 10:44:14 +000096 /* interrupt-parent = <&UIC1>; */
97 interrupts = <7 4>;
Alexander Grafc148b2b2012-01-03 21:58:57 +010098 clock-frequency = <0x03f940aa>;
aurel322c9fade2008-12-16 10:44:14 +000099
100 EBC0: ebc {
101 compatible = "ibm,ebc-440ep", "ibm,ebc-440gp", "ibm,ebc";
Alexander Grafc148b2b2012-01-03 21:58:57 +0100102 dcr-reg = <0x012 2>;
aurel322c9fade2008-12-16 10:44:14 +0000103 #address-cells = <2>;
104 #size-cells = <1>;
Alexander Grafc148b2b2012-01-03 21:58:57 +0100105 clock-frequency = <0x03f940aa>;
aurel322c9fade2008-12-16 10:44:14 +0000106 interrupts = <5 1>;
107 /* interrupt-parent = <&UIC1>; */
108 };
109
110 UART0: serial@ef600300 {
111 device_type = "serial";
112 compatible = "ns16550";
Alexander Grafc148b2b2012-01-03 21:58:57 +0100113 reg = <0xef600300 8>;
114 virtual-reg = <0xef600300>;
115 clock-frequency = <0x00a8c000>;
116 current-speed = <0x1c200>;
aurel322c9fade2008-12-16 10:44:14 +0000117 interrupt-parent = <&UIC0>;
118 interrupts = <0 4>;
119 };
120
121 UART1: serial@ef600400 {
122 device_type = "serial";
123 compatible = "ns16550";
Alexander Grafc148b2b2012-01-03 21:58:57 +0100124 reg = <0xef600400 8>;
125 virtual-reg = <0xef600400>;
126 clock-frequency = <0x00a8c000>;
aurel322c9fade2008-12-16 10:44:14 +0000127 current-speed = <0>;
128 interrupt-parent = <&UIC0>;
129 interrupts = <1 4>;
130 };
aurel322c9fade2008-12-16 10:44:14 +0000131
aurel322c9fade2008-12-16 10:44:14 +0000132 IIC0: i2c@ef600700 {
133 device_type = "i2c";
134 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
Alexander Grafc148b2b2012-01-03 21:58:57 +0100135 reg = <0xef600700 0x14>;
aurel322c9fade2008-12-16 10:44:14 +0000136 interrupt-parent = <&UIC0>;
137 interrupts = <2 4>;
138 };
139
140 IIC1: i2c@ef600800 {
141 device_type = "i2c";
142 compatible = "ibm,iic-440ep", "ibm,iic-440gp", "ibm,iic";
Alexander Grafc148b2b2012-01-03 21:58:57 +0100143 reg = <0xef600800 14>;
aurel322c9fade2008-12-16 10:44:14 +0000144 interrupt-parent = <&UIC0>;
145 interrupts = <7 4>;
146 };
147
148 ZMII0: emac-zmii@ef600d00 {
149 device_type = "zmii-interface";
150 compatible = "ibm,zmii-440ep", "ibm,zmii-440gp", "ibm,zmii";
Alexander Grafc148b2b2012-01-03 21:58:57 +0100151 reg = <0xef600d00 0xc>;
aurel322c9fade2008-12-16 10:44:14 +0000152 };
153
154 };
155
156 PCI0: pci@ec000000 {
157 device_type = "pci";
158 #interrupt-cells = <1>;
159 #size-cells = <2>;
160 #address-cells = <3>;
161 compatible = "ibm,plb440ep-pci", "ibm,plb-pci";
162 primary;
Alexander Grafc148b2b2012-01-03 21:58:57 +0100163 reg = <0 0xeec00000 8 /* Config space access */
164 0 0xeed00000 4 /* IACK */
165 0 0xeed00000 4 /* Special cycle */
166 0 0xef400000 0x40>; /* Internal registers */
aurel322c9fade2008-12-16 10:44:14 +0000167
168 /* Outbound ranges, one memory and one IO,
169 * later cannot be changed. Chip supports a second
170 * IO range but we don't use it for now
171 */
Alexander Grafc148b2b2012-01-03 21:58:57 +0100172 ranges = <0x02000000 0 0xa0000000 0 0xa0000000 0 0x20000000
173 0x01000000 0 0x00000000 0 0xe8000000 0 0x00010000>;
aurel322c9fade2008-12-16 10:44:14 +0000174
175 /* Inbound 2GB range starting at 0 */
Alexander Grafc148b2b2012-01-03 21:58:57 +0100176 dma-ranges = <0x42000000 0 0 0 0 0 0x80000000>;
aurel322c9fade2008-12-16 10:44:14 +0000177
178 /* Bamboo has all 4 IRQ pins tied together per slot */
Alexander Grafc148b2b2012-01-03 21:58:57 +0100179 interrupt-map-mask = <0xf800 0 0 0>;
aurel322c9fade2008-12-16 10:44:14 +0000180 interrupt-map = <
181 /* IDSEL 1 */
Alexander Grafc148b2b2012-01-03 21:58:57 +0100182 0x0800 0 0 0 &UIC0 0x1c 8
aurel322c9fade2008-12-16 10:44:14 +0000183
184 /* IDSEL 2 */
Alexander Grafc148b2b2012-01-03 21:58:57 +0100185 0x1000 0 0 0 &UIC0 0x1b 8
aurel322c9fade2008-12-16 10:44:14 +0000186
187 /* IDSEL 3 */
Alexander Grafc148b2b2012-01-03 21:58:57 +0100188 0x1800 0 0 0 &UIC0 0x1a 8
aurel322c9fade2008-12-16 10:44:14 +0000189
190 /* IDSEL 4 */
Alexander Grafc148b2b2012-01-03 21:58:57 +0100191 0x2000 0 0 0 &UIC0 0x19 8
aurel322c9fade2008-12-16 10:44:14 +0000192 >;
193 };
194
195 };
196
197 chosen {
198 linux,stdout-path = "/plb/opb/serial@ef600300";
199 };
200};