Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Broadcom BCM470X / BCM5301X ARM platform code. |
| 3 | * Generic DTS part for all BCM53010, BCM53011, BCM53012, BCM53014, BCM53015, |
| 4 | * BCM53016, BCM53017, BCM53018, BCM4707, BCM4708 and BCM4709 SoCs |
| 5 | * |
| 6 | * Copyright 2013-2014 Hauke Mehrtens <hauke@hauke-m.de> |
| 7 | * |
| 8 | * Licensed under the GNU/GPL. See COPYING for details. |
| 9 | */ |
| 10 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 11 | #include <dt-bindings/clock/bcm-nsp.h> |
Rafał Miłecki | fb026d3 | 2014-10-01 15:45:28 +0200 | [diff] [blame] | 12 | #include <dt-bindings/gpio/gpio.h> |
Rafał Miłecki | f6f8234 | 2014-11-30 18:28:29 +0100 | [diff] [blame] | 13 | #include <dt-bindings/input/input.h> |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 14 | #include <dt-bindings/interrupt-controller/irq.h> |
| 15 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 16 | #include "skeleton.dtsi" |
| 17 | |
| 18 | / { |
| 19 | interrupt-parent = <&gic>; |
| 20 | |
| 21 | chipcommonA { |
| 22 | compatible = "simple-bus"; |
| 23 | ranges = <0x00000000 0x18000000 0x00001000>; |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <1>; |
| 26 | |
| 27 | uart0: serial@0300 { |
| 28 | compatible = "ns16550"; |
| 29 | reg = <0x0300 0x100>; |
| 30 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 31 | clocks = <&iprocslow>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 32 | status = "disabled"; |
| 33 | }; |
| 34 | |
| 35 | uart1: serial@0400 { |
| 36 | compatible = "ns16550"; |
| 37 | reg = <0x0400 0x100>; |
| 38 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 39 | clocks = <&iprocslow>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 40 | status = "disabled"; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | mpcore { |
| 45 | compatible = "simple-bus"; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 46 | ranges = <0x00000000 0x19000000 0x00023000>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 47 | #address-cells = <1>; |
| 48 | #size-cells = <1>; |
| 49 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 50 | a9pll: arm_clk@00000 { |
| 51 | #clock-cells = <0>; |
| 52 | compatible = "brcm,nsp-armpll"; |
| 53 | clocks = <&osc>; |
| 54 | reg = <0x00000 0x1000>; |
| 55 | }; |
| 56 | |
| 57 | scu@20000 { |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 58 | compatible = "arm,cortex-a9-scu"; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 59 | reg = <0x20000 0x100>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 60 | }; |
| 61 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 62 | timer@20200 { |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 63 | compatible = "arm,cortex-a9-global-timer"; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 64 | reg = <0x20200 0x100>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 65 | interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 66 | clocks = <&periph_clk>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 67 | }; |
| 68 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 69 | local-timer@20600 { |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 70 | compatible = "arm,cortex-a9-twd-timer"; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 71 | reg = <0x20600 0x100>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 72 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 73 | clocks = <&periph_clk>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 74 | }; |
| 75 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 76 | gic: interrupt-controller@21000 { |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 77 | compatible = "arm,cortex-a9-gic"; |
| 78 | #interrupt-cells = <3>; |
| 79 | #address-cells = <0>; |
| 80 | interrupt-controller; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 81 | reg = <0x21000 0x1000>, |
| 82 | <0x20100 0x100>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 83 | }; |
| 84 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 85 | L2: cache-controller@22000 { |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 86 | compatible = "arm,pl310-cache"; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 87 | reg = <0x22000 0x1000>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 88 | cache-unified; |
Hauke Mehrtens | db44f13 | 2015-07-29 23:50:59 +0200 | [diff] [blame] | 89 | arm,shared-override; |
| 90 | prefetch-data = <1>; |
| 91 | prefetch-instr = <1>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 92 | cache-level = <2>; |
| 93 | }; |
| 94 | }; |
| 95 | |
Felix Fietkau | 1ff8036 | 2015-07-29 23:51:00 +0200 | [diff] [blame] | 96 | pmu { |
| 97 | compatible = "arm,cortex-a9-pmu"; |
| 98 | interrupts = |
| 99 | <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, |
| 100 | <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 101 | }; |
| 102 | |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 103 | clocks { |
| 104 | #address-cells = <1>; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 105 | #size-cells = <1>; |
| 106 | ranges; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 107 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 108 | osc: oscillator { |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 109 | #clock-cells = <0>; |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 110 | compatible = "fixed-clock"; |
| 111 | clock-frequency = <25000000>; |
| 112 | }; |
| 113 | |
| 114 | iprocmed: iprocmed { |
| 115 | #clock-cells = <0>; |
| 116 | compatible = "fixed-factor-clock"; |
| 117 | clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>; |
| 118 | clock-div = <2>; |
| 119 | clock-mult = <1>; |
| 120 | }; |
| 121 | |
| 122 | iprocslow: iprocslow { |
| 123 | #clock-cells = <0>; |
| 124 | compatible = "fixed-factor-clock"; |
| 125 | clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>; |
| 126 | clock-div = <4>; |
| 127 | clock-mult = <1>; |
| 128 | }; |
| 129 | |
| 130 | periph_clk: periph_clk { |
| 131 | #clock-cells = <0>; |
| 132 | compatible = "fixed-factor-clock"; |
| 133 | clocks = <&a9pll>; |
| 134 | clock-div = <2>; |
| 135 | clock-mult = <1>; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 136 | }; |
| 137 | }; |
Rafał Miłecki | fb026d3 | 2014-10-01 15:45:28 +0200 | [diff] [blame] | 138 | |
| 139 | axi@18000000 { |
| 140 | compatible = "brcm,bus-axi"; |
| 141 | reg = <0x18000000 0x1000>; |
| 142 | ranges = <0x00000000 0x18000000 0x00100000>; |
| 143 | #address-cells = <1>; |
| 144 | #size-cells = <1>; |
| 145 | |
Hauke Mehrtens | dec3788 | 2014-09-24 23:50:07 +0200 | [diff] [blame] | 146 | #interrupt-cells = <1>; |
| 147 | interrupt-map-mask = <0x000fffff 0xffff>; |
| 148 | interrupt-map = |
| 149 | /* ChipCommon */ |
| 150 | <0x00000000 0 &gic GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>, |
| 151 | |
Hauke Mehrtens | 1f80de6 | 2015-05-24 21:08:14 +0200 | [diff] [blame] | 152 | /* PCIe Controller 0 */ |
| 153 | <0x00012000 0 &gic GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>, |
| 154 | <0x00012000 1 &gic GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>, |
| 155 | <0x00012000 2 &gic GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, |
| 156 | <0x00012000 3 &gic GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>, |
| 157 | <0x00012000 4 &gic GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, |
| 158 | <0x00012000 5 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, |
| 159 | |
| 160 | /* PCIe Controller 1 */ |
| 161 | <0x00013000 0 &gic GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>, |
| 162 | <0x00013000 1 &gic GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>, |
| 163 | <0x00013000 2 &gic GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>, |
| 164 | <0x00013000 3 &gic GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>, |
| 165 | <0x00013000 4 &gic GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>, |
| 166 | <0x00013000 5 &gic GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, |
| 167 | |
| 168 | /* PCIe Controller 2 */ |
| 169 | <0x00014000 0 &gic GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, |
| 170 | <0x00014000 1 &gic GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, |
| 171 | <0x00014000 2 &gic GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>, |
| 172 | <0x00014000 3 &gic GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>, |
| 173 | <0x00014000 4 &gic GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>, |
| 174 | <0x00014000 5 &gic GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>, |
| 175 | |
Hauke Mehrtens | dec3788 | 2014-09-24 23:50:07 +0200 | [diff] [blame] | 176 | /* USB 2.0 Controller */ |
| 177 | <0x00021000 0 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>, |
| 178 | |
| 179 | /* USB 3.0 Controller */ |
| 180 | <0x00023000 0 &gic GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>, |
| 181 | |
| 182 | /* Ethernet Controller 0 */ |
| 183 | <0x00024000 0 &gic GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>, |
| 184 | |
| 185 | /* Ethernet Controller 1 */ |
| 186 | <0x00025000 0 &gic GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>, |
| 187 | |
| 188 | /* Ethernet Controller 2 */ |
| 189 | <0x00026000 0 &gic GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, |
| 190 | |
| 191 | /* Ethernet Controller 3 */ |
| 192 | <0x00027000 0 &gic GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>, |
| 193 | |
| 194 | /* NAND Controller */ |
| 195 | <0x00028000 0 &gic GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>, |
| 196 | <0x00028000 1 &gic GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>, |
| 197 | <0x00028000 2 &gic GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>, |
| 198 | <0x00028000 3 &gic GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, |
| 199 | <0x00028000 4 &gic GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, |
| 200 | <0x00028000 5 &gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, |
| 201 | <0x00028000 6 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>, |
| 202 | <0x00028000 7 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; |
| 203 | |
Rafał Miłecki | fb026d3 | 2014-10-01 15:45:28 +0200 | [diff] [blame] | 204 | chipcommon: chipcommon@0 { |
| 205 | reg = <0x00000000 0x1000>; |
| 206 | |
| 207 | gpio-controller; |
| 208 | #gpio-cells = <2>; |
| 209 | }; |
Rafał Miłecki | dd70ccf | 2016-03-23 16:52:47 +0100 | [diff] [blame^] | 210 | |
| 211 | usb2: usb2@21000 { |
| 212 | reg = <0x00021000 0x1000>; |
| 213 | |
| 214 | #address-cells = <1>; |
| 215 | #size-cells = <1>; |
| 216 | }; |
| 217 | |
| 218 | usb3: usb3@23000 { |
| 219 | reg = <0x00023000 0x1000>; |
| 220 | |
| 221 | #address-cells = <1>; |
| 222 | #size-cells = <1>; |
| 223 | }; |
Rafał Miłecki | fb026d3 | 2014-10-01 15:45:28 +0200 | [diff] [blame] | 224 | }; |
Hauke Mehrtens | 9faa596 | 2015-05-29 23:39:47 +0200 | [diff] [blame] | 225 | |
Jon Mason | cdc36b2 | 2015-11-20 10:17:18 -0500 | [diff] [blame] | 226 | lcpll0: lcpll0@1800c100 { |
| 227 | #clock-cells = <1>; |
| 228 | compatible = "brcm,nsp-lcpll0"; |
| 229 | reg = <0x1800c100 0x14>; |
| 230 | clocks = <&osc>; |
| 231 | clock-output-names = "lcpll0", "pcie_phy", "sdio", |
| 232 | "ddr_phy"; |
| 233 | }; |
| 234 | |
| 235 | genpll: genpll@1800c140 { |
| 236 | #clock-cells = <1>; |
| 237 | compatible = "brcm,nsp-genpll"; |
| 238 | reg = <0x1800c140 0x24>; |
| 239 | clocks = <&osc>; |
| 240 | clock-output-names = "genpll", "phy", "ethernetclk", |
| 241 | "usbclk", "iprocfast", "sata1", |
| 242 | "sata2"; |
| 243 | }; |
| 244 | |
Hauke Mehrtens | 9faa596 | 2015-05-29 23:39:47 +0200 | [diff] [blame] | 245 | nand: nand@18028000 { |
| 246 | compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand"; |
| 247 | reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>; |
| 248 | reg-names = "nand", "iproc-idm", "iproc-ext"; |
| 249 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
| 250 | |
| 251 | #address-cells = <1>; |
| 252 | #size-cells = <0>; |
| 253 | |
| 254 | brcm,nand-has-wp; |
| 255 | }; |
Hauke Mehrtens | d27509f | 2014-02-04 00:01:45 +0100 | [diff] [blame] | 256 | }; |