Merge tag 'v4.7-rc2' into v4l_for_linus
[cascardo/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 {
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", "none", "none",
78                                         "cpm-slow-io", "cpm-usb3h0", "cpm-usb3h1",
79                                         "cpm-usb3dev", "cpm-eip150", "cpm-eip197";
80                         };
81
82                         cpm_sata0: sata@540000 {
83                                 compatible = "marvell,armada-8k-ahci";
84                                 reg = <0x540000 0x30000>;
85                                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
86                                 clocks = <&cpm_syscon0 1 15>;
87                                 status = "disabled";
88                         };
89
90                         cpm_usb3_0: usb3@500000 {
91                                 compatible = "marvell,armada-8k-xhci",
92                                              "generic-xhci";
93                                 reg = <0x500000 0x4000>;
94                                 dma-coherent;
95                                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
96                                 clocks = <&cpm_syscon0 1 22>;
97                                 status = "disabled";
98                         };
99
100                         cpm_usb3_1: usb3@510000 {
101                                 compatible = "marvell,armada-8k-xhci",
102                                              "generic-xhci";
103                                 reg = <0x510000 0x4000>;
104                                 dma-coherent;
105                                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
106                                 clocks = <&cpm_syscon0 1 23>;
107                                 status = "disabled";
108                         };
109
110                         cpm_spi0: spi@700600 {
111                                 compatible = "marvell,armada-380-spi";
112                                 reg = <0x700600 0x50>;
113                                 #address-cells = <0x1>;
114                                 #size-cells = <0x0>;
115                                 cell-index = <1>;
116                                 clocks = <&cpm_syscon0 0 3>;
117                                 status = "disabled";
118                         };
119
120                         cpm_spi1: spi@700680 {
121                                 compatible = "marvell,armada-380-spi";
122                                 reg = <0x700680 0x50>;
123                                 #address-cells = <1>;
124                                 #size-cells = <0>;
125                                 cell-index = <2>;
126                                 clocks = <&cpm_syscon0 1 21>;
127                                 status = "disabled";
128                         };
129
130                         cpm_i2c0: i2c@701000 {
131                                 compatible = "marvell,mv78230-i2c";
132                                 reg = <0x701000 0x20>;
133                                 #address-cells = <1>;
134                                 #size-cells = <0>;
135                                 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
136                                 clocks = <&cpm_syscon0 1 21>;
137                                 status = "disabled";
138                         };
139
140                         cpm_i2c1: i2c@701100 {
141                                 compatible = "marvell,mv78230-i2c";
142                                 reg = <0x701100 0x20>;
143                                 #address-cells = <1>;
144                                 #size-cells = <0>;
145                                 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
146                                 clocks = <&cpm_syscon0 1 21>;
147                                 status = "disabled";
148                         };
149                 };
150
151                 cpm_pcie0: pcie@f2600000 {
152                         compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
153                         reg = <0 0xf2600000 0 0x10000>,
154                               <0 0xf6f00000 0 0x80000>;
155                         reg-names = "ctrl", "config";
156                         #address-cells = <3>;
157                         #size-cells = <2>;
158                         #interrupt-cells = <1>;
159                         device_type = "pci";
160                         dma-coherent;
161
162                         bus-range = <0 0xff>;
163                         ranges =
164                                 /* downstream I/O */
165                                 <0x81000000 0 0xf9000000 0  0xf9000000 0 0x10000
166                                 /* non-prefetchable memory */
167                                 0x82000000 0 0xf6000000 0  0xf6000000 0 0xf00000>;
168                         interrupt-map-mask = <0 0 0 0>;
169                         interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
170                         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
171                         num-lanes = <1>;
172                         clocks = <&cpm_syscon0 1 13>;
173                         status = "disabled";
174                 };
175
176                 cpm_pcie1: pcie@f2620000 {
177                         compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
178                         reg = <0 0xf2620000 0 0x10000>,
179                               <0 0xf7f00000 0 0x80000>;
180                         reg-names = "ctrl", "config";
181                         #address-cells = <3>;
182                         #size-cells = <2>;
183                         #interrupt-cells = <1>;
184                         device_type = "pci";
185                         dma-coherent;
186
187                         bus-range = <0 0xff>;
188                         ranges =
189                                 /* downstream I/O */
190                                 <0x81000000 0 0xf9010000 0  0xf9010000 0 0x10000
191                                 /* non-prefetchable memory */
192                                 0x82000000 0 0xf7000000 0  0xf7000000 0 0xf00000>;
193                         interrupt-map-mask = <0 0 0 0>;
194                         interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
195                         interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
196
197                         num-lanes = <1>;
198                         clocks = <&cpm_syscon0 1 11>;
199                         status = "disabled";
200                 };
201
202                 cpm_pcie2: pcie@f2640000 {
203                         compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
204                         reg = <0 0xf2640000 0 0x10000>,
205                               <0 0xf8f00000 0 0x80000>;
206                         reg-names = "ctrl", "config";
207                         #address-cells = <3>;
208                         #size-cells = <2>;
209                         #interrupt-cells = <1>;
210                         device_type = "pci";
211                         dma-coherent;
212
213                         bus-range = <0 0xff>;
214                         ranges =
215                                 /* downstream I/O */
216                                 <0x81000000 0 0xf9020000 0  0xf9020000 0 0x10000
217                                 /* non-prefetchable memory */
218                                 0x82000000 0 0xf8000000 0  0xf8000000 0 0xf00000>;
219                         interrupt-map-mask = <0 0 0 0>;
220                         interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
221                         interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
222
223                         num-lanes = <1>;
224                         clocks = <&cpm_syscon0 1 12>;
225                         status = "disabled";
226                 };
227         };
228 };