blob: cd5c974482e6b66f61558d52a0791cc383d87d3e [file] [log] [blame]
Stefan Roese288ba072016-05-25 08:23:31 +02001/*
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
Stefan Roesec0d8f4e2016-05-25 09:06:29 +020047#include <dt-bindings/comphy/comphy_data.h>
48
Stefan Roese288ba072016-05-25 08:23:31 +020049/ {
50 cp110-master {
51 #address-cells = <2>;
52 #size-cells = <2>;
53 compatible = "simple-bus";
54 interrupt-parent = <&gic>;
55 ranges;
56
57 config-space {
58 #address-cells = <1>;
59 #size-cells = <1>;
60 compatible = "simple-bus";
61 interrupt-parent = <&gic>;
62 ranges = <0x0 0x0 0xf2000000 0x2000000>;
63
Thomas Petazzoni24d55a62017-02-20 12:27:25 +010064 cpm_ethernet: ethernet@0 {
65 compatible = "marvell,armada-7k-pp22";
66 reg = <0x0 0x100000>, <0x129000 0xb000>;
67 clocks = <&cpm_syscon0 1 3>, <&cpm_syscon0 1 9>, <&cpm_syscon0 1 5>;
68 clock-names = "pp_clk", "gop_clk", "mg_clk";
69 status = "disabled";
70 dma-coherent;
71
72 cpm_eth0: eth0 {
73 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
74 port-id = <0>;
75 gop-port-id = <0>;
76 status = "disabled";
77 };
78
79 cpm_eth1: eth1 {
80 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
81 port-id = <1>;
82 gop-port-id = <2>;
83 status = "disabled";
84 };
85
86 cpm_eth2: eth2 {
87 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
88 port-id = <2>;
89 gop-port-id = <3>;
90 status = "disabled";
91 };
92 };
93
94 cpm_mdio: mdio@12a200 {
95 #address-cells = <1>;
96 #size-cells = <0>;
97 compatible = "marvell,orion-mdio";
98 reg = <0x12a200 0x10>;
Alex Margineanf20b01b2019-07-25 12:33:20 +030099 device-name = "cpm-mdio";
Thomas Petazzoni24d55a62017-02-20 12:27:25 +0100100 };
101
Nevo Hed3ba76612019-08-15 18:08:43 -0400102 cpm_xmdio: mdio@12a600 {
103 #address-cells = <1>;
104 #size-cells = <0>;
105 compatible = "marvell,xmdio";
106 reg = <0x12a600 0x16>;
107 status = "disabled";
108 device-name = "cpm-xmdio";
109 };
110
Stefan Roese288ba072016-05-25 08:23:31 +0200111 cpm_syscon0: system-controller@440000 {
112 compatible = "marvell,cp110-system-controller0",
113 "syscon";
114 reg = <0x440000 0x1000>;
115 #clock-cells = <2>;
116 core-clock-output-names =
117 "cpm-apll", "cpm-ppv2-core", "cpm-eip",
118 "cpm-core", "cpm-nand-core";
119 gate-clock-output-names =
120 "cpm-audio", "cpm-communit", "cpm-nand",
121 "cpm-ppv2", "cpm-sdio", "cpm-mg-domain",
122 "cpm-mg-core", "cpm-xor1", "cpm-xor0",
123 "cpm-gop-dp", "none", "cpm-pcie_x10",
124 "cpm-pcie_x11", "cpm-pcie_x4", "cpm-pcie-xor",
125 "cpm-sata", "cpm-sata-usb", "cpm-main",
126 "cpm-sd-mmc", "none", "none",
127 "cpm-slow-io", "cpm-usb3h0", "cpm-usb3h1",
128 "cpm-usb3dev", "cpm-eip150", "cpm-eip197";
129 };
130
Konstantin Porotchkinff80bd72016-12-08 12:22:30 +0200131 cpm_pinctl: cpm-pinctl@440000 {
132 compatible = "marvell,mvebu-pinctrl",
Evan Wang14143862018-05-25 14:20:51 +0800133 "marvell,armada-7k-pinctrl",
134 "marvell,armada-8k-cpm-pinctrl";
Konstantin Porotchkinff80bd72016-12-08 12:22:30 +0200135 bank-name ="cp0-110";
136 reg = <0x440000 0x20>;
137 pin-count = <63>;
138 max-func = <0xf>;
139
140 cpm_i2c0_pins: cpm-i2c-pins-0 {
141 marvell,pins = < 37 38 >;
142 marvell,function = <2>;
143 };
Konstantin Porotchkin4ca44b02017-02-08 17:34:12 +0200144 cpm_i2c1_pins: cpm-i2c-pins-1 {
145 marvell,pins = < 35 36 >;
146 marvell,function = <2>;
147 };
Konstantin Porotchkinff80bd72016-12-08 12:22:30 +0200148 cpm_ge2_rgmii_pins: cpm-ge-rgmii-pins-0 {
149 marvell,pins = < 44 45 46 47 48 49 50 51
150 52 53 54 55 >;
151 marvell,function = <1>;
152 };
153 pca0_pins: cpm-pca0_pins {
154 marvell,pins = <62>;
155 marvell,function = <0>;
156 };
157 cpm_sdhci_pins: cpm-sdhi-pins-0 {
158 marvell,pins = < 56 57 58 59 60 61 >;
159 marvell,function = <14>;
160 };
161 cpm_spi0_pins: cpm-spi-pins-0 {
162 marvell,pins = < 13 14 15 16 >;
163 marvell,function = <3>;
164 };
165 };
166
Konstantin Porotchkin0c6b0ba2017-02-08 17:34:11 +0200167 cpm_gpio0: gpio@440100 {
168 compatible = "marvell,orion-gpio";
169 reg = <0x440100 0x40>;
170 ngpios = <32>;
171 gpiobase = <20>;
172 gpio-controller;
173 #gpio-cells = <2>;
174 };
175
176 cpm_gpio1: gpio@440140 {
177 compatible = "marvell,orion-gpio";
178 reg = <0x440140 0x40>;
179 ngpios = <31>;
180 gpiobase = <52>;
181 gpio-controller;
182 #gpio-cells = <2>;
183 };
184
Stefan Roese288ba072016-05-25 08:23:31 +0200185 cpm_sata0: sata@540000 {
186 compatible = "marvell,armada-8k-ahci";
187 reg = <0x540000 0x30000>;
188 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
189 clocks = <&cpm_syscon0 1 15>;
190 status = "disabled";
191 };
192
193 cpm_usb3_0: usb3@500000 {
194 compatible = "marvell,armada-8k-xhci",
195 "generic-xhci";
196 reg = <0x500000 0x4000>;
197 dma-coherent;
198 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
199 clocks = <&cpm_syscon0 1 22>;
200 status = "disabled";
201 };
202
203 cpm_usb3_1: usb3@510000 {
204 compatible = "marvell,armada-8k-xhci",
205 "generic-xhci";
206 reg = <0x510000 0x4000>;
207 dma-coherent;
208 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
209 clocks = <&cpm_syscon0 1 23>;
210 status = "disabled";
211 };
212
213 cpm_spi0: spi@700600 {
214 compatible = "marvell,armada-380-spi";
215 reg = <0x700600 0x50>;
216 #address-cells = <0x1>;
217 #size-cells = <0x0>;
218 cell-index = <1>;
219 clocks = <&cpm_syscon0 0 3>;
220 status = "disabled";
221 };
222
223 cpm_spi1: spi@700680 {
224 compatible = "marvell,armada-380-spi";
225 reg = <0x700680 0x50>;
226 #address-cells = <1>;
227 #size-cells = <0>;
228 cell-index = <2>;
229 clocks = <&cpm_syscon0 1 21>;
230 status = "disabled";
231 };
232
233 cpm_i2c0: i2c@701000 {
234 compatible = "marvell,mv78230-i2c";
235 reg = <0x701000 0x20>;
236 #address-cells = <1>;
237 #size-cells = <0>;
238 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
239 clocks = <&cpm_syscon0 1 21>;
240 status = "disabled";
241 };
242
243 cpm_i2c1: i2c@701100 {
244 compatible = "marvell,mv78230-i2c";
245 reg = <0x701100 0x20>;
246 #address-cells = <1>;
247 #size-cells = <0>;
248 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
249 clocks = <&cpm_syscon0 1 21>;
250 status = "disabled";
251 };
Stefan Roesec0d8f4e2016-05-25 09:06:29 +0200252
Stefan Roesebef3d032016-10-25 17:35:55 +0200253 cpm_comphy: comphy@441000 {
Stefan Roesec0d8f4e2016-05-25 09:06:29 +0200254 compatible = "marvell,mvebu-comphy", "marvell,comphy-cp110";
255 reg = <0x441000 0x8>,
256 <0x120000 0x8>;
257 mux-bitcount = <4>;
258 max-lanes = <6>;
259 };
260
Stefan Roesebef3d032016-10-25 17:35:55 +0200261 cpm_utmi0: utmi@580000 {
Stefan Roesec0d8f4e2016-05-25 09:06:29 +0200262 compatible = "marvell,mvebu-utmi-2.6.0";
263 reg = <0x580000 0x1000>, /* utmi-unit */
264 <0x440420 0x4>, /* usb-cfg */
265 <0x440440 0x4>; /* utmi-cfg */
Stefan Roeseb781f572017-04-24 18:45:23 +0300266 utmi-port = <UTMI_PHY_TO_USB3_HOST0>;
Stefan Roesec0d8f4e2016-05-25 09:06:29 +0200267 status = "disabled";
268 };
269
Stefan Roesebef3d032016-10-25 17:35:55 +0200270 cpm_utmi1: utmi@581000 {
Stefan Roesec0d8f4e2016-05-25 09:06:29 +0200271 compatible = "marvell,mvebu-utmi-2.6.0";
272 reg = <0x581000 0x1000>, /* utmi-unit */
273 <0x440420 0x4>, /* usb-cfg */
274 <0x440444 0x4>; /* utmi-cfg */
Stefan Roeseb781f572017-04-24 18:45:23 +0300275 utmi-port = <UTMI_PHY_TO_USB3_HOST1>;
Stefan Roesec0d8f4e2016-05-25 09:06:29 +0200276 status = "disabled";
277 };
Stefan Roesef55d78c2016-12-09 15:40:05 +0100278
279 cpm_sdhci0: sdhci@780000 {
280 compatible = "marvell,armada-8k-sdhci";
281 reg = <0x780000 0x300>;
282 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
283 dma-coherent;
284 status = "disabled";
285 };
Konstantin Porotchkin546a5462017-04-05 18:22:32 +0300286
287 cpm_nand: nand@720000 {
288 compatible = "marvell,mvebu-pxa3xx-nand";
289 reg = <0x720000 0x100>;
290 #address-cells = <1>;
291
292 clocks = <&cpm_syscon0 1 2>;
293 nand-enable-arbiter;
294 num-cs = <1>;
295 nand-ecc-strength = <4>;
296 nand-ecc-step-size = <512>;
297 status = "disabled";
298 };
299
Stefan Roese288ba072016-05-25 08:23:31 +0200300 };
301
302 cpm_pcie0: pcie@f2600000 {
303 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
304 reg = <0 0xf2600000 0 0x10000>,
305 <0 0xf6f00000 0 0x80000>;
306 reg-names = "ctrl", "config";
307 #address-cells = <3>;
308 #size-cells = <2>;
309 #interrupt-cells = <1>;
310 device_type = "pci";
311 dma-coherent;
312
313 bus-range = <0 0xff>;
314 ranges =
315 /* downstream I/O */
316 <0x81000000 0 0xf9000000 0 0xf9000000 0 0x10000
317 /* non-prefetchable memory */
318 0x82000000 0 0xf6000000 0 0xf6000000 0 0xf00000>;
319 interrupt-map-mask = <0 0 0 0>;
320 interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
321 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
322 num-lanes = <1>;
323 clocks = <&cpm_syscon0 1 13>;
324 status = "disabled";
325 };
326
327 cpm_pcie1: pcie@f2620000 {
328 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
329 reg = <0 0xf2620000 0 0x10000>,
330 <0 0xf7f00000 0 0x80000>;
331 reg-names = "ctrl", "config";
332 #address-cells = <3>;
333 #size-cells = <2>;
334 #interrupt-cells = <1>;
335 device_type = "pci";
336 dma-coherent;
337
338 bus-range = <0 0xff>;
339 ranges =
340 /* downstream I/O */
341 <0x81000000 0 0xf9010000 0 0xf9010000 0 0x10000
342 /* non-prefetchable memory */
343 0x82000000 0 0xf7000000 0 0xf7000000 0 0xf00000>;
344 interrupt-map-mask = <0 0 0 0>;
345 interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
346 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
347
348 num-lanes = <1>;
349 clocks = <&cpm_syscon0 1 11>;
350 status = "disabled";
351 };
352
353 cpm_pcie2: pcie@f2640000 {
354 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
355 reg = <0 0xf2640000 0 0x10000>,
356 <0 0xf8f00000 0 0x80000>;
357 reg-names = "ctrl", "config";
358 #address-cells = <3>;
359 #size-cells = <2>;
360 #interrupt-cells = <1>;
361 device_type = "pci";
362 dma-coherent;
363
364 bus-range = <0 0xff>;
365 ranges =
366 /* downstream I/O */
367 <0x81000000 0 0xf9020000 0 0xf9020000 0 0x10000
368 /* non-prefetchable memory */
369 0x82000000 0 0xf8000000 0 0xf8000000 0 0xf00000>;
370 interrupt-map-mask = <0 0 0 0>;
371 interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
372 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
373
374 num-lanes = <1>;
375 clocks = <&cpm_syscon0 1 12>;
376 status = "disabled";
377 };
378 };
379};