xref: /freebsd/sys/contrib/device-tree/src/powerpc/redwood.dts (revision e67e85659c0de33e617e5fbf1028c6e8b49eee53)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * Device Tree Source for AMCC Redwood(460SX)
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Copyright 2008 AMCC <tmarri@amcc.com>
5*c66ec88fSEmmanuel Vadot *
6*c66ec88fSEmmanuel Vadot * This file is licensed under the terms of the GNU General Public
7*c66ec88fSEmmanuel Vadot * License version 2.  This program is licensed "as is" without
8*c66ec88fSEmmanuel Vadot * any warranty of any kind, whether express or implied.
9*c66ec88fSEmmanuel Vadot */
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot/dts-v1/;
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot/ {
14*c66ec88fSEmmanuel Vadot	#address-cells = <2>;
15*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
16*c66ec88fSEmmanuel Vadot	model = "amcc,redwood";
17*c66ec88fSEmmanuel Vadot	compatible = "amcc,redwood";
18*c66ec88fSEmmanuel Vadot	dcr-parent = <&{/cpus/cpu@0}>;
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot	aliases {
21*c66ec88fSEmmanuel Vadot		ethernet0 = &EMAC0;
22*c66ec88fSEmmanuel Vadot		serial0 = &UART0;
23*c66ec88fSEmmanuel Vadot	};
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot	cpus {
26*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
27*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel Vadot		cpu@0 {
30*c66ec88fSEmmanuel Vadot			device_type = "cpu";
31*c66ec88fSEmmanuel Vadot			model = "PowerPC,460SX";
32*c66ec88fSEmmanuel Vadot			reg = <0x00000000>;
33*c66ec88fSEmmanuel Vadot			clock-frequency = <0>; /* Filled in by U-Boot */
34*c66ec88fSEmmanuel Vadot			timebase-frequency = <0>; /* Filled in by U-Boot */
35*c66ec88fSEmmanuel Vadot			i-cache-line-size = <32>;
36*c66ec88fSEmmanuel Vadot			d-cache-line-size = <32>;
37*c66ec88fSEmmanuel Vadot			i-cache-size = <32768>;
38*c66ec88fSEmmanuel Vadot			d-cache-size = <32768>;
39*c66ec88fSEmmanuel Vadot			dcr-controller;
40*c66ec88fSEmmanuel Vadot			dcr-access-method = "native";
41*c66ec88fSEmmanuel Vadot		};
42*c66ec88fSEmmanuel Vadot	};
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot	memory {
45*c66ec88fSEmmanuel Vadot		device_type = "memory";
46*c66ec88fSEmmanuel Vadot		reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
47*c66ec88fSEmmanuel Vadot	};
48*c66ec88fSEmmanuel Vadot
49*c66ec88fSEmmanuel Vadot	UIC0: interrupt-controller0 {
50*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-460sx","ibm,uic";
51*c66ec88fSEmmanuel Vadot		interrupt-controller;
52*c66ec88fSEmmanuel Vadot		cell-index = <0>;
53*c66ec88fSEmmanuel Vadot		dcr-reg = <0x0c0 0x009>;
54*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
55*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
56*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
57*c66ec88fSEmmanuel Vadot	};
58*c66ec88fSEmmanuel Vadot
59*c66ec88fSEmmanuel Vadot	UIC1: interrupt-controller1 {
60*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-460sx","ibm,uic";
61*c66ec88fSEmmanuel Vadot		interrupt-controller;
62*c66ec88fSEmmanuel Vadot		cell-index = <1>;
63*c66ec88fSEmmanuel Vadot		dcr-reg = <0x0d0 0x009>;
64*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
65*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
66*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
67*c66ec88fSEmmanuel Vadot		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
68*c66ec88fSEmmanuel Vadot		interrupt-parent = <&UIC0>;
69*c66ec88fSEmmanuel Vadot	};
70*c66ec88fSEmmanuel Vadot
71*c66ec88fSEmmanuel Vadot	UIC2: interrupt-controller2 {
72*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-460sx","ibm,uic";
73*c66ec88fSEmmanuel Vadot		interrupt-controller;
74*c66ec88fSEmmanuel Vadot		cell-index = <2>;
75*c66ec88fSEmmanuel Vadot		dcr-reg = <0x0e0 0x009>;
76*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
77*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
78*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
79*c66ec88fSEmmanuel Vadot		interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
80*c66ec88fSEmmanuel Vadot		interrupt-parent = <&UIC0>;
81*c66ec88fSEmmanuel Vadot	};
82*c66ec88fSEmmanuel Vadot
83*c66ec88fSEmmanuel Vadot	UIC3: interrupt-controller3 {
84*c66ec88fSEmmanuel Vadot		compatible = "ibm,uic-460sx","ibm,uic";
85*c66ec88fSEmmanuel Vadot		interrupt-controller;
86*c66ec88fSEmmanuel Vadot		cell-index = <3>;
87*c66ec88fSEmmanuel Vadot		dcr-reg = <0x0f0 0x009>;
88*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
89*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
90*c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
91*c66ec88fSEmmanuel Vadot		interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
92*c66ec88fSEmmanuel Vadot		interrupt-parent = <&UIC0>;
93*c66ec88fSEmmanuel Vadot	};
94*c66ec88fSEmmanuel Vadot
95*c66ec88fSEmmanuel Vadot	SDR0: sdr {
96*c66ec88fSEmmanuel Vadot		compatible = "ibm,sdr-460sx";
97*c66ec88fSEmmanuel Vadot		dcr-reg = <0x00e 0x002>;
98*c66ec88fSEmmanuel Vadot	};
99*c66ec88fSEmmanuel Vadot
100*c66ec88fSEmmanuel Vadot	CPR0: cpr {
101*c66ec88fSEmmanuel Vadot		compatible = "ibm,cpr-460sx";
102*c66ec88fSEmmanuel Vadot		dcr-reg = <0x00c 0x002>;
103*c66ec88fSEmmanuel Vadot	};
104*c66ec88fSEmmanuel Vadot
105*c66ec88fSEmmanuel Vadot	plb {
106*c66ec88fSEmmanuel Vadot		compatible = "ibm,plb-460sx", "ibm,plb4";
107*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
108*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
109*c66ec88fSEmmanuel Vadot		ranges;
110*c66ec88fSEmmanuel Vadot		clock-frequency = <0>; /* Filled in by U-Boot */
111*c66ec88fSEmmanuel Vadot
112*c66ec88fSEmmanuel Vadot		SDRAM0: sdram {
113*c66ec88fSEmmanuel Vadot			compatible = "ibm,sdram-460sx", "ibm,sdram-405gp";
114*c66ec88fSEmmanuel Vadot			dcr-reg = <0x010 0x002>;
115*c66ec88fSEmmanuel Vadot		};
116*c66ec88fSEmmanuel Vadot
117*c66ec88fSEmmanuel Vadot		MAL0: mcmal {
118*c66ec88fSEmmanuel Vadot			compatible = "ibm,mcmal-460sx", "ibm,mcmal2";
119*c66ec88fSEmmanuel Vadot			dcr-reg = <0x180 0x62>;
120*c66ec88fSEmmanuel Vadot			num-tx-chans = <4>;
121*c66ec88fSEmmanuel Vadot			num-rx-chans = <32>;
122*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
123*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
124*c66ec88fSEmmanuel Vadot			interrupt-parent = <&UIC1>;
125*c66ec88fSEmmanuel Vadot			interrupts = <	/*TXEOB*/ 0x6 0x4
126*c66ec88fSEmmanuel Vadot					/*RXEOB*/ 0x7 0x4
127*c66ec88fSEmmanuel Vadot					/*SERR*/  0x1 0x4
128*c66ec88fSEmmanuel Vadot					/*TXDE*/  0x2 0x4
129*c66ec88fSEmmanuel Vadot					/*RXDE*/  0x3 0x4
130*c66ec88fSEmmanuel Vadot					/*COAL TX0*/ 0x18 0x2
131*c66ec88fSEmmanuel Vadot					/*COAL TX1*/ 0x19 0x2
132*c66ec88fSEmmanuel Vadot					/*COAL TX2*/ 0x1a 0x2
133*c66ec88fSEmmanuel Vadot					/*COAL TX3*/ 0x1b 0x2
134*c66ec88fSEmmanuel Vadot					/*COAL RX0*/ 0x1c 0x2
135*c66ec88fSEmmanuel Vadot					/*COAL RX1*/ 0x1d 0x2
136*c66ec88fSEmmanuel Vadot					/*COAL RX2*/ 0x1e 0x2
137*c66ec88fSEmmanuel Vadot					/*COAL RX3*/ 0x1f 0x2>;
138*c66ec88fSEmmanuel Vadot		};
139*c66ec88fSEmmanuel Vadot
140*c66ec88fSEmmanuel Vadot		POB0: opb {
141*c66ec88fSEmmanuel Vadot			compatible = "ibm,opb-460sx", "ibm,opb";
142*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
143*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
144*c66ec88fSEmmanuel Vadot			ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
145*c66ec88fSEmmanuel Vadot			clock-frequency = <0>; /* Filled in by U-Boot */
146*c66ec88fSEmmanuel Vadot
147*c66ec88fSEmmanuel Vadot			EBC0: ebc {
148*c66ec88fSEmmanuel Vadot				compatible = "ibm,ebc-460sx", "ibm,ebc";
149*c66ec88fSEmmanuel Vadot				dcr-reg = <0x012 0x002>;
150*c66ec88fSEmmanuel Vadot				#address-cells = <2>;
151*c66ec88fSEmmanuel Vadot				#size-cells = <1>;
152*c66ec88fSEmmanuel Vadot				clock-frequency = <0>; /* Filled in by U-Boot */
153*c66ec88fSEmmanuel Vadot				/* ranges property is supplied by U-Boot */
154*c66ec88fSEmmanuel Vadot				interrupts = <0x6 0x4>;
155*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC1>;
156*c66ec88fSEmmanuel Vadot
157*c66ec88fSEmmanuel Vadot				nor_flash@0,0 {
158*c66ec88fSEmmanuel Vadot					compatible = "amd,s29gl512n", "cfi-flash";
159*c66ec88fSEmmanuel Vadot					bank-width = <2>;
160*c66ec88fSEmmanuel Vadot					reg = <0x0000000 0x00000000 0x04000000>;
161*c66ec88fSEmmanuel Vadot					#address-cells = <1>;
162*c66ec88fSEmmanuel Vadot					#size-cells = <1>;
163*c66ec88fSEmmanuel Vadot					partition@0 {
164*c66ec88fSEmmanuel Vadot						label = "kernel";
165*c66ec88fSEmmanuel Vadot						reg = <0x00000000 0x001e0000>;
166*c66ec88fSEmmanuel Vadot					};
167*c66ec88fSEmmanuel Vadot					partition@1e0000 {
168*c66ec88fSEmmanuel Vadot						label = "dtb";
169*c66ec88fSEmmanuel Vadot						reg = <0x001e0000 0x00020000>;
170*c66ec88fSEmmanuel Vadot					};
171*c66ec88fSEmmanuel Vadot					partition@200000 {
172*c66ec88fSEmmanuel Vadot						label = "ramdisk";
173*c66ec88fSEmmanuel Vadot						reg = <0x00200000 0x01400000>;
174*c66ec88fSEmmanuel Vadot					};
175*c66ec88fSEmmanuel Vadot					partition@1600000 {
176*c66ec88fSEmmanuel Vadot						label = "jffs2";
177*c66ec88fSEmmanuel Vadot						reg = <0x01600000 0x00400000>;
178*c66ec88fSEmmanuel Vadot					};
179*c66ec88fSEmmanuel Vadot					partition@1a00000 {
180*c66ec88fSEmmanuel Vadot						label = "user";
181*c66ec88fSEmmanuel Vadot						reg = <0x01a00000 0x02560000>;
182*c66ec88fSEmmanuel Vadot					};
183*c66ec88fSEmmanuel Vadot					partition@3f60000 {
184*c66ec88fSEmmanuel Vadot						label = "env";
185*c66ec88fSEmmanuel Vadot						reg = <0x03f60000 0x00040000>;
186*c66ec88fSEmmanuel Vadot					};
187*c66ec88fSEmmanuel Vadot					partition@3fa0000 {
188*c66ec88fSEmmanuel Vadot						label = "u-boot";
189*c66ec88fSEmmanuel Vadot						reg = <0x03fa0000 0x00060000>;
190*c66ec88fSEmmanuel Vadot					};
191*c66ec88fSEmmanuel Vadot				};
192*c66ec88fSEmmanuel Vadot			};
193*c66ec88fSEmmanuel Vadot
194*c66ec88fSEmmanuel Vadot			UART0: serial@ef600200 {
195*c66ec88fSEmmanuel Vadot				device_type = "serial";
196*c66ec88fSEmmanuel Vadot				compatible = "ns16550";
197*c66ec88fSEmmanuel Vadot				reg = <0xef600200 0x00000008>;
198*c66ec88fSEmmanuel Vadot				virtual-reg = <0xef600200>;
199*c66ec88fSEmmanuel Vadot				clock-frequency = <0>; /* Filled in by U-Boot */
200*c66ec88fSEmmanuel Vadot				current-speed = <0>; /* Filled in by U-Boot */
201*c66ec88fSEmmanuel Vadot				interrupt-parent = <&UIC0>;
202*c66ec88fSEmmanuel Vadot				interrupts = <0x0 0x4>;
203*c66ec88fSEmmanuel Vadot			};
204*c66ec88fSEmmanuel Vadot
205*c66ec88fSEmmanuel Vadot			RGMII0: emac-rgmii@ef600900 {
206*c66ec88fSEmmanuel Vadot				compatible = "ibm,rgmii-460sx", "ibm,rgmii";
207*c66ec88fSEmmanuel Vadot				reg = <0xef600900 0x00000008>;
208*c66ec88fSEmmanuel Vadot			};
209*c66ec88fSEmmanuel Vadot
210*c66ec88fSEmmanuel Vadot			EMAC0: ethernet@ef600a00 {
211*c66ec88fSEmmanuel Vadot				device_type = "network";
212*c66ec88fSEmmanuel Vadot				compatible = "ibm,emac-460sx", "ibm,emac4";
213*c66ec88fSEmmanuel Vadot				interrupt-parent = <&EMAC0>;
214*c66ec88fSEmmanuel Vadot				interrupts = <0x0 0x1>;
215*c66ec88fSEmmanuel Vadot				#interrupt-cells = <1>;
216*c66ec88fSEmmanuel Vadot				#address-cells = <0>;
217*c66ec88fSEmmanuel Vadot				#size-cells = <0>;
218*c66ec88fSEmmanuel Vadot				interrupt-map = </*Status*/ 0x0 &UIC0 0x13 0x4
219*c66ec88fSEmmanuel Vadot						 /*Wake*/   0x1 &UIC2 0x1d 0x4>;
220*c66ec88fSEmmanuel Vadot				reg = <0xef600a00 0x00000070>;
221*c66ec88fSEmmanuel Vadot				local-mac-address = [000000000000]; /* Filled in by U-Boot */
222*c66ec88fSEmmanuel Vadot				mal-device = <&MAL0>;
223*c66ec88fSEmmanuel Vadot				mal-tx-channel = <0>;
224*c66ec88fSEmmanuel Vadot				mal-rx-channel = <0>;
225*c66ec88fSEmmanuel Vadot				cell-index = <0>;
226*c66ec88fSEmmanuel Vadot				max-frame-size = <9000>;
227*c66ec88fSEmmanuel Vadot				rx-fifo-size = <4096>;
228*c66ec88fSEmmanuel Vadot				tx-fifo-size = <2048>;
229*c66ec88fSEmmanuel Vadot				rx-fifo-size-gige = <16384>;
230*c66ec88fSEmmanuel Vadot				phy-mode = "rgmii";
231*c66ec88fSEmmanuel Vadot				phy-map = <0x00000000>;
232*c66ec88fSEmmanuel Vadot				rgmii-device = <&RGMII0>;
233*c66ec88fSEmmanuel Vadot				rgmii-channel = <0>;
234*c66ec88fSEmmanuel Vadot				has-inverted-stacr-oc;
235*c66ec88fSEmmanuel Vadot				has-new-stacr-staopc;
236*c66ec88fSEmmanuel Vadot			};
237*c66ec88fSEmmanuel Vadot		};
238*c66ec88fSEmmanuel Vadot		PCIE0: pcie@d00000000 {
239*c66ec88fSEmmanuel Vadot			device_type = "pci";
240*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
241*c66ec88fSEmmanuel Vadot			#size-cells = <2>;
242*c66ec88fSEmmanuel Vadot			#address-cells = <3>;
243*c66ec88fSEmmanuel Vadot			compatible = "ibm,plb-pciex-460sx", "ibm,plb-pciex";
244*c66ec88fSEmmanuel Vadot			primary;
245*c66ec88fSEmmanuel Vadot			port = <0x0>; /* port number */
246*c66ec88fSEmmanuel Vadot			reg = <0x0000000d 0x00000000 0x20000000	/* Config space access */
247*c66ec88fSEmmanuel Vadot			       0x0000000c 0x10000000 0x00001000>;	/* Registers */
248*c66ec88fSEmmanuel Vadot			dcr-reg = <0x100 0x020>;
249*c66ec88fSEmmanuel Vadot			sdr-base = <0x300>;
250*c66ec88fSEmmanuel Vadot
251*c66ec88fSEmmanuel Vadot			/* Outbound ranges, one memory and one IO,
252*c66ec88fSEmmanuel Vadot			 * later cannot be changed
253*c66ec88fSEmmanuel Vadot			 */
254*c66ec88fSEmmanuel Vadot			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
255*c66ec88fSEmmanuel Vadot				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
256*c66ec88fSEmmanuel Vadot
257*c66ec88fSEmmanuel Vadot			/* Inbound 2GB range starting at 0 */
258*c66ec88fSEmmanuel Vadot			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
259*c66ec88fSEmmanuel Vadot
260*c66ec88fSEmmanuel Vadot			/* This drives busses 10 to 0x1f */
261*c66ec88fSEmmanuel Vadot			bus-range = <0x10 0x1f>;
262*c66ec88fSEmmanuel Vadot
263*c66ec88fSEmmanuel Vadot			/* Legacy interrupts (note the weird polarity, the bridge seems
264*c66ec88fSEmmanuel Vadot			 * to invert PCIe legacy interrupts).
265*c66ec88fSEmmanuel Vadot			 * We are de-swizzling here because the numbers are actually for
266*c66ec88fSEmmanuel Vadot			 * port of the root complex virtual P2P bridge. But I want
267*c66ec88fSEmmanuel Vadot			 * to avoid putting a node for it in the tree, so the numbers
268*c66ec88fSEmmanuel Vadot			 * below are basically de-swizzled numbers.
269*c66ec88fSEmmanuel Vadot			 * The real slot is on idsel 0, so the swizzling is 1:1
270*c66ec88fSEmmanuel Vadot			 */
271*c66ec88fSEmmanuel Vadot			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
272*c66ec88fSEmmanuel Vadot			interrupt-map = <
273*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x1 &UIC3 0x0 0x4 /* swizzled int A */
274*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x2 &UIC3 0x1 0x4 /* swizzled int B */
275*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x3 &UIC3 0x2 0x4 /* swizzled int C */
276*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x4 &UIC3 0x3 0x4 /* swizzled int D */>;
277*c66ec88fSEmmanuel Vadot		};
278*c66ec88fSEmmanuel Vadot
279*c66ec88fSEmmanuel Vadot		PCIE1: pcie@d20000000 {
280*c66ec88fSEmmanuel Vadot			device_type = "pci";
281*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
282*c66ec88fSEmmanuel Vadot			#size-cells = <2>;
283*c66ec88fSEmmanuel Vadot			#address-cells = <3>;
284*c66ec88fSEmmanuel Vadot			compatible = "ibm,plb-pciex-460sx", "ibm,plb-pciex";
285*c66ec88fSEmmanuel Vadot			primary;
286*c66ec88fSEmmanuel Vadot			port = <0x1>; /* port number */
287*c66ec88fSEmmanuel Vadot			reg = <0x0000000d 0x20000000 0x20000000	/* Config space access */
288*c66ec88fSEmmanuel Vadot			       0x0000000c 0x10001000 0x00001000>;	/* Registers */
289*c66ec88fSEmmanuel Vadot			dcr-reg = <0x120 0x020>;
290*c66ec88fSEmmanuel Vadot			sdr-base = <0x340>;
291*c66ec88fSEmmanuel Vadot
292*c66ec88fSEmmanuel Vadot			/* Outbound ranges, one memory and one IO,
293*c66ec88fSEmmanuel Vadot			 * later cannot be changed
294*c66ec88fSEmmanuel Vadot			 */
295*c66ec88fSEmmanuel Vadot			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
296*c66ec88fSEmmanuel Vadot				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
297*c66ec88fSEmmanuel Vadot
298*c66ec88fSEmmanuel Vadot			/* Inbound 2GB range starting at 0 */
299*c66ec88fSEmmanuel Vadot			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
300*c66ec88fSEmmanuel Vadot
301*c66ec88fSEmmanuel Vadot			/* This drives busses 10 to 0x1f */
302*c66ec88fSEmmanuel Vadot			bus-range = <0x20 0x2f>;
303*c66ec88fSEmmanuel Vadot
304*c66ec88fSEmmanuel Vadot			/* Legacy interrupts (note the weird polarity, the bridge seems
305*c66ec88fSEmmanuel Vadot			 * to invert PCIe legacy interrupts).
306*c66ec88fSEmmanuel Vadot			 * We are de-swizzling here because the numbers are actually for
307*c66ec88fSEmmanuel Vadot			 * port of the root complex virtual P2P bridge. But I want
308*c66ec88fSEmmanuel Vadot			 * to avoid putting a node for it in the tree, so the numbers
309*c66ec88fSEmmanuel Vadot			 * below are basically de-swizzled numbers.
310*c66ec88fSEmmanuel Vadot			 * The real slot is on idsel 0, so the swizzling is 1:1
311*c66ec88fSEmmanuel Vadot			 */
312*c66ec88fSEmmanuel Vadot			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
313*c66ec88fSEmmanuel Vadot			interrupt-map = <
314*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x1 &UIC3 0x4 0x4 /* swizzled int A */
315*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x2 &UIC3 0x5 0x4 /* swizzled int B */
316*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x3 &UIC3 0x6 0x4 /* swizzled int C */
317*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x4 &UIC3 0x7 0x4 /* swizzled int D */>;
318*c66ec88fSEmmanuel Vadot		};
319*c66ec88fSEmmanuel Vadot
320*c66ec88fSEmmanuel Vadot		PCIE2: pcie@d40000000 {
321*c66ec88fSEmmanuel Vadot			device_type = "pci";
322*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
323*c66ec88fSEmmanuel Vadot			#size-cells = <2>;
324*c66ec88fSEmmanuel Vadot			#address-cells = <3>;
325*c66ec88fSEmmanuel Vadot			compatible = "ibm,plb-pciex-460sx", "ibm,plb-pciex";
326*c66ec88fSEmmanuel Vadot			primary;
327*c66ec88fSEmmanuel Vadot			port = <0x2>; /* port number */
328*c66ec88fSEmmanuel Vadot			reg = <0x0000000d 0x40000000 0x20000000	/* Config space access */
329*c66ec88fSEmmanuel Vadot			       0x0000000c 0x10002000 0x00001000>;	/* Registers */
330*c66ec88fSEmmanuel Vadot			dcr-reg = <0x140 0x020>;
331*c66ec88fSEmmanuel Vadot			sdr-base = <0x370>;
332*c66ec88fSEmmanuel Vadot
333*c66ec88fSEmmanuel Vadot			/* Outbound ranges, one memory and one IO,
334*c66ec88fSEmmanuel Vadot			 * later cannot be changed
335*c66ec88fSEmmanuel Vadot			 */
336*c66ec88fSEmmanuel Vadot			ranges = <0x02000000 0x00000000 0x80000000 0x0000000f 0x00000000 0x00000000 0x80000000
337*c66ec88fSEmmanuel Vadot				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80020000 0x00000000 0x00010000>;
338*c66ec88fSEmmanuel Vadot
339*c66ec88fSEmmanuel Vadot			/* Inbound 2GB range starting at 0 */
340*c66ec88fSEmmanuel Vadot			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
341*c66ec88fSEmmanuel Vadot
342*c66ec88fSEmmanuel Vadot			/* This drives busses 10 to 0x1f */
343*c66ec88fSEmmanuel Vadot			bus-range = <0x30 0x3f>;
344*c66ec88fSEmmanuel Vadot
345*c66ec88fSEmmanuel Vadot			/* Legacy interrupts (note the weird polarity, the bridge seems
346*c66ec88fSEmmanuel Vadot			 * to invert PCIe legacy interrupts).
347*c66ec88fSEmmanuel Vadot			 * We are de-swizzling here because the numbers are actually for
348*c66ec88fSEmmanuel Vadot			 * port of the root complex virtual P2P bridge. But I want
349*c66ec88fSEmmanuel Vadot			 * to avoid putting a node for it in the tree, so the numbers
350*c66ec88fSEmmanuel Vadot			 * below are basically de-swizzled numbers.
351*c66ec88fSEmmanuel Vadot			 * The real slot is on idsel 0, so the swizzling is 1:1
352*c66ec88fSEmmanuel Vadot			 */
353*c66ec88fSEmmanuel Vadot			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
354*c66ec88fSEmmanuel Vadot			interrupt-map = <
355*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x1 &UIC3 0x8 0x4 /* swizzled int A */
356*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x2 &UIC3 0x9 0x4 /* swizzled int B */
357*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x3 &UIC3 0xa 0x4 /* swizzled int C */
358*c66ec88fSEmmanuel Vadot				0x0 0x0 0x0 0x4 &UIC3 0xb 0x4 /* swizzled int D */>;
359*c66ec88fSEmmanuel Vadot		};
360*c66ec88fSEmmanuel Vadot
361*c66ec88fSEmmanuel Vadot	};
362*c66ec88fSEmmanuel Vadot
363*c66ec88fSEmmanuel Vadot
364*c66ec88fSEmmanuel Vadot	chosen {
365*c66ec88fSEmmanuel Vadot		stdout-path = "/plb/opb/serial@ef600200";
366*c66ec88fSEmmanuel Vadot	};
367*c66ec88fSEmmanuel Vadot
368*c66ec88fSEmmanuel Vadot};
369