xref: /freebsd/sys/contrib/device-tree/src/powerpc/charon.dts (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * charon board Device Tree Source
4c66ec88fSEmmanuel Vadot *
5c66ec88fSEmmanuel Vadot * Copyright (C) 2007 Semihalf
6c66ec88fSEmmanuel Vadot * Marian Balakowicz <m8@semihalf.com>
7c66ec88fSEmmanuel Vadot *
8c66ec88fSEmmanuel Vadot * Copyright (C) 2010 DENX Software Engineering GmbH
9c66ec88fSEmmanuel Vadot * Heiko Schocher <hs@denx.de>
10c66ec88fSEmmanuel Vadot */
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadot/dts-v1/;
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadot/ {
15c66ec88fSEmmanuel Vadot	model = "anon,charon";
16c66ec88fSEmmanuel Vadot	compatible = "anon,charon";
17c66ec88fSEmmanuel Vadot	#address-cells = <1>;
18c66ec88fSEmmanuel Vadot	#size-cells = <1>;
19c66ec88fSEmmanuel Vadot	interrupt-parent = <&mpc5200_pic>;
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot	cpus {
22c66ec88fSEmmanuel Vadot		#address-cells = <1>;
23c66ec88fSEmmanuel Vadot		#size-cells = <0>;
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot		PowerPC,5200@0 {
26c66ec88fSEmmanuel Vadot			device_type = "cpu";
27c66ec88fSEmmanuel Vadot			reg = <0>;
28c66ec88fSEmmanuel Vadot			d-cache-line-size = <32>;
29c66ec88fSEmmanuel Vadot			i-cache-line-size = <32>;
30c66ec88fSEmmanuel Vadot			d-cache-size = <0x4000>;	// L1, 16K
31c66ec88fSEmmanuel Vadot			i-cache-size = <0x4000>;	// L1, 16K
32c66ec88fSEmmanuel Vadot			timebase-frequency = <0>;	// from bootloader
33c66ec88fSEmmanuel Vadot			bus-frequency = <0>;		// from bootloader
34c66ec88fSEmmanuel Vadot			clock-frequency = <0>;		// from bootloader
35c66ec88fSEmmanuel Vadot		};
36c66ec88fSEmmanuel Vadot	};
37c66ec88fSEmmanuel Vadot
38*8cc087a1SEmmanuel Vadot	memory@0 {
39c66ec88fSEmmanuel Vadot		device_type = "memory";
40c66ec88fSEmmanuel Vadot		reg = <0x00000000 0x08000000>;	// 128MB
41c66ec88fSEmmanuel Vadot	};
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadot	soc5200@f0000000 {
44c66ec88fSEmmanuel Vadot		#address-cells = <1>;
45c66ec88fSEmmanuel Vadot		#size-cells = <1>;
46c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5200-immr";
47c66ec88fSEmmanuel Vadot		ranges = <0 0xf0000000 0x0000c000>;
48c66ec88fSEmmanuel Vadot		reg = <0xf0000000 0x00000100>;
49c66ec88fSEmmanuel Vadot		bus-frequency = <0>;		// from bootloader
50c66ec88fSEmmanuel Vadot		system-frequency = <0>;		// from bootloader
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadot		cdm@200 {
53c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-cdm";
54c66ec88fSEmmanuel Vadot			reg = <0x200 0x38>;
55c66ec88fSEmmanuel Vadot		};
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot		mpc5200_pic: interrupt-controller@500 {
58c66ec88fSEmmanuel Vadot			// 5200 interrupts are encoded into two levels;
59c66ec88fSEmmanuel Vadot			interrupt-controller;
60c66ec88fSEmmanuel Vadot			#interrupt-cells = <3>;
61c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-pic";
62c66ec88fSEmmanuel Vadot			reg = <0x500 0x80>;
63c66ec88fSEmmanuel Vadot		};
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot		timer@600 {	// General Purpose Timer
66c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-gpt";
67c66ec88fSEmmanuel Vadot			reg = <0x600 0x10>;
68c66ec88fSEmmanuel Vadot			interrupts = <1 9 0>;
69c66ec88fSEmmanuel Vadot			fsl,has-wdt;
70c66ec88fSEmmanuel Vadot		};
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel Vadot		can@900 {
73c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-mscan";
74c66ec88fSEmmanuel Vadot			interrupts = <2 17 0>;
75c66ec88fSEmmanuel Vadot			reg = <0x900 0x80>;
76c66ec88fSEmmanuel Vadot		};
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadot		can@980 {
79c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-mscan";
80c66ec88fSEmmanuel Vadot			interrupts = <2 18 0>;
81c66ec88fSEmmanuel Vadot			reg = <0x980 0x80>;
82c66ec88fSEmmanuel Vadot		};
83c66ec88fSEmmanuel Vadot
84c66ec88fSEmmanuel Vadot		gpio_simple: gpio@b00 {
85c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-gpio";
86c66ec88fSEmmanuel Vadot			reg = <0xb00 0x40>;
87c66ec88fSEmmanuel Vadot			interrupts = <1 7 0>;
88c66ec88fSEmmanuel Vadot			gpio-controller;
89c66ec88fSEmmanuel Vadot			#gpio-cells = <2>;
90c66ec88fSEmmanuel Vadot		};
91c66ec88fSEmmanuel Vadot
92c66ec88fSEmmanuel Vadot		usb@1000 {
93c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-ohci","ohci-be";
94c66ec88fSEmmanuel Vadot			reg = <0x1000 0xff>;
95c66ec88fSEmmanuel Vadot			interrupts = <2 6 0>;
96c66ec88fSEmmanuel Vadot		};
97c66ec88fSEmmanuel Vadot
98c66ec88fSEmmanuel Vadot		dma-controller@1200 {
99c66ec88fSEmmanuel Vadot			device_type = "dma-controller";
100c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-bestcomm";
101c66ec88fSEmmanuel Vadot			reg = <0x1200 0x80>;
102c66ec88fSEmmanuel Vadot			interrupts = <3 0 0  3 1 0  3 2 0  3 3 0
103c66ec88fSEmmanuel Vadot			              3 4 0  3 5 0  3 6 0  3 7 0
104c66ec88fSEmmanuel Vadot			              3 8 0  3 9 0  3 10 0  3 11 0
105c66ec88fSEmmanuel Vadot			              3 12 0  3 13 0  3 14 0  3 15 0>;
106c66ec88fSEmmanuel Vadot		};
107c66ec88fSEmmanuel Vadot
108c66ec88fSEmmanuel Vadot		xlb@1f00 {
109c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-xlb";
110c66ec88fSEmmanuel Vadot			reg = <0x1f00 0x100>;
111c66ec88fSEmmanuel Vadot		};
112c66ec88fSEmmanuel Vadot
113c66ec88fSEmmanuel Vadot		serial@2000 {		// PSC1
114c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-psc-uart";
115c66ec88fSEmmanuel Vadot			reg = <0x2000 0x100>;
116c66ec88fSEmmanuel Vadot			interrupts = <2 1 0>;
117c66ec88fSEmmanuel Vadot		};
118c66ec88fSEmmanuel Vadot
119c66ec88fSEmmanuel Vadot		serial@2400 {		// PSC3
120c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-psc-uart";
121c66ec88fSEmmanuel Vadot			reg = <0x2400 0x100>;
122c66ec88fSEmmanuel Vadot			interrupts = <2 3 0>;
123c66ec88fSEmmanuel Vadot		};
124c66ec88fSEmmanuel Vadot
125c66ec88fSEmmanuel Vadot		ethernet@3000 {
126c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-fec";
127c66ec88fSEmmanuel Vadot			reg = <0x3000 0x400>;
128c66ec88fSEmmanuel Vadot			local-mac-address = [ 00 00 00 00 00 00 ];
129c66ec88fSEmmanuel Vadot			interrupts = <2 5 0>;
130c66ec88fSEmmanuel Vadot			fixed-link = <1 1 100 0 0>;
131c66ec88fSEmmanuel Vadot		};
132c66ec88fSEmmanuel Vadot
133c66ec88fSEmmanuel Vadot		mdio@3000 {
134c66ec88fSEmmanuel Vadot			#address-cells = <1>;
135c66ec88fSEmmanuel Vadot			#size-cells = <0>;
136c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-mdio";
137c66ec88fSEmmanuel Vadot			reg = <0x3000 0x400>;       // fec range, since we need to setup fec interrupts
138c66ec88fSEmmanuel Vadot			interrupts = <2 5 0>;   // these are for "mii command finished", not link changes & co.
139c66ec88fSEmmanuel Vadot		};
140c66ec88fSEmmanuel Vadot
141c66ec88fSEmmanuel Vadot		ata@3a00 {
142c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-ata";
143c66ec88fSEmmanuel Vadot			reg = <0x3a00 0x100>;
144c66ec88fSEmmanuel Vadot			interrupts = <2 7 0>;
145c66ec88fSEmmanuel Vadot		};
146c66ec88fSEmmanuel Vadot
147c66ec88fSEmmanuel Vadot		i2c@3d00 {
148c66ec88fSEmmanuel Vadot			#address-cells = <1>;
149c66ec88fSEmmanuel Vadot			#size-cells = <0>;
150c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-i2c","fsl-i2c";
151c66ec88fSEmmanuel Vadot			reg = <0x3d00 0x40>;
152c66ec88fSEmmanuel Vadot			interrupts = <2 15 0>;
153c66ec88fSEmmanuel Vadot		};
154c66ec88fSEmmanuel Vadot
155c66ec88fSEmmanuel Vadot
156c66ec88fSEmmanuel Vadot		i2c@3d40 {
157c66ec88fSEmmanuel Vadot			#address-cells = <1>;
158c66ec88fSEmmanuel Vadot			#size-cells = <0>;
159c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-i2c","fsl-i2c";
160c66ec88fSEmmanuel Vadot			reg = <0x3d40 0x40>;
161c66ec88fSEmmanuel Vadot			interrupts = <2 16 0>;
162c66ec88fSEmmanuel Vadot
163c66ec88fSEmmanuel Vadot			dtt@28 {
164c66ec88fSEmmanuel Vadot				compatible = "national,lm80";
165c66ec88fSEmmanuel Vadot				reg = <0x28>;
166c66ec88fSEmmanuel Vadot			};
167c66ec88fSEmmanuel Vadot
168c66ec88fSEmmanuel Vadot			rtc@68 {
169c66ec88fSEmmanuel Vadot				compatible = "dallas,ds1374";
170c66ec88fSEmmanuel Vadot				reg = <0x68>;
171c66ec88fSEmmanuel Vadot			};
172c66ec88fSEmmanuel Vadot		};
173c66ec88fSEmmanuel Vadot
174c66ec88fSEmmanuel Vadot		sram@8000 {
175c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200-sram";
176c66ec88fSEmmanuel Vadot			reg = <0x8000 0x4000>;
177c66ec88fSEmmanuel Vadot		};
178c66ec88fSEmmanuel Vadot	};
179c66ec88fSEmmanuel Vadot
180c66ec88fSEmmanuel Vadot	localbus {
181c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5200-lpb","simple-bus";
182c66ec88fSEmmanuel Vadot		#address-cells = <2>;
183c66ec88fSEmmanuel Vadot		#size-cells = <1>;
184c66ec88fSEmmanuel Vadot		ranges = <	0 0 0xfc000000 0x02000000
185c66ec88fSEmmanuel Vadot				1 0 0xe0000000 0x04000000 // CS1 range, SM501
186c66ec88fSEmmanuel Vadot				3 0 0xe8000000 0x00080000>;
187c66ec88fSEmmanuel Vadot
188c66ec88fSEmmanuel Vadot		flash@0,0 {
189c66ec88fSEmmanuel Vadot			compatible = "cfi-flash";
190c66ec88fSEmmanuel Vadot			reg = <0 0 0x02000000>;
191c66ec88fSEmmanuel Vadot			bank-width = <4>;
192c66ec88fSEmmanuel Vadot			device-width = <2>;
193c66ec88fSEmmanuel Vadot			#size-cells = <1>;
194c66ec88fSEmmanuel Vadot			#address-cells = <1>;
195c66ec88fSEmmanuel Vadot		};
196c66ec88fSEmmanuel Vadot
197c66ec88fSEmmanuel Vadot		display@1,0 {
198c66ec88fSEmmanuel Vadot			compatible = "smi,sm501";
199c66ec88fSEmmanuel Vadot			reg = <1 0x00000000 0x00800000
200c66ec88fSEmmanuel Vadot			       1 0x03e00000 0x00200000>;
201c66ec88fSEmmanuel Vadot			mode = "640x480-32@60";
202c66ec88fSEmmanuel Vadot			interrupts = <1 1 3>;
203c66ec88fSEmmanuel Vadot			little-endian;
204c66ec88fSEmmanuel Vadot		};
205c66ec88fSEmmanuel Vadot
206c66ec88fSEmmanuel Vadot		mram0@3,0 {
207c66ec88fSEmmanuel Vadot			compatible = "mtd-ram";
208c66ec88fSEmmanuel Vadot			reg = <3 0x00000 0x80000>;
209c66ec88fSEmmanuel Vadot			bank-width = <1>;
210c66ec88fSEmmanuel Vadot		};
211c66ec88fSEmmanuel Vadot	};
212c66ec88fSEmmanuel Vadot
213c66ec88fSEmmanuel Vadot	pci@f0000d00 {
214c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
215c66ec88fSEmmanuel Vadot		#size-cells = <2>;
216c66ec88fSEmmanuel Vadot		#address-cells = <3>;
217c66ec88fSEmmanuel Vadot		device_type = "pci";
218c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5200-pci";
219c66ec88fSEmmanuel Vadot		reg = <0xf0000d00 0x100>;
220c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0xf800 0 0 7>;
221c66ec88fSEmmanuel Vadot		interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3
222c66ec88fSEmmanuel Vadot				 0xc000 0 0 2 &mpc5200_pic 0 0 3
223c66ec88fSEmmanuel Vadot				 0xc000 0 0 3 &mpc5200_pic 0 0 3
224c66ec88fSEmmanuel Vadot				 0xc000 0 0 4 &mpc5200_pic 0 0 3>;
225c66ec88fSEmmanuel Vadot		clock-frequency = <0>; // From boot loader
226c66ec88fSEmmanuel Vadot		interrupts = <2 8 0 2 9 0 2 10 0>;
227c66ec88fSEmmanuel Vadot		bus-range = <0 0>;
228*8cc087a1SEmmanuel Vadot		ranges = <0x42000000 0 0x80000000 0x80000000 0 0x10000000>,
229*8cc087a1SEmmanuel Vadot			 <0x02000000 0 0x90000000 0x90000000 0 0x10000000>,
230*8cc087a1SEmmanuel Vadot			 <0x01000000 0 0x00000000 0xa0000000 0 0x01000000>;
231c66ec88fSEmmanuel Vadot	};
232c66ec88fSEmmanuel Vadot};
233