xref: /freebsd/sys/contrib/device-tree/src/powerpc/fsl/p2020si-post.dtsi (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1c66ec88fSEmmanuel Vadot/*
2c66ec88fSEmmanuel Vadot * P2020/P2010 Silicon/SoC Device Tree Source (post include)
3c66ec88fSEmmanuel Vadot *
4c66ec88fSEmmanuel Vadot * Copyright 2011 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&lbc {
36c66ec88fSEmmanuel Vadot	#address-cells = <2>;
37c66ec88fSEmmanuel Vadot	#size-cells = <1>;
38c66ec88fSEmmanuel Vadot	compatible = "fsl,p2020-elbc", "fsl,elbc", "simple-bus";
39c66ec88fSEmmanuel Vadot	interrupts = <19 2 0 0>;
40c66ec88fSEmmanuel Vadot};
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot/* controller at 0xa000 */
43c66ec88fSEmmanuel Vadot&pci0 {
44c66ec88fSEmmanuel Vadot	compatible = "fsl,mpc8548-pcie";
45c66ec88fSEmmanuel Vadot	device_type = "pci";
46c66ec88fSEmmanuel Vadot	#size-cells = <2>;
47c66ec88fSEmmanuel Vadot	#address-cells = <3>;
48c66ec88fSEmmanuel Vadot	bus-range = <0 255>;
49c66ec88fSEmmanuel Vadot	clock-frequency = <33333333>;
50c66ec88fSEmmanuel Vadot	interrupts = <26 2 0 0>;
51*b97ee269SEmmanuel Vadot	law_trgt_if = <2>;
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot	pcie@0 {
54c66ec88fSEmmanuel Vadot		reg = <0 0 0 0 0>;
55c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
56c66ec88fSEmmanuel Vadot		#size-cells = <2>;
57c66ec88fSEmmanuel Vadot		#address-cells = <3>;
58c66ec88fSEmmanuel Vadot		device_type = "pci";
59c66ec88fSEmmanuel Vadot		interrupts = <26 2 0 0>;
60c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0xf800 0 0 7>;
61c66ec88fSEmmanuel Vadot		interrupt-map = <
62c66ec88fSEmmanuel Vadot			/* IDSEL 0x0 */
63c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0
64c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0
65c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0
66c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0
67c66ec88fSEmmanuel Vadot			>;
68c66ec88fSEmmanuel Vadot	};
69c66ec88fSEmmanuel Vadot};
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadot/* controller at 0x9000 */
72c66ec88fSEmmanuel Vadot&pci1 {
73c66ec88fSEmmanuel Vadot	compatible = "fsl,mpc8548-pcie";
74c66ec88fSEmmanuel Vadot	device_type = "pci";
75c66ec88fSEmmanuel Vadot	#size-cells = <2>;
76c66ec88fSEmmanuel Vadot	#address-cells = <3>;
77c66ec88fSEmmanuel Vadot	bus-range = <0 255>;
78c66ec88fSEmmanuel Vadot	clock-frequency = <33333333>;
79c66ec88fSEmmanuel Vadot	interrupts = <25 2 0 0>;
80*b97ee269SEmmanuel Vadot	law_trgt_if = <1>;
81c66ec88fSEmmanuel Vadot
82c66ec88fSEmmanuel Vadot	pcie@0 {
83c66ec88fSEmmanuel Vadot		reg = <0 0 0 0 0>;
84c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
85c66ec88fSEmmanuel Vadot		#size-cells = <2>;
86c66ec88fSEmmanuel Vadot		#address-cells = <3>;
87c66ec88fSEmmanuel Vadot		device_type = "pci";
88c66ec88fSEmmanuel Vadot		interrupts = <25 2 0 0>;
89c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0xf800 0 0 7>;
90c66ec88fSEmmanuel Vadot
91c66ec88fSEmmanuel Vadot		interrupt-map = <
92c66ec88fSEmmanuel Vadot			/* IDSEL 0x0 */
93c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0
94c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0
95c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
96c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
97c66ec88fSEmmanuel Vadot			>;
98c66ec88fSEmmanuel Vadot	};
99c66ec88fSEmmanuel Vadot};
100c66ec88fSEmmanuel Vadot
101c66ec88fSEmmanuel Vadot/* controller at 0x8000 */
102c66ec88fSEmmanuel Vadot&pci2 {
103c66ec88fSEmmanuel Vadot	compatible = "fsl,mpc8548-pcie";
104c66ec88fSEmmanuel Vadot	device_type = "pci";
105c66ec88fSEmmanuel Vadot	#size-cells = <2>;
106c66ec88fSEmmanuel Vadot	#address-cells = <3>;
107c66ec88fSEmmanuel Vadot	bus-range = <0 255>;
108c66ec88fSEmmanuel Vadot	clock-frequency = <33333333>;
109c66ec88fSEmmanuel Vadot	interrupts = <24 2 0 0>;
110*b97ee269SEmmanuel Vadot	law_trgt_if = <0>;
111c66ec88fSEmmanuel Vadot
112c66ec88fSEmmanuel Vadot	pcie@0 {
113c66ec88fSEmmanuel Vadot		reg = <0 0 0 0 0>;
114c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
115c66ec88fSEmmanuel Vadot		#size-cells = <2>;
116c66ec88fSEmmanuel Vadot		#address-cells = <3>;
117c66ec88fSEmmanuel Vadot		device_type = "pci";
118c66ec88fSEmmanuel Vadot		interrupts = <24 2 0 0>;
119c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0xf800 0 0 7>;
120c66ec88fSEmmanuel Vadot
121c66ec88fSEmmanuel Vadot		interrupt-map = <
122c66ec88fSEmmanuel Vadot			/* IDSEL 0x0 */
123c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x1 &mpic 0x8 0x1 0x0 0x0
124c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x2 &mpic 0x9 0x1 0x0 0x0
125c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x3 &mpic 0xa 0x1 0x0 0x0
126c66ec88fSEmmanuel Vadot			0000 0x0 0x0 0x4 &mpic 0xb 0x1 0x0 0x0
127c66ec88fSEmmanuel Vadot			>;
128c66ec88fSEmmanuel Vadot	};
129c66ec88fSEmmanuel Vadot};
130c66ec88fSEmmanuel Vadot
131c66ec88fSEmmanuel Vadot&soc {
132c66ec88fSEmmanuel Vadot	#address-cells = <1>;
133c66ec88fSEmmanuel Vadot	#size-cells = <1>;
134c66ec88fSEmmanuel Vadot	device_type = "soc";
135c66ec88fSEmmanuel Vadot	compatible = "fsl,p2020-immr", "simple-bus";
136c66ec88fSEmmanuel Vadot	bus-frequency = <0>;		// Filled out by uboot.
137c66ec88fSEmmanuel Vadot
138c66ec88fSEmmanuel Vadot	ecm-law@0 {
139c66ec88fSEmmanuel Vadot		compatible = "fsl,ecm-law";
140c66ec88fSEmmanuel Vadot		reg = <0x0 0x1000>;
141c66ec88fSEmmanuel Vadot		fsl,num-laws = <12>;
142c66ec88fSEmmanuel Vadot	};
143c66ec88fSEmmanuel Vadot
144c66ec88fSEmmanuel Vadot	ecm@1000 {
145c66ec88fSEmmanuel Vadot		compatible = "fsl,p2020-ecm", "fsl,ecm";
146c66ec88fSEmmanuel Vadot		reg = <0x1000 0x1000>;
147c66ec88fSEmmanuel Vadot		interrupts = <17 2 0 0>;
148c66ec88fSEmmanuel Vadot	};
149c66ec88fSEmmanuel Vadot
150c66ec88fSEmmanuel Vadot	memory-controller@2000 {
151c66ec88fSEmmanuel Vadot		compatible = "fsl,p2020-memory-controller";
152c66ec88fSEmmanuel Vadot		reg = <0x2000 0x1000>;
153c66ec88fSEmmanuel Vadot		interrupts = <18 2 0 0>;
154c66ec88fSEmmanuel Vadot	};
155c66ec88fSEmmanuel Vadot
156c66ec88fSEmmanuel Vadot/include/ "pq3-i2c-0.dtsi"
157c66ec88fSEmmanuel Vadot/include/ "pq3-i2c-1.dtsi"
158c66ec88fSEmmanuel Vadot/include/ "pq3-duart-0.dtsi"
159c66ec88fSEmmanuel Vadot/include/ "pq3-espi-0.dtsi"
160c66ec88fSEmmanuel Vadot	spi0: spi@7000 {
161c66ec88fSEmmanuel Vadot		fsl,espi-num-chipselects = <4>;
162c66ec88fSEmmanuel Vadot	};
163c66ec88fSEmmanuel Vadot
164c66ec88fSEmmanuel Vadot/include/ "pq3-dma-1.dtsi"
165c66ec88fSEmmanuel Vadot/include/ "pq3-gpio-0.dtsi"
166c66ec88fSEmmanuel Vadot
167c66ec88fSEmmanuel Vadot	L2: l2-cache-controller@20000 {
168c66ec88fSEmmanuel Vadot		compatible = "fsl,p2020-l2-cache-controller";
169c66ec88fSEmmanuel Vadot		reg = <0x20000 0x1000>;
170c66ec88fSEmmanuel Vadot		cache-line-size = <32>;	// 32 bytes
171c66ec88fSEmmanuel Vadot		cache-size = <0x80000>; // L2,512K
172c66ec88fSEmmanuel Vadot		interrupts = <16 2 0 0>;
173c66ec88fSEmmanuel Vadot	};
174c66ec88fSEmmanuel Vadot
175c66ec88fSEmmanuel Vadot/include/ "pq3-dma-0.dtsi"
176c66ec88fSEmmanuel Vadot/include/ "pq3-usb2-dr-0.dtsi"
177c66ec88fSEmmanuel Vadot	usb@22000 {
178c66ec88fSEmmanuel Vadot		compatible = "fsl-usb2-dr-v1.6", "fsl-usb2-dr";
179c66ec88fSEmmanuel Vadot	};
180c66ec88fSEmmanuel Vadot/include/ "pq3-etsec1-0.dtsi"
181c66ec88fSEmmanuel Vadot/include/ "pq3-etsec1-timer-0.dtsi"
182c66ec88fSEmmanuel Vadot
183c66ec88fSEmmanuel Vadot	ptp_clock@24e00 {
184c66ec88fSEmmanuel Vadot		interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
185c66ec88fSEmmanuel Vadot	};
186c66ec88fSEmmanuel Vadot
187c66ec88fSEmmanuel Vadot
188c66ec88fSEmmanuel Vadot/include/ "pq3-etsec1-1.dtsi"
189c66ec88fSEmmanuel Vadot/include/ "pq3-etsec1-2.dtsi"
190c66ec88fSEmmanuel Vadot/include/ "pq3-esdhc-0.dtsi"
191c66ec88fSEmmanuel Vadot	sdhc@2e000 {
192c66ec88fSEmmanuel Vadot		compatible = "fsl,p2020-esdhc", "fsl,esdhc";
193c66ec88fSEmmanuel Vadot	};
194c66ec88fSEmmanuel Vadot
195c66ec88fSEmmanuel Vadot/include/ "pq3-sec3.1-0.dtsi"
196c66ec88fSEmmanuel Vadot/include/ "pq3-mpic.dtsi"
197c66ec88fSEmmanuel Vadot/include/ "pq3-mpic-timer-B.dtsi"
198c66ec88fSEmmanuel Vadot
199c66ec88fSEmmanuel Vadot	global-utilities@e0000 {
200c66ec88fSEmmanuel Vadot		compatible = "fsl,p2020-guts";
201c66ec88fSEmmanuel Vadot		reg = <0xe0000 0x1000>;
202c66ec88fSEmmanuel Vadot		fsl,has-rstcr;
203c66ec88fSEmmanuel Vadot	};
204d5b0e70fSEmmanuel Vadot
205d5b0e70fSEmmanuel Vadot	pmc: power@e0070 {
206d5b0e70fSEmmanuel Vadot		compatible = "fsl,mpc8548-pmc";
207d5b0e70fSEmmanuel Vadot		reg = <0xe0070 0x20>;
208d5b0e70fSEmmanuel Vadot	};
209c66ec88fSEmmanuel Vadot};
210