]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
d12741414009411526416d5e5e71df135757f42b
[karo-tx-linux.git] / arch / arm64 / boot / dts / marvell / armada-cp110-master.dtsi
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
47 / {
48         cp110-master {
49                 #address-cells = <2>;
50                 #size-cells = <2>;
51                 compatible = "simple-bus";
52                 interrupt-parent = <&gic>;
53                 ranges;
54
55                 config-space@f2000000 {
56                         #address-cells = <1>;
57                         #size-cells = <1>;
58                         compatible = "simple-bus";
59                         interrupt-parent = <&gic>;
60                         ranges = <0x0 0x0 0xf2000000 0x2000000>;
61
62                         cpm_syscon0: system-controller@440000 {
63                                 compatible = "marvell,cp110-system-controller0",
64                                              "syscon";
65                                 reg = <0x440000 0x1000>;
66                                 #clock-cells = <2>;
67                                 core-clock-output-names =
68                                         "cpm-apll", "cpm-ppv2-core", "cpm-eip",
69                                         "cpm-core", "cpm-nand-core";
70                                 gate-clock-output-names =
71                                         "cpm-audio", "cpm-communit", "cpm-nand",
72                                         "cpm-ppv2", "cpm-sdio", "cpm-mg-domain",
73                                         "cpm-mg-core", "cpm-xor1", "cpm-xor0",
74                                         "cpm-gop-dp", "none", "cpm-pcie_x10",
75                                         "cpm-pcie_x11", "cpm-pcie_x4", "cpm-pcie-xor",
76                                         "cpm-sata", "cpm-sata-usb", "cpm-main",
77                                         "cpm-sd-mmc-gop", "none", "none",
78                                         "cpm-slow-io", "cpm-usb3h0", "cpm-usb3h1",
79                                         "cpm-usb3dev", "cpm-eip150", "cpm-eip197";
80                         };
81
82                         cpm_rtc: rtc@284000 {
83                                 compatible = "marvell,armada-8k-rtc";
84                                 reg = <0x284000 0x20>, <0x284080 0x24>;
85                                 reg-names = "rtc", "rtc-soc";
86                                 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
87                         };
88
89                         cpm_sata0: sata@540000 {
90                                 compatible = "marvell,armada-8k-ahci",
91                                              "generic-ahci";
92                                 reg = <0x540000 0x30000>;
93                                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
94                                 clocks = <&cpm_syscon0 1 15>;
95                                 status = "disabled";
96                         };
97
98                         cpm_usb3_0: usb3@500000 {
99                                 compatible = "marvell,armada-8k-xhci",
100                                              "generic-xhci";
101                                 reg = <0x500000 0x4000>;
102                                 dma-coherent;
103                                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
104                                 clocks = <&cpm_syscon0 1 22>;
105                                 status = "disabled";
106                         };
107
108                         cpm_usb3_1: usb3@510000 {
109                                 compatible = "marvell,armada-8k-xhci",
110                                              "generic-xhci";
111                                 reg = <0x510000 0x4000>;
112                                 dma-coherent;
113                                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
114                                 clocks = <&cpm_syscon0 1 23>;
115                                 status = "disabled";
116                         };
117
118                         cpm_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 = <&cpm_syscon0 1 8>;
125                         };
126
127                         cpm_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 = <&cpm_syscon0 1 7>;
134                         };
135
136                         cpm_spi0: spi@700600 {
137                                 compatible = "marvell,armada-380-spi";
138                                 reg = <0x700600 0x50>;
139                                 #address-cells = <0x1>;
140                                 #size-cells = <0x0>;
141                                 cell-index = <1>;
142                                 clocks = <&cpm_syscon0 1 21>;
143                                 status = "disabled";
144                         };
145
146                         cpm_spi1: spi@700680 {
147                                 compatible = "marvell,armada-380-spi";
148                                 reg = <0x700680 0x50>;
149                                 #address-cells = <1>;
150                                 #size-cells = <0>;
151                                 cell-index = <2>;
152                                 clocks = <&cpm_syscon0 1 21>;
153                                 status = "disabled";
154                         };
155
156                         cpm_i2c0: i2c@701000 {
157                                 compatible = "marvell,mv78230-i2c";
158                                 reg = <0x701000 0x20>;
159                                 #address-cells = <1>;
160                                 #size-cells = <0>;
161                                 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
162                                 clocks = <&cpm_syscon0 1 21>;
163                                 status = "disabled";
164                         };
165
166                         cpm_i2c1: i2c@701100 {
167                                 compatible = "marvell,mv78230-i2c";
168                                 reg = <0x701100 0x20>;
169                                 #address-cells = <1>;
170                                 #size-cells = <0>;
171                                 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
172                                 clocks = <&cpm_syscon0 1 21>;
173                                 status = "disabled";
174                         };
175
176                         cpm_trng: trng@760000 {
177                                 compatible = "marvell,armada-8k-rng", "inside-secure,safexcel-eip76";
178                                 reg = <0x760000 0x7d>;
179                                 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
180                                 clocks = <&cpm_syscon0 1 25>;
181                                 status = "okay";
182                         };
183                 };
184
185                 cpm_pcie0: pcie@f2600000 {
186                         compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
187                         reg = <0 0xf2600000 0 0x10000>,
188                               <0 0xf6f00000 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;
195                         msi-parent = <&gic_v2m0>;
196
197                         bus-range = <0 0xff>;
198                         ranges =
199                                 /* downstream I/O */
200                                 <0x81000000 0 0xf9000000 0  0xf9000000 0 0x10000
201                                 /* non-prefetchable memory */
202                                 0x82000000 0 0xf6000000 0  0xf6000000 0 0xf00000>;
203                         interrupt-map-mask = <0 0 0 0>;
204                         interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
205                         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
206                         num-lanes = <1>;
207                         clocks = <&cpm_syscon0 1 13>;
208                         status = "disabled";
209                 };
210
211                 cpm_pcie1: pcie@f2620000 {
212                         compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
213                         reg = <0 0xf2620000 0 0x10000>,
214                               <0 0xf7f00000 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;
221                         msi-parent = <&gic_v2m0>;
222
223                         bus-range = <0 0xff>;
224                         ranges =
225                                 /* downstream I/O */
226                                 <0x81000000 0 0xf9010000 0  0xf9010000 0 0x10000
227                                 /* non-prefetchable memory */
228                                 0x82000000 0 0xf7000000 0  0xf7000000 0 0xf00000>;
229                         interrupt-map-mask = <0 0 0 0>;
230                         interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
231                         interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
232
233                         num-lanes = <1>;
234                         clocks = <&cpm_syscon0 1 11>;
235                         status = "disabled";
236                 };
237
238                 cpm_pcie2: pcie@f2640000 {
239                         compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
240                         reg = <0 0xf2640000 0 0x10000>,
241                               <0 0xf8f00000 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;
248                         msi-parent = <&gic_v2m0>;
249
250                         bus-range = <0 0xff>;
251                         ranges =
252                                 /* downstream I/O */
253                                 <0x81000000 0 0xf9020000 0  0xf9020000 0 0x10000
254                                 /* non-prefetchable memory */
255                                 0x82000000 0 0xf8000000 0  0xf8000000 0 0xf00000>;
256                         interrupt-map-mask = <0 0 0 0>;
257                         interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
258                         interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
259
260                         num-lanes = <1>;
261                         clocks = <&cpm_syscon0 1 12>;
262                         status = "disabled";
263                 };
264         };
265 };