]>
Commit | Line | Data |
---|---|---|
728dacc7 TP |
1 | /* |
2 | * Copyright (C) 2016 Marvell Technology Group Ltd. | |
3 | * | |
4 | * This file is dual-licensed: you can use it either under the terms | |
5 | * of the GPLv2 or the X11 license, at your option. Note that this dual | |
6 | * licensing only applies to this file, and not this project as a | |
7 | * whole. | |
8 | * | |
9 | * a) This library is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU General Public License as | |
11 | * published by the Free Software Foundation; either version 2 of the | |
12 | * License, or (at your option) any later version. | |
13 | * | |
14 | * This library is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * Or, alternatively, | |
20 | * | |
21 | * b) Permission is hereby granted, free of charge, to any person | |
22 | * obtaining a copy of this software and associated documentation | |
23 | * files (the "Software"), to deal in the Software without | |
24 | * restriction, including without limitation the rights to use, | |
25 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
26 | * sell copies of the Software, and to permit persons to whom the | |
27 | * Software is furnished to do so, subject to the following | |
28 | * conditions: | |
29 | * | |
30 | * The above copyright notice and this permission notice shall be | |
31 | * included in all copies or substantial portions of the Software. | |
32 | * | |
33 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
34 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
35 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
36 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
37 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
38 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
39 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
40 | * OTHER DEALINGS IN THE SOFTWARE. | |
41 | */ | |
42 | ||
43 | /* | |
44 | * Device Tree file for Marvell Armada CP110 Master. | |
45 | */ | |
46 | ||
6ef84a82 TP |
47 | #define ICU_GRP_NSR 0x0 |
48 | ||
728dacc7 TP |
49 | / { |
50 | cp110-master { | |
51 | #address-cells = <2>; | |
52 | #size-cells = <2>; | |
53 | compatible = "simple-bus"; | |
6ef84a82 | 54 | interrupt-parent = <&cpm_icu>; |
728dacc7 TP |
55 | ranges; |
56 | ||
70347888 | 57 | config-space@f2000000 { |
728dacc7 TP |
58 | #address-cells = <1>; |
59 | #size-cells = <1>; | |
60 | compatible = "simple-bus"; | |
728dacc7 TP |
61 | ranges = <0x0 0x0 0xf2000000 0x2000000>; |
62 | ||
60894719 TP |
63 | cpm_ethernet: ethernet@0 { |
64 | compatible = "marvell,armada-7k-pp22"; | |
65 | reg = <0x0 0x100000>, <0x129000 0xb000>; | |
db7bc1ba | 66 | clocks = <&cpm_clk 1 3>, <&cpm_clk 1 9>, <&cpm_clk 1 5>; |
60894719 TP |
67 | clock-names = "pp_clk", "gop_clk", "mg_clk"; |
68 | status = "disabled"; | |
69 | dma-coherent; | |
70 | ||
71 | cpm_eth0: eth0 { | |
6ef84a82 | 72 | interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>; |
60894719 TP |
73 | port-id = <0>; |
74 | gop-port-id = <0>; | |
75 | status = "disabled"; | |
76 | }; | |
77 | ||
78 | cpm_eth1: eth1 { | |
6ef84a82 | 79 | interrupts = <ICU_GRP_NSR 40 IRQ_TYPE_LEVEL_HIGH>; |
60894719 TP |
80 | port-id = <1>; |
81 | gop-port-id = <2>; | |
82 | status = "disabled"; | |
83 | }; | |
84 | ||
85 | cpm_eth2: eth2 { | |
6ef84a82 | 86 | interrupts = <ICU_GRP_NSR 41 IRQ_TYPE_LEVEL_HIGH>; |
60894719 TP |
87 | port-id = <2>; |
88 | gop-port-id = <3>; | |
89 | status = "disabled"; | |
90 | }; | |
91 | }; | |
92 | ||
93 | cpm_mdio: mdio@12a200 { | |
94 | #address-cells = <1>; | |
95 | #size-cells = <0>; | |
96 | compatible = "marvell,orion-mdio"; | |
97 | reg = <0x12a200 0x10>; | |
db7bc1ba | 98 | clocks = <&cpm_clk 1 9>, <&cpm_clk 1 5>; |
5526bdc6 | 99 | status = "disabled"; |
60894719 TP |
100 | }; |
101 | ||
f66b2aff AT |
102 | cpm_xmdio: mdio@12a600 { |
103 | #address-cells = <1>; | |
104 | #size-cells = <0>; | |
105 | compatible = "marvell,xmdio"; | |
106 | reg = <0x12a600 0x10>; | |
107 | status = "disabled"; | |
108 | }; | |
109 | ||
6ef84a82 TP |
110 | cpm_icu: interrupt-controller@1e0000 { |
111 | compatible = "marvell,cp110-icu"; | |
112 | reg = <0x1e0000 0x10>; | |
113 | #interrupt-cells = <3>; | |
114 | interrupt-controller; | |
115 | msi-parent = <&gicp>; | |
116 | }; | |
117 | ||
728dacc7 | 118 | cpm_syscon0: system-controller@440000 { |
db7bc1ba | 119 | compatible = "syscon", "simple-mfd"; |
728dacc7 | 120 | reg = <0x440000 0x1000>; |
db7bc1ba GC |
121 | |
122 | cpm_clk: clock { | |
123 | compatible = "marvell,cp110-clock"; | |
124 | #clock-cells = <2>; | |
125 | }; | |
63dac0f4 GC |
126 | |
127 | cpm_gpio1: gpio@100 { | |
128 | compatible = "marvell,armada-8k-gpio"; | |
129 | offset = <0x100>; | |
130 | ngpios = <32>; | |
131 | gpio-controller; | |
132 | #gpio-cells = <2>; | |
133 | gpio-ranges = <&cpm_pinctrl 0 0 32>; | |
134 | status = "disabled"; | |
135 | ||
136 | }; | |
137 | ||
138 | cpm_gpio2: gpio@140 { | |
139 | compatible = "marvell,armada-8k-gpio"; | |
140 | offset = <0x140>; | |
141 | ngpios = <31>; | |
142 | gpio-controller; | |
143 | #gpio-cells = <2>; | |
144 | gpio-ranges = <&cpm_pinctrl 0 32 31>; | |
145 | status = "disabled"; | |
146 | }; | |
728dacc7 TP |
147 | }; |
148 | ||
bbedcf58 GC |
149 | cpm_rtc: rtc@284000 { |
150 | compatible = "marvell,armada-8k-rtc"; | |
151 | reg = <0x284000 0x20>, <0x284080 0x24>; | |
152 | reg-names = "rtc", "rtc-soc"; | |
6ef84a82 | 153 | interrupts = <ICU_GRP_NSR 77 IRQ_TYPE_LEVEL_HIGH>; |
bbedcf58 GC |
154 | }; |
155 | ||
728dacc7 | 156 | cpm_sata0: sata@540000 { |
7292ff67 RK |
157 | compatible = "marvell,armada-8k-ahci", |
158 | "generic-ahci"; | |
728dacc7 | 159 | reg = <0x540000 0x30000>; |
6ef84a82 | 160 | interrupts = <ICU_GRP_NSR 107 IRQ_TYPE_LEVEL_HIGH>; |
db7bc1ba | 161 | clocks = <&cpm_clk 1 15>; |
728dacc7 TP |
162 | status = "disabled"; |
163 | }; | |
164 | ||
165 | cpm_usb3_0: usb3@500000 { | |
166 | compatible = "marvell,armada-8k-xhci", | |
167 | "generic-xhci"; | |
168 | reg = <0x500000 0x4000>; | |
169 | dma-coherent; | |
6ef84a82 | 170 | interrupts = <ICU_GRP_NSR 106 IRQ_TYPE_LEVEL_HIGH>; |
db7bc1ba | 171 | clocks = <&cpm_clk 1 22>; |
728dacc7 TP |
172 | status = "disabled"; |
173 | }; | |
174 | ||
175 | cpm_usb3_1: usb3@510000 { | |
176 | compatible = "marvell,armada-8k-xhci", | |
177 | "generic-xhci"; | |
178 | reg = <0x510000 0x4000>; | |
179 | dma-coherent; | |
6ef84a82 | 180 | interrupts = <ICU_GRP_NSR 105 IRQ_TYPE_LEVEL_HIGH>; |
db7bc1ba | 181 | clocks = <&cpm_clk 1 23>; |
728dacc7 TP |
182 | status = "disabled"; |
183 | }; | |
184 | ||
c7f27355 TP |
185 | cpm_xor0: xor@6a0000 { |
186 | compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; | |
187 | reg = <0x6a0000 0x1000>, | |
188 | <0x6b0000 0x1000>; | |
189 | dma-coherent; | |
190 | msi-parent = <&gic_v2m0>; | |
db7bc1ba | 191 | clocks = <&cpm_clk 1 8>; |
c7f27355 TP |
192 | }; |
193 | ||
194 | cpm_xor1: xor@6c0000 { | |
195 | compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; | |
196 | reg = <0x6c0000 0x1000>, | |
197 | <0x6d0000 0x1000>; | |
198 | dma-coherent; | |
199 | msi-parent = <&gic_v2m0>; | |
db7bc1ba | 200 | clocks = <&cpm_clk 1 7>; |
c7f27355 TP |
201 | }; |
202 | ||
728dacc7 TP |
203 | cpm_spi0: spi@700600 { |
204 | compatible = "marvell,armada-380-spi"; | |
205 | reg = <0x700600 0x50>; | |
206 | #address-cells = <0x1>; | |
207 | #size-cells = <0x0>; | |
208 | cell-index = <1>; | |
db7bc1ba | 209 | clocks = <&cpm_clk 1 21>; |
728dacc7 TP |
210 | status = "disabled"; |
211 | }; | |
212 | ||
213 | cpm_spi1: spi@700680 { | |
214 | compatible = "marvell,armada-380-spi"; | |
215 | reg = <0x700680 0x50>; | |
216 | #address-cells = <1>; | |
217 | #size-cells = <0>; | |
218 | cell-index = <2>; | |
db7bc1ba | 219 | clocks = <&cpm_clk 1 21>; |
728dacc7 TP |
220 | status = "disabled"; |
221 | }; | |
222 | ||
223 | cpm_i2c0: i2c@701000 { | |
224 | compatible = "marvell,mv78230-i2c"; | |
225 | reg = <0x701000 0x20>; | |
226 | #address-cells = <1>; | |
227 | #size-cells = <0>; | |
6ef84a82 | 228 | interrupts = <ICU_GRP_NSR 120 IRQ_TYPE_LEVEL_HIGH>; |
db7bc1ba | 229 | clocks = <&cpm_clk 1 21>; |
728dacc7 TP |
230 | status = "disabled"; |
231 | }; | |
232 | ||
233 | cpm_i2c1: i2c@701100 { | |
234 | compatible = "marvell,mv78230-i2c"; | |
235 | reg = <0x701100 0x20>; | |
236 | #address-cells = <1>; | |
237 | #size-cells = <0>; | |
6ef84a82 | 238 | interrupts = <ICU_GRP_NSR 121 IRQ_TYPE_LEVEL_HIGH>; |
db7bc1ba | 239 | clocks = <&cpm_clk 1 21>; |
728dacc7 TP |
240 | status = "disabled"; |
241 | }; | |
a0743c15 RP |
242 | |
243 | cpm_trng: trng@760000 { | |
244 | compatible = "marvell,armada-8k-rng", "inside-secure,safexcel-eip76"; | |
245 | reg = <0x760000 0x7d>; | |
6ef84a82 | 246 | interrupts = <ICU_GRP_NSR 95 IRQ_TYPE_LEVEL_HIGH>; |
db7bc1ba | 247 | clocks = <&cpm_clk 1 25>; |
a0743c15 RP |
248 | status = "okay"; |
249 | }; | |
910b4c5c GC |
250 | |
251 | cpm_sdhci0: sdhci@780000 { | |
252 | compatible = "marvell,armada-cp110-sdhci"; | |
253 | reg = <0x780000 0x300>; | |
6ef84a82 | 254 | interrupts = <ICU_GRP_NSR 27 IRQ_TYPE_LEVEL_HIGH>; |
910b4c5c | 255 | clock-names = "core"; |
db7bc1ba | 256 | clocks = <&cpm_clk 1 4>; |
910b4c5c GC |
257 | dma-coherent; |
258 | status = "disabled"; | |
259 | }; | |
260 | ||
973020fd AT |
261 | cpm_crypto: crypto@800000 { |
262 | compatible = "inside-secure,safexcel-eip197"; | |
263 | reg = <0x800000 0x200000>; | |
9b308813 | 264 | interrupts = <ICU_GRP_NSR 87 IRQ_TYPE_LEVEL_HIGH>, |
6ef84a82 TP |
265 | <ICU_GRP_NSR 88 IRQ_TYPE_LEVEL_HIGH>, |
266 | <ICU_GRP_NSR 89 IRQ_TYPE_LEVEL_HIGH>, | |
267 | <ICU_GRP_NSR 90 IRQ_TYPE_LEVEL_HIGH>, | |
268 | <ICU_GRP_NSR 91 IRQ_TYPE_LEVEL_HIGH>, | |
269 | <ICU_GRP_NSR 92 IRQ_TYPE_LEVEL_HIGH>; | |
973020fd AT |
270 | interrupt-names = "mem", "ring0", "ring1", |
271 | "ring2", "ring3", "eip"; | |
db7bc1ba | 272 | clocks = <&cpm_clk 1 26>; |
ec0aef98 | 273 | dma-coherent; |
973020fd | 274 | }; |
728dacc7 TP |
275 | }; |
276 | ||
277 | cpm_pcie0: pcie@f2600000 { | |
278 | compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; | |
279 | reg = <0 0xf2600000 0 0x10000>, | |
280 | <0 0xf6f00000 0 0x80000>; | |
281 | reg-names = "ctrl", "config"; | |
282 | #address-cells = <3>; | |
283 | #size-cells = <2>; | |
284 | #interrupt-cells = <1>; | |
285 | device_type = "pci"; | |
286 | dma-coherent; | |
93970e67 | 287 | msi-parent = <&gic_v2m0>; |
728dacc7 TP |
288 | |
289 | bus-range = <0 0xff>; | |
290 | ranges = | |
291 | /* downstream I/O */ | |
292 | <0x81000000 0 0xf9000000 0 0xf9000000 0 0x10000 | |
293 | /* non-prefetchable memory */ | |
294 | 0x82000000 0 0xf6000000 0 0xf6000000 0 0xf00000>; | |
295 | interrupt-map-mask = <0 0 0 0>; | |
6ef84a82 TP |
296 | interrupt-map = <0 0 0 0 &cpm_icu 0 ICU_GRP_NSR 22 IRQ_TYPE_LEVEL_HIGH>; |
297 | interrupts = <ICU_GRP_NSR 22 IRQ_TYPE_LEVEL_HIGH>; | |
728dacc7 | 298 | num-lanes = <1>; |
db7bc1ba | 299 | clocks = <&cpm_clk 1 13>; |
728dacc7 TP |
300 | status = "disabled"; |
301 | }; | |
302 | ||
303 | cpm_pcie1: pcie@f2620000 { | |
304 | compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; | |
305 | reg = <0 0xf2620000 0 0x10000>, | |
306 | <0 0xf7f00000 0 0x80000>; | |
307 | reg-names = "ctrl", "config"; | |
308 | #address-cells = <3>; | |
309 | #size-cells = <2>; | |
310 | #interrupt-cells = <1>; | |
311 | device_type = "pci"; | |
312 | dma-coherent; | |
93970e67 | 313 | msi-parent = <&gic_v2m0>; |
728dacc7 TP |
314 | |
315 | bus-range = <0 0xff>; | |
316 | ranges = | |
317 | /* downstream I/O */ | |
318 | <0x81000000 0 0xf9010000 0 0xf9010000 0 0x10000 | |
319 | /* non-prefetchable memory */ | |
320 | 0x82000000 0 0xf7000000 0 0xf7000000 0 0xf00000>; | |
321 | interrupt-map-mask = <0 0 0 0>; | |
6ef84a82 TP |
322 | interrupt-map = <0 0 0 0 &cpm_icu 0 ICU_GRP_NSR 24 IRQ_TYPE_LEVEL_HIGH>; |
323 | interrupts = <ICU_GRP_NSR 24 IRQ_TYPE_LEVEL_HIGH>; | |
728dacc7 TP |
324 | |
325 | num-lanes = <1>; | |
db7bc1ba | 326 | clocks = <&cpm_clk 1 11>; |
728dacc7 TP |
327 | status = "disabled"; |
328 | }; | |
329 | ||
330 | cpm_pcie2: pcie@f2640000 { | |
331 | compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; | |
332 | reg = <0 0xf2640000 0 0x10000>, | |
333 | <0 0xf8f00000 0 0x80000>; | |
334 | reg-names = "ctrl", "config"; | |
335 | #address-cells = <3>; | |
336 | #size-cells = <2>; | |
337 | #interrupt-cells = <1>; | |
338 | device_type = "pci"; | |
339 | dma-coherent; | |
93970e67 | 340 | msi-parent = <&gic_v2m0>; |
728dacc7 TP |
341 | |
342 | bus-range = <0 0xff>; | |
343 | ranges = | |
344 | /* downstream I/O */ | |
345 | <0x81000000 0 0xf9020000 0 0xf9020000 0 0x10000 | |
346 | /* non-prefetchable memory */ | |
347 | 0x82000000 0 0xf8000000 0 0xf8000000 0 0xf00000>; | |
348 | interrupt-map-mask = <0 0 0 0>; | |
6ef84a82 TP |
349 | interrupt-map = <0 0 0 0 &cpm_icu 0 ICU_GRP_NSR 23 IRQ_TYPE_LEVEL_HIGH>; |
350 | interrupts = <ICU_GRP_NSR 23 IRQ_TYPE_LEVEL_HIGH>; | |
728dacc7 TP |
351 | |
352 | num-lanes = <1>; | |
db7bc1ba | 353 | clocks = <&cpm_clk 1 12>; |
728dacc7 TP |
354 | status = "disabled"; |
355 | }; | |
356 | }; | |
357 | }; |