blob: e134d7a90c9ab9a5d24bfb500ed9206875f8f033 [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree Include file for Marvell Armada 370 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 *
10 * This file is licensed under the terms of the GNU General Public
11 * License version 2. This program is licensed "as is" without any
12 * warranty of any kind, whether express or implied.
13 *
14 * Contains definitions specific to the Armada 370 SoC that are not
15 * common to all Armada SoCs.
16 */
17
Ezequiel Garcia38149882013-07-26 10:17:56 -030018#include "armada-370-xp.dtsi"
Gregory CLEMENT74898362013-04-12 16:29:10 +020019/include/ "skeleton.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020020
21/ {
22 model = "Marvell Armada 370 family SoC";
23 compatible = "marvell,armada370", "marvell,armada-370-xp";
24
Thomas Petazzoni397d59f2012-09-19 22:53:01 +020025 aliases {
26 gpio0 = &gpio0;
27 gpio1 = &gpio1;
28 gpio2 = &gpio2;
29 };
30
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020031 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030032 compatible = "marvell,armada370-mbus", "simple-bus";
33
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030034 bootrom {
35 compatible = "marvell,bootrom";
36 reg = <MBUS_ID(0x01, 0xe0) 0 0x100000>;
37 };
38
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030039 pcie-controller {
40 compatible = "marvell,armada-370-pcie";
41 status = "disabled";
42 device_type = "pci";
43
44 #address-cells = <3>;
45 #size-cells = <2>;
46
47 bus-range = <0x00 0xff>;
48
49 ranges =
50 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
51 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
52 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
53 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
54 0x82000000 0x2 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
55 0x81000000 0x2 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
56
57 pcie@1,0 {
58 device_type = "pci";
59 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
60 reg = <0x0800 0 0 0 0>;
61 #address-cells = <3>;
62 #size-cells = <2>;
63 #interrupt-cells = <1>;
64 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
65 0x81000000 0 0 0x81000000 0x1 0 1 0>;
66 interrupt-map-mask = <0 0 0 0>;
67 interrupt-map = <0 0 0 0 &mpic 58>;
68 marvell,pcie-port = <0>;
69 marvell,pcie-lane = <0>;
70 clocks = <&gateclk 5>;
71 status = "disabled";
72 };
73
74 pcie@2,0 {
75 device_type = "pci";
76 assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
77 reg = <0x1000 0 0 0 0>;
78 #address-cells = <3>;
79 #size-cells = <2>;
80 #interrupt-cells = <1>;
81 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
82 0x81000000 0 0 0x81000000 0x2 0 1 0>;
83 interrupt-map-mask = <0 0 0 0>;
84 interrupt-map = <0 0 0 0 &mpic 62>;
85 marvell,pcie-port = <1>;
86 marvell,pcie-lane = <0>;
87 clocks = <&gateclk 9>;
88 status = "disabled";
89 };
90 };
91
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020092 internal-regs {
93 system-controller@18200 {
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020094 compatible = "marvell,armada-370-xp-system-controller";
Gregory CLEMENT82a68262013-04-12 16:29:08 +020095 reg = <0x18200 0x100>;
Thomas Petazzonifa1b21d2012-12-21 15:49:05 +010096 };
97
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020098 L2: l2-cache {
99 compatible = "marvell,aurora-outer-cache";
Gregory CLEMENT489e1382013-05-20 16:13:27 +0200100 reg = <0x08000 0x1000>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200101 cache-id-part = <0x100>;
102 wt-override;
Thomas Petazzonifa1b21d2012-12-21 15:49:05 +0100103 };
Ryan Press879d68a2013-03-26 16:32:31 -0700104
Thomas Petazzonibe3cd262013-04-09 23:26:18 +0200105 interrupt-controller@20000 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200106 reg = <0x20a00 0x1d0>, <0x21870 0x58>;
Ryan Press879d68a2013-03-26 16:32:31 -0700107 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200108
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200109 pinctrl {
110 compatible = "marvell,mv88f6710-pinctrl";
111 reg = <0x18000 0x38>;
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200112
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200113 sdio_pins1: sdio-pins1 {
114 marvell,pins = "mpp9", "mpp11", "mpp12",
115 "mpp13", "mpp14", "mpp15";
116 marvell,function = "sd0";
117 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200118
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200119 sdio_pins2: sdio-pins2 {
120 marvell,pins = "mpp47", "mpp48", "mpp49",
121 "mpp50", "mpp51", "mpp52";
122 marvell,function = "sd0";
123 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +0100124
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200125 sdio_pins3: sdio-pins3 {
126 marvell,pins = "mpp48", "mpp49", "mpp50",
127 "mpp51", "mpp52", "mpp53";
128 marvell,function = "sd0";
129 };
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100130 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200131
132 gpio0: gpio@18100 {
133 compatible = "marvell,orion-gpio";
134 reg = <0x18100 0x40>;
135 ngpios = <32>;
136 gpio-controller;
137 #gpio-cells = <2>;
138 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200139 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200140 interrupts = <82>, <83>, <84>, <85>;
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100141 };
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100142
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200143 gpio1: gpio@18140 {
144 compatible = "marvell,orion-gpio";
145 reg = <0x18140 0x40>;
146 ngpios = <32>;
147 gpio-controller;
148 #gpio-cells = <2>;
149 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200150 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200151 interrupts = <87>, <88>, <89>, <90>;
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100152 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200153
154 gpio2: gpio@18180 {
155 compatible = "marvell,orion-gpio";
156 reg = <0x18180 0x40>;
157 ngpios = <2>;
158 gpio-controller;
159 #gpio-cells = <2>;
160 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200161 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200162 interrupts = <91>;
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100163 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300164
Ezequiel Garcia5d3b8832013-08-13 11:43:15 -0300165 timer@20300 {
166 compatible = "marvell,armada-370-timer";
167 clocks = <&coreclk 2>;
168 };
169
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200170 coreclk: mvebu-sar@18230 {
171 compatible = "marvell,armada-370-core-clock";
172 reg = <0x18230 0x08>;
173 #clock-cells = <1>;
174 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300175
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200176 gateclk: clock-gating-control@18220 {
177 compatible = "marvell,armada-370-gating-clock";
178 reg = <0x18220 0x4>;
179 clocks = <&coreclk 0>;
180 #clock-cells = <1>;
181 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300182
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200183 xor@60800 {
184 compatible = "marvell,orion-xor";
185 reg = <0x60800 0x100
186 0x60A00 0x100>;
187 status = "okay";
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200188
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200189 xor00 {
190 interrupts = <51>;
191 dmacap,memcpy;
192 dmacap,xor;
193 };
194 xor01 {
195 interrupts = <52>;
196 dmacap,memcpy;
197 dmacap,xor;
198 dmacap,memset;
199 };
200 };
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200201
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200202 xor@60900 {
203 compatible = "marvell,orion-xor";
204 reg = <0x60900 0x100
205 0x60b00 0x100>;
206 status = "okay";
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200207
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200208 xor10 {
209 interrupts = <94>;
210 dmacap,memcpy;
211 dmacap,xor;
212 };
213 xor11 {
214 interrupts = <95>;
215 dmacap,memcpy;
216 dmacap,xor;
217 dmacap,memset;
218 };
219 };
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200220
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200221 usb@50000 {
222 clocks = <&coreclk 0>;
223 };
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200224
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200225 usb@51000 {
226 clocks = <&coreclk 0>;
227 };
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200228
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200229 thermal@18300 {
230 compatible = "marvell,armada370-thermal";
231 reg = <0x18300 0x4
232 0x18304 0x4>;
233 status = "okay";
234 };
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200235 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200236 };
237};