2014-02-04 07:01:45 +08:00
|
|
|
/*
|
|
|
|
* Broadcom BCM470X / BCM5301X ARM platform code.
|
|
|
|
* Generic DTS part for all BCM53010, BCM53011, BCM53012, BCM53014, BCM53015,
|
|
|
|
* BCM53016, BCM53017, BCM53018, BCM4707, BCM4708 and BCM4709 SoCs
|
|
|
|
*
|
|
|
|
* Copyright 2013-2014 Hauke Mehrtens <hauke@hauke-m.de>
|
|
|
|
*
|
|
|
|
* Licensed under the GNU/GPL. See COPYING for details.
|
|
|
|
*/
|
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
#include <dt-bindings/clock/bcm-nsp.h>
|
2014-10-01 21:45:28 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2014-12-01 01:28:29 +08:00
|
|
|
#include <dt-bindings/input/input.h>
|
2014-02-04 07:01:45 +08:00
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
#include "skeleton.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
|
2016-04-07 00:49:55 +08:00
|
|
|
chosen {
|
|
|
|
stdout-path = &uart0;
|
|
|
|
};
|
|
|
|
|
2014-02-04 07:01:45 +08:00
|
|
|
chipcommonA {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
ranges = <0x00000000 0x18000000 0x00001000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
uart0: serial@0300 {
|
|
|
|
compatible = "ns16550";
|
|
|
|
reg = <0x0300 0x100>;
|
|
|
|
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
|
2015-11-20 23:17:18 +08:00
|
|
|
clocks = <&iprocslow>;
|
2014-02-04 07:01:45 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart1: serial@0400 {
|
|
|
|
compatible = "ns16550";
|
|
|
|
reg = <0x0400 0x100>;
|
|
|
|
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
|
2015-11-20 23:17:18 +08:00
|
|
|
clocks = <&iprocslow>;
|
2014-02-04 07:01:45 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
mpcore {
|
|
|
|
compatible = "simple-bus";
|
2015-11-20 23:17:18 +08:00
|
|
|
ranges = <0x00000000 0x19000000 0x00023000>;
|
2014-02-04 07:01:45 +08:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
a9pll: arm_clk@00000 {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "brcm,nsp-armpll";
|
|
|
|
clocks = <&osc>;
|
|
|
|
reg = <0x00000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
scu@20000 {
|
2014-02-04 07:01:45 +08:00
|
|
|
compatible = "arm,cortex-a9-scu";
|
2015-11-20 23:17:18 +08:00
|
|
|
reg = <0x20000 0x100>;
|
2014-02-04 07:01:45 +08:00
|
|
|
};
|
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
timer@20200 {
|
2014-02-04 07:01:45 +08:00
|
|
|
compatible = "arm,cortex-a9-global-timer";
|
2015-11-20 23:17:18 +08:00
|
|
|
reg = <0x20200 0x100>;
|
2014-02-04 07:01:45 +08:00
|
|
|
interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
|
2015-11-20 23:17:18 +08:00
|
|
|
clocks = <&periph_clk>;
|
2014-02-04 07:01:45 +08:00
|
|
|
};
|
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
local-timer@20600 {
|
2014-02-04 07:01:45 +08:00
|
|
|
compatible = "arm,cortex-a9-twd-timer";
|
2015-11-20 23:17:18 +08:00
|
|
|
reg = <0x20600 0x100>;
|
2014-02-04 07:01:45 +08:00
|
|
|
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
|
2015-11-20 23:17:18 +08:00
|
|
|
clocks = <&periph_clk>;
|
2014-02-04 07:01:45 +08:00
|
|
|
};
|
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
gic: interrupt-controller@21000 {
|
2014-02-04 07:01:45 +08:00
|
|
|
compatible = "arm,cortex-a9-gic";
|
|
|
|
#interrupt-cells = <3>;
|
|
|
|
#address-cells = <0>;
|
|
|
|
interrupt-controller;
|
2015-11-20 23:17:18 +08:00
|
|
|
reg = <0x21000 0x1000>,
|
|
|
|
<0x20100 0x100>;
|
2014-02-04 07:01:45 +08:00
|
|
|
};
|
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
L2: cache-controller@22000 {
|
2014-02-04 07:01:45 +08:00
|
|
|
compatible = "arm,pl310-cache";
|
2015-11-20 23:17:18 +08:00
|
|
|
reg = <0x22000 0x1000>;
|
2014-02-04 07:01:45 +08:00
|
|
|
cache-unified;
|
2015-07-30 05:50:59 +08:00
|
|
|
arm,shared-override;
|
|
|
|
prefetch-data = <1>;
|
|
|
|
prefetch-instr = <1>;
|
2014-02-04 07:01:45 +08:00
|
|
|
cache-level = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-07-30 05:51:00 +08:00
|
|
|
pmu {
|
|
|
|
compatible = "arm,cortex-a9-pmu";
|
|
|
|
interrupts =
|
|
|
|
<GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
};
|
|
|
|
|
2014-02-04 07:01:45 +08:00
|
|
|
clocks {
|
|
|
|
#address-cells = <1>;
|
2015-11-20 23:17:18 +08:00
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
2014-02-04 07:01:45 +08:00
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
osc: oscillator {
|
|
|
|
#clock-cells = <0>;
|
2014-02-04 07:01:45 +08:00
|
|
|
compatible = "fixed-clock";
|
2015-11-20 23:17:18 +08:00
|
|
|
clock-frequency = <25000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
iprocmed: iprocmed {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
|
|
|
|
clock-div = <2>;
|
|
|
|
clock-mult = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
iprocslow: iprocslow {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
|
|
|
|
clock-div = <4>;
|
|
|
|
clock-mult = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
periph_clk: periph_clk {
|
2014-02-04 07:01:45 +08:00
|
|
|
#clock-cells = <0>;
|
2015-11-20 23:17:18 +08:00
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
clocks = <&a9pll>;
|
|
|
|
clock-div = <2>;
|
|
|
|
clock-mult = <1>;
|
2014-02-04 07:01:45 +08:00
|
|
|
};
|
|
|
|
};
|
2014-10-01 21:45:28 +08:00
|
|
|
|
2016-06-02 04:07:07 +08:00
|
|
|
usb2_phy: usb2-phy {
|
|
|
|
compatible = "brcm,ns-usb2-phy";
|
|
|
|
reg = <0x1800c000 0x1000>;
|
|
|
|
reg-names = "dmu";
|
|
|
|
#phy-cells = <0>;
|
|
|
|
clocks = <&genpll BCM_NSP_GENPLL_USB_PHY_REF_CLK>;
|
|
|
|
clock-names = "phy-ref-clk";
|
|
|
|
};
|
|
|
|
|
2014-10-01 21:45:28 +08:00
|
|
|
axi@18000000 {
|
|
|
|
compatible = "brcm,bus-axi";
|
|
|
|
reg = <0x18000000 0x1000>;
|
|
|
|
ranges = <0x00000000 0x18000000 0x00100000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2014-09-25 05:50:07 +08:00
|
|
|
#interrupt-cells = <1>;
|
|
|
|
interrupt-map-mask = <0x000fffff 0xffff>;
|
|
|
|
interrupt-map =
|
|
|
|
/* ChipCommon */
|
|
|
|
<0x00000000 0 &gic GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
2016-05-25 02:41:58 +08:00
|
|
|
/* Switch Register Access Block */
|
|
|
|
<0x00007000 0 &gic GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 1 &gic GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 2 &gic GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 3 &gic GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 4 &gic GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 5 &gic GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 6 &gic GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 7 &gic GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 8 &gic GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 9 &gic GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 10 &gic GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 11 &gic GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00007000 12 &gic GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
2015-05-25 03:08:14 +08:00
|
|
|
/* PCIe Controller 0 */
|
|
|
|
<0x00012000 0 &gic GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00012000 1 &gic GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00012000 2 &gic GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00012000 3 &gic GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00012000 4 &gic GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00012000 5 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* PCIe Controller 1 */
|
|
|
|
<0x00013000 0 &gic GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00013000 1 &gic GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00013000 2 &gic GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00013000 3 &gic GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00013000 4 &gic GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00013000 5 &gic GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* PCIe Controller 2 */
|
|
|
|
<0x00014000 0 &gic GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00014000 1 &gic GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00014000 2 &gic GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00014000 3 &gic GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00014000 4 &gic GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00014000 5 &gic GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
2014-09-25 05:50:07 +08:00
|
|
|
/* USB 2.0 Controller */
|
|
|
|
<0x00021000 0 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* USB 3.0 Controller */
|
|
|
|
<0x00023000 0 &gic GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* Ethernet Controller 0 */
|
|
|
|
<0x00024000 0 &gic GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* Ethernet Controller 1 */
|
|
|
|
<0x00025000 0 &gic GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* Ethernet Controller 2 */
|
|
|
|
<0x00026000 0 &gic GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* Ethernet Controller 3 */
|
|
|
|
<0x00027000 0 &gic GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
|
|
|
|
/* NAND Controller */
|
|
|
|
<0x00028000 0 &gic GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00028000 1 &gic GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00028000 2 &gic GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00028000 3 &gic GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00028000 4 &gic GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00028000 5 &gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00028000 6 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<0x00028000 7 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
|
2014-10-01 21:45:28 +08:00
|
|
|
chipcommon: chipcommon@0 {
|
|
|
|
reg = <0x00000000 0x1000>;
|
|
|
|
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
2016-03-23 23:52:47 +08:00
|
|
|
|
|
|
|
usb2: usb2@21000 {
|
|
|
|
reg = <0x00021000 0x1000>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2016-06-02 04:07:07 +08:00
|
|
|
|
|
|
|
phys = <&usb2_phy>;
|
2016-03-23 23:52:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
usb3: usb3@23000 {
|
|
|
|
reg = <0x00023000 0x1000>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
};
|
2016-04-19 14:56:46 +08:00
|
|
|
|
|
|
|
spi@29000 {
|
|
|
|
reg = <0x00029000 0x1000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
spi_nor: spi-nor@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <20000000>;
|
|
|
|
linux,part-probe = "ofpart", "bcm47xxpart";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
2016-05-24 07:38:00 +08:00
|
|
|
|
|
|
|
gmac0: ethernet@24000 {
|
|
|
|
reg = <0x24000 0x800>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gmac1: ethernet@25000 {
|
|
|
|
reg = <0x25000 0x800>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gmac2: ethernet@26000 {
|
|
|
|
reg = <0x26000 0x800>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gmac3: ethernet@27000 {
|
|
|
|
reg = <0x27000 0x800>;
|
|
|
|
};
|
2014-10-01 21:45:28 +08:00
|
|
|
};
|
2015-05-30 05:39:47 +08:00
|
|
|
|
2015-11-20 23:17:18 +08:00
|
|
|
lcpll0: lcpll0@1800c100 {
|
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "brcm,nsp-lcpll0";
|
|
|
|
reg = <0x1800c100 0x14>;
|
|
|
|
clocks = <&osc>;
|
|
|
|
clock-output-names = "lcpll0", "pcie_phy", "sdio",
|
|
|
|
"ddr_phy";
|
|
|
|
};
|
|
|
|
|
|
|
|
genpll: genpll@1800c140 {
|
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "brcm,nsp-genpll";
|
|
|
|
reg = <0x1800c140 0x24>;
|
|
|
|
clocks = <&osc>;
|
|
|
|
clock-output-names = "genpll", "phy", "ethernetclk",
|
|
|
|
"usbclk", "iprocfast", "sata1",
|
|
|
|
"sata2";
|
|
|
|
};
|
|
|
|
|
2016-05-24 07:38:00 +08:00
|
|
|
srab: srab@18007000 {
|
|
|
|
compatible = "brcm,bcm5301x-srab";
|
|
|
|
reg = <0x18007000 0x1000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
|
|
|
|
/* ports are defined in board DTS */
|
|
|
|
};
|
|
|
|
|
2016-06-23 08:27:03 +08:00
|
|
|
rng: rng@18004000 {
|
|
|
|
compatible = "brcm,bcm5301x-rng";
|
|
|
|
reg = <0x18004000 0x14>;
|
|
|
|
};
|
|
|
|
|
2015-05-30 05:39:47 +08:00
|
|
|
nand: nand@18028000 {
|
|
|
|
compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
|
|
|
|
reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
|
|
|
|
reg-names = "nand", "iproc-idm", "iproc-ext";
|
|
|
|
interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
brcm,nand-has-wp;
|
|
|
|
};
|
2014-02-04 07:01:45 +08:00
|
|
|
};
|