xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/armada-370-xp.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Include file for Marvell Armada 370 and Armada XP SoC
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright (C) 2012 Marvell
5*4882a593Smuzhiyun *
6*4882a593Smuzhiyun * Lior Amsalem <alior@marvell.com>
7*4882a593Smuzhiyun * Gregory CLEMENT <gregory.clement@free-electrons.com>
8*4882a593Smuzhiyun * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9*4882a593Smuzhiyun * Ben Dooks <ben.dooks@codethink.co.uk>
10*4882a593Smuzhiyun *
11*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms
12*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual
13*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a
14*4882a593Smuzhiyun * whole.
15*4882a593Smuzhiyun *
16*4882a593Smuzhiyun *  a) This file is free software; you can redistribute it and/or
17*4882a593Smuzhiyun *     modify it under the terms of the GNU General Public License as
18*4882a593Smuzhiyun *     published by the Free Software Foundation; either version 2 of the
19*4882a593Smuzhiyun *     License, or (at your option) any later version.
20*4882a593Smuzhiyun *
21*4882a593Smuzhiyun *     This file is distributed in the hope that it will be useful
22*4882a593Smuzhiyun *     but WITHOUT ANY WARRANTY; without even the implied warranty of
23*4882a593Smuzhiyun *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24*4882a593Smuzhiyun *     GNU General Public License for more details.
25*4882a593Smuzhiyun *
26*4882a593Smuzhiyun * Or, alternatively
27*4882a593Smuzhiyun *
28*4882a593Smuzhiyun *  b) Permission is hereby granted, free of charge, to any person
29*4882a593Smuzhiyun *     obtaining a copy of this software and associated documentation
30*4882a593Smuzhiyun *     files (the "Software"), to deal in the Software without
31*4882a593Smuzhiyun *     restriction, including without limitation the rights to use
32*4882a593Smuzhiyun *     copy, modify, merge, publish, distribute, sublicense, and/or
33*4882a593Smuzhiyun *     sell copies of the Software, and to permit persons to whom the
34*4882a593Smuzhiyun *     Software is furnished to do so, subject to the following
35*4882a593Smuzhiyun *     conditions:
36*4882a593Smuzhiyun *
37*4882a593Smuzhiyun *     The above copyright notice and this permission notice shall be
38*4882a593Smuzhiyun *     included in all copies or substantial portions of the Software.
39*4882a593Smuzhiyun *
40*4882a593Smuzhiyun *     THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
41*4882a593Smuzhiyun *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42*4882a593Smuzhiyun *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43*4882a593Smuzhiyun *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44*4882a593Smuzhiyun *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
45*4882a593Smuzhiyun *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46*4882a593Smuzhiyun *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47*4882a593Smuzhiyun *     OTHER DEALINGS IN THE SOFTWARE.
48*4882a593Smuzhiyun *
49*4882a593Smuzhiyun * This file contains the definitions that are common to the Armada
50*4882a593Smuzhiyun * 370 and Armada XP SoC.
51*4882a593Smuzhiyun */
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun/include/ "skeleton64.dtsi"
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun/ {
58*4882a593Smuzhiyun	model = "Marvell Armada 370 and XP SoC";
59*4882a593Smuzhiyun	compatible = "marvell,armada-370-xp";
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun	aliases {
62*4882a593Smuzhiyun		serial0 = &uart0;
63*4882a593Smuzhiyun		serial1 = &uart1;
64*4882a593Smuzhiyun	};
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun	cpus {
67*4882a593Smuzhiyun		#address-cells = <1>;
68*4882a593Smuzhiyun		#size-cells = <0>;
69*4882a593Smuzhiyun		cpu@0 {
70*4882a593Smuzhiyun			compatible = "marvell,sheeva-v7";
71*4882a593Smuzhiyun			device_type = "cpu";
72*4882a593Smuzhiyun			reg = <0>;
73*4882a593Smuzhiyun		};
74*4882a593Smuzhiyun	};
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun	pmu {
77*4882a593Smuzhiyun		compatible = "arm,cortex-a9-pmu";
78*4882a593Smuzhiyun		interrupts-extended = <&mpic 3>;
79*4882a593Smuzhiyun	};
80*4882a593Smuzhiyun
81*4882a593Smuzhiyun	soc {
82*4882a593Smuzhiyun		#address-cells = <2>;
83*4882a593Smuzhiyun		#size-cells = <1>;
84*4882a593Smuzhiyun		controller = <&mbusc>;
85*4882a593Smuzhiyun		interrupt-parent = <&mpic>;
86*4882a593Smuzhiyun		pcie-mem-aperture = <0xf8000000 0x7e00000>;
87*4882a593Smuzhiyun		pcie-io-aperture  = <0xffe00000 0x100000>;
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun		devbus-bootcs {
90*4882a593Smuzhiyun			compatible = "marvell,mvebu-devbus";
91*4882a593Smuzhiyun			reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
92*4882a593Smuzhiyun			ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
93*4882a593Smuzhiyun			#address-cells = <1>;
94*4882a593Smuzhiyun			#size-cells = <1>;
95*4882a593Smuzhiyun			clocks = <&coreclk 0>;
96*4882a593Smuzhiyun			status = "disabled";
97*4882a593Smuzhiyun		};
98*4882a593Smuzhiyun
99*4882a593Smuzhiyun		devbus-cs0 {
100*4882a593Smuzhiyun			compatible = "marvell,mvebu-devbus";
101*4882a593Smuzhiyun			reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
102*4882a593Smuzhiyun			ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
103*4882a593Smuzhiyun			#address-cells = <1>;
104*4882a593Smuzhiyun			#size-cells = <1>;
105*4882a593Smuzhiyun			clocks = <&coreclk 0>;
106*4882a593Smuzhiyun			status = "disabled";
107*4882a593Smuzhiyun		};
108*4882a593Smuzhiyun
109*4882a593Smuzhiyun		devbus-cs1 {
110*4882a593Smuzhiyun			compatible = "marvell,mvebu-devbus";
111*4882a593Smuzhiyun			reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
112*4882a593Smuzhiyun			ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
113*4882a593Smuzhiyun			#address-cells = <1>;
114*4882a593Smuzhiyun			#size-cells = <1>;
115*4882a593Smuzhiyun			clocks = <&coreclk 0>;
116*4882a593Smuzhiyun			status = "disabled";
117*4882a593Smuzhiyun		};
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun		devbus-cs2 {
120*4882a593Smuzhiyun			compatible = "marvell,mvebu-devbus";
121*4882a593Smuzhiyun			reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
122*4882a593Smuzhiyun			ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
123*4882a593Smuzhiyun			#address-cells = <1>;
124*4882a593Smuzhiyun			#size-cells = <1>;
125*4882a593Smuzhiyun			clocks = <&coreclk 0>;
126*4882a593Smuzhiyun			status = "disabled";
127*4882a593Smuzhiyun		};
128*4882a593Smuzhiyun
129*4882a593Smuzhiyun		devbus-cs3 {
130*4882a593Smuzhiyun			compatible = "marvell,mvebu-devbus";
131*4882a593Smuzhiyun			reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
132*4882a593Smuzhiyun			ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
133*4882a593Smuzhiyun			#address-cells = <1>;
134*4882a593Smuzhiyun			#size-cells = <1>;
135*4882a593Smuzhiyun			clocks = <&coreclk 0>;
136*4882a593Smuzhiyun			status = "disabled";
137*4882a593Smuzhiyun		};
138*4882a593Smuzhiyun
139*4882a593Smuzhiyun		internal-regs {
140*4882a593Smuzhiyun			compatible = "simple-bus";
141*4882a593Smuzhiyun			#address-cells = <1>;
142*4882a593Smuzhiyun			#size-cells = <1>;
143*4882a593Smuzhiyun			ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
144*4882a593Smuzhiyun			u-boot,dm-pre-reloc;
145*4882a593Smuzhiyun
146*4882a593Smuzhiyun			rtc@10300 {
147*4882a593Smuzhiyun				compatible = "marvell,orion-rtc";
148*4882a593Smuzhiyun				reg = <0x10300 0x20>;
149*4882a593Smuzhiyun				interrupts = <50>;
150*4882a593Smuzhiyun			};
151*4882a593Smuzhiyun
152*4882a593Smuzhiyun			spi0: spi@10600 {
153*4882a593Smuzhiyun				reg = <0x10600 0x28>;
154*4882a593Smuzhiyun				#address-cells = <1>;
155*4882a593Smuzhiyun				#size-cells = <0>;
156*4882a593Smuzhiyun				cell-index = <0>;
157*4882a593Smuzhiyun				interrupts = <30>;
158*4882a593Smuzhiyun				clocks = <&coreclk 0>;
159*4882a593Smuzhiyun				status = "disabled";
160*4882a593Smuzhiyun			};
161*4882a593Smuzhiyun
162*4882a593Smuzhiyun			spi1: spi@10680 {
163*4882a593Smuzhiyun				reg = <0x10680 0x28>;
164*4882a593Smuzhiyun				#address-cells = <1>;
165*4882a593Smuzhiyun				#size-cells = <0>;
166*4882a593Smuzhiyun				cell-index = <1>;
167*4882a593Smuzhiyun				interrupts = <92>;
168*4882a593Smuzhiyun				clocks = <&coreclk 0>;
169*4882a593Smuzhiyun				status = "disabled";
170*4882a593Smuzhiyun			};
171*4882a593Smuzhiyun
172*4882a593Smuzhiyun			i2c0: i2c@11000 {
173*4882a593Smuzhiyun				compatible = "marvell,mv64xxx-i2c";
174*4882a593Smuzhiyun				#address-cells = <1>;
175*4882a593Smuzhiyun				#size-cells = <0>;
176*4882a593Smuzhiyun				interrupts = <31>;
177*4882a593Smuzhiyun				timeout-ms = <1000>;
178*4882a593Smuzhiyun				clocks = <&coreclk 0>;
179*4882a593Smuzhiyun				status = "disabled";
180*4882a593Smuzhiyun			};
181*4882a593Smuzhiyun
182*4882a593Smuzhiyun			i2c1: i2c@11100 {
183*4882a593Smuzhiyun				compatible = "marvell,mv64xxx-i2c";
184*4882a593Smuzhiyun				#address-cells = <1>;
185*4882a593Smuzhiyun				#size-cells = <0>;
186*4882a593Smuzhiyun				interrupts = <32>;
187*4882a593Smuzhiyun				timeout-ms = <1000>;
188*4882a593Smuzhiyun				clocks = <&coreclk 0>;
189*4882a593Smuzhiyun				status = "disabled";
190*4882a593Smuzhiyun			};
191*4882a593Smuzhiyun
192*4882a593Smuzhiyun			uart0: serial@12000 {
193*4882a593Smuzhiyun				compatible = "snps,dw-apb-uart";
194*4882a593Smuzhiyun				reg = <0x12000 0x100>;
195*4882a593Smuzhiyun				reg-shift = <2>;
196*4882a593Smuzhiyun				interrupts = <41>;
197*4882a593Smuzhiyun				reg-io-width = <1>;
198*4882a593Smuzhiyun				clocks = <&coreclk 0>;
199*4882a593Smuzhiyun				status = "disabled";
200*4882a593Smuzhiyun			};
201*4882a593Smuzhiyun
202*4882a593Smuzhiyun			uart1: serial@12100 {
203*4882a593Smuzhiyun				compatible = "snps,dw-apb-uart";
204*4882a593Smuzhiyun				reg = <0x12100 0x100>;
205*4882a593Smuzhiyun				reg-shift = <2>;
206*4882a593Smuzhiyun				interrupts = <42>;
207*4882a593Smuzhiyun				reg-io-width = <1>;
208*4882a593Smuzhiyun				clocks = <&coreclk 0>;
209*4882a593Smuzhiyun				status = "disabled";
210*4882a593Smuzhiyun			};
211*4882a593Smuzhiyun
212*4882a593Smuzhiyun			pinctrl: pin-ctrl@18000 {
213*4882a593Smuzhiyun				reg = <0x18000 0x38>;
214*4882a593Smuzhiyun			};
215*4882a593Smuzhiyun
216*4882a593Smuzhiyun			coredivclk: corediv-clock@18740 {
217*4882a593Smuzhiyun				compatible = "marvell,armada-370-corediv-clock";
218*4882a593Smuzhiyun				reg = <0x18740 0xc>;
219*4882a593Smuzhiyun				#clock-cells = <1>;
220*4882a593Smuzhiyun				clocks = <&mainpll>;
221*4882a593Smuzhiyun				clock-output-names = "nand";
222*4882a593Smuzhiyun			};
223*4882a593Smuzhiyun
224*4882a593Smuzhiyun			mbusc: mbus-controller@20000 {
225*4882a593Smuzhiyun				compatible = "marvell,mbus-controller";
226*4882a593Smuzhiyun				reg = <0x20000 0x100>, <0x20180 0x20>,
227*4882a593Smuzhiyun				      <0x20250 0x8>;
228*4882a593Smuzhiyun			};
229*4882a593Smuzhiyun
230*4882a593Smuzhiyun			mpic: interrupt-controller@20a00 {
231*4882a593Smuzhiyun				compatible = "marvell,mpic";
232*4882a593Smuzhiyun				#interrupt-cells = <1>;
233*4882a593Smuzhiyun				#size-cells = <1>;
234*4882a593Smuzhiyun				interrupt-controller;
235*4882a593Smuzhiyun				msi-controller;
236*4882a593Smuzhiyun			};
237*4882a593Smuzhiyun
238*4882a593Smuzhiyun			coherency-fabric@20200 {
239*4882a593Smuzhiyun				compatible = "marvell,coherency-fabric";
240*4882a593Smuzhiyun				reg = <0x20200 0xb0>, <0x21010 0x1c>;
241*4882a593Smuzhiyun			};
242*4882a593Smuzhiyun
243*4882a593Smuzhiyun			timer@20300 {
244*4882a593Smuzhiyun				reg = <0x20300 0x30>, <0x21040 0x30>;
245*4882a593Smuzhiyun				interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
246*4882a593Smuzhiyun			};
247*4882a593Smuzhiyun
248*4882a593Smuzhiyun			watchdog@20300 {
249*4882a593Smuzhiyun				reg = <0x20300 0x34>, <0x20704 0x4>;
250*4882a593Smuzhiyun			};
251*4882a593Smuzhiyun
252*4882a593Smuzhiyun			pmsu@22000 {
253*4882a593Smuzhiyun				compatible = "marvell,armada-370-pmsu";
254*4882a593Smuzhiyun				reg = <0x22000 0x1000>;
255*4882a593Smuzhiyun			};
256*4882a593Smuzhiyun
257*4882a593Smuzhiyun			usb@50000 {
258*4882a593Smuzhiyun				compatible = "marvell,orion-ehci";
259*4882a593Smuzhiyun				reg = <0x50000 0x500>;
260*4882a593Smuzhiyun				interrupts = <45>;
261*4882a593Smuzhiyun				status = "disabled";
262*4882a593Smuzhiyun			};
263*4882a593Smuzhiyun
264*4882a593Smuzhiyun			usb@51000 {
265*4882a593Smuzhiyun				compatible = "marvell,orion-ehci";
266*4882a593Smuzhiyun				reg = <0x51000 0x500>;
267*4882a593Smuzhiyun				interrupts = <46>;
268*4882a593Smuzhiyun				status = "disabled";
269*4882a593Smuzhiyun			};
270*4882a593Smuzhiyun
271*4882a593Smuzhiyun			eth0: ethernet@70000 {
272*4882a593Smuzhiyun				reg = <0x70000 0x4000>;
273*4882a593Smuzhiyun				interrupts = <8>;
274*4882a593Smuzhiyun				clocks = <&gateclk 4>;
275*4882a593Smuzhiyun				status = "disabled";
276*4882a593Smuzhiyun			};
277*4882a593Smuzhiyun
278*4882a593Smuzhiyun			mdio: mdio {
279*4882a593Smuzhiyun				#address-cells = <1>;
280*4882a593Smuzhiyun				#size-cells = <0>;
281*4882a593Smuzhiyun				compatible = "marvell,orion-mdio";
282*4882a593Smuzhiyun				reg = <0x72004 0x4>;
283*4882a593Smuzhiyun				clocks = <&gateclk 4>;
284*4882a593Smuzhiyun			};
285*4882a593Smuzhiyun
286*4882a593Smuzhiyun			eth1: ethernet@74000 {
287*4882a593Smuzhiyun				reg = <0x74000 0x4000>;
288*4882a593Smuzhiyun				interrupts = <10>;
289*4882a593Smuzhiyun				clocks = <&gateclk 3>;
290*4882a593Smuzhiyun				status = "disabled";
291*4882a593Smuzhiyun			};
292*4882a593Smuzhiyun
293*4882a593Smuzhiyun			sata@a0000 {
294*4882a593Smuzhiyun				compatible = "marvell,armada-370-sata";
295*4882a593Smuzhiyun				reg = <0xa0000 0x5000>;
296*4882a593Smuzhiyun				interrupts = <55>;
297*4882a593Smuzhiyun				clocks = <&gateclk 15>, <&gateclk 30>;
298*4882a593Smuzhiyun				clock-names = "0", "1";
299*4882a593Smuzhiyun				status = "disabled";
300*4882a593Smuzhiyun			};
301*4882a593Smuzhiyun
302*4882a593Smuzhiyun			nand@d0000 {
303*4882a593Smuzhiyun				compatible = "marvell,armada370-nand";
304*4882a593Smuzhiyun				reg = <0xd0000 0x54>;
305*4882a593Smuzhiyun				#address-cells = <1>;
306*4882a593Smuzhiyun				#size-cells = <1>;
307*4882a593Smuzhiyun				interrupts = <113>;
308*4882a593Smuzhiyun				clocks = <&coredivclk 0>;
309*4882a593Smuzhiyun				status = "disabled";
310*4882a593Smuzhiyun			};
311*4882a593Smuzhiyun
312*4882a593Smuzhiyun			mvsdio@d4000 {
313*4882a593Smuzhiyun				compatible = "marvell,orion-sdio";
314*4882a593Smuzhiyun				reg = <0xd4000 0x200>;
315*4882a593Smuzhiyun				interrupts = <54>;
316*4882a593Smuzhiyun				clocks = <&gateclk 17>;
317*4882a593Smuzhiyun				bus-width = <4>;
318*4882a593Smuzhiyun				cap-sdio-irq;
319*4882a593Smuzhiyun				cap-sd-highspeed;
320*4882a593Smuzhiyun				cap-mmc-highspeed;
321*4882a593Smuzhiyun				status = "disabled";
322*4882a593Smuzhiyun			};
323*4882a593Smuzhiyun		};
324*4882a593Smuzhiyun	};
325*4882a593Smuzhiyun
326*4882a593Smuzhiyun	clocks {
327*4882a593Smuzhiyun		/* 2 GHz fixed main PLL */
328*4882a593Smuzhiyun		mainpll: mainpll {
329*4882a593Smuzhiyun			compatible = "fixed-clock";
330*4882a593Smuzhiyun			#clock-cells = <0>;
331*4882a593Smuzhiyun			clock-frequency = <2000000000>;
332*4882a593Smuzhiyun		};
333*4882a593Smuzhiyun	};
334*4882a593Smuzhiyun };
335