xref: /OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/currituck.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Source for IBM Embedded PPC 476 Platform
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright © 2011 Tony Breeds IBM Corporation
5*4882a593Smuzhiyun *
6*4882a593Smuzhiyun * This file is licensed under the terms of the GNU General Public
7*4882a593Smuzhiyun * License version 2.  This program is licensed "as is" without
8*4882a593Smuzhiyun * any warranty of any kind, whether express or implied.
9*4882a593Smuzhiyun */
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun/dts-v1/;
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun/memreserve/ 0x01f00000 0x00100000;	// spin table
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun/ {
16*4882a593Smuzhiyun	#address-cells = <2>;
17*4882a593Smuzhiyun	#size-cells = <2>;
18*4882a593Smuzhiyun	model = "ibm,currituck";
19*4882a593Smuzhiyun	compatible = "ibm,currituck";
20*4882a593Smuzhiyun	dcr-parent = <&{/cpus/cpu@0}>;
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun	aliases {
23*4882a593Smuzhiyun		serial0 = &UART0;
24*4882a593Smuzhiyun	};
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun	cpus {
27*4882a593Smuzhiyun		#address-cells = <1>;
28*4882a593Smuzhiyun		#size-cells = <0>;
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun		cpu@0 {
31*4882a593Smuzhiyun			device_type = "cpu";
32*4882a593Smuzhiyun			model = "PowerPC,476";
33*4882a593Smuzhiyun			reg = <0>;
34*4882a593Smuzhiyun			clock-frequency = <1600000000>; // 1.6 GHz
35*4882a593Smuzhiyun			timebase-frequency = <100000000>; // 100Mhz
36*4882a593Smuzhiyun			i-cache-line-size = <32>;
37*4882a593Smuzhiyun			d-cache-line-size = <32>;
38*4882a593Smuzhiyun			i-cache-size = <32768>;
39*4882a593Smuzhiyun			d-cache-size = <32768>;
40*4882a593Smuzhiyun			dcr-controller;
41*4882a593Smuzhiyun			dcr-access-method = "native";
42*4882a593Smuzhiyun			status = "okay";
43*4882a593Smuzhiyun		};
44*4882a593Smuzhiyun		cpu@1 {
45*4882a593Smuzhiyun			device_type = "cpu";
46*4882a593Smuzhiyun			model = "PowerPC,476";
47*4882a593Smuzhiyun			reg = <1>;
48*4882a593Smuzhiyun			clock-frequency = <1600000000>; // 1.6 GHz
49*4882a593Smuzhiyun			timebase-frequency = <100000000>; // 100Mhz
50*4882a593Smuzhiyun			i-cache-line-size = <32>;
51*4882a593Smuzhiyun			d-cache-line-size = <32>;
52*4882a593Smuzhiyun			i-cache-size = <32768>;
53*4882a593Smuzhiyun			d-cache-size = <32768>;
54*4882a593Smuzhiyun			dcr-controller;
55*4882a593Smuzhiyun			dcr-access-method = "native";
56*4882a593Smuzhiyun			status = "disabled";
57*4882a593Smuzhiyun			enable-method = "spin-table";
58*4882a593Smuzhiyun			cpu-release-addr = <0x0 0x01f00000>;
59*4882a593Smuzhiyun		};
60*4882a593Smuzhiyun	};
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun	memory {
63*4882a593Smuzhiyun		device_type = "memory";
64*4882a593Smuzhiyun		reg = <0x0 0x0 0x0 0x0>; // filled in by zImage
65*4882a593Smuzhiyun	};
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun	MPIC: interrupt-controller {
68*4882a593Smuzhiyun		compatible = "chrp,open-pic";
69*4882a593Smuzhiyun		interrupt-controller;
70*4882a593Smuzhiyun		dcr-reg = <0xffc00000 0x00040000>;
71*4882a593Smuzhiyun		#address-cells = <0>;
72*4882a593Smuzhiyun		#size-cells = <0>;
73*4882a593Smuzhiyun		#interrupt-cells = <2>;
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun	};
76*4882a593Smuzhiyun
77*4882a593Smuzhiyun	plb {
78*4882a593Smuzhiyun		compatible = "ibm,plb6";
79*4882a593Smuzhiyun		#address-cells = <2>;
80*4882a593Smuzhiyun		#size-cells = <2>;
81*4882a593Smuzhiyun		ranges;
82*4882a593Smuzhiyun		clock-frequency = <200000000>; // 200Mhz
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun		POB0: opb {
85*4882a593Smuzhiyun			compatible = "ibm,opb-4xx", "ibm,opb";
86*4882a593Smuzhiyun			#address-cells = <1>;
87*4882a593Smuzhiyun			#size-cells = <1>;
88*4882a593Smuzhiyun			/* Wish there was a nicer way of specifying a full
89*4882a593Smuzhiyun			 * 32-bit range
90*4882a593Smuzhiyun			 */
91*4882a593Smuzhiyun			ranges = <0x00000000 0x00000200 0x00000000 0x80000000
92*4882a593Smuzhiyun				  0x80000000 0x00000200 0x80000000 0x80000000>;
93*4882a593Smuzhiyun			clock-frequency = <100000000>;
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun			UART0: serial@10000000 {
96*4882a593Smuzhiyun				device_type = "serial";
97*4882a593Smuzhiyun				compatible = "ns16750", "ns16550";
98*4882a593Smuzhiyun				reg = <0x10000000 0x00000008>;
99*4882a593Smuzhiyun				virtual-reg = <0xe1000000>;
100*4882a593Smuzhiyun				clock-frequency = <1851851>; // PCIe refclk/MCGC0_CTL[UART]
101*4882a593Smuzhiyun				current-speed = <115200>;
102*4882a593Smuzhiyun				interrupt-parent = <&MPIC>;
103*4882a593Smuzhiyun				interrupts = <34 2>;
104*4882a593Smuzhiyun			};
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun			FPGA0: fpga@50000000 {
107*4882a593Smuzhiyun				compatible = "ibm,currituck-fpga";
108*4882a593Smuzhiyun				reg = <0x50000000 0x4>;
109*4882a593Smuzhiyun			};
110*4882a593Smuzhiyun
111*4882a593Smuzhiyun			IIC0: i2c@0 {
112*4882a593Smuzhiyun				compatible = "ibm,iic-currituck", "ibm,iic";
113*4882a593Smuzhiyun				reg = <0x0 0x00000014>;
114*4882a593Smuzhiyun				interrupt-parent = <&MPIC>;
115*4882a593Smuzhiyun				interrupts = <79 2>;
116*4882a593Smuzhiyun				#address-cells = <1>;
117*4882a593Smuzhiyun				#size-cells = <0>;
118*4882a593Smuzhiyun                                rtc@68 {
119*4882a593Smuzhiyun                                        compatible = "st,m41t80", "m41st85";
120*4882a593Smuzhiyun                                        reg = <0x68>;
121*4882a593Smuzhiyun                                };
122*4882a593Smuzhiyun			};
123*4882a593Smuzhiyun		};
124*4882a593Smuzhiyun
125*4882a593Smuzhiyun		PCIE0: pcie@10100000000 {		// 4xGBIF1
126*4882a593Smuzhiyun			device_type = "pci";
127*4882a593Smuzhiyun			#interrupt-cells = <1>;
128*4882a593Smuzhiyun			#size-cells = <2>;
129*4882a593Smuzhiyun			#address-cells = <3>;
130*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
131*4882a593Smuzhiyun			primary;
132*4882a593Smuzhiyun			port = <0x0>; /* port number */
133*4882a593Smuzhiyun			reg = <0x00000101 0x00000000 0x0 0x10000000		/* Config space access */
134*4882a593Smuzhiyun			       0x00000100 0x00000000 0x0 0x00001000>;	/* UTL Registers space access */
135*4882a593Smuzhiyun			dcr-reg = <0x80 0x20>;
136*4882a593Smuzhiyun
137*4882a593Smuzhiyun//                                pci_space  < pci_addr          > < cpu_addr          > < size       >
138*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x00000110 0x80000000 0x0 0x80000000
139*4882a593Smuzhiyun			          0x01000000 0x0        0x0        0x00000140 0x0        0x0 0x00010000>;
140*4882a593Smuzhiyun
141*4882a593Smuzhiyun			/* Inbound starting at 0 to memsize filled in by zImage */
142*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>;
143*4882a593Smuzhiyun
144*4882a593Smuzhiyun			/* This drives busses 0 to 0xf */
145*4882a593Smuzhiyun			bus-range = <0x0 0xf>;
146*4882a593Smuzhiyun
147*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
148*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
149*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
150*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
151*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
152*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
153*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
154*4882a593Smuzhiyun			 */
155*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
156*4882a593Smuzhiyun			interrupt-map = <
157*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &MPIC 46 0x2 /* int A */
158*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &MPIC 47 0x2 /* int B */
159*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &MPIC 48 0x2 /* int C */
160*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &MPIC 49 0x2 /* int D */>;
161*4882a593Smuzhiyun		};
162*4882a593Smuzhiyun
163*4882a593Smuzhiyun		PCIE1: pcie@30100000000 {		// 4xGBIF0
164*4882a593Smuzhiyun			device_type = "pci";
165*4882a593Smuzhiyun			#interrupt-cells = <1>;
166*4882a593Smuzhiyun			#size-cells = <2>;
167*4882a593Smuzhiyun			#address-cells = <3>;
168*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
169*4882a593Smuzhiyun			primary;
170*4882a593Smuzhiyun			port = <0x1>; /* port number */
171*4882a593Smuzhiyun			reg = <0x00000301 0x00000000 0x0 0x10000000		/* Config space access */
172*4882a593Smuzhiyun			       0x00000300 0x00000000 0x0 0x00001000>;	/* UTL Registers space access */
173*4882a593Smuzhiyun			dcr-reg = <0x60 0x20>;
174*4882a593Smuzhiyun
175*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x00000310 0x80000000 0x0 0x80000000
176*4882a593Smuzhiyun			          0x01000000 0x0        0x0        0x00000340 0x0        0x0 0x00010000>;
177*4882a593Smuzhiyun
178*4882a593Smuzhiyun			/* Inbound starting at 0 to memsize filled in by zImage */
179*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>;
180*4882a593Smuzhiyun
181*4882a593Smuzhiyun			/* This drives busses 0 to 0xf */
182*4882a593Smuzhiyun			bus-range = <0x0 0xf>;
183*4882a593Smuzhiyun
184*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
185*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
186*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
187*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
188*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
189*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
190*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
191*4882a593Smuzhiyun			 */
192*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
193*4882a593Smuzhiyun			interrupt-map = <
194*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &MPIC 38 0x2 /* int A */
195*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &MPIC 39 0x2 /* int B */
196*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &MPIC 40 0x2 /* int C */
197*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &MPIC 41 0x2 /* int D */>;
198*4882a593Smuzhiyun		};
199*4882a593Smuzhiyun
200*4882a593Smuzhiyun		PCIE2: pcie@38100000000 {		// 2xGBIF0
201*4882a593Smuzhiyun			device_type = "pci";
202*4882a593Smuzhiyun			#interrupt-cells = <1>;
203*4882a593Smuzhiyun			#size-cells = <2>;
204*4882a593Smuzhiyun			#address-cells = <3>;
205*4882a593Smuzhiyun			compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex";
206*4882a593Smuzhiyun			primary;
207*4882a593Smuzhiyun			port = <0x2>; /* port number */
208*4882a593Smuzhiyun			reg = <0x00000381 0x00000000 0x0 0x10000000		/* Config space access */
209*4882a593Smuzhiyun			       0x00000380 0x00000000 0x0 0x00001000>;	/* UTL Registers space access */
210*4882a593Smuzhiyun			dcr-reg = <0xA0 0x20>;
211*4882a593Smuzhiyun
212*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x00000390 0x80000000 0x0 0x80000000
213*4882a593Smuzhiyun			          0x01000000 0x0        0x0        0x000003C0 0x0        0x0 0x00010000>;
214*4882a593Smuzhiyun
215*4882a593Smuzhiyun			/* Inbound starting at 0 to memsize filled in by zImage */
216*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>;
217*4882a593Smuzhiyun
218*4882a593Smuzhiyun			/* This drives busses 0 to 0xf */
219*4882a593Smuzhiyun			bus-range = <0x0 0xf>;
220*4882a593Smuzhiyun
221*4882a593Smuzhiyun			/* Legacy interrupts (note the weird polarity, the bridge seems
222*4882a593Smuzhiyun			 * to invert PCIe legacy interrupts).
223*4882a593Smuzhiyun			 * We are de-swizzling here because the numbers are actually for
224*4882a593Smuzhiyun			 * port of the root complex virtual P2P bridge. But I want
225*4882a593Smuzhiyun			 * to avoid putting a node for it in the tree, so the numbers
226*4882a593Smuzhiyun			 * below are basically de-swizzled numbers.
227*4882a593Smuzhiyun			 * The real slot is on idsel 0, so the swizzling is 1:1
228*4882a593Smuzhiyun			 */
229*4882a593Smuzhiyun			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
230*4882a593Smuzhiyun			interrupt-map = <
231*4882a593Smuzhiyun				0x0 0x0 0x0 0x1 &MPIC 54 0x2 /* int A */
232*4882a593Smuzhiyun				0x0 0x0 0x0 0x2 &MPIC 55 0x2 /* int B */
233*4882a593Smuzhiyun				0x0 0x0 0x0 0x3 &MPIC 56 0x2 /* int C */
234*4882a593Smuzhiyun				0x0 0x0 0x0 0x4 &MPIC 57 0x2 /* int D */>;
235*4882a593Smuzhiyun		};
236*4882a593Smuzhiyun
237*4882a593Smuzhiyun	};
238*4882a593Smuzhiyun
239*4882a593Smuzhiyun	chosen {
240*4882a593Smuzhiyun		stdout-path = &UART0;
241*4882a593Smuzhiyun	};
242*4882a593Smuzhiyun};
243