4 * Copyright(c) 2015 Broadcom Corporation. All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
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
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.
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.
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>
40 compatible = "brcm,nsp";
41 model = "Broadcom Northstar Plus SoC";
42 interrupt-parent = <&gic>;
58 compatible = "arm,cortex-a9";
59 next-level-cache = <&L2>;
65 compatible = "arm,cortex-a9";
66 next-level-cache = <&L2>;
67 enable-method = "brcm,bcm-nsp-smp";
68 secondary-boot-reg = <0xffff0fec>;
74 compatible = "arm,cortex-a9-pmu";
75 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH
76 GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
77 interrupt-affinity = <&cpu0>, <&cpu1>;
81 compatible = "simple-bus";
82 ranges = <0x00000000 0x19000000 0x00023000>;
88 compatible = "brcm,nsp-armpll";
90 reg = <0x00000 0x1000>;
94 compatible = "arm,cortex-a9-global-timer";
95 reg = <0x20200 0x100>;
96 interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
97 clocks = <&periph_clk>;
101 compatible = "arm,cortex-a9-twd-timer";
102 reg = <0x20600 0x20>;
103 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
104 IRQ_TYPE_EDGE_RISING)>;
105 clocks = <&periph_clk>;
109 compatible = "arm,cortex-a9-twd-wdt";
110 reg = <0x20620 0x20>;
111 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
112 IRQ_TYPE_LEVEL_HIGH)>;
113 clocks = <&periph_clk>;
116 gic: interrupt-controller@21000 {
117 compatible = "arm,cortex-a9-gic";
118 #interrupt-cells = <3>;
119 #address-cells = <0>;
120 interrupt-controller;
121 reg = <0x21000 0x1000>,
125 L2: cache-controller@22000 {
126 compatible = "arm,pl310-cache";
127 reg = <0x22000 0x1000>;
134 #address-cells = <1>;
140 compatible = "fixed-clock";
141 clock-frequency = <25000000>;
146 compatible = "fixed-factor-clock";
147 clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
152 iprocslow: iprocslow {
154 compatible = "fixed-factor-clock";
155 clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
160 periph_clk: periph_clk {
162 compatible = "fixed-factor-clock";
170 compatible = "simple-bus";
171 ranges = <0x00000000 0x18000000 0x0011c40c>;
172 #address-cells = <1>;
176 compatible = "brcm,nsp-gpio-a";
182 interrupt-controller;
183 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
184 gpio-ranges = <&pinctrl 0 0 32>;
188 compatible = "ns16550a";
189 reg = <0x0300 0x100>;
190 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
196 compatible = "ns16550a";
197 reg = <0x0400 0x100>;
198 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
204 compatible = "arm,pl330", "arm,primecell";
205 reg = <0x20000 0x1000>;
206 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
207 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
208 <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
209 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
210 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
211 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
212 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
213 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
214 <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
215 clocks = <&iprocslow>;
216 clock-names = "apb_pclk";
223 compatible = "brcm,sdhci-iproc-cygnus";
224 reg = <0x21000 0x100>;
225 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
227 clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>;
232 amac0: ethernet@22000 {
233 compatible = "brcm,nsp-amac";
234 reg = <0x022000 0x1000>,
236 reg-names = "amac_base", "idm_base";
237 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
242 amac1: ethernet@23000 {
243 compatible = "brcm,nsp-amac";
244 reg = <0x023000 0x1000>,
246 reg-names = "amac_base", "idm_base";
247 interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
252 amac2: ethernet@24000 {
253 compatible = "brcm,nsp-amac";
254 reg = <0x024000 0x1000>,
256 reg-names = "amac_base", "idm_base";
257 interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
262 mailbox: mailbox@25c00 {
263 compatible = "brcm,iproc-fa2-mbox";
264 reg = <0x25c00 0x400>;
265 interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
267 brcm,rx-status-len = <32>;
272 nand_controller: nand-controller@26000 {
273 compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
274 reg = <0x026000 0x600>,
277 reg-names = "nand", "iproc-idm", "iproc-ext";
278 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
280 #address-cells = <1>;
287 compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
288 reg = <0x027200 0x184>,
292 reg-names = "mspi", "bspi", "intr_regs",
294 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
295 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
296 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
297 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
298 <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
299 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
300 <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
301 interrupt-names = "spi_lr_fullness_reached",
302 "spi_lr_session_aborted",
304 "spi_lr_session_done",
308 clocks = <&iprocmed>;
309 clock-names = "iprocmed";
311 #address-cells = <1>;
317 compatible = "generic-xhci";
318 reg = <0x29000 0x1000>;
319 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
321 phy-names = "usb3-phy";
327 compatible = "generic-ehci";
328 reg = <0x2a000 0x100>;
329 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
335 compatible = "generic-ohci";
336 reg = <0x2b000 0x100>;
337 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
343 compatible = "brcm,spum-nsp-crypto";
344 reg = <0x2f000 0x900>;
345 mboxes = <&mailbox 0>;
349 compatible = "brcm,iproc-nsp-gpio", "brcm,iproc-gpio";
350 reg = <0x30000 0x50>;
354 interrupt-controller;
355 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
359 compatible = "brcm,iproc-pwm";
360 reg = <0x31000 0x28>;
367 compatible = "brcm,iproc-mdio";
370 #address-cells = <1>;
374 compatible = "mdio-mux-mmioreg", "mdio-mux";
377 #address-cells = <1>;
379 mdio-parent-bus = <&mdio>;
383 #address-cells = <1>;
386 usb3_phy: usb3-phy@10 {
387 compatible = "brcm,ns-bx-usb3-phy";
389 usb3-dmp-syscon = <&usb3_dmp>;
397 #address-cells = <1>;
403 compatible = "brcm,bcm-nsp-rng";
404 reg = <0x33000 0x14>;
407 ccbtimer0: timer@34000 {
408 compatible = "arm,sp804", "arm,primecell";
409 reg = <0x34000 0x1000>;
410 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
411 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
412 clocks = <&iprocslow>;
413 clock-names = "apb_pclk";
416 ccbtimer1: timer@35000 {
417 compatible = "arm,sp804", "arm,primecell";
418 reg = <0x35000 0x1000>;
419 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
420 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
421 clocks = <&iprocslow>;
422 clock-names = "apb_pclk";
425 srab: ethernet-switch@36000 {
426 compatible = "brcm,nsp-srab";
427 reg = <0x36000 0x1000>,
430 reg-names = "srab", "mux_config", "sgmii_config";
431 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
432 <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
433 <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
434 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
435 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
436 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
437 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
438 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
439 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
440 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
441 <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
442 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
443 <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
444 interrupt-names = "link_state_p0",
454 "imp_sleep_timer_p5",
455 "imp_sleep_timer_p7",
456 "imp_sleep_timer_p8";
459 /* ports are defined in board DTS */
461 #address-cells = <1>;
467 compatible = "brcm,iproc-i2c";
468 reg = <0x38000 0x50>;
469 #address-cells = <1>;
471 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
472 clock-frequency = <100000>;
478 compatible = "arm,sp805", "arm,primecell";
479 reg = <0x39000 0x1000>;
480 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
481 clocks = <&iprocslow>, <&iprocslow>;
482 clock-names = "wdog_clk", "apb_pclk";
485 lcpll0: lcpll0@3f100 {
487 compatible = "brcm,nsp-lcpll0";
488 reg = <0x3f100 0x14>;
490 clock-output-names = "lcpll0", "pcie_phy", "sdio",
494 genpll: genpll@3f140 {
496 compatible = "brcm,nsp-genpll";
497 reg = <0x3f140 0x24>;
499 clock-output-names = "genpll", "phy", "ethernetclk",
500 "usbclk", "iprocfast", "sata1",
504 pinctrl: pinctrl@3f1c0 {
505 compatible = "brcm,nsp-pinmux";
506 reg = <0x3f1c0 0x04>,
511 thermal: thermal@3f2c0 {
512 compatible = "brcm,ns-thermal";
513 reg = <0x3f2c0 0x10>;
514 #thermal-sensor-cells = <0>;
517 sata_phy: sata_phy@40100 {
518 compatible = "brcm,iproc-nsp-sata-phy";
519 reg = <0x40100 0x340>;
521 #address-cells = <1>;
524 sata_phy0: sata-phy@0 {
530 sata_phy1: sata-phy@1 {
538 compatible = "brcm,bcm-nsp-ahci";
539 reg-names = "ahci", "top-ctrl";
540 reg = <0x41000 0x1000>, <0x40020 0x1c>;
541 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
542 #address-cells = <1>;
550 phy-names = "sata-phy";
556 phy-names = "sata-phy";
560 usb3_dmp: syscon@104000 {
561 reg = <0x104000 0x1000>;
565 pcie0: pcie@18012000 {
566 compatible = "brcm,iproc-pcie";
567 reg = <0x18012000 0x1000>;
569 #interrupt-cells = <1>;
570 interrupt-map-mask = <0 0 0 0>;
571 interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
573 linux,pci-domain = <0>;
575 bus-range = <0x00 0xff>;
577 #address-cells = <3>;
581 /* Note: The HW does not support I/O resources. So,
582 * only the memory resource range is being specified.
584 ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>;
589 msi-parent = <&msi0>;
591 compatible = "brcm,iproc-msi";
593 interrupt-parent = <&gic>;
594 interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>,
595 <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
596 <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
597 <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
602 pcie1: pcie@18013000 {
603 compatible = "brcm,iproc-pcie";
604 reg = <0x18013000 0x1000>;
606 #interrupt-cells = <1>;
607 interrupt-map-mask = <0 0 0 0>;
608 interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
610 linux,pci-domain = <1>;
612 bus-range = <0x00 0xff>;
614 #address-cells = <3>;
618 /* Note: The HW does not support I/O resources. So,
619 * only the memory resource range is being specified.
621 ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>;
626 msi-parent = <&msi1>;
628 compatible = "brcm,iproc-msi";
630 interrupt-parent = <&gic>;
631 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
632 <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
633 <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
634 <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
639 pcie2: pcie@18014000 {
640 compatible = "brcm,iproc-pcie";
641 reg = <0x18014000 0x1000>;
643 #interrupt-cells = <1>;
644 interrupt-map-mask = <0 0 0 0>;
645 interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
647 linux,pci-domain = <2>;
649 bus-range = <0x00 0xff>;
651 #address-cells = <3>;
655 /* Note: The HW does not support I/O resources. So,
656 * only the memory resource range is being specified.
658 ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>;
663 msi-parent = <&msi2>;
665 compatible = "brcm,iproc-msi";
667 interrupt-parent = <&gic>;
668 interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>,
669 <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
670 <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
671 <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
678 polling-delay-passive = <0>;
679 polling-delay = <1000>;
680 coefficients = <(-556) 418000>;
681 thermal-sensors = <&thermal>;
685 temperature = <125000>;