xref: /freebsd-src/sys/contrib/device-tree/src/powerpc/mpc866ads.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*c66ec88fSEmmanuel Vadot/*
3*c66ec88fSEmmanuel Vadot * MPC866 ADS Device Tree Source
4*c66ec88fSEmmanuel Vadot *
5*c66ec88fSEmmanuel Vadot * Copyright 2006 MontaVista Software, Inc.
6*c66ec88fSEmmanuel Vadot * Copyright 2008 Freescale Semiconductor, Inc.
7*c66ec88fSEmmanuel Vadot */
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot/dts-v1/;
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot/ {
12*c66ec88fSEmmanuel Vadot	model = "MPC866ADS";
13*c66ec88fSEmmanuel Vadot	compatible = "fsl,mpc866ads";
14*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
15*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot	cpus {
18*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
19*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot		PowerPC,866@0 {
22*c66ec88fSEmmanuel Vadot			device_type = "cpu";
23*c66ec88fSEmmanuel Vadot			reg = <0x0>;
24*c66ec88fSEmmanuel Vadot			d-cache-line-size = <16>;	// 16 bytes
25*c66ec88fSEmmanuel Vadot			i-cache-line-size = <16>;	// 16 bytes
26*c66ec88fSEmmanuel Vadot			d-cache-size = <0x2000>;		// L1, 8K
27*c66ec88fSEmmanuel Vadot			i-cache-size = <0x4000>;		// L1, 16K
28*c66ec88fSEmmanuel Vadot			timebase-frequency = <0>;
29*c66ec88fSEmmanuel Vadot			bus-frequency = <0>;
30*c66ec88fSEmmanuel Vadot			clock-frequency = <0>;
31*c66ec88fSEmmanuel Vadot			interrupts = <15 2>;	// decrementer interrupt
32*c66ec88fSEmmanuel Vadot			interrupt-parent = <&PIC>;
33*c66ec88fSEmmanuel Vadot		};
34*c66ec88fSEmmanuel Vadot	};
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	memory {
37*c66ec88fSEmmanuel Vadot		device_type = "memory";
38*c66ec88fSEmmanuel Vadot		reg = <0x0 0x800000>;
39*c66ec88fSEmmanuel Vadot	};
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadot	localbus@ff000100 {
42*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc866-localbus", "fsl,pq1-localbus";
43*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
44*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
45*c66ec88fSEmmanuel Vadot		reg = <0xff000100 0x40>;
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel Vadot		ranges = <
48*c66ec88fSEmmanuel Vadot			0x1 0x0 0xff080000 0x8000
49*c66ec88fSEmmanuel Vadot			0x5 0x0 0xff0a0000 0x8000
50*c66ec88fSEmmanuel Vadot		>;
51*c66ec88fSEmmanuel Vadot
52*c66ec88fSEmmanuel Vadot		board-control@1,0 {
53*c66ec88fSEmmanuel Vadot			reg = <0x1 0x0 0x20 0x5 0x300 0x4>;
54*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc866ads-bcsr";
55*c66ec88fSEmmanuel Vadot		};
56*c66ec88fSEmmanuel Vadot	};
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadot	soc@ff000000 {
59*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
60*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
61*c66ec88fSEmmanuel Vadot		device_type = "soc";
62*c66ec88fSEmmanuel Vadot		ranges = <0x0 0xff000000 0x100000>;
63*c66ec88fSEmmanuel Vadot		reg = <0xff000000 0x200>;
64*c66ec88fSEmmanuel Vadot		bus-frequency = <0>;
65*c66ec88fSEmmanuel Vadot
66*c66ec88fSEmmanuel Vadot		mdio@e00 {
67*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc866-fec-mdio", "fsl,pq1-fec-mdio";
68*c66ec88fSEmmanuel Vadot			reg = <0xe00 0x188>;
69*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
70*c66ec88fSEmmanuel Vadot			#size-cells = <0>;
71*c66ec88fSEmmanuel Vadot			PHY: ethernet-phy@f {
72*c66ec88fSEmmanuel Vadot				reg = <0xf>;
73*c66ec88fSEmmanuel Vadot			};
74*c66ec88fSEmmanuel Vadot		};
75*c66ec88fSEmmanuel Vadot
76*c66ec88fSEmmanuel Vadot		ethernet@e00 {
77*c66ec88fSEmmanuel Vadot			device_type = "network";
78*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc866-fec-enet",
79*c66ec88fSEmmanuel Vadot			             "fsl,pq1-fec-enet";
80*c66ec88fSEmmanuel Vadot			reg = <0xe00 0x188>;
81*c66ec88fSEmmanuel Vadot			local-mac-address = [ 00 00 00 00 00 00 ];
82*c66ec88fSEmmanuel Vadot			interrupts = <3 1>;
83*c66ec88fSEmmanuel Vadot			interrupt-parent = <&PIC>;
84*c66ec88fSEmmanuel Vadot			phy-handle = <&PHY>;
85*c66ec88fSEmmanuel Vadot			linux,network-index = <0>;
86*c66ec88fSEmmanuel Vadot		};
87*c66ec88fSEmmanuel Vadot
88*c66ec88fSEmmanuel Vadot		PIC: pic@0 {
89*c66ec88fSEmmanuel Vadot			interrupt-controller;
90*c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
91*c66ec88fSEmmanuel Vadot			reg = <0x0 0x24>;
92*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc866-pic", "fsl,pq1-pic";
93*c66ec88fSEmmanuel Vadot		};
94*c66ec88fSEmmanuel Vadot
95*c66ec88fSEmmanuel Vadot		cpm@9c0 {
96*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
97*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
98*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc866-cpm", "fsl,cpm1";
99*c66ec88fSEmmanuel Vadot			ranges;
100*c66ec88fSEmmanuel Vadot			reg = <0x9c0 0x40>;
101*c66ec88fSEmmanuel Vadot			brg-frequency = <0>;
102*c66ec88fSEmmanuel Vadot			interrupts = <0 2>;	// cpm error interrupt
103*c66ec88fSEmmanuel Vadot			interrupt-parent = <&CPM_PIC>;
104*c66ec88fSEmmanuel Vadot
105*c66ec88fSEmmanuel Vadot			muram@2000 {
106*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
107*c66ec88fSEmmanuel Vadot				#size-cells = <1>;
108*c66ec88fSEmmanuel Vadot				ranges = <0x0 0x2000 0x2000>;
109*c66ec88fSEmmanuel Vadot
110*c66ec88fSEmmanuel Vadot				data@0 {
111*c66ec88fSEmmanuel Vadot					compatible = "fsl,cpm-muram-data";
112*c66ec88fSEmmanuel Vadot					reg = <0x0 0x1c00>;
113*c66ec88fSEmmanuel Vadot				};
114*c66ec88fSEmmanuel Vadot			};
115*c66ec88fSEmmanuel Vadot
116*c66ec88fSEmmanuel Vadot			brg@9f0 {
117*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc866-brg",
118*c66ec88fSEmmanuel Vadot					     "fsl,cpm1-brg",
119*c66ec88fSEmmanuel Vadot					     "fsl,cpm-brg";
120*c66ec88fSEmmanuel Vadot				reg = <0x9f0 0x10>;
121*c66ec88fSEmmanuel Vadot				clock-frequency = <0>;
122*c66ec88fSEmmanuel Vadot			};
123*c66ec88fSEmmanuel Vadot
124*c66ec88fSEmmanuel Vadot			CPM_PIC: pic@930 {
125*c66ec88fSEmmanuel Vadot				interrupt-controller;
126*c66ec88fSEmmanuel Vadot				#address-cells = <0>;
127*c66ec88fSEmmanuel Vadot				#interrupt-cells = <1>;
128*c66ec88fSEmmanuel Vadot				interrupts = <5 2 0 2>;
129*c66ec88fSEmmanuel Vadot				interrupt-parent = <&PIC>;
130*c66ec88fSEmmanuel Vadot				reg = <0x930 0x20>;
131*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc866-cpm-pic",
132*c66ec88fSEmmanuel Vadot				             "fsl,cpm1-pic";
133*c66ec88fSEmmanuel Vadot			};
134*c66ec88fSEmmanuel Vadot
135*c66ec88fSEmmanuel Vadot
136*c66ec88fSEmmanuel Vadot			serial@a80 {
137*c66ec88fSEmmanuel Vadot				device_type = "serial";
138*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc866-smc-uart",
139*c66ec88fSEmmanuel Vadot				             "fsl,cpm1-smc-uart";
140*c66ec88fSEmmanuel Vadot				reg = <0xa80 0x10 0x3e80 0x40>;
141*c66ec88fSEmmanuel Vadot				interrupts = <4>;
142*c66ec88fSEmmanuel Vadot				interrupt-parent = <&CPM_PIC>;
143*c66ec88fSEmmanuel Vadot				fsl,cpm-brg = <1>;
144*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0x90>;
145*c66ec88fSEmmanuel Vadot			};
146*c66ec88fSEmmanuel Vadot
147*c66ec88fSEmmanuel Vadot			serial@a90 {
148*c66ec88fSEmmanuel Vadot				device_type = "serial";
149*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc866-smc-uart",
150*c66ec88fSEmmanuel Vadot				             "fsl,cpm1-smc-uart";
151*c66ec88fSEmmanuel Vadot				reg = <0xa90 0x10 0x3f80 0x40>;
152*c66ec88fSEmmanuel Vadot				interrupts = <3>;
153*c66ec88fSEmmanuel Vadot				interrupt-parent = <&CPM_PIC>;
154*c66ec88fSEmmanuel Vadot				fsl,cpm-brg = <2>;
155*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0xd0>;
156*c66ec88fSEmmanuel Vadot			};
157*c66ec88fSEmmanuel Vadot
158*c66ec88fSEmmanuel Vadot			ethernet@a00 {
159*c66ec88fSEmmanuel Vadot				device_type = "network";
160*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc866-scc-enet",
161*c66ec88fSEmmanuel Vadot				             "fsl,cpm1-scc-enet";
162*c66ec88fSEmmanuel Vadot				reg = <0xa00 0x18 0x3c00 0x100>;
163*c66ec88fSEmmanuel Vadot				local-mac-address = [ 00 00 00 00 00 00 ];
164*c66ec88fSEmmanuel Vadot				interrupts = <30>;
165*c66ec88fSEmmanuel Vadot				interrupt-parent = <&CPM_PIC>;
166*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0000>;
167*c66ec88fSEmmanuel Vadot				linux,network-index = <1>;
168*c66ec88fSEmmanuel Vadot			};
169*c66ec88fSEmmanuel Vadot
170*c66ec88fSEmmanuel Vadot			i2c@860 {
171*c66ec88fSEmmanuel Vadot				compatible = "fsl,mpc866-i2c",
172*c66ec88fSEmmanuel Vadot					     "fsl,cpm1-i2c";
173*c66ec88fSEmmanuel Vadot				reg = <0x860 0x20 0x3c80 0x30>;
174*c66ec88fSEmmanuel Vadot				interrupts = <16>;
175*c66ec88fSEmmanuel Vadot				interrupt-parent = <&CPM_PIC>;
176*c66ec88fSEmmanuel Vadot				fsl,cpm-command = <0x10>;
177*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
178*c66ec88fSEmmanuel Vadot				#size-cells = <0>;
179*c66ec88fSEmmanuel Vadot			};
180*c66ec88fSEmmanuel Vadot		};
181*c66ec88fSEmmanuel Vadot	};
182*c66ec88fSEmmanuel Vadot
183*c66ec88fSEmmanuel Vadot	chosen {
184*c66ec88fSEmmanuel Vadot		stdout-path = "/soc/cpm/serial@a80";
185*c66ec88fSEmmanuel Vadot	};
186*c66ec88fSEmmanuel Vadot};
187