Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 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> |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 35 | #include <dt-bindings/clock/bcm-nsp.h> |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 36 | |
| 37 | #include "skeleton.dtsi" |
| 38 | |
| 39 | / { |
| 40 | compatible = "brcm,nsp"; |
| 41 | model = "Broadcom Northstar Plus SoC"; |
| 42 | interrupt-parent = <&gic>; |
| 43 | |
Kapil Hali | 944725f | 2015-12-05 06:53:42 -0500 | [diff] [blame] | 44 | cpus { |
| 45 | #address-cells = <1>; |
| 46 | #size-cells = <0>; |
| 47 | |
| 48 | cpu@0 { |
| 49 | device_type = "cpu"; |
| 50 | compatible = "arm,cortex-a9"; |
| 51 | next-level-cache = <&L2>; |
| 52 | reg = <0x0>; |
| 53 | }; |
| 54 | |
| 55 | 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 = <0xffff042c>; |
| 61 | reg = <0x1>; |
| 62 | }; |
| 63 | }; |
| 64 | |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 65 | mpcore { |
| 66 | compatible = "simple-bus"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 67 | ranges = <0x00000000 0x19000000 0x00023000>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 68 | #address-cells = <1>; |
| 69 | #size-cells = <1>; |
| 70 | |
| 71 | cpus { |
| 72 | #address-cells = <1>; |
| 73 | #size-cells = <0>; |
| 74 | |
| 75 | cpu@0 { |
| 76 | device_type = "cpu"; |
| 77 | compatible = "arm,cortex-a9"; |
| 78 | next-level-cache = <&L2>; |
| 79 | reg = <0x0>; |
| 80 | }; |
| 81 | }; |
| 82 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 83 | a9pll: arm_clk@00000 { |
| 84 | #clock-cells = <0>; |
| 85 | compatible = "brcm,nsp-armpll"; |
| 86 | clocks = <&osc>; |
| 87 | reg = <0x00000 0x1000>; |
| 88 | }; |
| 89 | |
| 90 | timer@20200 { |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 91 | compatible = "arm,cortex-a9-global-timer"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 92 | reg = <0x20200 0x100>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 93 | interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>; |
| 94 | clocks = <&periph_clk>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 95 | }; |
| 96 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 97 | twd-timer@20600 { |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 98 | compatible = "arm,cortex-a9-twd-timer"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 99 | reg = <0x20600 0x20>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 100 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | |
| 101 | IRQ_TYPE_LEVEL_HIGH)>; |
| 102 | clocks = <&periph_clk>; |
| 103 | }; |
| 104 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 105 | twd-watchdog@20620 { |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 106 | compatible = "arm,cortex-a9-twd-wdt"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 107 | reg = <0x20620 0x20>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 108 | interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | |
| 109 | IRQ_TYPE_LEVEL_HIGH)>; |
| 110 | clocks = <&periph_clk>; |
| 111 | }; |
| 112 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 113 | gic: interrupt-controller@21000 { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 114 | compatible = "arm,cortex-a9-gic"; |
| 115 | #interrupt-cells = <3>; |
| 116 | #address-cells = <0>; |
| 117 | interrupt-controller; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 118 | reg = <0x21000 0x1000>, |
| 119 | <0x20100 0x100>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 120 | }; |
| 121 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 122 | L2: l2-cache { |
| 123 | compatible = "arm,pl310-cache"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 124 | reg = <0x22000 0x1000>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 125 | cache-unified; |
| 126 | cache-level = <2>; |
Jon Mason | 1a9d53c | 2015-11-02 13:40:58 -0500 | [diff] [blame] | 127 | }; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 128 | }; |
| 129 | |
| 130 | clocks { |
| 131 | #address-cells = <1>; |
| 132 | #size-cells = <1>; |
| 133 | ranges; |
| 134 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 135 | osc: oscillator { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 136 | #clock-cells = <0>; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 137 | compatible = "fixed-clock"; |
| 138 | clock-frequency = <25000000>; |
| 139 | }; |
| 140 | |
| 141 | iprocmed: iprocmed { |
| 142 | #clock-cells = <0>; |
| 143 | compatible = "fixed-factor-clock"; |
| 144 | clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>; |
| 145 | clock-div = <2>; |
| 146 | clock-mult = <1>; |
| 147 | }; |
| 148 | |
| 149 | iprocslow: iprocslow { |
| 150 | #clock-cells = <0>; |
| 151 | compatible = "fixed-factor-clock"; |
| 152 | clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>; |
| 153 | clock-div = <4>; |
| 154 | clock-mult = <1>; |
| 155 | }; |
| 156 | |
| 157 | periph_clk: periph_clk { |
| 158 | #clock-cells = <0>; |
| 159 | compatible = "fixed-factor-clock"; |
| 160 | clocks = <&a9pll>; |
| 161 | clock-div = <2>; |
| 162 | clock-mult = <1>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 163 | }; |
| 164 | }; |
| 165 | |
| 166 | axi { |
| 167 | compatible = "simple-bus"; |
Jon Mason | 4125475 | 2015-11-02 13:40:57 -0500 | [diff] [blame] | 168 | ranges = <0x00000000 0x18000000 0x0011ba08>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 169 | #address-cells = <1>; |
| 170 | #size-cells = <1>; |
| 171 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 172 | uart0: serial@0300 { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 173 | compatible = "ns16550a"; |
| 174 | reg = <0x0300 0x100>; |
| 175 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 176 | clocks = <&osc>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 177 | status = "disabled"; |
| 178 | }; |
| 179 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 180 | uart1: serial@0400 { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 181 | compatible = "ns16550a"; |
| 182 | reg = <0x0400 0x100>; |
| 183 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 184 | clocks = <&osc>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 185 | status = "disabled"; |
| 186 | }; |
Jon Mason | 1dbcfb2 | 2015-11-02 13:40:56 -0500 | [diff] [blame] | 187 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 188 | pcie0: pcie@12000 { |
Jon Mason | 1dbcfb2 | 2015-11-02 13:40:56 -0500 | [diff] [blame] | 189 | compatible = "brcm,iproc-pcie"; |
| 190 | reg = <0x12000 0x1000>; |
| 191 | |
| 192 | #interrupt-cells = <1>; |
| 193 | interrupt-map-mask = <0 0 0 0>; |
| 194 | interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_NONE>; |
| 195 | |
| 196 | linux,pci-domain = <0>; |
| 197 | |
| 198 | bus-range = <0x00 0xff>; |
| 199 | |
| 200 | #address-cells = <3>; |
| 201 | #size-cells = <2>; |
| 202 | device_type = "pci"; |
| 203 | |
| 204 | /* Note: The HW does not support I/O resources. So, |
| 205 | * only the memory resource range is being specified. |
| 206 | */ |
| 207 | ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; |
| 208 | |
| 209 | status = "disabled"; |
| 210 | }; |
| 211 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 212 | pcie1: pcie@13000 { |
Jon Mason | 1dbcfb2 | 2015-11-02 13:40:56 -0500 | [diff] [blame] | 213 | compatible = "brcm,iproc-pcie"; |
| 214 | reg = <0x13000 0x1000>; |
| 215 | |
| 216 | #interrupt-cells = <1>; |
| 217 | interrupt-map-mask = <0 0 0 0>; |
| 218 | interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_NONE>; |
| 219 | |
| 220 | linux,pci-domain = <1>; |
| 221 | |
| 222 | bus-range = <0x00 0xff>; |
| 223 | |
| 224 | #address-cells = <3>; |
| 225 | #size-cells = <2>; |
| 226 | device_type = "pci"; |
| 227 | |
| 228 | /* Note: The HW does not support I/O resources. So, |
| 229 | * only the memory resource range is being specified. |
| 230 | */ |
| 231 | ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; |
| 232 | |
| 233 | status = "disabled"; |
| 234 | }; |
| 235 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 236 | pcie2: pcie@14000 { |
Jon Mason | 1dbcfb2 | 2015-11-02 13:40:56 -0500 | [diff] [blame] | 237 | compatible = "brcm,iproc-pcie"; |
| 238 | reg = <0x14000 0x1000>; |
| 239 | |
| 240 | #interrupt-cells = <1>; |
| 241 | interrupt-map-mask = <0 0 0 0>; |
| 242 | interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_NONE>; |
| 243 | |
| 244 | linux,pci-domain = <2>; |
| 245 | |
| 246 | bus-range = <0x00 0xff>; |
| 247 | |
| 248 | #address-cells = <3>; |
| 249 | #size-cells = <2>; |
| 250 | device_type = "pci"; |
| 251 | |
| 252 | /* Note: The HW does not support I/O resources. So, |
| 253 | * only the memory resource range is being specified. |
| 254 | */ |
| 255 | ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; |
| 256 | |
| 257 | status = "disabled"; |
| 258 | }; |
Jon Mason | 4125475 | 2015-11-02 13:40:57 -0500 | [diff] [blame] | 259 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 260 | nand: nand@26000 { |
Jon Mason | 4125475 | 2015-11-02 13:40:57 -0500 | [diff] [blame] | 261 | compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; |
| 262 | reg = <0x026000 0x600>, |
| 263 | <0x11b408 0x600>, |
| 264 | <0x026f00 0x20>; |
| 265 | reg-names = "nand", "iproc-idm", "iproc-ext"; |
| 266 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
| 267 | |
| 268 | #address-cells = <1>; |
| 269 | #size-cells = <0>; |
| 270 | |
| 271 | brcm,nand-has-wp; |
| 272 | }; |
Jon Mason | 0f9f27a | 2015-11-17 14:55:27 -0500 | [diff] [blame] | 273 | |
| 274 | i2c0: i2c@38000 { |
| 275 | compatible = "brcm,iproc-i2c"; |
| 276 | reg = <0x38000 0x50>; |
| 277 | #address-cells = <1>; |
| 278 | #size-cells = <0>; |
| 279 | interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; |
| 280 | clock-frequency = <100000>; |
| 281 | }; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 282 | |
| 283 | lcpll0: lcpll0@3f100 { |
| 284 | #clock-cells = <1>; |
| 285 | compatible = "brcm,nsp-lcpll0"; |
| 286 | reg = <0x3f100 0x14>; |
| 287 | clocks = <&osc>; |
| 288 | clock-output-names = "lcpll0", "pcie_phy", "sdio", |
| 289 | "ddr_phy"; |
| 290 | }; |
| 291 | |
| 292 | genpll: genpll@3f140 { |
| 293 | #clock-cells = <1>; |
| 294 | compatible = "brcm,nsp-genpll"; |
| 295 | reg = <0x3f140 0x24>; |
| 296 | clocks = <&osc>; |
| 297 | clock-output-names = "genpll", "phy", "ethernetclk", |
| 298 | "usbclk", "iprocfast", "sata1", |
| 299 | "sata2"; |
| 300 | }; |
Yendapally Reddy Dhananjaya Reddy | ea2d897 | 2015-11-20 12:58:29 -0500 | [diff] [blame] | 301 | |
| 302 | pinctrl: pinctrl@3f1c0 { |
| 303 | compatible = "brcm,nsp-pinmux"; |
| 304 | reg = <0x3f1c0 0x04>, |
| 305 | <0x30028 0x04>, |
| 306 | <0x3f408 0x04>; |
| 307 | }; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 308 | }; |
| 309 | }; |