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