xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/armada-xp.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Device Tree Include file for Marvell Armada XP family 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 * Contains definitions specific to the Armada XP SoC that are not
50*4882a593Smuzhiyun * common to all Armada SoCs.
51*4882a593Smuzhiyun */
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun#include "armada-370-xp.dtsi"
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun/ {
56*4882a593Smuzhiyun	model = "Marvell Armada XP family SoC";
57*4882a593Smuzhiyun	compatible = "marvell,armadaxp", "marvell,armada-370-xp";
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun	aliases {
60*4882a593Smuzhiyun		serial2 = &uart2;
61*4882a593Smuzhiyun		serial3 = &uart3;
62*4882a593Smuzhiyun	};
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun	soc {
65*4882a593Smuzhiyun		compatible = "marvell,armadaxp-mbus", "simple-bus";
66*4882a593Smuzhiyun		u-boot,dm-pre-reloc;
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun		bootrom {
69*4882a593Smuzhiyun			compatible = "marvell,bootrom";
70*4882a593Smuzhiyun			reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
71*4882a593Smuzhiyun		};
72*4882a593Smuzhiyun
73*4882a593Smuzhiyun		internal-regs {
74*4882a593Smuzhiyun			sdramc@1400 {
75*4882a593Smuzhiyun				compatible = "marvell,armada-xp-sdram-controller";
76*4882a593Smuzhiyun				reg = <0x1400 0x500>;
77*4882a593Smuzhiyun			};
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun			L2: l2-cache {
80*4882a593Smuzhiyun				compatible = "marvell,aurora-system-cache";
81*4882a593Smuzhiyun				reg = <0x08000 0x1000>;
82*4882a593Smuzhiyun				cache-id-part = <0x100>;
83*4882a593Smuzhiyun				cache-level = <2>;
84*4882a593Smuzhiyun				cache-unified;
85*4882a593Smuzhiyun				wt-override;
86*4882a593Smuzhiyun			};
87*4882a593Smuzhiyun
88*4882a593Smuzhiyun			spi0: spi@10600 {
89*4882a593Smuzhiyun				compatible = "marvell,armada-xp-spi",
90*4882a593Smuzhiyun						"marvell,orion-spi";
91*4882a593Smuzhiyun				pinctrl-0 = <&spi0_pins>;
92*4882a593Smuzhiyun				pinctrl-names = "default";
93*4882a593Smuzhiyun			};
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun			spi1: spi@10680 {
96*4882a593Smuzhiyun				compatible = "marvell,armada-xp-spi",
97*4882a593Smuzhiyun						"marvell,orion-spi";
98*4882a593Smuzhiyun			};
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun
101*4882a593Smuzhiyun			i2c0: i2c@11000 {
102*4882a593Smuzhiyun				compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
103*4882a593Smuzhiyun				reg = <0x11000 0x100>;
104*4882a593Smuzhiyun			};
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun			i2c1: i2c@11100 {
107*4882a593Smuzhiyun				compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
108*4882a593Smuzhiyun				reg = <0x11100 0x100>;
109*4882a593Smuzhiyun			};
110*4882a593Smuzhiyun
111*4882a593Smuzhiyun			uart2: serial@12200 {
112*4882a593Smuzhiyun				compatible = "snps,dw-apb-uart";
113*4882a593Smuzhiyun				pinctrl-0 = <&uart2_pins>;
114*4882a593Smuzhiyun				pinctrl-names = "default";
115*4882a593Smuzhiyun				reg = <0x12200 0x100>;
116*4882a593Smuzhiyun				reg-shift = <2>;
117*4882a593Smuzhiyun				interrupts = <43>;
118*4882a593Smuzhiyun				reg-io-width = <1>;
119*4882a593Smuzhiyun				clocks = <&coreclk 0>;
120*4882a593Smuzhiyun				status = "disabled";
121*4882a593Smuzhiyun			};
122*4882a593Smuzhiyun
123*4882a593Smuzhiyun			uart3: serial@12300 {
124*4882a593Smuzhiyun				compatible = "snps,dw-apb-uart";
125*4882a593Smuzhiyun				pinctrl-0 = <&uart3_pins>;
126*4882a593Smuzhiyun				pinctrl-names = "default";
127*4882a593Smuzhiyun				reg = <0x12300 0x100>;
128*4882a593Smuzhiyun				reg-shift = <2>;
129*4882a593Smuzhiyun				interrupts = <44>;
130*4882a593Smuzhiyun				reg-io-width = <1>;
131*4882a593Smuzhiyun				clocks = <&coreclk 0>;
132*4882a593Smuzhiyun				status = "disabled";
133*4882a593Smuzhiyun			};
134*4882a593Smuzhiyun
135*4882a593Smuzhiyun			system-controller@18200 {
136*4882a593Smuzhiyun				compatible = "marvell,armada-370-xp-system-controller";
137*4882a593Smuzhiyun				reg = <0x18200 0x500>;
138*4882a593Smuzhiyun			};
139*4882a593Smuzhiyun
140*4882a593Smuzhiyun			gateclk: clock-gating-control@18220 {
141*4882a593Smuzhiyun				compatible = "marvell,armada-xp-gating-clock";
142*4882a593Smuzhiyun				reg = <0x18220 0x4>;
143*4882a593Smuzhiyun				clocks = <&coreclk 0>;
144*4882a593Smuzhiyun				#clock-cells = <1>;
145*4882a593Smuzhiyun			};
146*4882a593Smuzhiyun
147*4882a593Smuzhiyun			coreclk: mvebu-sar@18230 {
148*4882a593Smuzhiyun				compatible = "marvell,armada-xp-core-clock";
149*4882a593Smuzhiyun				reg = <0x18230 0x08>;
150*4882a593Smuzhiyun				#clock-cells = <1>;
151*4882a593Smuzhiyun			};
152*4882a593Smuzhiyun
153*4882a593Smuzhiyun			thermal@182b0 {
154*4882a593Smuzhiyun				compatible = "marvell,armadaxp-thermal";
155*4882a593Smuzhiyun				reg = <0x182b0 0x4
156*4882a593Smuzhiyun					0x184d0 0x4>;
157*4882a593Smuzhiyun				status = "okay";
158*4882a593Smuzhiyun			};
159*4882a593Smuzhiyun
160*4882a593Smuzhiyun			cpuclk: clock-complex@18700 {
161*4882a593Smuzhiyun				#clock-cells = <1>;
162*4882a593Smuzhiyun				compatible = "marvell,armada-xp-cpu-clock";
163*4882a593Smuzhiyun				reg = <0x18700 0x24>, <0x1c054 0x10>;
164*4882a593Smuzhiyun				clocks = <&coreclk 1>;
165*4882a593Smuzhiyun			};
166*4882a593Smuzhiyun
167*4882a593Smuzhiyun			interrupt-controller@20a00 {
168*4882a593Smuzhiyun			      reg = <0x20a00 0x2d0>, <0x21070 0x58>;
169*4882a593Smuzhiyun			};
170*4882a593Smuzhiyun
171*4882a593Smuzhiyun			timer@20300 {
172*4882a593Smuzhiyun				compatible = "marvell,armada-xp-timer";
173*4882a593Smuzhiyun				clocks = <&coreclk 2>, <&refclk>;
174*4882a593Smuzhiyun				clock-names = "nbclk", "fixed";
175*4882a593Smuzhiyun			};
176*4882a593Smuzhiyun
177*4882a593Smuzhiyun			watchdog@20300 {
178*4882a593Smuzhiyun				compatible = "marvell,armada-xp-wdt";
179*4882a593Smuzhiyun				clocks = <&coreclk 2>, <&refclk>;
180*4882a593Smuzhiyun				clock-names = "nbclk", "fixed";
181*4882a593Smuzhiyun			};
182*4882a593Smuzhiyun
183*4882a593Smuzhiyun			cpurst@20800 {
184*4882a593Smuzhiyun				compatible = "marvell,armada-370-cpu-reset";
185*4882a593Smuzhiyun				reg = <0x20800 0x20>;
186*4882a593Smuzhiyun			};
187*4882a593Smuzhiyun
188*4882a593Smuzhiyun			eth2: ethernet@30000 {
189*4882a593Smuzhiyun				compatible = "marvell,armada-xp-neta";
190*4882a593Smuzhiyun				reg = <0x30000 0x4000>;
191*4882a593Smuzhiyun				interrupts = <12>;
192*4882a593Smuzhiyun				clocks = <&gateclk 2>;
193*4882a593Smuzhiyun				status = "disabled";
194*4882a593Smuzhiyun			};
195*4882a593Smuzhiyun
196*4882a593Smuzhiyun			usb@50000 {
197*4882a593Smuzhiyun				clocks = <&gateclk 18>;
198*4882a593Smuzhiyun			};
199*4882a593Smuzhiyun
200*4882a593Smuzhiyun			usb@51000 {
201*4882a593Smuzhiyun				clocks = <&gateclk 19>;
202*4882a593Smuzhiyun			};
203*4882a593Smuzhiyun
204*4882a593Smuzhiyun			usb@52000 {
205*4882a593Smuzhiyun				compatible = "marvell,orion-ehci";
206*4882a593Smuzhiyun				reg = <0x52000 0x500>;
207*4882a593Smuzhiyun				interrupts = <47>;
208*4882a593Smuzhiyun				clocks = <&gateclk 20>;
209*4882a593Smuzhiyun				status = "disabled";
210*4882a593Smuzhiyun			};
211*4882a593Smuzhiyun
212*4882a593Smuzhiyun			xor@60900 {
213*4882a593Smuzhiyun				compatible = "marvell,orion-xor";
214*4882a593Smuzhiyun				reg = <0x60900 0x100
215*4882a593Smuzhiyun				       0x60b00 0x100>;
216*4882a593Smuzhiyun				clocks = <&gateclk 22>;
217*4882a593Smuzhiyun				status = "okay";
218*4882a593Smuzhiyun
219*4882a593Smuzhiyun				xor10 {
220*4882a593Smuzhiyun					interrupts = <51>;
221*4882a593Smuzhiyun					dmacap,memcpy;
222*4882a593Smuzhiyun					dmacap,xor;
223*4882a593Smuzhiyun				};
224*4882a593Smuzhiyun				xor11 {
225*4882a593Smuzhiyun					interrupts = <52>;
226*4882a593Smuzhiyun					dmacap,memcpy;
227*4882a593Smuzhiyun					dmacap,xor;
228*4882a593Smuzhiyun					dmacap,memset;
229*4882a593Smuzhiyun				};
230*4882a593Smuzhiyun			};
231*4882a593Smuzhiyun
232*4882a593Smuzhiyun			ethernet@70000 {
233*4882a593Smuzhiyun				compatible = "marvell,armada-xp-neta";
234*4882a593Smuzhiyun			};
235*4882a593Smuzhiyun
236*4882a593Smuzhiyun			ethernet@74000 {
237*4882a593Smuzhiyun				compatible = "marvell,armada-xp-neta";
238*4882a593Smuzhiyun			};
239*4882a593Smuzhiyun
240*4882a593Smuzhiyun			xor@f0900 {
241*4882a593Smuzhiyun				compatible = "marvell,orion-xor";
242*4882a593Smuzhiyun				reg = <0xF0900 0x100
243*4882a593Smuzhiyun				       0xF0B00 0x100>;
244*4882a593Smuzhiyun				clocks = <&gateclk 28>;
245*4882a593Smuzhiyun				status = "okay";
246*4882a593Smuzhiyun
247*4882a593Smuzhiyun				xor00 {
248*4882a593Smuzhiyun					interrupts = <94>;
249*4882a593Smuzhiyun					dmacap,memcpy;
250*4882a593Smuzhiyun					dmacap,xor;
251*4882a593Smuzhiyun				};
252*4882a593Smuzhiyun				xor01 {
253*4882a593Smuzhiyun					interrupts = <95>;
254*4882a593Smuzhiyun					dmacap,memcpy;
255*4882a593Smuzhiyun					dmacap,xor;
256*4882a593Smuzhiyun					dmacap,memset;
257*4882a593Smuzhiyun				};
258*4882a593Smuzhiyun			};
259*4882a593Smuzhiyun		};
260*4882a593Smuzhiyun	};
261*4882a593Smuzhiyun
262*4882a593Smuzhiyun	clocks {
263*4882a593Smuzhiyun		/* 25 MHz reference crystal */
264*4882a593Smuzhiyun		refclk: oscillator {
265*4882a593Smuzhiyun			compatible = "fixed-clock";
266*4882a593Smuzhiyun			#clock-cells = <0>;
267*4882a593Smuzhiyun			clock-frequency = <25000000>;
268*4882a593Smuzhiyun		};
269*4882a593Smuzhiyun	};
270*4882a593Smuzhiyun};
271*4882a593Smuzhiyun
272*4882a593Smuzhiyun&pinctrl {
273*4882a593Smuzhiyun	ge0_gmii_pins: ge0-gmii-pins {
274*4882a593Smuzhiyun		marvell,pins =
275*4882a593Smuzhiyun		     "mpp0",  "mpp1",  "mpp2",  "mpp3",
276*4882a593Smuzhiyun		     "mpp4",  "mpp5",  "mpp6",  "mpp7",
277*4882a593Smuzhiyun		     "mpp8",  "mpp9",  "mpp10", "mpp11",
278*4882a593Smuzhiyun		     "mpp12", "mpp13", "mpp14", "mpp15",
279*4882a593Smuzhiyun		     "mpp16", "mpp17", "mpp18", "mpp19",
280*4882a593Smuzhiyun		     "mpp20", "mpp21", "mpp22", "mpp23";
281*4882a593Smuzhiyun		marvell,function = "ge0";
282*4882a593Smuzhiyun	};
283*4882a593Smuzhiyun
284*4882a593Smuzhiyun	ge0_rgmii_pins: ge0-rgmii-pins {
285*4882a593Smuzhiyun		marvell,pins =
286*4882a593Smuzhiyun		     "mpp0", "mpp1", "mpp2", "mpp3",
287*4882a593Smuzhiyun		     "mpp4", "mpp5", "mpp6", "mpp7",
288*4882a593Smuzhiyun		     "mpp8", "mpp9", "mpp10", "mpp11";
289*4882a593Smuzhiyun		marvell,function = "ge0";
290*4882a593Smuzhiyun	};
291*4882a593Smuzhiyun
292*4882a593Smuzhiyun	ge1_rgmii_pins: ge1-rgmii-pins {
293*4882a593Smuzhiyun		marvell,pins =
294*4882a593Smuzhiyun		     "mpp12", "mpp13", "mpp14", "mpp15",
295*4882a593Smuzhiyun		     "mpp16", "mpp17", "mpp18", "mpp19",
296*4882a593Smuzhiyun		     "mpp20", "mpp21", "mpp22", "mpp23";
297*4882a593Smuzhiyun		marvell,function = "ge1";
298*4882a593Smuzhiyun	};
299*4882a593Smuzhiyun
300*4882a593Smuzhiyun	sdio_pins: sdio-pins {
301*4882a593Smuzhiyun		marvell,pins = "mpp30", "mpp31", "mpp32",
302*4882a593Smuzhiyun			       "mpp33", "mpp34", "mpp35";
303*4882a593Smuzhiyun		marvell,function = "sd0";
304*4882a593Smuzhiyun	};
305*4882a593Smuzhiyun
306*4882a593Smuzhiyun	spi0_pins: spi0-pins {
307*4882a593Smuzhiyun		marvell,pins = "mpp36", "mpp37",
308*4882a593Smuzhiyun			       "mpp38", "mpp39";
309*4882a593Smuzhiyun		marvell,function = "spi0";
310*4882a593Smuzhiyun	};
311*4882a593Smuzhiyun
312*4882a593Smuzhiyun	uart2_pins: uart2-pins {
313*4882a593Smuzhiyun		marvell,pins = "mpp42", "mpp43";
314*4882a593Smuzhiyun		marvell,function = "uart2";
315*4882a593Smuzhiyun	};
316*4882a593Smuzhiyun
317*4882a593Smuzhiyun	uart3_pins: uart3-pins {
318*4882a593Smuzhiyun		marvell,pins = "mpp44", "mpp45";
319*4882a593Smuzhiyun		marvell,function = "uart3";
320*4882a593Smuzhiyun	};
321*4882a593Smuzhiyun};
322