]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/arm/boot/dts/bcm-nsp.dtsi
UBUNTU: Ubuntu-4.13.0-45.50
[mirror_ubuntu-artful-kernel.git] / arch / arm / boot / dts / bcm-nsp.dtsi
1 /*
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>
34 #include <dt-bindings/interrupt-controller/irq.h>
35 #include <dt-bindings/clock/bcm-nsp.h>
36
37 #include "skeleton.dtsi"
38
39 / {
40 compatible = "brcm,nsp";
41 model = "Broadcom Northstar Plus SoC";
42 interrupt-parent = <&gic>;
43
44 cpus {
45 #address-cells = <1>;
46 #size-cells = <0>;
47
48 cpu0: cpu@0 {
49 device_type = "cpu";
50 compatible = "arm,cortex-a9";
51 next-level-cache = <&L2>;
52 reg = <0x0>;
53 };
54
55 cpu1: cpu@1 {
56 device_type = "cpu";
57 compatible = "arm,cortex-a9";
58 next-level-cache = <&L2>;
59 enable-method = "brcm,bcm-nsp-smp";
60 secondary-boot-reg = <0xffff0fec>;
61 reg = <0x1>;
62 };
63 };
64
65 pmu {
66 compatible = "arm,cortex-a9-pmu";
67 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH
68 GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
69 interrupt-affinity = <&cpu0>, <&cpu1>;
70 };
71
72 mpcore {
73 compatible = "simple-bus";
74 ranges = <0x00000000 0x19000000 0x00023000>;
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 a9pll: arm_clk@00000 {
79 #clock-cells = <0>;
80 compatible = "brcm,nsp-armpll";
81 clocks = <&osc>;
82 reg = <0x00000 0x1000>;
83 };
84
85 timer@20200 {
86 compatible = "arm,cortex-a9-global-timer";
87 reg = <0x20200 0x100>;
88 interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
89 clocks = <&periph_clk>;
90 };
91
92 twd-timer@20600 {
93 compatible = "arm,cortex-a9-twd-timer";
94 reg = <0x20600 0x20>;
95 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
96 IRQ_TYPE_LEVEL_HIGH)>;
97 clocks = <&periph_clk>;
98 };
99
100 twd-watchdog@20620 {
101 compatible = "arm,cortex-a9-twd-wdt";
102 reg = <0x20620 0x20>;
103 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
104 IRQ_TYPE_LEVEL_HIGH)>;
105 clocks = <&periph_clk>;
106 };
107
108 gic: interrupt-controller@21000 {
109 compatible = "arm,cortex-a9-gic";
110 #interrupt-cells = <3>;
111 #address-cells = <0>;
112 interrupt-controller;
113 reg = <0x21000 0x1000>,
114 <0x20100 0x100>;
115 };
116
117 L2: l2-cache {
118 compatible = "arm,pl310-cache";
119 reg = <0x22000 0x1000>;
120 cache-unified;
121 cache-level = <2>;
122 };
123 };
124
125 clocks {
126 #address-cells = <1>;
127 #size-cells = <1>;
128 ranges;
129
130 osc: oscillator {
131 #clock-cells = <0>;
132 compatible = "fixed-clock";
133 clock-frequency = <25000000>;
134 };
135
136 iprocmed: iprocmed {
137 #clock-cells = <0>;
138 compatible = "fixed-factor-clock";
139 clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
140 clock-div = <2>;
141 clock-mult = <1>;
142 };
143
144 iprocslow: iprocslow {
145 #clock-cells = <0>;
146 compatible = "fixed-factor-clock";
147 clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
148 clock-div = <4>;
149 clock-mult = <1>;
150 };
151
152 periph_clk: periph_clk {
153 #clock-cells = <0>;
154 compatible = "fixed-factor-clock";
155 clocks = <&a9pll>;
156 clock-div = <2>;
157 clock-mult = <1>;
158 };
159 };
160
161 axi {
162 compatible = "simple-bus";
163 ranges = <0x00000000 0x18000000 0x0011c40c>;
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 gpioa: gpio@0020 {
168 compatible = "brcm,nsp-gpio-a";
169 reg = <0x0020 0x70>,
170 <0x3f1c4 0x1c>;
171 #gpio-cells = <2>;
172 gpio-controller;
173 ngpios = <32>;
174 interrupt-controller;
175 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
176 gpio-ranges = <&pinctrl 0 0 32>;
177 };
178
179 uart0: serial@0300 {
180 compatible = "ns16550a";
181 reg = <0x0300 0x100>;
182 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
183 clocks = <&osc>;
184 status = "disabled";
185 };
186
187 uart1: serial@0400 {
188 compatible = "ns16550a";
189 reg = <0x0400 0x100>;
190 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
191 clocks = <&osc>;
192 status = "disabled";
193 };
194
195 dma@20000 {
196 compatible = "arm,pl330", "arm,primecell";
197 reg = <0x20000 0x1000>;
198 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
199 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
200 <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
201 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
202 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
203 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
204 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
205 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
206 <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
207 clocks = <&iprocslow>;
208 clock-names = "apb_pclk";
209 #dma-cells = <1>;
210 };
211
212 sdio: sdhci@21000 {
213 compatible = "brcm,sdhci-iproc-cygnus";
214 reg = <0x21000 0x100>;
215 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
216 sdhci,auto-cmd12;
217 clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>;
218 status = "disabled";
219 };
220
221 amac0: ethernet@22000 {
222 compatible = "brcm,nsp-amac";
223 reg = <0x022000 0x1000>,
224 <0x110000 0x1000>;
225 reg-names = "amac_base", "idm_base";
226 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
227 status = "disabled";
228 };
229
230 amac1: ethernet@23000 {
231 compatible = "brcm,nsp-amac";
232 reg = <0x023000 0x1000>,
233 <0x111000 0x1000>;
234 reg-names = "amac_base", "idm_base";
235 interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
236 status = "disabled";
237 };
238
239 amac2: ethernet@24000 {
240 compatible = "brcm,nsp-amac";
241 reg = <0x024000 0x1000>,
242 <0x112000 0x1000>;
243 reg-names = "amac_base", "idm_base";
244 interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
245 status = "disabled";
246 };
247
248 mailbox: mailbox@25000 {
249 compatible = "brcm,iproc-fa2-mbox";
250 reg = <0x25000 0x445>;
251 interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
252 #mbox-cells = <1>;
253 brcm,rx-status-len = <32>;
254 brcm,use-bcm-hdr;
255 };
256
257 nand: nand@26000 {
258 compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
259 reg = <0x026000 0x600>,
260 <0x11b408 0x600>,
261 <0x026f00 0x20>;
262 reg-names = "nand", "iproc-idm", "iproc-ext";
263 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
264
265 #address-cells = <1>;
266 #size-cells = <0>;
267
268 brcm,nand-has-wp;
269 };
270
271 qspi: qspi@27200 {
272 compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
273 reg = <0x027200 0x184>,
274 <0x027000 0x124>,
275 <0x11c408 0x004>,
276 <0x0273a0 0x01c>;
277 reg-names = "mspi", "bspi", "intr_regs",
278 "intr_status_reg";
279 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
280 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
281 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
282 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
283 <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
284 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
285 <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
286 interrupt-names = "spi_lr_fullness_reached",
287 "spi_lr_session_aborted",
288 "spi_lr_impatient",
289 "spi_lr_session_done",
290 "spi_lr_overhead",
291 "mspi_done",
292 "mspi_halted";
293 clocks = <&iprocmed>;
294 clock-names = "iprocmed";
295 num-cs = <2>;
296 #address-cells = <1>;
297 #size-cells = <0>;
298 };
299
300 crypto@2f000 {
301 compatible = "brcm,spum-nsp-crypto";
302 reg = <0x2f000 0x900>;
303 mboxes = <&mailbox 0>;
304 };
305
306 gpiob: gpio@30000 {
307 compatible = "brcm,iproc-nsp-gpio", "brcm,iproc-gpio";
308 reg = <0x30000 0x50>;
309 #gpio-cells = <2>;
310 gpio-controller;
311 ngpios = <4>;
312 interrupt-controller;
313 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
314 };
315
316 pwm: pwm@31000 {
317 compatible = "brcm,iproc-pwm";
318 reg = <0x31000 0x28>;
319 clocks = <&osc>;
320 #pwm-cells = <3>;
321 status = "disabled";
322 };
323
324 ehci0: usb@2a000 {
325 compatible = "generic-ehci";
326 reg = <0x2a000 0x100>;
327 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
328 status = "disabled";
329 };
330
331 ohci0: usb@2b000 {
332 compatible = "generic-ohci";
333 reg = <0x2b000 0x100>;
334 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
335 status = "disabled";
336 };
337
338 rng: rng@33000 {
339 compatible = "brcm,bcm-nsp-rng";
340 reg = <0x33000 0x14>;
341 };
342
343 ccbtimer0: timer@34000 {
344 compatible = "arm,sp804";
345 reg = <0x34000 0x1000>;
346 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
347 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
348 clocks = <&iprocslow>;
349 clock-names = "apb_pclk";
350 };
351
352 ccbtimer1: timer@35000 {
353 compatible = "arm,sp804";
354 reg = <0x35000 0x1000>;
355 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
356 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
357 clocks = <&iprocslow>;
358 clock-names = "apb_pclk";
359 };
360
361 srab: srab@36000 {
362 compatible = "brcm,nsp-srab";
363 reg = <0x36000 0x1000>;
364 #address-cells = <1>;
365 #size-cells = <0>;
366
367 status = "disabled";
368
369 /* ports are defined in board DTS */
370 };
371
372 i2c0: i2c@38000 {
373 compatible = "brcm,iproc-i2c";
374 reg = <0x38000 0x50>;
375 #address-cells = <1>;
376 #size-cells = <0>;
377 interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>;
378 clock-frequency = <100000>;
379 status = "disabled";
380 };
381
382 watchdog@39000 {
383 compatible = "arm,sp805", "arm,primecell";
384 reg = <0x39000 0x1000>;
385 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
386 clocks = <&iprocslow>, <&iprocslow>;
387 clock-names = "wdogclk", "apb_pclk";
388 };
389
390 lcpll0: lcpll0@3f100 {
391 #clock-cells = <1>;
392 compatible = "brcm,nsp-lcpll0";
393 reg = <0x3f100 0x14>;
394 clocks = <&osc>;
395 clock-output-names = "lcpll0", "pcie_phy", "sdio",
396 "ddr_phy";
397 };
398
399 genpll: genpll@3f140 {
400 #clock-cells = <1>;
401 compatible = "brcm,nsp-genpll";
402 reg = <0x3f140 0x24>;
403 clocks = <&osc>;
404 clock-output-names = "genpll", "phy", "ethernetclk",
405 "usbclk", "iprocfast", "sata1",
406 "sata2";
407 };
408
409 pinctrl: pinctrl@3f1c0 {
410 compatible = "brcm,nsp-pinmux";
411 reg = <0x3f1c0 0x04>,
412 <0x30028 0x04>,
413 <0x3f408 0x04>;
414 };
415
416 thermal: thermal@3f2c0 {
417 compatible = "brcm,ns-thermal";
418 reg = <0x3f2c0 0x10>;
419 #thermal-sensor-cells = <0>;
420 };
421
422 sata_phy: sata_phy@40100 {
423 compatible = "brcm,iproc-nsp-sata-phy";
424 reg = <0x40100 0x340>;
425 reg-names = "phy";
426 #address-cells = <1>;
427 #size-cells = <0>;
428
429 sata_phy0: sata-phy@0 {
430 reg = <0>;
431 #phy-cells = <0>;
432 status = "disabled";
433 };
434
435 sata_phy1: sata-phy@1 {
436 reg = <1>;
437 #phy-cells = <0>;
438 status = "disabled";
439 };
440 };
441
442 sata: ahci@41000 {
443 compatible = "brcm,bcm-nsp-ahci";
444 reg-names = "ahci", "top-ctrl";
445 reg = <0x41000 0x1000>, <0x40020 0x1c>;
446 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
447 #address-cells = <1>;
448 #size-cells = <0>;
449 status = "disabled";
450
451 sata0: sata-port@0 {
452 reg = <0>;
453 phys = <&sata_phy0>;
454 phy-names = "sata-phy";
455 };
456
457 sata1: sata-port@1 {
458 reg = <1>;
459 phys = <&sata_phy1>;
460 phy-names = "sata-phy";
461 };
462 };
463 };
464
465 pcie0: pcie@18012000 {
466 compatible = "brcm,iproc-pcie";
467 reg = <0x18012000 0x1000>;
468
469 #interrupt-cells = <1>;
470 interrupt-map-mask = <0 0 0 0>;
471 interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_NONE>;
472
473 linux,pci-domain = <0>;
474
475 bus-range = <0x00 0xff>;
476
477 #address-cells = <3>;
478 #size-cells = <2>;
479 device_type = "pci";
480
481 /* Note: The HW does not support I/O resources. So,
482 * only the memory resource range is being specified.
483 */
484 ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>;
485
486 status = "disabled";
487
488 msi-parent = <&msi0>;
489 msi0: msi-controller {
490 compatible = "brcm,iproc-msi";
491 msi-controller;
492 interrupt-parent = <&gic>;
493 interrupts = <GIC_SPI 127 IRQ_TYPE_NONE>,
494 <GIC_SPI 128 IRQ_TYPE_NONE>,
495 <GIC_SPI 129 IRQ_TYPE_NONE>,
496 <GIC_SPI 130 IRQ_TYPE_NONE>;
497 brcm,pcie-msi-inten;
498 };
499 };
500
501 pcie1: pcie@18013000 {
502 compatible = "brcm,iproc-pcie";
503 reg = <0x18013000 0x1000>;
504
505 #interrupt-cells = <1>;
506 interrupt-map-mask = <0 0 0 0>;
507 interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_NONE>;
508
509 linux,pci-domain = <1>;
510
511 bus-range = <0x00 0xff>;
512
513 #address-cells = <3>;
514 #size-cells = <2>;
515 device_type = "pci";
516
517 /* Note: The HW does not support I/O resources. So,
518 * only the memory resource range is being specified.
519 */
520 ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>;
521
522 status = "disabled";
523
524 msi-parent = <&msi1>;
525 msi1: msi-controller {
526 compatible = "brcm,iproc-msi";
527 msi-controller;
528 interrupt-parent = <&gic>;
529 interrupts = <GIC_SPI 133 IRQ_TYPE_NONE>,
530 <GIC_SPI 134 IRQ_TYPE_NONE>,
531 <GIC_SPI 135 IRQ_TYPE_NONE>,
532 <GIC_SPI 136 IRQ_TYPE_NONE>;
533 brcm,pcie-msi-inten;
534 };
535 };
536
537 pcie2: pcie@18014000 {
538 compatible = "brcm,iproc-pcie";
539 reg = <0x18014000 0x1000>;
540
541 #interrupt-cells = <1>;
542 interrupt-map-mask = <0 0 0 0>;
543 interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_NONE>;
544
545 linux,pci-domain = <2>;
546
547 bus-range = <0x00 0xff>;
548
549 #address-cells = <3>;
550 #size-cells = <2>;
551 device_type = "pci";
552
553 /* Note: The HW does not support I/O resources. So,
554 * only the memory resource range is being specified.
555 */
556 ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>;
557
558 status = "disabled";
559
560 msi-parent = <&msi2>;
561 msi2: msi-controller {
562 compatible = "brcm,iproc-msi";
563 msi-controller;
564 interrupt-parent = <&gic>;
565 interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>,
566 <GIC_SPI 140 IRQ_TYPE_NONE>,
567 <GIC_SPI 141 IRQ_TYPE_NONE>,
568 <GIC_SPI 142 IRQ_TYPE_NONE>;
569 brcm,pcie-msi-inten;
570 };
571 };
572
573 thermal-zones {
574 cpu-thermal {
575 polling-delay-passive = <0>;
576 polling-delay = <1000>;
577 coefficients = <(-556) 418000>;
578 thermal-sensors = <&thermal>;
579
580 trips {
581 cpu-crit {
582 temperature = <125000>;
583 hysteresis = <0>;
584 type = "critical";
585 };
586 };
587
588 cooling-maps {
589 };
590 };
591 };
592 };