blob: d51eb2db6df74328d37a74f5c2529fb06a26ca14 [file] [log] [blame]
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +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 Slave.
45 */
46
47/ {
48 cp110-slave {
49 #address-cells = <2>;
50 #size-cells = <2>;
51 compatible = "simple-bus";
52 interrupt-parent = <&gic>;
53 ranges;
54
Gregory CLEMENT70347882016-11-07 15:02:06 +010055 config-space@f4000000 {
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +020056 #address-cells = <1>;
57 #size-cells = <1>;
58 compatible = "simple-bus";
59 interrupt-parent = <&gic>;
60 ranges = <0x0 0x0 0xf4000000 0x2000000>;
61
Gregory CLEMENTbbedcf52017-02-20 18:38:50 +010062 cps_rtc: rtc@284000 {
63 compatible = "marvell,armada-8k-rtc";
64 reg = <0x284000 0x20>, <0x284080 0x24>;
65 reg-names = "rtc", "rtc-soc";
66 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
67 };
68
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +020069 cps_syscon0: system-controller@440000 {
70 compatible = "marvell,cp110-system-controller0",
71 "syscon";
72 reg = <0x440000 0x1000>;
73 #clock-cells = <2>;
74 core-clock-output-names =
75 "cps-apll", "cps-ppv2-core", "cps-eip",
76 "cps-core", "cps-nand-core";
77 gate-clock-output-names =
78 "cps-audio", "cps-communit", "cps-nand",
79 "cps-ppv2", "cps-sdio", "cps-mg-domain",
80 "cps-mg-core", "cps-xor1", "cps-xor0",
81 "cps-gop-dp", "none", "cps-pcie_x10",
82 "cps-pcie_x11", "cps-pcie_x4", "cps-pcie-xor",
83 "cps-sata", "cps-sata-usb", "cps-main",
Thomas Petazzonid0979c02016-12-21 11:26:57 +010084 "cps-sd-mmc-gop", "none", "none",
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +020085 "cps-slow-io", "cps-usb3h0", "cps-usb3h1",
86 "cps-usb3dev", "cps-eip150", "cps-eip197";
87 };
88
89 cps_sata0: sata@540000 {
Russell King7292ff62017-01-13 18:57:39 +000090 compatible = "marvell,armada-8k-ahci",
91 "generic-ahci";
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +020092 reg = <0x540000 0x30000>;
93 interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
94 clocks = <&cps_syscon0 1 15>;
95 status = "disabled";
96 };
97
98 cps_usb3_0: usb3@500000 {
99 compatible = "marvell,armada-8k-xhci",
100 "generic-xhci";
101 reg = <0x500000 0x4000>;
102 dma-coherent;
103 interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>;
104 clocks = <&cps_syscon0 1 22>;
105 status = "disabled";
106 };
107
108 cps_usb3_1: usb3@510000 {
109 compatible = "marvell,armada-8k-xhci",
110 "generic-xhci";
111 reg = <0x510000 0x4000>;
112 dma-coherent;
113 interrupts = <GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>;
114 clocks = <&cps_syscon0 1 23>;
115 status = "disabled";
116 };
117
118 cps_xor0: xor@6a0000 {
119 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
120 reg = <0x6a0000 0x1000>,
121 <0x6b0000 0x1000>;
122 dma-coherent;
123 msi-parent = <&gic_v2m0>;
124 clocks = <&cps_syscon0 1 8>;
125 };
126
127 cps_xor1: xor@6c0000 {
128 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
129 reg = <0x6c0000 0x1000>,
130 <0x6d0000 0x1000>;
131 dma-coherent;
132 msi-parent = <&gic_v2m0>;
133 clocks = <&cps_syscon0 1 7>;
134 };
135
136 cps_spi0: spi@700600 {
137 compatible = "marvell,armada-380-spi";
138 reg = <0x700600 0x50>;
139 #address-cells = <0x1>;
140 #size-cells = <0x0>;
Marcin Wojtas8d897002016-11-08 17:31:32 +0100141 cell-index = <3>;
Marcin Wojtas2ec27be2016-09-06 19:41:12 +0200142 clocks = <&cps_syscon0 1 21>;
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +0200143 status = "disabled";
144 };
145
146 cps_spi1: spi@700680 {
147 compatible = "marvell,armada-380-spi";
148 reg = <0x700680 0x50>;
149 #address-cells = <1>;
150 #size-cells = <0>;
Marcin Wojtas8d897002016-11-08 17:31:32 +0100151 cell-index = <4>;
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +0200152 clocks = <&cps_syscon0 1 21>;
153 status = "disabled";
154 };
155
156 cps_i2c0: i2c@701000 {
157 compatible = "marvell,mv78230-i2c";
158 reg = <0x701000 0x20>;
159 #address-cells = <1>;
160 #size-cells = <0>;
161 interrupts = <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>;
162 clocks = <&cps_syscon0 1 21>;
163 status = "disabled";
164 };
165
166 cps_i2c1: i2c@701100 {
167 compatible = "marvell,mv78230-i2c";
168 reg = <0x701100 0x20>;
169 #address-cells = <1>;
170 #size-cells = <0>;
171 interrupts = <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>;
172 clocks = <&cps_syscon0 1 21>;
173 status = "disabled";
174 };
Romain Periera0743c12016-09-16 12:08:56 +0200175
176 cps_trng: trng@760000 {
177 compatible = "marvell,armada-8k-rng", "inside-secure,safexcel-eip76";
178 reg = <0x760000 0x7d>;
179 interrupts = <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>;
180 clocks = <&cps_syscon0 1 25>;
181 status = "okay";
182 };
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +0200183 };
184
185 cps_pcie0: pcie@f4600000 {
186 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
187 reg = <0 0xf4600000 0 0x10000>,
188 <0 0xfaf00000 0 0x80000>;
189 reg-names = "ctrl", "config";
190 #address-cells = <3>;
191 #size-cells = <2>;
192 #interrupt-cells = <1>;
193 device_type = "pci";
194 dma-coherent;
Thomas Petazzoni93970e62016-09-01 17:41:24 +0200195 msi-parent = <&gic_v2m0>;
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +0200196
197 bus-range = <0 0xff>;
198 ranges =
199 /* downstream I/O */
200 <0x81000000 0 0xfd000000 0 0xfd000000 0 0x10000
201 /* non-prefetchable memory */
202 0x82000000 0 0xfa000000 0 0xfa000000 0 0xf00000>;
203 interrupt-map-mask = <0 0 0 0>;
204 interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
205 interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
206 num-lanes = <1>;
207 clocks = <&cps_syscon0 1 13>;
208 status = "disabled";
209 };
210
211 cps_pcie1: pcie@f4620000 {
212 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
213 reg = <0 0xf4620000 0 0x10000>,
214 <0 0xfbf00000 0 0x80000>;
215 reg-names = "ctrl", "config";
216 #address-cells = <3>;
217 #size-cells = <2>;
218 #interrupt-cells = <1>;
219 device_type = "pci";
220 dma-coherent;
Thomas Petazzoni93970e62016-09-01 17:41:24 +0200221 msi-parent = <&gic_v2m0>;
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +0200222
223 bus-range = <0 0xff>;
224 ranges =
225 /* downstream I/O */
226 <0x81000000 0 0xfd010000 0 0xfd010000 0 0x10000
227 /* non-prefetchable memory */
228 0x82000000 0 0xfb000000 0 0xfb000000 0 0xf00000>;
229 interrupt-map-mask = <0 0 0 0>;
230 interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>;
231 interrupts = <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>;
232
233 num-lanes = <1>;
234 clocks = <&cps_syscon0 1 11>;
235 status = "disabled";
236 };
237
238 cps_pcie2: pcie@f4640000 {
239 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
240 reg = <0 0xf4640000 0 0x10000>,
241 <0 0xfcf00000 0 0x80000>;
242 reg-names = "ctrl", "config";
243 #address-cells = <3>;
244 #size-cells = <2>;
245 #interrupt-cells = <1>;
246 device_type = "pci";
247 dma-coherent;
Thomas Petazzoni93970e62016-09-01 17:41:24 +0200248 msi-parent = <&gic_v2m0>;
Thomas Petazzoni4eef78a2016-07-28 16:35:55 +0200249
250 bus-range = <0 0xff>;
251 ranges =
252 /* downstream I/O */
253 <0x81000000 0 0xfd020000 0 0xfd020000 0 0x10000
254 /* non-prefetchable memory */
255 0x82000000 0 0xfc000000 0 0xfc000000 0 0xf00000>;
256 interrupt-map-mask = <0 0 0 0>;
257 interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>;
258 interrupts = <GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>;
259
260 num-lanes = <1>;
261 clocks = <&cps_syscon0 1 12>;
262 status = "disabled";
263 };
264 };
265};