xref: /OK3568_Linux_fs/kernel/scripts/dtc/include-prefixes/powerpc/hotfoot.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Source for ESTeem 195E Hotfoot
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright 2009 AbsoluteValue Systems <solomon@linux-wlan.com>
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/ {
14*4882a593Smuzhiyun	#address-cells = <1>;
15*4882a593Smuzhiyun	#size-cells = <1>;
16*4882a593Smuzhiyun	model = "est,hotfoot";
17*4882a593Smuzhiyun	compatible = "est,hotfoot";
18*4882a593Smuzhiyun	dcr-parent = <&{/cpus/cpu@0}>;
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	aliases {
21*4882a593Smuzhiyun		ethernet0 = &EMAC0;
22*4882a593Smuzhiyun		ethernet1 = &EMAC1;
23*4882a593Smuzhiyun		serial0 = &UART0;
24*4882a593Smuzhiyun		serial1 = &UART1;
25*4882a593Smuzhiyun	};
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	cpus {
28*4882a593Smuzhiyun		#address-cells = <1>;
29*4882a593Smuzhiyun		#size-cells = <0>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun		cpu@0 {
32*4882a593Smuzhiyun			device_type = "cpu";
33*4882a593Smuzhiyun			model = "PowerPC,405EP";
34*4882a593Smuzhiyun			reg = <0x00000000>;
35*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by zImage */
36*4882a593Smuzhiyun			timebase-frequency = <0>; /* Filled in by zImage */
37*4882a593Smuzhiyun			i-cache-line-size = <0x20>;
38*4882a593Smuzhiyun			d-cache-line-size = <0x20>;
39*4882a593Smuzhiyun			i-cache-size = <0x4000>;
40*4882a593Smuzhiyun			d-cache-size = <0x4000>;
41*4882a593Smuzhiyun			dcr-controller;
42*4882a593Smuzhiyun			dcr-access-method = "native";
43*4882a593Smuzhiyun		};
44*4882a593Smuzhiyun	};
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun	memory {
47*4882a593Smuzhiyun		device_type = "memory";
48*4882a593Smuzhiyun		reg = <0x00000000 0x00000000>; /* Filled in by zImage */
49*4882a593Smuzhiyun	};
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun	UIC0: interrupt-controller {
52*4882a593Smuzhiyun		compatible = "ibm,uic";
53*4882a593Smuzhiyun		interrupt-controller;
54*4882a593Smuzhiyun		cell-index = <0>;
55*4882a593Smuzhiyun		dcr-reg = <0x0c0 0x009>;
56*4882a593Smuzhiyun		#address-cells = <0>;
57*4882a593Smuzhiyun		#size-cells = <0>;
58*4882a593Smuzhiyun		#interrupt-cells = <2>;
59*4882a593Smuzhiyun	};
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun	plb {
62*4882a593Smuzhiyun		compatible = "ibm,plb3";
63*4882a593Smuzhiyun		#address-cells = <1>;
64*4882a593Smuzhiyun		#size-cells = <1>;
65*4882a593Smuzhiyun		ranges;
66*4882a593Smuzhiyun		clock-frequency = <0>; /* Filled in by zImage */
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun		SDRAM0: memory-controller {
69*4882a593Smuzhiyun			compatible = "ibm,sdram-405ep";
70*4882a593Smuzhiyun			dcr-reg = <0x010 0x002>;
71*4882a593Smuzhiyun		};
72*4882a593Smuzhiyun
73*4882a593Smuzhiyun		MAL: mcmal {
74*4882a593Smuzhiyun			compatible = "ibm,mcmal-405ep", "ibm,mcmal";
75*4882a593Smuzhiyun			dcr-reg = <0x180 0x062>;
76*4882a593Smuzhiyun			num-tx-chans = <4>;
77*4882a593Smuzhiyun			num-rx-chans = <2>;
78*4882a593Smuzhiyun			interrupt-parent = <&UIC0>;
79*4882a593Smuzhiyun			interrupts = <
80*4882a593Smuzhiyun				0xb 0x4 /* TXEOB */
81*4882a593Smuzhiyun				0xc 0x4 /* RXEOB */
82*4882a593Smuzhiyun				0xa 0x4 /* SERR */
83*4882a593Smuzhiyun				0xd 0x4 /* TXDE */
84*4882a593Smuzhiyun				0xe 0x4 /* RXDE */>;
85*4882a593Smuzhiyun		};
86*4882a593Smuzhiyun
87*4882a593Smuzhiyun		POB0: opb {
88*4882a593Smuzhiyun			compatible = "ibm,opb-405ep", "ibm,opb";
89*4882a593Smuzhiyun			#address-cells = <1>;
90*4882a593Smuzhiyun			#size-cells = <1>;
91*4882a593Smuzhiyun			ranges = <0xef600000 0xef600000 0x00a00000>;
92*4882a593Smuzhiyun			dcr-reg = <0x0a0 0x005>;
93*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by zImage */
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun			/* Hotfoot has UART0/UART1 swapped */
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun			UART0: serial@ef600400 {
98*4882a593Smuzhiyun				device_type = "serial";
99*4882a593Smuzhiyun				compatible = "ns16550";
100*4882a593Smuzhiyun				reg = <0xef600400 0x00000008>;
101*4882a593Smuzhiyun				virtual-reg = <0xef600400>;
102*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by zImage */
103*4882a593Smuzhiyun				current-speed = <0x9600>;
104*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
105*4882a593Smuzhiyun				interrupts = <0x1 0x4>;
106*4882a593Smuzhiyun			};
107*4882a593Smuzhiyun
108*4882a593Smuzhiyun			UART1: serial@ef600300 {
109*4882a593Smuzhiyun				device_type = "serial";
110*4882a593Smuzhiyun				compatible = "ns16550";
111*4882a593Smuzhiyun				reg = <0xef600300 0x00000008>;
112*4882a593Smuzhiyun				virtual-reg = <0xef600300>;
113*4882a593Smuzhiyun				clock-frequency = <0>; /* Filled in by zImage */
114*4882a593Smuzhiyun				current-speed = <0x9600>;
115*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
116*4882a593Smuzhiyun				interrupts = <0x0 0x4>;
117*4882a593Smuzhiyun			};
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun			IIC: i2c@ef600500 {
120*4882a593Smuzhiyun				#address-cells = <1>;
121*4882a593Smuzhiyun				#size-cells = <0>;
122*4882a593Smuzhiyun				compatible = "ibm,iic-405ep", "ibm,iic";
123*4882a593Smuzhiyun				reg = <0xef600500 0x00000011>;
124*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
125*4882a593Smuzhiyun				interrupts = <0x2 0x4>;
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun				rtc@68 {
128*4882a593Smuzhiyun					/* Actually a DS1339 */
129*4882a593Smuzhiyun					compatible = "dallas,ds1307";
130*4882a593Smuzhiyun					reg = <0x68>;
131*4882a593Smuzhiyun				};
132*4882a593Smuzhiyun
133*4882a593Smuzhiyun				temp@4a {
134*4882a593Smuzhiyun					/* Not present on all boards */
135*4882a593Smuzhiyun					compatible = "national,lm75";
136*4882a593Smuzhiyun					reg = <0x4a>;
137*4882a593Smuzhiyun				};
138*4882a593Smuzhiyun			};
139*4882a593Smuzhiyun
140*4882a593Smuzhiyun			GPIO: gpio@ef600700 {
141*4882a593Smuzhiyun				#gpio-cells = <2>;
142*4882a593Smuzhiyun				compatible = "ibm,ppc4xx-gpio";
143*4882a593Smuzhiyun				reg = <0xef600700 0x00000020>;
144*4882a593Smuzhiyun				gpio-controller;
145*4882a593Smuzhiyun			};
146*4882a593Smuzhiyun
147*4882a593Smuzhiyun			gpio-leds {
148*4882a593Smuzhiyun				compatible = "gpio-leds";
149*4882a593Smuzhiyun				status {
150*4882a593Smuzhiyun					label = "Status";
151*4882a593Smuzhiyun					gpios = <&GPIO 1 0>;
152*4882a593Smuzhiyun				};
153*4882a593Smuzhiyun				radiorx {
154*4882a593Smuzhiyun					label = "Rx";
155*4882a593Smuzhiyun					gpios = <&GPIO 0xe 0>;
156*4882a593Smuzhiyun				};
157*4882a593Smuzhiyun			};
158*4882a593Smuzhiyun
159*4882a593Smuzhiyun			EMAC0: ethernet@ef600800 {
160*4882a593Smuzhiyun				linux,network-index = <0x0>;
161*4882a593Smuzhiyun				device_type = "network";
162*4882a593Smuzhiyun				compatible = "ibm,emac-405ep", "ibm,emac";
163*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
164*4882a593Smuzhiyun				interrupts = <
165*4882a593Smuzhiyun					0xf 0x4 /* Ethernet */
166*4882a593Smuzhiyun					0x9 0x4 /* Ethernet Wake Up */>;
167*4882a593Smuzhiyun				local-mac-address = [000000000000]; /* Filled in by zImage */
168*4882a593Smuzhiyun				reg = <0xef600800 0x00000070>;
169*4882a593Smuzhiyun				mal-device = <&MAL>;
170*4882a593Smuzhiyun				mal-tx-channel = <0>;
171*4882a593Smuzhiyun				mal-rx-channel = <0>;
172*4882a593Smuzhiyun				cell-index = <0>;
173*4882a593Smuzhiyun				max-frame-size = <0x5dc>;
174*4882a593Smuzhiyun				rx-fifo-size = <0x1000>;
175*4882a593Smuzhiyun				tx-fifo-size = <0x800>;
176*4882a593Smuzhiyun				phy-mode = "mii";
177*4882a593Smuzhiyun				phy-map = <0x00000000>;
178*4882a593Smuzhiyun			};
179*4882a593Smuzhiyun
180*4882a593Smuzhiyun			EMAC1: ethernet@ef600900 {
181*4882a593Smuzhiyun				linux,network-index = <0x1>;
182*4882a593Smuzhiyun				device_type = "network";
183*4882a593Smuzhiyun				compatible = "ibm,emac-405ep", "ibm,emac";
184*4882a593Smuzhiyun				interrupt-parent = <&UIC0>;
185*4882a593Smuzhiyun				interrupts = <
186*4882a593Smuzhiyun					0x11 0x4 /* Ethernet */
187*4882a593Smuzhiyun					0x9 0x4 /* Ethernet Wake Up */>;
188*4882a593Smuzhiyun				local-mac-address = [000000000000]; /* Filled in by zImage */
189*4882a593Smuzhiyun				reg = <0xef600900 0x00000070>;
190*4882a593Smuzhiyun				mal-device = <&MAL>;
191*4882a593Smuzhiyun				mal-tx-channel = <2>;
192*4882a593Smuzhiyun				mal-rx-channel = <1>;
193*4882a593Smuzhiyun				cell-index = <1>;
194*4882a593Smuzhiyun				max-frame-size = <0x5dc>;
195*4882a593Smuzhiyun				rx-fifo-size = <0x1000>;
196*4882a593Smuzhiyun				tx-fifo-size = <0x800>;
197*4882a593Smuzhiyun				mdio-device = <&EMAC0>;
198*4882a593Smuzhiyun				phy-mode = "mii";
199*4882a593Smuzhiyun				phy-map = <0x0000001>;
200*4882a593Smuzhiyun			};
201*4882a593Smuzhiyun		};
202*4882a593Smuzhiyun
203*4882a593Smuzhiyun		EBC0: ebc {
204*4882a593Smuzhiyun			compatible = "ibm,ebc-405ep", "ibm,ebc";
205*4882a593Smuzhiyun			dcr-reg = <0x012 0x002>;
206*4882a593Smuzhiyun			#address-cells = <2>;
207*4882a593Smuzhiyun			#size-cells = <1>;
208*4882a593Smuzhiyun
209*4882a593Smuzhiyun			/* The ranges property is supplied by the bootwrapper
210*4882a593Smuzhiyun			 * and is based on the firmware's configuration of the
211*4882a593Smuzhiyun			 * EBC bridge
212*4882a593Smuzhiyun			 */
213*4882a593Smuzhiyun			clock-frequency = <0>; /* Filled in by zImage */
214*4882a593Smuzhiyun
215*4882a593Smuzhiyun			nor_flash@0 {
216*4882a593Smuzhiyun				compatible = "cfi-flash";
217*4882a593Smuzhiyun				bank-width = <2>;
218*4882a593Smuzhiyun				reg = <0x0 0xff800000 0x00800000>;
219*4882a593Smuzhiyun				#address-cells = <1>;
220*4882a593Smuzhiyun				#size-cells = <1>;
221*4882a593Smuzhiyun
222*4882a593Smuzhiyun				/* This mapping is for the 8M flash
223*4882a593Smuzhiyun				   4M flash has all ofssets -= 4M,
224*4882a593Smuzhiyun				   and FeatFS partition is not present */
225*4882a593Smuzhiyun				partition@0 {
226*4882a593Smuzhiyun					label = "Bootloader";
227*4882a593Smuzhiyun					reg = <0x7c0000 0x40000>;
228*4882a593Smuzhiyun					/* read-only; */
229*4882a593Smuzhiyun				};
230*4882a593Smuzhiyun				partition@1 {
231*4882a593Smuzhiyun					label = "Env_and_Config_Primary";
232*4882a593Smuzhiyun					reg = <0x400000 0x10000>;
233*4882a593Smuzhiyun				};
234*4882a593Smuzhiyun				partition@2 {
235*4882a593Smuzhiyun					label = "Kernel";
236*4882a593Smuzhiyun					reg = <0x420000 0x100000>;
237*4882a593Smuzhiyun				};
238*4882a593Smuzhiyun				partition@3 {
239*4882a593Smuzhiyun					label = "Filesystem";
240*4882a593Smuzhiyun					reg = <0x520000 0x2a0000>;
241*4882a593Smuzhiyun				};
242*4882a593Smuzhiyun				partition@4 {
243*4882a593Smuzhiyun					label = "Env_and_Config_Secondary";
244*4882a593Smuzhiyun					reg = <0x410000 0x10000>;
245*4882a593Smuzhiyun				};
246*4882a593Smuzhiyun				partition@5 {
247*4882a593Smuzhiyun					label = "FeatFS";
248*4882a593Smuzhiyun					reg = <0x000000 0x400000>;
249*4882a593Smuzhiyun				};
250*4882a593Smuzhiyun				partition@6 {
251*4882a593Smuzhiyun					label = "Bootloader_Env";
252*4882a593Smuzhiyun					reg = <0x7d0000 0x10000>;
253*4882a593Smuzhiyun				};
254*4882a593Smuzhiyun			};
255*4882a593Smuzhiyun		};
256*4882a593Smuzhiyun
257*4882a593Smuzhiyun		PCI0: pci@ec000000 {
258*4882a593Smuzhiyun			device_type = "pci";
259*4882a593Smuzhiyun			#interrupt-cells = <1>;
260*4882a593Smuzhiyun			#size-cells = <2>;
261*4882a593Smuzhiyun			#address-cells = <3>;
262*4882a593Smuzhiyun			compatible = "ibm,plb405ep-pci", "ibm,plb-pci";
263*4882a593Smuzhiyun			primary;
264*4882a593Smuzhiyun			reg = <0xeec00000 0x00000008    /* Config space access */
265*4882a593Smuzhiyun				0xeed80000 0x00000004    /* IACK */
266*4882a593Smuzhiyun				0xeed80000 0x00000004    /* Special cycle */
267*4882a593Smuzhiyun				0xef480000 0x00000040>;  /* Internal registers */
268*4882a593Smuzhiyun
269*4882a593Smuzhiyun			/* Outbound ranges, one memory and one IO,
270*4882a593Smuzhiyun			 * later cannot be changed. Chip supports a second
271*4882a593Smuzhiyun			 * IO range but we don't use it for now
272*4882a593Smuzhiyun			 */
273*4882a593Smuzhiyun			ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x20000000
274*4882a593Smuzhiyun				0x01000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>;
275*4882a593Smuzhiyun
276*4882a593Smuzhiyun			/* Inbound 2GB range starting at 0 */
277*4882a593Smuzhiyun			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
278*4882a593Smuzhiyun
279*4882a593Smuzhiyun			interrupt-parent = <&UIC0>;
280*4882a593Smuzhiyun			interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
281*4882a593Smuzhiyun			interrupt-map = <
282*4882a593Smuzhiyun				/* IDSEL 3 -- slot1 (optional) 27/29 A/B IRQ2/4 */
283*4882a593Smuzhiyun				0x1800 0x0 0x0 0x1 &UIC0 0x1b 0x8
284*4882a593Smuzhiyun				0x1800 0x0 0x0 0x2 &UIC0 0x1d 0x8
285*4882a593Smuzhiyun
286*4882a593Smuzhiyun				/* IDSEL 4 -- slot0, 26/28 A/B IRQ1/3 */
287*4882a593Smuzhiyun				0x2000 0x0 0x0 0x1 &UIC0 0x1a 0x8
288*4882a593Smuzhiyun				0x2000 0x0 0x0 0x2 &UIC0 0x1c 0x8
289*4882a593Smuzhiyun				>;
290*4882a593Smuzhiyun		};
291*4882a593Smuzhiyun	};
292*4882a593Smuzhiyun
293*4882a593Smuzhiyun	chosen {
294*4882a593Smuzhiyun		stdout-path = &UART0;
295*4882a593Smuzhiyun	};
296*4882a593Smuzhiyun};
297