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