blob: 00ff549d4e391798ab119dc85b165db05d1b93d1 [file] [log] [blame]
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +01001/*
2 * Device Tree Include file for Marvell Armada 38x family of SoCs.
3 *
4 * Copyright (C) 2014 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 *
Gregory CLEMENT76744322015-01-26 15:15:59 +010010 * This file is dual-licensed: you can use it either under the terms
11 * of the GPL or the X11 license, at your option. Note that this dual
12 * licensing only applies to this file, and not this project as a
13 * whole.
14 *
15 * a) This file is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of the
18 * License, or (at your option) any later version.
19 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010020 * This file is distributed in the hope that it will be useful,
Gregory CLEMENT76744322015-01-26 15:15:59 +010021 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010025 * Or, alternatively,
Gregory CLEMENT76744322015-01-26 15:15:59 +010026 *
27 * b) Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010030 * restriction, including without limitation the rights to use,
Gregory CLEMENT76744322015-01-26 15:15:59 +010031 * copy, modify, merge, publish, distribute, sublicense, and/or
32 * sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following
34 * conditions:
35 *
36 * The above copyright notice and this permission notice shall be
37 * included in all copies or substantial portions of the Software.
38 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010039 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Gregory CLEMENT76744322015-01-26 15:15:59 +010040 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010043 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
Gregory CLEMENT76744322015-01-26 15:15:59 +010044 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 * OTHER DEALINGS IN THE SOFTWARE.
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010047 */
48
49#include "skeleton.dtsi"
Thomas Petazzonif327d432014-02-20 12:11:30 +010050#include <dt-bindings/interrupt-controller/arm-gic.h>
Thomas Petazzonid11548e2014-02-20 12:11:31 +010051#include <dt-bindings/interrupt-controller/irq.h>
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010052
53#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
54
55/ {
56 model = "Marvell Armada 38x family SoC";
Gregory CLEMENT8dbdb8e2014-06-23 16:16:51 +020057 compatible = "marvell,armada380";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010058
59 aliases {
60 gpio0 = &gpio0;
61 gpio1 = &gpio1;
Thomas Petazzonibf6acf12015-03-03 15:41:01 +010062 serial0 = &uart0;
63 serial1 = &uart1;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010064 };
65
Ezequiel Garcia754c4b12015-03-03 11:43:19 +010066 pmu {
67 compatible = "arm,cortex-a9-pmu";
68 interrupts-extended = <&mpic 3>;
69 };
70
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010071 soc {
Thomas Petazzonia9e274c2014-12-30 13:43:44 +010072 compatible = "marvell,armada380-mbus", "simple-bus";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010073 #address-cells = <2>;
74 #size-cells = <1>;
75 controller = <&mbusc>;
76 interrupt-parent = <&gic>;
77 pcie-mem-aperture = <0xe0000000 0x8000000>;
78 pcie-io-aperture = <0xe8000000 0x100000>;
79
80 bootrom {
81 compatible = "marvell,bootrom";
82 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
83 };
84
Chris Packhama126de72017-02-01 22:02:59 +130085 devbus_bootcs: devbus-bootcs {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010086 compatible = "marvell,mvebu-devbus";
87 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
88 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
89 #address-cells = <1>;
90 #size-cells = <1>;
91 clocks = <&coreclk 0>;
92 status = "disabled";
93 };
94
Chris Packhama126de72017-02-01 22:02:59 +130095 devbus_cs0: devbus-cs0 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +010096 compatible = "marvell,mvebu-devbus";
97 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
98 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
99 #address-cells = <1>;
100 #size-cells = <1>;
101 clocks = <&coreclk 0>;
102 status = "disabled";
103 };
104
Chris Packhama126de72017-02-01 22:02:59 +1300105 devbus_cs1: devbus-cs1 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100106 compatible = "marvell,mvebu-devbus";
107 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
108 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
109 #address-cells = <1>;
110 #size-cells = <1>;
111 clocks = <&coreclk 0>;
112 status = "disabled";
113 };
114
Chris Packhama126de72017-02-01 22:02:59 +1300115 devbus_cs2: devbus-cs2 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100116 compatible = "marvell,mvebu-devbus";
117 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
118 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
119 #address-cells = <1>;
120 #size-cells = <1>;
121 clocks = <&coreclk 0>;
122 status = "disabled";
123 };
124
Chris Packhama126de72017-02-01 22:02:59 +1300125 devbus_cs3: devbus-cs3 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100126 compatible = "marvell,mvebu-devbus";
127 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
128 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
129 #address-cells = <1>;
130 #size-cells = <1>;
131 clocks = <&coreclk 0>;
132 status = "disabled";
133 };
134
135 internal-regs {
136 compatible = "simple-bus";
137 #address-cells = <1>;
138 #size-cells = <1>;
139 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
140
141 L2: cache-controller@8000 {
142 compatible = "arm,pl310-cache";
143 reg = <0x8000 0x1000>;
144 cache-unified;
145 cache-level = <2>;
Yan Markmancda80a82016-10-16 00:22:32 +0300146 arm,double-linefill-incr = <0>;
Thomas Petazzonic8f5a872015-06-11 13:51:12 +0200147 arm,double-linefill-wrap = <0>;
Yan Markmancda80a82016-10-16 00:22:32 +0300148 arm,double-linefill = <0>;
Thomas Petazzonic8f5a872015-06-11 13:51:12 +0200149 prefetch-data = <1>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100150 };
151
Thomas Petazzoni964a6152014-04-14 15:47:08 +0200152 scu@c000 {
153 compatible = "arm,cortex-a9-scu";
154 reg = <0xc000 0x58>;
155 };
156
Marcin Wojtas0f015012017-08-01 18:36:23 +0200157 timer@c200 {
158 compatible = "arm,cortex-a9-global-timer";
159 reg = <0xc200 0x20>;
160 interrupts = <GIC_PPI 11 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
161 clocks = <&coreclk 2>;
162 };
163
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100164 timer@c600 {
165 compatible = "arm,cortex-a9-twd-timer";
166 reg = <0xc600 0x20>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100167 interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100168 clocks = <&coreclk 2>;
169 };
170
171 gic: interrupt-controller@d000 {
172 compatible = "arm,cortex-a9-gic";
173 #interrupt-cells = <3>;
174 #size-cells = <0>;
175 interrupt-controller;
176 reg = <0xd000 0x1000>,
177 <0xc100 0x100>;
178 };
179
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100180 i2c0: i2c@11000 {
Kalyan Kinthadafbffee72017-09-29 10:36:04 +1300181 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100182 reg = <0x11000 0x20>;
183 #address-cells = <1>;
184 #size-cells = <0>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100185 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100186 timeout-ms = <1000>;
187 clocks = <&coreclk 0>;
188 status = "disabled";
189 };
190
191 i2c1: i2c@11100 {
Kalyan Kinthadafbffee72017-09-29 10:36:04 +1300192 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100193 reg = <0x11100 0x20>;
194 #address-cells = <1>;
195 #size-cells = <0>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100196 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100197 timeout-ms = <1000>;
198 clocks = <&coreclk 0>;
199 status = "disabled";
200 };
201
Gregory CLEMENT10c5c472015-01-08 18:38:11 +0100202 uart0: serial@12000 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100203 compatible = "snps,dw-apb-uart";
204 reg = <0x12000 0x100>;
205 reg-shift = <2>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100206 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100207 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200208 clocks = <&coreclk 0>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100209 status = "disabled";
210 };
211
Thomas Petazzoni8a48dcc2015-03-03 15:40:58 +0100212 uart1: serial@12100 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100213 compatible = "snps,dw-apb-uart";
214 reg = <0x12100 0x100>;
215 reg-shift = <2>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100216 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100217 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200218 clocks = <&coreclk 0>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100219 status = "disabled";
220 };
221
Gregory CLEMENT10c5c472015-01-08 18:38:11 +0100222 pinctrl: pinctrl@18000 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100223 reg = <0x18000 0x20>;
Maxime Ripard91b4c912015-01-08 18:38:08 +0100224
225 ge0_rgmii_pins: ge-rgmii-pins-0 {
226 marvell,pins = "mpp6", "mpp7", "mpp8",
227 "mpp9", "mpp10", "mpp11",
228 "mpp12", "mpp13", "mpp14",
229 "mpp15", "mpp16", "mpp17";
230 marvell,function = "ge0";
231 };
232
Gregory CLEMENT34598502015-01-08 18:38:10 +0100233 ge1_rgmii_pins: ge-rgmii-pins-1 {
234 marvell,pins = "mpp21", "mpp27", "mpp28",
235 "mpp29", "mpp30", "mpp31",
236 "mpp32", "mpp37", "mpp38",
237 "mpp39", "mpp40", "mpp41";
238 marvell,function = "ge1";
239 };
240
Maxime Ripard91b4c912015-01-08 18:38:08 +0100241 i2c0_pins: i2c-pins-0 {
242 marvell,pins = "mpp2", "mpp3";
243 marvell,function = "i2c0";
244 };
245
246 mdio_pins: mdio-pins {
247 marvell,pins = "mpp4", "mpp5";
248 marvell,function = "ge";
249 };
250
251 ref_clk0_pins: ref-clk-pins-0 {
252 marvell,pins = "mpp45";
253 marvell,function = "ref";
254 };
255
Gregory CLEMENT34598502015-01-08 18:38:10 +0100256 ref_clk1_pins: ref-clk-pins-1 {
257 marvell,pins = "mpp46";
258 marvell,function = "ref";
259 };
260
261 spi0_pins: spi-pins-0 {
262 marvell,pins = "mpp22", "mpp23", "mpp24",
263 "mpp25";
264 marvell,function = "spi0";
265 };
266
Maxime Ripard91b4c912015-01-08 18:38:08 +0100267 spi1_pins: spi-pins-1 {
268 marvell,pins = "mpp56", "mpp57", "mpp58",
269 "mpp59";
270 marvell,function = "spi1";
271 };
272
Chris Packham4c0437d2016-08-24 11:21:15 +1200273 nand_pins: nand-pins {
274 marvell,pins = "mpp22", "mpp34", "mpp23",
275 "mpp33", "mpp38", "mpp28",
276 "mpp40", "mpp42", "mpp35",
277 "mpp36", "mpp25", "mpp30",
278 "mpp32";
279 marvell,function = "dev";
280 };
281
Maxime Ripard91b4c912015-01-08 18:38:08 +0100282 uart0_pins: uart-pins-0 {
283 marvell,pins = "mpp0", "mpp1";
284 marvell,function = "ua0";
285 };
286
287 uart1_pins: uart-pins-1 {
288 marvell,pins = "mpp19", "mpp20";
289 marvell,function = "ua1";
290 };
Gregory CLEMENT34598502015-01-08 18:38:10 +0100291
292 sdhci_pins: sdhci-pins {
293 marvell,pins = "mpp48", "mpp49", "mpp50",
294 "mpp52", "mpp53", "mpp54",
295 "mpp55", "mpp57", "mpp58",
296 "mpp59";
297 marvell,function = "sd0";
298 };
299
300 sata0_pins: sata-pins-0 {
301 marvell,pins = "mpp20";
302 marvell,function = "sata0";
303 };
304
305 sata1_pins: sata-pins-1 {
306 marvell,pins = "mpp19";
307 marvell,function = "sata1";
308 };
309
310 sata2_pins: sata-pins-2 {
311 marvell,pins = "mpp47";
312 marvell,function = "sata2";
313 };
314
315 sata3_pins: sata-pins-3 {
316 marvell,pins = "mpp44";
317 marvell,function = "sata3";
318 };
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100319 };
320
321 gpio0: gpio@18100 {
Ralph Sennhauser7cb2acb2017-06-01 22:10:30 +0200322 compatible = "marvell,armada-370-gpio",
323 "marvell,orion-gpio";
324 reg = <0x18100 0x40>, <0x181c0 0x08>;
325 reg-names = "gpio", "pwm";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100326 ngpios = <32>;
327 gpio-controller;
328 #gpio-cells = <2>;
Ralph Sennhauser7cb2acb2017-06-01 22:10:30 +0200329 #pwm-cells = <2>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100330 interrupt-controller;
331 #interrupt-cells = <2>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100332 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
333 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
334 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
335 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Ralph Sennhauser7cb2acb2017-06-01 22:10:30 +0200336 clocks = <&coreclk 0>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100337 };
338
339 gpio1: gpio@18140 {
Ralph Sennhauser7cb2acb2017-06-01 22:10:30 +0200340 compatible = "marvell,armada-370-gpio",
341 "marvell,orion-gpio";
342 reg = <0x18140 0x40>, <0x181c8 0x08>;
343 reg-names = "gpio", "pwm";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100344 ngpios = <28>;
345 gpio-controller;
346 #gpio-cells = <2>;
Ralph Sennhauser7cb2acb2017-06-01 22:10:30 +0200347 #pwm-cells = <2>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100348 interrupt-controller;
349 #interrupt-cells = <2>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100350 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
351 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
352 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
353 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Ralph Sennhauser7cb2acb2017-06-01 22:10:30 +0200354 clocks = <&coreclk 0>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100355 };
356
Chris Packhama126de72017-02-01 22:02:59 +1300357 systemc: system-controller@18200 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100358 compatible = "marvell,armada-380-system-controller",
359 "marvell,armada-370-xp-system-controller";
360 reg = <0x18200 0x100>;
361 };
362
363 gateclk: clock-gating-control@18220 {
364 compatible = "marvell,armada-380-gating-clock";
365 reg = <0x18220 0x4>;
366 clocks = <&coreclk 0>;
367 #clock-cells = <1>;
368 };
369
370 coreclk: mvebu-sar@18600 {
371 compatible = "marvell,armada-380-core-clock";
372 reg = <0x18600 0x04>;
373 #clock-cells = <1>;
374 };
375
376 mbusc: mbus-controller@20000 {
377 compatible = "marvell,mbus-controller";
Gregory CLEMENTb69f4692017-02-16 17:29:28 +0100378 reg = <0x20000 0x100>, <0x20180 0x20>,
379 <0x20250 0x8>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100380 };
381
Maxime Ripard1d7b0832015-02-26 10:51:17 +0100382 mpic: interrupt-controller@20a00 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100383 compatible = "marvell,mpic";
384 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
385 #interrupt-cells = <1>;
386 #size-cells = <1>;
387 interrupt-controller;
388 msi-controller;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100389 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100390 };
391
Chris Packhama126de72017-02-01 22:02:59 +1300392 timer: timer@20300 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100393 compatible = "marvell,armada-380-timer",
394 "marvell,armada-xp-timer";
395 reg = <0x20300 0x30>, <0x21040 0x30>;
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100396 interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
397 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
398 <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
399 <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100400 <&mpic 5>,
401 <&mpic 6>;
402 clocks = <&coreclk 2>, <&refclk>;
403 clock-names = "nbclk", "fixed";
404 };
405
Chris Packhama126de72017-02-01 22:02:59 +1300406 watchdog: watchdog@20300 {
Ezequiel Garcia153a9642014-04-14 10:23:32 -0300407 compatible = "marvell,armada-380-wdt";
408 reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>;
409 clocks = <&coreclk 2>, <&refclk>;
410 clock-names = "nbclk", "fixed";
411 };
412
Chris Packhama126de72017-02-01 22:02:59 +1300413 cpurst: cpurst@20800 {
Thomas Petazzoni19b06d72014-04-14 15:54:08 +0200414 compatible = "marvell,armada-370-cpu-reset";
415 reg = <0x20800 0x10>;
416 };
417
Gregory CLEMENTd7f3ec22014-07-09 15:40:14 +0200418 mpcore-soc-ctrl@20d20 {
419 compatible = "marvell,armada-380-mpcore-soc-ctrl";
420 reg = <0x20d20 0x6c>;
421 };
422
Chris Packhama126de72017-02-01 22:02:59 +1300423 coherencyfab: coherency-fabric@21010 {
Thomas Petazzoni964a6152014-04-14 15:47:08 +0200424 compatible = "marvell,armada-380-coherency-fabric";
425 reg = <0x21010 0x1c>;
426 };
427
Chris Packhama126de72017-02-01 22:02:59 +1300428 pmsu: pmsu@22000 {
Thomas Petazzoni19b06d72014-04-14 15:54:08 +0200429 compatible = "marvell,armada-380-pmsu";
430 reg = <0x22000 0x1000>;
431 };
432
Thomas Petazzonicb4f71c2016-01-27 16:08:19 +0100433 /*
434 * As a special exception to the "order by
435 * register address" rule, the eth0 node is
436 * placed here to ensure that it gets
437 * registered as the first interface, since
438 * the network subsystem doesn't allow naming
439 * interfaces using DT aliases. Without this,
440 * the ordering of interfaces is different
441 * from the one used in U-Boot and the
442 * labeling of interfaces on the boards, which
443 * is very confusing for users.
444 */
445 eth0: ethernet@70000 {
446 compatible = "marvell,armada-370-neta";
447 reg = <0x70000 0x4000>;
448 interrupts-extended = <&mpic 8>;
449 clocks = <&gateclk 4>;
450 tx-csum-limit = <9800>;
451 status = "disabled";
452 };
453
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100454 eth1: ethernet@30000 {
455 compatible = "marvell,armada-370-neta";
456 reg = <0x30000 0x4000>;
457 interrupts-extended = <&mpic 10>;
458 clocks = <&gateclk 3>;
459 status = "disabled";
460 };
461
462 eth2: ethernet@34000 {
463 compatible = "marvell,armada-370-neta";
464 reg = <0x34000 0x4000>;
465 interrupts-extended = <&mpic 12>;
466 clocks = <&gateclk 2>;
467 status = "disabled";
468 };
469
Chris Packhama126de72017-02-01 22:02:59 +1300470 usb0: usb@58000 {
Gregory CLEMENT9e817752014-05-15 12:17:40 +0200471 compatible = "marvell,orion-ehci";
472 reg = <0x58000 0x500>;
473 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
474 clocks = <&gateclk 18>;
475 status = "disabled";
476 };
477
Chris Packhama126de72017-02-01 22:02:59 +1300478 xor0: xor@60800 {
Thomas Petazzoni449e1d62015-06-17 14:12:21 +0200479 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100480 reg = <0x60800 0x100
481 0x60a00 0x100>;
482 clocks = <&gateclk 22>;
483 status = "okay";
484
485 xor00 {
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100486 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100487 dmacap,memcpy;
488 dmacap,xor;
489 };
490 xor01 {
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100491 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100492 dmacap,memcpy;
493 dmacap,xor;
494 dmacap,memset;
495 };
496 };
497
Chris Packhama126de72017-02-01 22:02:59 +1300498 xor1: xor@60900 {
Thomas Petazzoni449e1d62015-06-17 14:12:21 +0200499 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100500 reg = <0x60900 0x100
501 0x60b00 0x100>;
502 clocks = <&gateclk 28>;
503 status = "okay";
504
505 xor10 {
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100506 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100507 dmacap,memcpy;
508 dmacap,xor;
509 };
510 xor11 {
Thomas Petazzonid11548e2014-02-20 12:11:31 +0100511 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100512 dmacap,memcpy;
513 dmacap,xor;
514 dmacap,memset;
515 };
516 };
517
Imre Kaloz973ed082015-05-06 15:13:59 +0200518 mdio: mdio@72004 {
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100519 #address-cells = <1>;
520 #size-cells = <0>;
521 compatible = "marvell,orion-mdio";
522 reg = <0x72004 0x4>;
Thomas Petazzoni33faf202014-03-26 00:33:59 +0100523 clocks = <&gateclk 4>;
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100524 };
Ezequiel Garciad6bd4b42014-03-13 17:24:30 -0300525
Chris Packhama126de72017-02-01 22:02:59 +1300526 cesa: crypto@90000 {
Boris Brezillon35c99ec2015-08-18 10:08:58 +0200527 compatible = "marvell,armada-38x-crypto";
528 reg = <0x90000 0x10000>;
529 reg-names = "regs";
530 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
531 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
532 clocks = <&gateclk 23>, <&gateclk 21>,
533 <&gateclk 14>, <&gateclk 16>;
534 clock-names = "cesa0", "cesa1",
535 "cesaz0", "cesaz1";
536 marvell,crypto-srams = <&crypto_sram0>,
537 <&crypto_sram1>;
538 marvell,crypto-sram-size = <0x800>;
539 };
540
Chris Packhama126de72017-02-01 22:02:59 +1300541 rtc: rtc@a3800 {
Gregory CLEMENTa73c7302015-02-13 14:41:18 -0800542 compatible = "marvell,armada-380-rtc";
543 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
544 reg-names = "rtc", "rtc-soc";
545 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
546 };
547
Ralph Sennhauserf3d1f7592017-04-08 12:16:26 +0200548 ahci0: sata@a8000 {
Thomas Petazzonid175b6e2014-04-15 17:00:04 +0200549 compatible = "marvell,armada-380-ahci";
550 reg = <0xa8000 0x2000>;
551 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
552 clocks = <&gateclk 15>;
553 status = "disabled";
554 };
555
Marcin Wojtas4a547a52016-03-14 09:38:57 +0100556 bm: bm@c8000 {
557 compatible = "marvell,armada-380-neta-bm";
558 reg = <0xc8000 0xac>;
559 clocks = <&gateclk 13>;
560 internal-mem = <&bm_bppi>;
561 status = "disabled";
562 };
563
Ralph Sennhauserf3d1f7592017-04-08 12:16:26 +0200564 ahci1: sata@e0000 {
Thomas Petazzonid175b6e2014-04-15 17:00:04 +0200565 compatible = "marvell,armada-380-ahci";
566 reg = <0xe0000 0x2000>;
567 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
568 clocks = <&gateclk 30>;
569 status = "disabled";
570 };
571
Ezequiel Garciad6bd4b42014-03-13 17:24:30 -0300572 coredivclk: clock@e4250 {
573 compatible = "marvell,armada-380-corediv-clock";
574 reg = <0xe4250 0xc>;
575 #clock-cells = <1>;
576 clocks = <&mainpll>;
577 clock-output-names = "nand";
578 };
Ezequiel Garcia93b55772014-03-13 17:24:31 -0300579
Chris Packhama126de72017-02-01 22:02:59 +1300580 thermal: thermal@e8078 {
Ezequiel Garciac6308292014-04-24 17:23:24 -0300581 compatible = "marvell,armada380-thermal";
582 reg = <0xe4078 0x4>, <0xe4074 0x4>;
583 status = "okay";
584 };
585
Chris Packhama126de72017-02-01 22:02:59 +1300586 nand: flash@d0000 {
Ezequiel Garcia93b55772014-03-13 17:24:31 -0300587 compatible = "marvell,armada370-nand";
588 reg = <0xd0000 0x54>;
589 #address-cells = <1>;
590 #size-cells = <1>;
591 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
592 clocks = <&coredivclk 0>;
593 status = "disabled";
594 };
Thomas Petazzoni6eccc522014-04-14 16:41:16 +0200595
Chris Packhama126de72017-02-01 22:02:59 +1300596 sdhci: sdhci@d8000 {
Thomas Petazzoni6eccc522014-04-14 16:41:16 +0200597 compatible = "marvell,armada-380-sdhci";
Gregory CLEMENTddbdc572015-01-29 12:36:29 +0100598 reg-names = "sdhci", "mbus", "conf-sdio3";
599 reg = <0xd8000 0x1000>,
600 <0xdc000 0x100>,
601 <0x18454 0x4>;
Gregory CLEMENTb7572582015-01-29 12:36:28 +0100602 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
Thomas Petazzoni6eccc522014-04-14 16:41:16 +0200603 clocks = <&gateclk 17>;
604 mrvl,clk-delay-cycles = <0x1F>;
605 status = "disabled";
606 };
Gregory CLEMENT87e2fc32014-05-15 12:17:39 +0200607
Ralph Sennhauserf3d1f7592017-04-08 12:16:26 +0200608 usb3_0: usb3@f0000 {
Gregory CLEMENT87e2fc32014-05-15 12:17:39 +0200609 compatible = "marvell,armada-380-xhci";
610 reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
611 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
612 clocks = <&gateclk 9>;
613 status = "disabled";
614 };
615
Ralph Sennhauserf3d1f7592017-04-08 12:16:26 +0200616 usb3_1: usb3@f8000 {
Gregory CLEMENT87e2fc32014-05-15 12:17:39 +0200617 compatible = "marvell,armada-380-xhci";
618 reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
619 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
620 clocks = <&gateclk 10>;
621 status = "disabled";
622 };
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100623 };
Boris Brezillon35c99ec2015-08-18 10:08:58 +0200624
625 crypto_sram0: sa-sram0 {
626 compatible = "mmio-sram";
627 reg = <MBUS_ID(0x09, 0x19) 0 0x800>;
628 clocks = <&gateclk 23>;
629 #address-cells = <1>;
630 #size-cells = <1>;
631 ranges = <0 MBUS_ID(0x09, 0x19) 0 0x800>;
632 };
633
634 crypto_sram1: sa-sram1 {
635 compatible = "mmio-sram";
636 reg = <MBUS_ID(0x09, 0x15) 0 0x800>;
637 clocks = <&gateclk 21>;
638 #address-cells = <1>;
639 #size-cells = <1>;
640 ranges = <0 MBUS_ID(0x09, 0x15) 0 0x800>;
641 };
Marcin Wojtas4a547a52016-03-14 09:38:57 +0100642
643 bm_bppi: bm-bppi {
644 compatible = "mmio-sram";
645 reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
646 ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
647 #address-cells = <1>;
648 #size-cells = <1>;
649 clocks = <&gateclk 13>;
650 no-memory-wc;
651 status = "disabled";
652 };
Stefan Roese0160a4b2016-07-13 11:55:18 +0200653
654 spi0: spi@10600 {
655 compatible = "marvell,armada-380-spi",
656 "marvell,orion-spi";
657 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
658 #address-cells = <1>;
659 #size-cells = <0>;
660 cell-index = <0>;
661 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
662 clocks = <&coreclk 0>;
663 status = "disabled";
664 };
665
666 spi1: spi@10680 {
667 compatible = "marvell,armada-380-spi",
668 "marvell,orion-spi";
669 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
670 #address-cells = <1>;
671 #size-cells = <0>;
672 cell-index = <1>;
673 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
674 clocks = <&coreclk 0>;
675 status = "disabled";
676 };
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100677 };
678
679 clocks {
Chris Packhamad0de582016-10-26 12:52:42 +1300680 /* 1 GHz fixed main PLL */
Ezequiel Garcia5bc94c92014-03-13 17:24:29 -0300681 mainpll: mainpll {
682 compatible = "fixed-clock";
683 #clock-cells = <0>;
Gregory CLEMENTae142bd2015-04-27 08:55:18 +0200684 clock-frequency = <1000000000>;
Ezequiel Garcia5bc94c92014-03-13 17:24:29 -0300685 };
686
Thomas Petazzoni0d3d96a2014-02-17 15:23:28 +0100687 /* 25 MHz reference crystal */
688 refclk: oscillator {
689 compatible = "fixed-clock";
690 #clock-cells = <0>;
691 clock-frequency = <25000000>;
692 };
693 };
694};