blob: 83e1c274603a86cdb8984a91577cfc15668ceb19 [file] [log] [blame]
Ray Jui6aad8bf2015-07-27 15:42:21 -07001/*
2 * BSD LICENSE
3 *
4 * Copyright(c) 2015 Broadcom Corporation. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in
14 * the documentation and/or other materials provided with the
15 * distribution.
16 * * Neither the name of Broadcom Corporation nor the names of its
17 * contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <dt-bindings/interrupt-controller/arm-gic.h>
Jon Masond8bd64c12015-11-20 10:17:20 -050034#include <dt-bindings/clock/bcm-ns2.h>
Ray Jui6aad8bf2015-07-27 15:42:21 -070035
36/memreserve/ 0x84b00000 0x00000008;
37
38/ {
39 compatible = "brcm,ns2";
40 interrupt-parent = <&gic>;
41 #address-cells = <2>;
42 #size-cells = <2>;
43
44 cpus {
45 #address-cells = <2>;
46 #size-cells = <0>;
47
Anup Patel5b31d872015-10-02 23:24:21 +053048 A57_0: cpu@0 {
Ray Jui6aad8bf2015-07-27 15:42:21 -070049 device_type = "cpu";
50 compatible = "arm,cortex-a57", "arm,armv8";
51 reg = <0 0>;
52 enable-method = "spin-table";
53 cpu-release-addr = <0 0x84b00000>;
Anup Patel33a93aa2015-10-02 23:24:18 +053054 next-level-cache = <&CLUSTER0_L2>;
Ray Jui6aad8bf2015-07-27 15:42:21 -070055 };
56
Anup Patel5b31d872015-10-02 23:24:21 +053057 A57_1: cpu@1 {
Ray Jui6aad8bf2015-07-27 15:42:21 -070058 device_type = "cpu";
59 compatible = "arm,cortex-a57", "arm,armv8";
60 reg = <0 1>;
61 enable-method = "spin-table";
62 cpu-release-addr = <0 0x84b00000>;
Anup Patel33a93aa2015-10-02 23:24:18 +053063 next-level-cache = <&CLUSTER0_L2>;
Ray Jui6aad8bf2015-07-27 15:42:21 -070064 };
65
Anup Patel5b31d872015-10-02 23:24:21 +053066 A57_2: cpu@2 {
Ray Jui6aad8bf2015-07-27 15:42:21 -070067 device_type = "cpu";
68 compatible = "arm,cortex-a57", "arm,armv8";
69 reg = <0 2>;
70 enable-method = "spin-table";
71 cpu-release-addr = <0 0x84b00000>;
Anup Patel33a93aa2015-10-02 23:24:18 +053072 next-level-cache = <&CLUSTER0_L2>;
Ray Jui6aad8bf2015-07-27 15:42:21 -070073 };
74
Anup Patel5b31d872015-10-02 23:24:21 +053075 A57_3: cpu@3 {
Ray Jui6aad8bf2015-07-27 15:42:21 -070076 device_type = "cpu";
77 compatible = "arm,cortex-a57", "arm,armv8";
78 reg = <0 3>;
79 enable-method = "spin-table";
80 cpu-release-addr = <0 0x84b00000>;
Anup Patel33a93aa2015-10-02 23:24:18 +053081 next-level-cache = <&CLUSTER0_L2>;
82 };
83
84 CLUSTER0_L2: l2-cache@000 {
85 compatible = "cache";
Ray Jui6aad8bf2015-07-27 15:42:21 -070086 };
87 };
88
89 timer {
90 compatible = "arm,armv8-timer";
91 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0xff) |
92 IRQ_TYPE_EDGE_RISING)>,
93 <GIC_PPI 14 (GIC_CPU_MASK_RAW(0xff) |
94 IRQ_TYPE_EDGE_RISING)>,
95 <GIC_PPI 11 (GIC_CPU_MASK_RAW(0xff) |
96 IRQ_TYPE_EDGE_RISING)>,
97 <GIC_PPI 10 (GIC_CPU_MASK_RAW(0xff) |
98 IRQ_TYPE_EDGE_RISING)>;
99 };
100
Anup Patel5b31d872015-10-02 23:24:21 +0530101 pmu {
102 compatible = "arm,armv8-pmuv3";
103 interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
104 <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>,
105 <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>,
106 <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>;
107 interrupt-affinity = <&A57_0>,
108 <&A57_1>,
109 <&A57_2>,
110 <&A57_3>;
111 };
112
Jon Masond8bd64c12015-11-20 10:17:20 -0500113 clocks {
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 osc: oscillator {
118 #clock-cells = <0>;
119 compatible = "fixed-clock";
120 clock-frequency = <25000000>;
121 };
122
123 iprocmed: iprocmed {
124 #clock-cells = <0>;
125 compatible = "fixed-factor-clock";
126 clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>;
127 clock-div = <2>;
128 clock-mult = <1>;
129 };
130
131 iprocslow: iprocslow {
132 #clock-cells = <0>;
133 compatible = "fixed-factor-clock";
134 clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>;
135 clock-div = <4>;
136 clock-mult = <1>;
137 };
138 };
139
Ray Jui6aad8bf2015-07-27 15:42:21 -0700140 soc: soc {
141 compatible = "simple-bus";
142 #address-cells = <1>;
143 #size-cells = <1>;
144 ranges = <0 0 0 0xffffffff>;
145
Anup Patel6ec5f3c2015-10-02 23:24:19 +0530146 smmu: mmu@64000000 {
147 compatible = "arm,mmu-500";
148 reg = <0x64000000 0x40000>;
149 #global-interrupts = <2>;
150 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>,
151 <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>,
152 <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>,
153 <GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>,
154 <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>,
155 <GIC_SPI 234 IRQ_TYPE_LEVEL_HIGH>,
156 <GIC_SPI 235 IRQ_TYPE_LEVEL_HIGH>,
157 <GIC_SPI 236 IRQ_TYPE_LEVEL_HIGH>,
158 <GIC_SPI 237 IRQ_TYPE_LEVEL_HIGH>,
159 <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>,
160 <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>,
161 <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>,
162 <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>,
163 <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>,
164 <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>,
165 <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
166 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
167 <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
168 <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
169 <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
170 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
171 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
172 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
173 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
174 <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
175 <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
176 <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
177 <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
178 <GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>,
179 <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>,
180 <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>,
181 <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>,
182 <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
183 <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>;
184 mmu-masters;
185 };
186
Jon Masond8bd64c12015-11-20 10:17:20 -0500187 lcpll_ddr: lcpll_ddr@6501d058 {
188 #clock-cells = <1>;
189 compatible = "brcm,ns2-lcpll-ddr";
190 reg = <0x6501d058 0x20>,
191 <0x6501c020 0x4>,
192 <0x6501d04c 0x4>;
193 clocks = <&osc>;
194 clock-output-names = "lcpll_ddr", "pcie_sata_usb",
195 "ddr", "ddr_ch2_unused",
196 "ddr_ch3_unused", "ddr_ch4_unused",
197 "ddr_ch5_unused";
198 };
199
200 lcpll_ports: lcpll_ports@6501d078 {
201 #clock-cells = <1>;
202 compatible = "brcm,ns2-lcpll-ports";
203 reg = <0x6501d078 0x20>,
204 <0x6501c020 0x4>,
205 <0x6501d054 0x4>;
206 clocks = <&osc>;
207 clock-output-names = "lcpll_ports", "wan", "rgmii",
208 "ports_ch2_unused",
209 "ports_ch3_unused",
210 "ports_ch4_unused",
211 "ports_ch5_unused";
212 };
213
214 genpll_scr: genpll_scr@6501d098 {
215 #clock-cells = <1>;
216 compatible = "brcm,ns2-genpll-scr";
217 reg = <0x6501d098 0x32>,
218 <0x6501c020 0x4>,
219 <0x6501d044 0x4>;
220 clocks = <&osc>;
221 clock-output-names = "genpll_scr", "scr", "fs",
222 "audio_ref", "scr_ch3_unused",
223 "scr_ch4_unused", "scr_ch5_unused";
224 };
225
226 genpll_sw: genpll_sw@6501d0c4 {
227 #clock-cells = <1>;
228 compatible = "brcm,ns2-genpll-sw";
229 reg = <0x6501d0c4 0x32>,
230 <0x6501c020 0x4>,
231 <0x6501d044 0x4>;
232 clocks = <&osc>;
233 clock-output-names = "genpll_sw", "rpe", "250", "nic",
234 "chimp", "port", "sdio";
235 };
236
Anup Patel5b467c32015-10-02 23:24:20 +0530237 crmu: crmu@65024000 {
238 compatible = "syscon";
239 reg = <0x65024000 0x100>;
240 };
241
242 reboot@65024000 {
243 compatible ="syscon-reboot";
244 regmap = <&crmu>;
245 offset = <0x90>;
246 mask = <0xfffffffd>;
247 };
248
Ray Jui6aad8bf2015-07-27 15:42:21 -0700249 gic: interrupt-controller@65210000 {
250 compatible = "arm,gic-400";
251 #interrupt-cells = <3>;
252 interrupt-controller;
253 reg = <0x65210000 0x1000>,
254 <0x65220000 0x1000>,
255 <0x65240000 0x2000>,
256 <0x65260000 0x1000>;
257 };
258
Anup Patele99df8f2016-02-10 11:40:48 +0530259 timer0: timer@66030000 {
260 compatible = "arm,sp804", "arm,primecell";
261 reg = <0x66030000 0x1000>;
262 interrupts = <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>;
263 clocks = <&iprocslow>,
264 <&iprocslow>,
265 <&iprocslow>;
266 clock-names = "timer1", "timer2", "apb_pclk";
267 };
268
269 timer1: timer@66040000 {
270 compatible = "arm,sp804", "arm,primecell";
271 reg = <0x66040000 0x1000>;
272 interrupts = <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH>;
273 clocks = <&iprocslow>,
274 <&iprocslow>,
275 <&iprocslow>;
276 clock-names = "timer1", "timer2", "apb_pclk";
277 };
278
279 timer2: timer@66050000 {
280 compatible = "arm,sp804", "arm,primecell";
281 reg = <0x66050000 0x1000>;
282 interrupts = <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH>;
283 clocks = <&iprocslow>,
284 <&iprocslow>,
285 <&iprocslow>;
286 clock-names = "timer1", "timer2", "apb_pclk";
287 };
288
289 timer3: timer@66060000 {
290 compatible = "arm,sp804", "arm,primecell";
291 reg = <0x66060000 0x1000>;
292 interrupts = <GIC_SPI 399 IRQ_TYPE_LEVEL_HIGH>;
293 clocks = <&iprocslow>,
294 <&iprocslow>,
295 <&iprocslow>;
296 clock-names = "timer1", "timer2", "apb_pclk";
297 };
298
Ray Jui7ac674e2015-10-02 23:24:23 +0530299 i2c0: i2c@66080000 {
300 compatible = "brcm,iproc-i2c";
301 reg = <0x66080000 0x100>;
302 #address-cells = <1>;
303 #size-cells = <0>;
304 interrupts = <GIC_SPI 394 IRQ_TYPE_NONE>;
305 clock-frequency = <100000>;
306 status = "disabled";
307 };
308
309 i2c1: i2c@660b0000 {
310 compatible = "brcm,iproc-i2c";
311 reg = <0x660b0000 0x100>;
312 #address-cells = <1>;
313 #size-cells = <0>;
314 interrupts = <GIC_SPI 395 IRQ_TYPE_NONE>;
315 clock-frequency = <100000>;
316 status = "disabled";
317 };
318
Ray Jui6aad8bf2015-07-27 15:42:21 -0700319 uart3: serial@66130000 {
320 compatible = "snps,dw-apb-uart";
321 reg = <0x66130000 0x100>;
322 interrupts = <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>;
323 reg-shift = <2>;
324 reg-io-width = <4>;
Jon Masond8bd64c12015-11-20 10:17:20 -0500325 clocks = <&osc>;
Ray Jui6aad8bf2015-07-27 15:42:21 -0700326 status = "disabled";
327 };
Anup Patele8a6e262015-10-02 23:24:22 +0530328
329 hwrng: hwrng@66220000 {
330 compatible = "brcm,iproc-rng200";
331 reg = <0x66220000 0x28>;
332 };
Anup Patelc6fe9a22015-10-30 12:29:21 +0530333
Anup Patelefc87762016-02-10 11:40:47 +0530334 sdio0: sdhci@66420000 {
335 compatible = "brcm,sdhci-iproc-cygnus";
336 reg = <0x66420000 0x100>;
337 interrupts = <GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH>;
338 bus-width = <8>;
339 clocks = <&genpll_sw BCM_NS2_GENPLL_SW_SDIO_CLK>;
340 status = "disabled";
341 };
342
343 sdio1: sdhci@66430000 {
344 compatible = "brcm,sdhci-iproc-cygnus";
345 reg = <0x66430000 0x100>;
346 interrupts = <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>;
347 bus-width = <8>;
348 clocks = <&genpll_sw BCM_NS2_GENPLL_SW_SDIO_CLK>;
349 status = "disabled";
350 };
351
Anup Patelc6fe9a22015-10-30 12:29:21 +0530352 nand: nand@66460000 {
353 compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
354 reg = <0x66460000 0x600>,
355 <0x67015408 0x600>,
356 <0x66460f00 0x20>;
357 reg-names = "nand", "iproc-idm", "iproc-ext";
358 interrupts = <GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH>;
359
360 #address-cells = <1>;
361 #size-cells = <0>;
362
363 brcm,nand-has-wp;
364 };
Ray Jui6aad8bf2015-07-27 15:42:21 -0700365 };
366};