blob: 3e9fd1353f895d6778972e95518850268ef6eb4e [file] [log] [blame]
Thomas Petazzonif3b42b72012-09-13 17:41:48 +02001/*
2 * Device Tree Include file for Marvell Armada XP family SoC
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 *
12 * Contains definitions specific to the Armada XP MV78260 SoC that are not
13 * common to all Armada XP SoCs.
14 */
15
Ezequiel Garcia38149882013-07-26 10:17:56 -030016#include "armada-xp.dtsi"
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020017
18/ {
19 model = "Marvell Armada XP MV78260 SoC";
20 compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
21
Thomas Petazzoni397d59f2012-09-19 22:53:01 +020022 aliases {
23 gpio0 = &gpio0;
24 gpio1 = &gpio1;
25 gpio2 = &gpio2;
26 };
27
Gregory CLEMENT9d202782012-11-17 15:22:24 +010028 cpus {
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020029 #address-cells = <1>;
30 #size-cells = <0>;
Gregory CLEMENT9d202782012-11-17 15:22:24 +010031
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020032 cpu@0 {
33 device_type = "cpu";
34 compatible = "marvell,sheeva-v7";
35 reg = <0>;
36 clocks = <&cpuclk 0>;
37 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010038
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020039 cpu@1 {
40 device_type = "cpu";
41 compatible = "marvell,sheeva-v7";
42 reg = <1>;
43 clocks = <&cpuclk 1>;
44 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010045 };
46
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020047 soc {
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030048 /*
49 * MV78260 has 3 PCIe units Gen2.0: Two units can be
50 * configured as x4 or quad x1 lanes. One unit is
51 * x4/x1.
52 */
53 pcie-controller {
54 compatible = "marvell,armada-xp-pcie";
55 status = "disabled";
56 device_type = "pci";
57
58 #address-cells = <3>;
59 #size-cells = <2>;
60
Thomas Petazzonid4fa9942013-08-09 22:27:15 +020061 msi-parent = <&mpic>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030062 bus-range = <0x00 0xff>;
63
64 ranges =
65 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
66 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
67 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
68 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
69 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
70 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
71 0x82000000 0 0x82000 MBUS_ID(0xf0, 0x01) 0x82000 0 0x00002000 /* Port 3.0 registers */
72 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
73 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
74 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
75 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
76 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
77 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
78 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
79 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
80 0x82000000 0x9 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
81 0x81000000 0x9 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
82 0x82000000 0xa 0 MBUS_ID(0x08, 0xf8) 0 1 0 /* Port 3.0 MEM */
83 0x81000000 0xa 0 MBUS_ID(0x08, 0xf0) 0 1 0 /* Port 3.0 IO */>;
84
85 pcie@1,0 {
86 device_type = "pci";
87 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
88 reg = <0x0800 0 0 0 0>;
89 #address-cells = <3>;
90 #size-cells = <2>;
91 #interrupt-cells = <1>;
92 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
93 0x81000000 0 0 0x81000000 0x1 0 1 0>;
94 interrupt-map-mask = <0 0 0 0>;
95 interrupt-map = <0 0 0 0 &mpic 58>;
96 marvell,pcie-port = <0>;
97 marvell,pcie-lane = <0>;
98 clocks = <&gateclk 5>;
99 status = "disabled";
100 };
101
102 pcie@2,0 {
103 device_type = "pci";
104 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
105 reg = <0x1000 0 0 0 0>;
106 #address-cells = <3>;
107 #size-cells = <2>;
108 #interrupt-cells = <1>;
109 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
110 0x81000000 0 0 0x81000000 0x2 0 1 0>;
111 interrupt-map-mask = <0 0 0 0>;
112 interrupt-map = <0 0 0 0 &mpic 59>;
113 marvell,pcie-port = <0>;
114 marvell,pcie-lane = <1>;
115 clocks = <&gateclk 6>;
116 status = "disabled";
117 };
118
119 pcie@3,0 {
120 device_type = "pci";
121 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
122 reg = <0x1800 0 0 0 0>;
123 #address-cells = <3>;
124 #size-cells = <2>;
125 #interrupt-cells = <1>;
126 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
127 0x81000000 0 0 0x81000000 0x3 0 1 0>;
128 interrupt-map-mask = <0 0 0 0>;
129 interrupt-map = <0 0 0 0 &mpic 60>;
130 marvell,pcie-port = <0>;
131 marvell,pcie-lane = <2>;
132 clocks = <&gateclk 7>;
133 status = "disabled";
134 };
135
136 pcie@4,0 {
137 device_type = "pci";
138 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
139 reg = <0x2000 0 0 0 0>;
140 #address-cells = <3>;
141 #size-cells = <2>;
142 #interrupt-cells = <1>;
143 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
144 0x81000000 0 0 0x81000000 0x4 0 1 0>;
145 interrupt-map-mask = <0 0 0 0>;
146 interrupt-map = <0 0 0 0 &mpic 61>;
147 marvell,pcie-port = <0>;
148 marvell,pcie-lane = <3>;
149 clocks = <&gateclk 8>;
150 status = "disabled";
151 };
152
153 pcie@9,0 {
154 device_type = "pci";
155 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
156 reg = <0x4800 0 0 0 0>;
157 #address-cells = <3>;
158 #size-cells = <2>;
159 #interrupt-cells = <1>;
160 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
161 0x81000000 0 0 0x81000000 0x9 0 1 0>;
162 interrupt-map-mask = <0 0 0 0>;
163 interrupt-map = <0 0 0 0 &mpic 99>;
164 marvell,pcie-port = <2>;
165 marvell,pcie-lane = <0>;
166 clocks = <&gateclk 26>;
167 status = "disabled";
168 };
169
170 pcie@10,0 {
171 device_type = "pci";
172 assigned-addresses = <0x82000800 0 0x82000 0 0x2000>;
173 reg = <0x5000 0 0 0 0>;
174 #address-cells = <3>;
175 #size-cells = <2>;
176 #interrupt-cells = <1>;
177 ranges = <0x82000000 0 0 0x82000000 0xa 0 1 0
178 0x81000000 0 0 0x81000000 0xa 0 1 0>;
179 interrupt-map-mask = <0 0 0 0>;
180 interrupt-map = <0 0 0 0 &mpic 103>;
181 marvell,pcie-port = <3>;
182 marvell,pcie-lane = <0>;
183 clocks = <&gateclk 27>;
184 status = "disabled";
185 };
186 };
187
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200188 internal-regs {
189 pinctrl {
190 compatible = "marvell,mv78260-pinctrl";
191 reg = <0x18000 0x38>;
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100192
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200193 sdio_pins: sdio-pins {
194 marvell,pins = "mpp30", "mpp31", "mpp32",
195 "mpp33", "mpp34", "mpp35";
196 marvell,function = "sd0";
197 };
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100198 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200199
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200200 gpio0: gpio@18100 {
201 compatible = "marvell,orion-gpio";
202 reg = <0x18100 0x40>;
203 ngpios = <32>;
204 gpio-controller;
205 #gpio-cells = <2>;
206 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200207 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200208 interrupts = <82>, <83>, <84>, <85>;
209 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200210
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200211 gpio1: gpio@18140 {
212 compatible = "marvell,orion-gpio";
213 reg = <0x18140 0x40>;
214 ngpios = <32>;
215 gpio-controller;
216 #gpio-cells = <2>;
217 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200218 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200219 interrupts = <87>, <88>, <89>, <90>;
220 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200221
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200222 gpio2: gpio@18180 {
223 compatible = "marvell,orion-gpio";
224 reg = <0x18180 0x40>;
225 ngpios = <3>;
226 gpio-controller;
227 #gpio-cells = <2>;
228 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200229 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200230 interrupts = <91>;
231 };
Thomas Petazzoni77916512013-01-06 11:10:41 +0100232
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200233 ethernet@34000 {
Thomas Petazzoni77916512013-01-06 11:10:41 +0100234 compatible = "marvell,armada-370-neta";
Ezequiel Garciacdd8e492013-06-22 13:52:27 -0300235 reg = <0x34000 0x4000>;
Thomas Petazzoni77916512013-01-06 11:10:41 +0100236 interrupts = <14>;
237 clocks = <&gateclk 1>;
238 status = "disabled";
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200239 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200240 };
Thomas Petazzonif3b42b72012-09-13 17:41:48 +0200241 };
242};