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