xref: /freebsd/sys/contrib/device-tree/src/powerpc/ep8248e.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*c66ec88fSEmmanuel Vadot/*
3*c66ec88fSEmmanuel Vadot * Device Tree for the Embedded Planet EP8248E board running PlanetCore.
4*c66ec88fSEmmanuel Vadot *
5*c66ec88fSEmmanuel Vadot * Copyright 2007 Freescale Semiconductor Inc.
6*c66ec88fSEmmanuel Vadot */
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot/dts-v1/;
9*c66ec88fSEmmanuel Vadot/ {
10*c66ec88fSEmmanuel Vadot	model = "EP8248E";
11*c66ec88fSEmmanuel Vadot	compatible = "fsl,ep8248e";
12*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
13*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot	aliases {
16*c66ec88fSEmmanuel Vadot		planetcore-SMC1 = &smc1;
17*c66ec88fSEmmanuel Vadot		planetcore-SCC1 = &scc1;
18*c66ec88fSEmmanuel Vadot		ethernet0 = &eth0;
19*c66ec88fSEmmanuel Vadot		ethernet1 = &eth1;
20*c66ec88fSEmmanuel Vadot		serial0 = &smc1;
21*c66ec88fSEmmanuel Vadot		serial1 = &scc1;
22*c66ec88fSEmmanuel Vadot	};
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot	cpus {
25*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
26*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot		PowerPC,8248@0 {
29*c66ec88fSEmmanuel Vadot			device_type = "cpu";
30*c66ec88fSEmmanuel Vadot			reg = <0>;
31*c66ec88fSEmmanuel Vadot			d-cache-line-size = <32>;
32*c66ec88fSEmmanuel Vadot			i-cache-line-size = <32>;
33*c66ec88fSEmmanuel Vadot			d-cache-size = <16384>;
34*c66ec88fSEmmanuel Vadot			i-cache-size = <16384>;
35*c66ec88fSEmmanuel Vadot			timebase-frequency = <0>;
36*c66ec88fSEmmanuel Vadot			clock-frequency = <0>;
37*c66ec88fSEmmanuel Vadot		};
38*c66ec88fSEmmanuel Vadot	};
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadot	localbus@f0010100 {
41*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc8248-localbus",
42*c66ec88fSEmmanuel Vadot		             "fsl,pq2-localbus",
43*c66ec88fSEmmanuel Vadot		             "simple-bus";
44*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
45*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
46*c66ec88fSEmmanuel Vadot		reg = <0xf0010100 0x40>;
47*c66ec88fSEmmanuel Vadot
48*c66ec88fSEmmanuel Vadot		ranges = <0 0 0xfc000000 0x04000000
49*c66ec88fSEmmanuel Vadot		          1 0 0xfa000000 0x00008000>;
50*c66ec88fSEmmanuel Vadot
51*c66ec88fSEmmanuel Vadot		flash@0,3800000 {
52*c66ec88fSEmmanuel Vadot			compatible = "cfi-flash";
53*c66ec88fSEmmanuel Vadot			reg = <0 0x3800000 0x800000>;
54*c66ec88fSEmmanuel Vadot			bank-width = <4>;
55*c66ec88fSEmmanuel Vadot			device-width = <2>;
56*c66ec88fSEmmanuel Vadot		};
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadot		bcsr@1,0 {
59*c66ec88fSEmmanuel Vadot			#address-cells = <2>;
60*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
61*c66ec88fSEmmanuel Vadot			reg = <1 0 0x10>;
62*c66ec88fSEmmanuel Vadot			compatible = "fsl,ep8248e-bcsr";
63*c66ec88fSEmmanuel Vadot			ranges;
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadot			mdio {
66*c66ec88fSEmmanuel Vadot				compatible = "fsl,ep8248e-mdio-bitbang";
67*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
68*c66ec88fSEmmanuel Vadot				#size-cells = <0>;
69*c66ec88fSEmmanuel Vadot				reg = <1 8 1>;
70*c66ec88fSEmmanuel Vadot
71*c66ec88fSEmmanuel Vadot				PHY0: ethernet-phy@0 {
72*c66ec88fSEmmanuel Vadot					interrupt-parent = <&PIC>;
73*c66ec88fSEmmanuel Vadot					reg = <0>;
74*c66ec88fSEmmanuel Vadot				};
75*c66ec88fSEmmanuel Vadot
76*c66ec88fSEmmanuel Vadot				PHY1: ethernet-phy@1 {
77*c66ec88fSEmmanuel Vadot					interrupt-parent = <&PIC>;
78*c66ec88fSEmmanuel Vadot					reg = <1>;
79*c66ec88fSEmmanuel Vadot				};
80*c66ec88fSEmmanuel Vadot			};
81*c66ec88fSEmmanuel Vadot		};
82*c66ec88fSEmmanuel Vadot	};
83*c66ec88fSEmmanuel Vadot
84*c66ec88fSEmmanuel Vadot	memory {
85*c66ec88fSEmmanuel Vadot		device_type = "memory";
86*c66ec88fSEmmanuel Vadot		reg = <0 0>;
87*c66ec88fSEmmanuel Vadot	};
88*c66ec88fSEmmanuel Vadot
89*c66ec88fSEmmanuel Vadot	soc@f0000000 {
90*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
91*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
92*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc8248-immr", "fsl,pq2-soc", "simple-bus";
93*c66ec88fSEmmanuel Vadot		ranges = <0x00000000 0xf0000000 0x00053000>;
94*c66ec88fSEmmanuel Vadot
95*c66ec88fSEmmanuel Vadot		// Temporary until code stops depending on it.
96*c66ec88fSEmmanuel Vadot		device_type = "soc";
97*c66ec88fSEmmanuel Vadot
98*c66ec88fSEmmanuel Vadot		// Temporary -- will go away once kernel uses ranges for get_immrbase().
99*c66ec88fSEmmanuel Vadot		reg = <0xf0000000 0x00053000>;
100*c66ec88fSEmmanuel Vadot
101*c66ec88fSEmmanuel Vadot		cpm@119c0 {
102*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
103*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
104*c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
105*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc8248-cpm", "fsl,cpm2",
106*c66ec88fSEmmanuel Vadot			             "simple-bus";
107*c66ec88fSEmmanuel Vadot			reg = <0x119c0 0x30>;
108*c66ec88fSEmmanuel Vadot			ranges;
109*c66ec88fSEmmanuel Vadot
110*c66ec88fSEmmanuel Vadot			muram {
111*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
112*c66ec88fSEmmanuel Vadot				#size-cells = <1>;
113*c66ec88fSEmmanuel Vadot				ranges = <0 0 0x10000>;
114*c66ec88fSEmmanuel Vadot
115*c66ec88fSEmmanuel Vadot				data@0 {
116*c66ec88fSEmmanuel Vadot					compatible = "fsl,cpm-muram-data";
117*c66ec88fSEmmanuel Vadot					reg = <0 0x2000 0x9800 0x800>;
118*c66ec88fSEmmanuel Vadot				};
119*c66ec88fSEmmanuel Vadot			};
120*c66ec88fSEmmanuel Vadot
121*c66ec88fSEmmanuel Vadot			brg@119f0 {
122*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc8248-brg",
123*c66ec88fSEmmanuel Vadot				             "fsl,cpm2-brg",
124*c66ec88fSEmmanuel Vadot				             "fsl,cpm-brg";
125*c66ec88fSEmmanuel Vadot				reg = <0x119f0 0x10 0x115f0 0x10>;
126*c66ec88fSEmmanuel Vadot			};
127*c66ec88fSEmmanuel Vadot
128*c66ec88fSEmmanuel Vadot			/* Monitor port/SMC1 */
129*c66ec88fSEmmanuel Vadot			smc1: serial@11a80 {
130*c66ec88fSEmmanuel Vadot				device_type = "serial";
131*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc8248-smc-uart",
132*c66ec88fSEmmanuel Vadot				             "fsl,cpm2-smc-uart";
133*c66ec88fSEmmanuel Vadot				reg = <0x11a80 0x20 0x87fc 2>;
134*c66ec88fSEmmanuel Vadot				interrupts = <4 8>;
135*c66ec88fSEmmanuel Vadot				interrupt-parent = <&PIC>;
136*c66ec88fSEmmanuel Vadot				fsl,cpm-brg = <7>;
137*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0x1d000000>;
138*c66ec88fSEmmanuel Vadot				linux,planetcore-label = "SMC1";
139*c66ec88fSEmmanuel Vadot			};
140*c66ec88fSEmmanuel Vadot
141*c66ec88fSEmmanuel Vadot			/* "Serial" port/SCC1 */
142*c66ec88fSEmmanuel Vadot			scc1: serial@11a00 {
143*c66ec88fSEmmanuel Vadot				device_type = "serial";
144*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc8248-scc-uart",
145*c66ec88fSEmmanuel Vadot				             "fsl,cpm2-scc-uart";
146*c66ec88fSEmmanuel Vadot				reg = <0x11a00 0x20 0x8000 0x100>;
147*c66ec88fSEmmanuel Vadot				interrupts = <40 8>;
148*c66ec88fSEmmanuel Vadot				interrupt-parent = <&PIC>;
149*c66ec88fSEmmanuel Vadot				fsl,cpm-brg = <1>;
150*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0x00800000>;
151*c66ec88fSEmmanuel Vadot				linux,planetcore-label = "SCC1";
152*c66ec88fSEmmanuel Vadot			};
153*c66ec88fSEmmanuel Vadot
154*c66ec88fSEmmanuel Vadot			eth0: ethernet@11300 {
155*c66ec88fSEmmanuel Vadot				device_type = "network";
156*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc8248-fcc-enet",
157*c66ec88fSEmmanuel Vadot				             "fsl,cpm2-fcc-enet";
158*c66ec88fSEmmanuel Vadot				reg = <0x11300 0x20 0x8400 0x100 0x11390 1>;
159*c66ec88fSEmmanuel Vadot				local-mac-address = [ 00 00 00 00 00 00 ];
160*c66ec88fSEmmanuel Vadot				interrupts = <32 8>;
161*c66ec88fSEmmanuel Vadot				interrupt-parent = <&PIC>;
162*c66ec88fSEmmanuel Vadot				phy-handle = <&PHY0>;
163*c66ec88fSEmmanuel Vadot				linux,network-index = <0>;
164*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0x12000300>;
165*c66ec88fSEmmanuel Vadot			};
166*c66ec88fSEmmanuel Vadot
167*c66ec88fSEmmanuel Vadot			eth1: ethernet@11320 {
168*c66ec88fSEmmanuel Vadot				device_type = "network";
169*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc8248-fcc-enet",
170*c66ec88fSEmmanuel Vadot				             "fsl,cpm2-fcc-enet";
171*c66ec88fSEmmanuel Vadot				reg = <0x11320 0x20 0x8500 0x100 0x113b0 1>;
172*c66ec88fSEmmanuel Vadot				local-mac-address = [ 00 00 00 00 00 00 ];
173*c66ec88fSEmmanuel Vadot				interrupts = <33 8>;
174*c66ec88fSEmmanuel Vadot				interrupt-parent = <&PIC>;
175*c66ec88fSEmmanuel Vadot				phy-handle = <&PHY1>;
176*c66ec88fSEmmanuel Vadot				linux,network-index = <1>;
177*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0x16200300>;
178*c66ec88fSEmmanuel Vadot			};
179*c66ec88fSEmmanuel Vadot
180*c66ec88fSEmmanuel Vadot			usb@11b60 {
181*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
182*c66ec88fSEmmanuel Vadot				#size-cells = <0>;
183*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc8248-usb",
184*c66ec88fSEmmanuel Vadot				             "fsl,cpm2-usb";
185*c66ec88fSEmmanuel Vadot				reg = <0x11b60 0x18 0x8b00 0x100>;
186*c66ec88fSEmmanuel Vadot				interrupt-parent = <&PIC>;
187*c66ec88fSEmmanuel Vadot				interrupts = <11 8>;
188*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0x2e600000>;
189*c66ec88fSEmmanuel Vadot			};
190*c66ec88fSEmmanuel Vadot		};
191*c66ec88fSEmmanuel Vadot
192*c66ec88fSEmmanuel Vadot		PIC: interrupt-controller@10c00 {
193*c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
194*c66ec88fSEmmanuel Vadot			interrupt-controller;
195*c66ec88fSEmmanuel Vadot			reg = <0x10c00 0x80>;
196*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc8248-pic", "fsl,pq2-pic";
197*c66ec88fSEmmanuel Vadot		};
198*c66ec88fSEmmanuel Vadot	};
199*c66ec88fSEmmanuel Vadot};
200