xref: /freebsd/sys/contrib/device-tree/src/powerpc/pcm032.dts (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * phyCORE-MPC5200B-IO (pcm032) board Device Tree Source
4c66ec88fSEmmanuel Vadot *
5c66ec88fSEmmanuel Vadot * Copyright (C) 2006-2009 Pengutronix
6c66ec88fSEmmanuel Vadot * Sascha Hauer, Juergen Beisert, Wolfram Sang <kernel@pengutronix.de>
7c66ec88fSEmmanuel Vadot */
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadot/include/ "mpc5200b.dtsi"
10c66ec88fSEmmanuel Vadot
11c66ec88fSEmmanuel Vadot&gpt0 { fsl,has-wdt; };
12c66ec88fSEmmanuel Vadot&gpt2 { gpio-controller; };
13c66ec88fSEmmanuel Vadot&gpt3 { gpio-controller; };
14c66ec88fSEmmanuel Vadot&gpt4 { gpio-controller; };
15c66ec88fSEmmanuel Vadot&gpt5 { gpio-controller; };
16c66ec88fSEmmanuel Vadot&gpt6 { gpio-controller; };
17c66ec88fSEmmanuel Vadot&gpt7 { gpio-controller; };
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadot/ {
20c66ec88fSEmmanuel Vadot	model = "phytec,pcm032";
21c66ec88fSEmmanuel Vadot	compatible = "phytec,pcm032";
22c66ec88fSEmmanuel Vadot
23*8cc087a1SEmmanuel Vadot	memory@0 {
24c66ec88fSEmmanuel Vadot		reg = <0x00000000 0x08000000>;	// 128MB
25c66ec88fSEmmanuel Vadot	};
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot	soc5200@f0000000 {
28c66ec88fSEmmanuel Vadot		psc@2000 {	/* PSC1 is ac97 */
29c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200b-psc-ac97","fsl,mpc5200-psc-ac97";
30c66ec88fSEmmanuel Vadot			cell-index = <0>;
31c66ec88fSEmmanuel Vadot		};
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot		/* PSC2 port is used by CAN1/2 */
34c66ec88fSEmmanuel Vadot		psc@2200 {
35c66ec88fSEmmanuel Vadot			status = "disabled";
36c66ec88fSEmmanuel Vadot		};
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot		psc@2400 { /* PSC3 in UART mode */
39c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
40c66ec88fSEmmanuel Vadot		};
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot		/* PSC4 is ??? */
43c66ec88fSEmmanuel Vadot		psc@2600 {
44c66ec88fSEmmanuel Vadot			status = "disabled";
45c66ec88fSEmmanuel Vadot		};
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot		/* PSC5 is ??? */
48c66ec88fSEmmanuel Vadot		psc@2800 {
49c66ec88fSEmmanuel Vadot			status = "disabled";
50c66ec88fSEmmanuel Vadot		};
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadot		psc@2c00 { /* PSC6 in UART mode */
53c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
54c66ec88fSEmmanuel Vadot		};
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot		ethernet@3000 {
57c66ec88fSEmmanuel Vadot			phy-handle = <&phy0>;
58c66ec88fSEmmanuel Vadot		};
59c66ec88fSEmmanuel Vadot
60c66ec88fSEmmanuel Vadot		mdio@3000 {
61c66ec88fSEmmanuel Vadot			phy0: ethernet-phy@0 {
62c66ec88fSEmmanuel Vadot				reg = <0>;
63c66ec88fSEmmanuel Vadot			};
64c66ec88fSEmmanuel Vadot		};
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadot		i2c@3d40 {
67c66ec88fSEmmanuel Vadot			rtc@51 {
68c66ec88fSEmmanuel Vadot				compatible = "nxp,pcf8563";
69c66ec88fSEmmanuel Vadot				reg = <0x51>;
70c66ec88fSEmmanuel Vadot			};
71c66ec88fSEmmanuel Vadot			eeprom@52 {
72c66ec88fSEmmanuel Vadot				compatible = "catalyst,24c32", "atmel,24c32";
73c66ec88fSEmmanuel Vadot				reg = <0x52>;
74c66ec88fSEmmanuel Vadot				pagesize = <32>;
75c66ec88fSEmmanuel Vadot			};
76c66ec88fSEmmanuel Vadot		};
77c66ec88fSEmmanuel Vadot	};
78c66ec88fSEmmanuel Vadot
79c66ec88fSEmmanuel Vadot	pci@f0000d00 {
80c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0xf800 0 0 7>;
81c66ec88fSEmmanuel Vadot		interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
82c66ec88fSEmmanuel Vadot				 0xc000 0 0 2 &mpc5200_pic 1 1 3
83c66ec88fSEmmanuel Vadot				 0xc000 0 0 3 &mpc5200_pic 1 2 3
84c66ec88fSEmmanuel Vadot				 0xc000 0 0 4 &mpc5200_pic 1 3 3
85c66ec88fSEmmanuel Vadot
86c66ec88fSEmmanuel Vadot				 0xc800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
87c66ec88fSEmmanuel Vadot				 0xc800 0 0 2 &mpc5200_pic 1 2 3
88c66ec88fSEmmanuel Vadot				 0xc800 0 0 3 &mpc5200_pic 1 3 3
89c66ec88fSEmmanuel Vadot				 0xc800 0 0 4 &mpc5200_pic 0 0 3>;
90*8cc087a1SEmmanuel Vadot		ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000>,
91*8cc087a1SEmmanuel Vadot			 <0x02000000 0 0xa0000000 0xa0000000 0 0x10000000>,
92*8cc087a1SEmmanuel Vadot			 <0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
93c66ec88fSEmmanuel Vadot	};
94c66ec88fSEmmanuel Vadot
95c66ec88fSEmmanuel Vadot	localbus {
96c66ec88fSEmmanuel Vadot		ranges = <0 0 0xfe000000 0x02000000
97c66ec88fSEmmanuel Vadot			  1 0 0xfc000000 0x02000000
98c66ec88fSEmmanuel Vadot			  2 0 0xfbe00000 0x00200000
99c66ec88fSEmmanuel Vadot			  3 0 0xf9e00000 0x02000000
100c66ec88fSEmmanuel Vadot			  4 0 0xf7e00000 0x02000000
101c66ec88fSEmmanuel Vadot			  5 0 0xe6000000 0x02000000
102c66ec88fSEmmanuel Vadot			  6 0 0xe8000000 0x02000000
103c66ec88fSEmmanuel Vadot			  7 0 0xea000000 0x02000000>;
104c66ec88fSEmmanuel Vadot
105c66ec88fSEmmanuel Vadot		flash@0,0 {
106c66ec88fSEmmanuel Vadot			compatible = "cfi-flash";
107c66ec88fSEmmanuel Vadot			reg = <0 0 0x02000000>;
108c66ec88fSEmmanuel Vadot			bank-width = <4>;
109c66ec88fSEmmanuel Vadot			#size-cells = <1>;
110c66ec88fSEmmanuel Vadot			#address-cells = <1>;
111c66ec88fSEmmanuel Vadot
112c66ec88fSEmmanuel Vadot			partition@0 {
113c66ec88fSEmmanuel Vadot				label = "ubootl";
114c66ec88fSEmmanuel Vadot				reg = <0x00000000 0x00040000>;
115c66ec88fSEmmanuel Vadot			};
116c66ec88fSEmmanuel Vadot			partition@40000 {
117c66ec88fSEmmanuel Vadot				label = "kernel";
118c66ec88fSEmmanuel Vadot				reg = <0x00040000 0x001c0000>;
119c66ec88fSEmmanuel Vadot			};
120c66ec88fSEmmanuel Vadot			partition@200000 {
121c66ec88fSEmmanuel Vadot				label = "jffs2";
122c66ec88fSEmmanuel Vadot				reg = <0x00200000 0x01d00000>;
123c66ec88fSEmmanuel Vadot			};
124c66ec88fSEmmanuel Vadot			partition@1f00000 {
125c66ec88fSEmmanuel Vadot				label = "uboot";
126c66ec88fSEmmanuel Vadot				reg = <0x01f00000 0x00040000>;
127c66ec88fSEmmanuel Vadot			};
128c66ec88fSEmmanuel Vadot			partition@1f40000 {
129c66ec88fSEmmanuel Vadot				label = "env";
130c66ec88fSEmmanuel Vadot				reg = <0x01f40000 0x00040000>;
131c66ec88fSEmmanuel Vadot			};
132c66ec88fSEmmanuel Vadot			partition@1f80000 {
133c66ec88fSEmmanuel Vadot				label = "oftree";
134c66ec88fSEmmanuel Vadot				reg = <0x01f80000 0x00040000>;
135c66ec88fSEmmanuel Vadot			};
136c66ec88fSEmmanuel Vadot			partition@1fc0000 {
137c66ec88fSEmmanuel Vadot				label = "space";
138c66ec88fSEmmanuel Vadot				reg = <0x01fc0000 0x00040000>;
139c66ec88fSEmmanuel Vadot			};
140c66ec88fSEmmanuel Vadot		};
141c66ec88fSEmmanuel Vadot
142c66ec88fSEmmanuel Vadot		sram@2,0 {
143c66ec88fSEmmanuel Vadot			compatible = "mtd-ram";
144c66ec88fSEmmanuel Vadot			reg = <2 0 0x00200000>;
145c66ec88fSEmmanuel Vadot			bank-width = <2>;
146c66ec88fSEmmanuel Vadot		};
147c66ec88fSEmmanuel Vadot
148c66ec88fSEmmanuel Vadot		/*
149c66ec88fSEmmanuel Vadot		 * example snippets for FPGA
150c66ec88fSEmmanuel Vadot		 *
151c66ec88fSEmmanuel Vadot		 * fpga@3,0 {
152c66ec88fSEmmanuel Vadot		 *	 compatible = "fpga_driver";
153c66ec88fSEmmanuel Vadot		 *	 reg = <3 0 0x02000000>;
154c66ec88fSEmmanuel Vadot		 *	 bank-width = <4>;
155c66ec88fSEmmanuel Vadot		 * };
156c66ec88fSEmmanuel Vadot		 *
157c66ec88fSEmmanuel Vadot		 * fpga@4,0 {
158c66ec88fSEmmanuel Vadot		 *	 compatible = "fpga_driver";
159c66ec88fSEmmanuel Vadot		 *	 reg = <4 0 0x02000000>;
160c66ec88fSEmmanuel Vadot		 *	 bank-width = <4>;
161c66ec88fSEmmanuel Vadot		 * };
162c66ec88fSEmmanuel Vadot		 */
163c66ec88fSEmmanuel Vadot
164c66ec88fSEmmanuel Vadot		/*
165c66ec88fSEmmanuel Vadot		 * example snippets for free chipselects
166c66ec88fSEmmanuel Vadot		 *
167c66ec88fSEmmanuel Vadot		 * device@5,0 {
168c66ec88fSEmmanuel Vadot		 *	 compatible = "custom_driver";
169c66ec88fSEmmanuel Vadot		 *	 reg = <5 0 0x02000000>;
170c66ec88fSEmmanuel Vadot		 * };
171c66ec88fSEmmanuel Vadot		 *
172c66ec88fSEmmanuel Vadot		 * device@6,0 {
173c66ec88fSEmmanuel Vadot		 *	 compatible = "custom_driver";
174c66ec88fSEmmanuel Vadot		 *	 reg = <6 0 0x02000000>;
175c66ec88fSEmmanuel Vadot		 * };
176c66ec88fSEmmanuel Vadot		 *
177c66ec88fSEmmanuel Vadot		 * device@7,0 {
178c66ec88fSEmmanuel Vadot		 *	 compatible = "custom_driver";
179c66ec88fSEmmanuel Vadot		 *	 reg = <7 0 0x02000000>;
180c66ec88fSEmmanuel Vadot		 * };
181c66ec88fSEmmanuel Vadot		 */
182c66ec88fSEmmanuel Vadot	};
183c66ec88fSEmmanuel Vadot};
184