xref: /freebsd/sys/contrib/device-tree/src/powerpc/fsl/c293pcie.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1c66ec88fSEmmanuel Vadot/*
2c66ec88fSEmmanuel Vadot * C293 PCIE Device Tree Source
3c66ec88fSEmmanuel Vadot *
4c66ec88fSEmmanuel Vadot * Copyright 2013 Freescale Semiconductor Inc.
5c66ec88fSEmmanuel Vadot *
6c66ec88fSEmmanuel Vadot * Redistribution and use in source and binary forms, with or without
7c66ec88fSEmmanuel Vadot * modification, are permitted provided that the following conditions are met:
8c66ec88fSEmmanuel Vadot *     * Redistributions of source code must retain the above copyright
9c66ec88fSEmmanuel Vadot *       notice, this list of conditions and the following disclaimer.
10c66ec88fSEmmanuel Vadot *     * Redistributions in binary form must reproduce the above copyright
11c66ec88fSEmmanuel Vadot *       notice, this list of conditions and the following disclaimer in the
12c66ec88fSEmmanuel Vadot *       documentation and/or other materials provided with the distribution.
13c66ec88fSEmmanuel Vadot *     * Neither the name of Freescale Semiconductor nor the
14c66ec88fSEmmanuel Vadot *       names of its contributors may be used to endorse or promote products
15c66ec88fSEmmanuel Vadot *       derived from this software without specific prior written permission.
16c66ec88fSEmmanuel Vadot *
17c66ec88fSEmmanuel Vadot *
18c66ec88fSEmmanuel Vadot * ALTERNATIVELY, this software may be distributed under the terms of the
19c66ec88fSEmmanuel Vadot * GNU General Public License ("GPL") as published by the Free Software
20c66ec88fSEmmanuel Vadot * Foundation, either version 2 of that License or (at your option) any
21c66ec88fSEmmanuel Vadot * later version.
22c66ec88fSEmmanuel Vadot *
23c66ec88fSEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY
24c66ec88fSEmmanuel Vadot * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25c66ec88fSEmmanuel Vadot * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26c66ec88fSEmmanuel Vadot * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27c66ec88fSEmmanuel Vadot * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28c66ec88fSEmmanuel Vadot * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29c66ec88fSEmmanuel Vadot * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30c66ec88fSEmmanuel Vadot * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31c66ec88fSEmmanuel Vadot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32c66ec88fSEmmanuel Vadot * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33c66ec88fSEmmanuel Vadot */
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot/include/ "c293si-pre.dtsi"
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot/ {
38c66ec88fSEmmanuel Vadot	model = "fsl,C293PCIE";
39c66ec88fSEmmanuel Vadot	compatible = "fsl,C293PCIE";
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot	memory {
42c66ec88fSEmmanuel Vadot		device_type = "memory";
43c66ec88fSEmmanuel Vadot	};
44c66ec88fSEmmanuel Vadot
45*7d0873ebSEmmanuel Vadot	ifc: memory-controller@fffe1e000 {
46c66ec88fSEmmanuel Vadot		reg = <0xf 0xffe1e000 0 0x2000>;
47c66ec88fSEmmanuel Vadot		ranges = <0x0 0x0 0xf 0xec000000 0x04000000
48c66ec88fSEmmanuel Vadot			  0x1 0x0 0xf 0xff800000 0x00010000
49c66ec88fSEmmanuel Vadot			  0x2 0x0 0xf 0xffdf0000 0x00010000>;
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot	};
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot	soc: soc@fffe00000 {
54c66ec88fSEmmanuel Vadot		ranges = <0x0 0xf 0xffe00000 0x100000>;
55c66ec88fSEmmanuel Vadot	};
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot	pci0: pcie@fffe0a000 {
58c66ec88fSEmmanuel Vadot		reg = <0xf 0xffe0a000 0 0x1000>;
59c66ec88fSEmmanuel Vadot		ranges = <0x2000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000
60c66ec88fSEmmanuel Vadot			  0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>;
61c66ec88fSEmmanuel Vadot		pcie@0 {
62c66ec88fSEmmanuel Vadot			ranges = <0x2000000 0x0 0x80000000
63c66ec88fSEmmanuel Vadot				  0x2000000 0x0 0x80000000
64c66ec88fSEmmanuel Vadot				  0x0 0x20000000
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadot				  0x1000000 0x0 0x0
67c66ec88fSEmmanuel Vadot				  0x1000000 0x0 0x0
68c66ec88fSEmmanuel Vadot				  0x0 0x100000>;
69c66ec88fSEmmanuel Vadot		};
70c66ec88fSEmmanuel Vadot	};
71c66ec88fSEmmanuel Vadot};
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadot&ifc {
74c66ec88fSEmmanuel Vadot	nor@0,0 {
75c66ec88fSEmmanuel Vadot		#address-cells = <1>;
76c66ec88fSEmmanuel Vadot		#size-cells = <1>;
77c66ec88fSEmmanuel Vadot		compatible = "cfi-flash";
78c66ec88fSEmmanuel Vadot		reg = <0x0 0x0 0x4000000>;
79c66ec88fSEmmanuel Vadot		bank-width = <2>;
80c66ec88fSEmmanuel Vadot		device-width = <1>;
81c66ec88fSEmmanuel Vadot
82c66ec88fSEmmanuel Vadot		partition@0 {
83c66ec88fSEmmanuel Vadot			/* 1MB for DTB Image */
84c66ec88fSEmmanuel Vadot			reg = <0x0 0x00100000>;
85c66ec88fSEmmanuel Vadot			label = "NOR DTB Image";
86c66ec88fSEmmanuel Vadot		};
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadot		partition@100000 {
89c66ec88fSEmmanuel Vadot			/* 8 MB for Linux Kernel Image */
90c66ec88fSEmmanuel Vadot			reg = <0x00100000 0x00800000>;
91c66ec88fSEmmanuel Vadot			label = "NOR Linux Kernel Image";
92c66ec88fSEmmanuel Vadot		};
93c66ec88fSEmmanuel Vadot
94c66ec88fSEmmanuel Vadot		partition@900000 {
95c66ec88fSEmmanuel Vadot			/* 53MB for rootfs */
96c66ec88fSEmmanuel Vadot			reg = <0x00900000 0x03500000>;
97c66ec88fSEmmanuel Vadot			label = "NOR Rootfs Image";
98c66ec88fSEmmanuel Vadot		};
99c66ec88fSEmmanuel Vadot
100c66ec88fSEmmanuel Vadot		partition@3e00000 {
101c66ec88fSEmmanuel Vadot			/* 1MB for blob encrypted key */
102c66ec88fSEmmanuel Vadot			reg = <0x03e00000 0x00100000>;
103c66ec88fSEmmanuel Vadot			label = "NOR blob encrypted key";
104c66ec88fSEmmanuel Vadot		};
105c66ec88fSEmmanuel Vadot
106c66ec88fSEmmanuel Vadot		partition@3f00000 {
107c66ec88fSEmmanuel Vadot			/* 512KB for u-boot Bootloader Image and evn */
108c66ec88fSEmmanuel Vadot			reg = <0x03f00000 0x00100000>;
109c66ec88fSEmmanuel Vadot			label = "NOR U-Boot Image";
110c66ec88fSEmmanuel Vadot			read-only;
111c66ec88fSEmmanuel Vadot		};
112c66ec88fSEmmanuel Vadot	};
113c66ec88fSEmmanuel Vadot
114c66ec88fSEmmanuel Vadot	nand@1,0 {
115c66ec88fSEmmanuel Vadot		#address-cells = <1>;
116c66ec88fSEmmanuel Vadot		#size-cells = <1>;
117c66ec88fSEmmanuel Vadot		compatible = "fsl,ifc-nand";
118c66ec88fSEmmanuel Vadot		reg = <0x1 0x0 0x10000>;
119c66ec88fSEmmanuel Vadot
120c66ec88fSEmmanuel Vadot		partition@0 {
121c66ec88fSEmmanuel Vadot			/* This location must not be altered  */
122c66ec88fSEmmanuel Vadot			/* 1MB for u-boot Bootloader Image */
123c66ec88fSEmmanuel Vadot			reg = <0x0 0x00100000>;
124c66ec88fSEmmanuel Vadot			label = "NAND U-Boot Image";
125c66ec88fSEmmanuel Vadot			read-only;
126c66ec88fSEmmanuel Vadot		};
127c66ec88fSEmmanuel Vadot
128c66ec88fSEmmanuel Vadot		partition@100000 {
129c66ec88fSEmmanuel Vadot			/* 1MB for DTB Image */
130c66ec88fSEmmanuel Vadot			reg = <0x00100000 0x00100000>;
131c66ec88fSEmmanuel Vadot			label = "NAND DTB Image";
132c66ec88fSEmmanuel Vadot		};
133c66ec88fSEmmanuel Vadot
134c66ec88fSEmmanuel Vadot		partition@200000 {
135c66ec88fSEmmanuel Vadot			/* 16MB for Linux Kernel Image */
136c66ec88fSEmmanuel Vadot			reg = <0x00200000 0x01000000>;
137c66ec88fSEmmanuel Vadot			label = "NAND Linux Kernel Image";
138c66ec88fSEmmanuel Vadot		};
139c66ec88fSEmmanuel Vadot
140c66ec88fSEmmanuel Vadot		partition@1200000 {
141c66ec88fSEmmanuel Vadot			/* 4078MB for Root file System Image */
142c66ec88fSEmmanuel Vadot			reg = <0x00600000 0xfee00000>;
143c66ec88fSEmmanuel Vadot			label = "NAND RFS Image";
144c66ec88fSEmmanuel Vadot		};
145c66ec88fSEmmanuel Vadot	};
146c66ec88fSEmmanuel Vadot
147c66ec88fSEmmanuel Vadot	cpld@2,0 {
148c66ec88fSEmmanuel Vadot		compatible = "fsl,c293pcie-cpld";
149c66ec88fSEmmanuel Vadot		reg = <0x2 0x0 0x20>;
150c66ec88fSEmmanuel Vadot	};
151c66ec88fSEmmanuel Vadot};
152c66ec88fSEmmanuel Vadot
153c66ec88fSEmmanuel Vadot&soc {
154c66ec88fSEmmanuel Vadot	i2c@3000 {
155c66ec88fSEmmanuel Vadot		eeprom@50 {
156c66ec88fSEmmanuel Vadot			compatible = "st,24c1024", "atmel,24c1024";
157c66ec88fSEmmanuel Vadot			reg = <0x50>;
158c66ec88fSEmmanuel Vadot		};
159c66ec88fSEmmanuel Vadot
160c66ec88fSEmmanuel Vadot		adt7461@4c {
161c66ec88fSEmmanuel Vadot			compatible = "adi,adt7461";
162c66ec88fSEmmanuel Vadot			reg = <0x4c>;
163c66ec88fSEmmanuel Vadot		};
164c66ec88fSEmmanuel Vadot	};
165c66ec88fSEmmanuel Vadot
166c66ec88fSEmmanuel Vadot	spi@7000 {
167c66ec88fSEmmanuel Vadot		flash@0 {
168c66ec88fSEmmanuel Vadot			#address-cells = <1>;
169c66ec88fSEmmanuel Vadot			#size-cells = <1>;
170c66ec88fSEmmanuel Vadot			compatible = "spansion,s25sl12801", "jedec,spi-nor";
171c66ec88fSEmmanuel Vadot			reg = <0>;
172c66ec88fSEmmanuel Vadot			spi-max-frequency = <50000000>;
173c66ec88fSEmmanuel Vadot
174c66ec88fSEmmanuel Vadot			partition@0 {
175c66ec88fSEmmanuel Vadot				/* 1MB for u-boot Bootloader Image */
176c66ec88fSEmmanuel Vadot				/* 1MB for Environment */
177c66ec88fSEmmanuel Vadot				reg = <0x0 0x00100000>;
178c66ec88fSEmmanuel Vadot				label = "SPI Flash U-Boot Image";
179c66ec88fSEmmanuel Vadot				read-only;
180c66ec88fSEmmanuel Vadot			};
181c66ec88fSEmmanuel Vadot
182c66ec88fSEmmanuel Vadot			partition@100000 {
183c66ec88fSEmmanuel Vadot				/* 512KB for DTB Image */
184c66ec88fSEmmanuel Vadot				reg = <0x00100000 0x00080000>;
185c66ec88fSEmmanuel Vadot				label = "SPI Flash DTB Image";
186c66ec88fSEmmanuel Vadot			};
187c66ec88fSEmmanuel Vadot
188c66ec88fSEmmanuel Vadot			partition@180000 {
189c66ec88fSEmmanuel Vadot				/* 4MB for Linux Kernel Image */
190c66ec88fSEmmanuel Vadot				reg = <0x00180000 0x00400000>;
191c66ec88fSEmmanuel Vadot				label = "SPI Flash Linux Kernel Image";
192c66ec88fSEmmanuel Vadot			};
193c66ec88fSEmmanuel Vadot
194c66ec88fSEmmanuel Vadot			partition@580000 {
195c66ec88fSEmmanuel Vadot				/* 10.5MB for RFS Image */
196c66ec88fSEmmanuel Vadot				reg = <0x00580000 0x00a80000>;
197c66ec88fSEmmanuel Vadot				label = "SPI Flash RFS Image";
198c66ec88fSEmmanuel Vadot			};
199c66ec88fSEmmanuel Vadot		};
200c66ec88fSEmmanuel Vadot	};
201c66ec88fSEmmanuel Vadot
202c66ec88fSEmmanuel Vadot	mdio@24000 {
203c66ec88fSEmmanuel Vadot		phy0: ethernet-phy@0 {
204c66ec88fSEmmanuel Vadot			interrupts = <2 1 0 0>;
205c66ec88fSEmmanuel Vadot			reg = <0x0>;
206c66ec88fSEmmanuel Vadot		};
207c66ec88fSEmmanuel Vadot
208c66ec88fSEmmanuel Vadot		phy1: ethernet-phy@1 {
209c66ec88fSEmmanuel Vadot			interrupts = <2 1 0 0>;
210c66ec88fSEmmanuel Vadot			reg = <0x2>;
211c66ec88fSEmmanuel Vadot		};
212c66ec88fSEmmanuel Vadot	};
213c66ec88fSEmmanuel Vadot
214c66ec88fSEmmanuel Vadot	enet0: ethernet@b0000 {
215c66ec88fSEmmanuel Vadot		phy-handle = <&phy0>;
216c66ec88fSEmmanuel Vadot		phy-connection-type = "rgmii-id";
217c66ec88fSEmmanuel Vadot	};
218c66ec88fSEmmanuel Vadot
219c66ec88fSEmmanuel Vadot	enet1: ethernet@b1000 {
220c66ec88fSEmmanuel Vadot		phy-handle = <&phy1>;
221c66ec88fSEmmanuel Vadot		phy-connection-type = "rgmii-id";
222c66ec88fSEmmanuel Vadot	};
223c66ec88fSEmmanuel Vadot};
224c66ec88fSEmmanuel Vadot/include/ "c293si-post.dtsi"
225