blob: 975ae64ead9e64a81011c54d5e4ff91ee2eb75c5 [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree Include file for Marvell Armada XP family SoC
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Lior Amsalem <alior@marvell.com>
7 * Gregory CLEMENT <gregory.clement@free-electrons.com>
8 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 * Ben Dooks <ben.dooks@codethink.co.uk>
10 *
Gregory CLEMENTee2ff962015-01-26 15:16:02 +010011 * This file is dual-licensed: you can use it either under the terms
12 * of the GPL or the X11 license, at your option. Note that this dual
13 * licensing only applies to this file, and not this project as a
14 * whole.
15 *
16 * a) This file is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License as
18 * published by the Free Software Foundation; either version 2 of the
19 * License, or (at your option) any later version.
20 *
21 * This file is distributed in the hope that it will be useful
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * Or, alternatively
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020048 *
Thomas Petazzoni10b683c2012-08-02 17:13:47 +020049 * Contains definitions specific to the Armada XP SoC that are not
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020050 * common to all Armada SoCs.
51 */
52
Ezequiel Garcia38149882013-07-26 10:17:56 -030053#include "armada-370-xp.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020054
55/ {
56 model = "Marvell Armada XP family SoC";
57 compatible = "marvell,armadaxp", "marvell,armada-370-xp";
58
Willy Tarreaube5a9382013-06-03 18:47:36 +020059 aliases {
Willy Tarreaube5a9382013-06-03 18:47:36 +020060 };
61
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020062 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030063 compatible = "marvell,armadaxp-mbus", "simple-bus";
64
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030065 bootrom {
66 compatible = "marvell,bootrom";
67 reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
68 };
69
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020070 internal-regs {
Thomas Petazzoni6e6db2b2014-11-21 17:00:13 +010071 sdramc@1400 {
72 compatible = "marvell,armada-xp-sdram-controller";
73 reg = <0x1400 0x500>;
74 };
75
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020076 L2: l2-cache {
77 compatible = "marvell,aurora-system-cache";
78 reg = <0x08000 0x1000>;
79 cache-id-part = <0x100>;
Gregory CLEMENTa9ce1af2014-10-06 11:37:56 +020080 cache-unified;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020081 wt-override;
82 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +020083
Arnaud Ebalard547c6532014-11-22 00:46:39 +010084 spi0: spi@10600 {
85 pinctrl-0 = <&spi0_pins>;
86 pinctrl-names = "default";
87 };
88
Jason Coopera095b1c2013-12-12 13:59:17 +000089 i2c0: i2c@11000 {
90 compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
91 reg = <0x11000 0x100>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020092 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +020093
Jason Coopera095b1c2013-12-12 13:59:17 +000094 i2c1: i2c@11100 {
95 compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
96 reg = <0x11100 0x100>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020097 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +020098
Arnaud Ebalard181d9b22014-11-22 00:45:35 +010099 uart2: serial@12200 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100100 compatible = "snps,dw-apb-uart";
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100101 pinctrl-0 = <&uart2_pins>;
102 pinctrl-names = "default";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200103 reg = <0x12200 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200104 reg-shift = <2>;
105 interrupts = <43>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100106 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200107 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200108 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200109 };
Arnaud Ebalard181d9b22014-11-22 00:45:35 +0100110
111 uart3: serial@12300 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100112 compatible = "snps,dw-apb-uart";
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100113 pinctrl-0 = <&uart3_pins>;
114 pinctrl-names = "default";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200115 reg = <0x12300 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200116 reg-shift = <2>;
117 interrupts = <44>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100118 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200119 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200120 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200121 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200122
Jason Coopera095b1c2013-12-12 13:59:17 +0000123 system-controller@18200 {
124 compatible = "marvell,armada-370-xp-system-controller";
125 reg = <0x18200 0x500>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200126 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +0100127
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200128 gateclk: clock-gating-control@18220 {
129 compatible = "marvell,armada-xp-gating-clock";
130 reg = <0x18220 0x4>;
131 clocks = <&coreclk 0>;
132 #clock-cells = <1>;
133 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +0100134
Jason Coopera095b1c2013-12-12 13:59:17 +0000135 coreclk: mvebu-sar@18230 {
136 compatible = "marvell,armada-xp-core-clock";
137 reg = <0x18230 0x08>;
138 #clock-cells = <1>;
139 };
140
141 thermal@182b0 {
142 compatible = "marvell,armadaxp-thermal";
143 reg = <0x182b0 0x4
144 0x184d0 0x4>;
145 status = "okay";
146 };
147
148 cpuclk: clock-complex@18700 {
149 #clock-cells = <1>;
150 compatible = "marvell,armada-xp-cpu-clock";
Thomas Petazzoni38436072014-07-09 17:45:12 +0200151 reg = <0x18700 0xA0>, <0x1c054 0x10>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000152 clocks = <&coreclk 1>;
153 };
154
155 interrupt-controller@20000 {
156 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
157 };
158
159 timer@20300 {
160 compatible = "marvell,armada-xp-timer";
161 clocks = <&coreclk 2>, <&refclk>;
162 clock-names = "nbclk", "fixed";
163 };
164
Ezequiel Garcia05afeeb2014-02-10 20:00:32 -0300165 watchdog@20300 {
166 compatible = "marvell,armada-xp-wdt";
167 clocks = <&coreclk 2>, <&refclk>;
168 clock-names = "nbclk", "fixed";
169 };
170
Gregory CLEMENTb6249d42014-04-14 15:50:32 +0200171 cpurst@20800 {
172 compatible = "marvell,armada-370-cpu-reset";
173 reg = <0x20800 0x20>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200174 };
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200175
Willy Tarreaube5a9382013-06-03 18:47:36 +0200176 eth2: ethernet@30000 {
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200177 compatible = "marvell,armada-370-neta";
Thomas Petazzonicf8088c2013-05-21 12:33:27 +0200178 reg = <0x30000 0x4000>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200179 interrupts = <12>;
Thomas Petazzoni4aa935a2012-11-19 14:18:09 +0100180 clocks = <&gateclk 2>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200181 status = "disabled";
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100182 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200183
Jason Coopera095b1c2013-12-12 13:59:17 +0000184 usb@50000 {
185 clocks = <&gateclk 18>;
186 };
187
188 usb@51000 {
189 clocks = <&gateclk 19>;
190 };
191
192 usb@52000 {
193 compatible = "marvell,orion-ehci";
194 reg = <0x52000 0x500>;
195 interrupts = <47>;
196 clocks = <&gateclk 20>;
197 status = "disabled";
198 };
199
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200200 xor@60900 {
201 compatible = "marvell,orion-xor";
202 reg = <0x60900 0x100
203 0x60b00 0x100>;
204 clocks = <&gateclk 22>;
205 status = "okay";
206
207 xor10 {
208 interrupts = <51>;
209 dmacap,memcpy;
210 dmacap,xor;
211 };
212 xor11 {
213 interrupts = <52>;
214 dmacap,memcpy;
215 dmacap,xor;
216 dmacap,memset;
217 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100218 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100219
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200220 xor@f0900 {
221 compatible = "marvell,orion-xor";
222 reg = <0xF0900 0x100
223 0xF0B00 0x100>;
224 clocks = <&gateclk 28>;
225 status = "okay";
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100226
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200227 xor00 {
228 interrupts = <94>;
229 dmacap,memcpy;
230 dmacap,xor;
231 };
232 xor01 {
233 interrupts = <95>;
234 dmacap,memcpy;
235 dmacap,xor;
236 dmacap,memset;
237 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100238 };
Ezequiel Garcia693a56e2013-03-26 07:16:26 -0300239 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200240 };
Ezequiel Garciac1bbd432013-08-20 12:45:50 -0300241
242 clocks {
243 /* 25 MHz reference crystal */
244 refclk: oscillator {
245 compatible = "fixed-clock";
246 #clock-cells = <0>;
247 clock-frequency = <25000000>;
248 };
249 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200250};
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100251
252&pinctrl {
Arnaud Ebalard70ee4e92014-11-22 17:23:30 +0100253 ge0_gmii_pins: ge0-gmii-pins {
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100254 marvell,pins =
255 "mpp0", "mpp1", "mpp2", "mpp3",
256 "mpp4", "mpp5", "mpp6", "mpp7",
257 "mpp8", "mpp9", "mpp10", "mpp11",
258 "mpp12", "mpp13", "mpp14", "mpp15",
259 "mpp16", "mpp17", "mpp18", "mpp19",
260 "mpp20", "mpp21", "mpp22", "mpp23";
261 marvell,function = "ge0";
262 };
263
Arnaud Ebalard70ee4e92014-11-22 17:23:30 +0100264 ge0_rgmii_pins: ge0-rgmii-pins {
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100265 marvell,pins =
266 "mpp0", "mpp1", "mpp2", "mpp3",
267 "mpp4", "mpp5", "mpp6", "mpp7",
268 "mpp8", "mpp9", "mpp10", "mpp11";
269 marvell,function = "ge0";
270 };
271
Arnaud Ebalard70ee4e92014-11-22 17:23:30 +0100272 ge1_rgmii_pins: ge1-rgmii-pins {
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100273 marvell,pins =
274 "mpp12", "mpp13", "mpp14", "mpp15",
275 "mpp16", "mpp17", "mpp18", "mpp19",
276 "mpp20", "mpp21", "mpp22", "mpp23";
277 marvell,function = "ge1";
278 };
279
280 sdio_pins: sdio-pins {
281 marvell,pins = "mpp30", "mpp31", "mpp32",
282 "mpp33", "mpp34", "mpp35";
283 marvell,function = "sd0";
284 };
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100285
Arnaud Ebalard547c6532014-11-22 00:46:39 +0100286 spi0_pins: spi0-pins {
287 marvell,pins = "mpp36", "mpp37",
288 "mpp38", "mpp39";
289 marvell,function = "spi";
290 };
291
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100292 uart2_pins: uart2-pins {
293 marvell,pins = "mpp42", "mpp43";
294 marvell,function = "uart2";
295 };
296
297 uart3_pins: uart3-pins {
298 marvell,pins = "mpp44", "mpp45";
299 marvell,function = "uart3";
300 };
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100301};