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