blob: 3b8c2c09286f3c33b4693e32d9e659c9bcc433f4 [file] [log] [blame]
Jon Mason7b2e9872015-08-31 19:48:53 -04001/*
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 Masonda3f9742015-11-20 10:17:19 -050035#include <dt-bindings/clock/bcm-nsp.h>
Jon Mason7b2e9872015-08-31 19:48:53 -040036
37#include "skeleton.dtsi"
38
39/ {
40 compatible = "brcm,nsp";
41 model = "Broadcom Northstar Plus SoC";
42 interrupt-parent = <&gic>;
43
Kapil Hali944725f2015-12-05 06:53:42 -050044 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 Mason7b2e9872015-08-31 19:48:53 -040065 mpcore {
66 compatible = "simple-bus";
Jon Masonda3f9742015-11-20 10:17:19 -050067 ranges = <0x00000000 0x19000000 0x00023000>;
Jon Mason7b2e9872015-08-31 19:48:53 -040068 #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 Masonda3f9742015-11-20 10:17:19 -050083 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 Mason7ba8cd82015-11-17 14:55:26 -050091 compatible = "arm,cortex-a9-global-timer";
Jon Masonda3f9742015-11-20 10:17:19 -050092 reg = <0x20200 0x100>;
Jon Mason7ba8cd82015-11-17 14:55:26 -050093 interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
94 clocks = <&periph_clk>;
Jon Mason7b2e9872015-08-31 19:48:53 -040095 };
96
Jon Masonda3f9742015-11-20 10:17:19 -050097 twd-timer@20600 {
Jon Mason7ba8cd82015-11-17 14:55:26 -050098 compatible = "arm,cortex-a9-twd-timer";
Jon Masonda3f9742015-11-20 10:17:19 -050099 reg = <0x20600 0x20>;
Jon Mason7ba8cd82015-11-17 14:55:26 -0500100 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
101 IRQ_TYPE_LEVEL_HIGH)>;
102 clocks = <&periph_clk>;
103 };
104
Jon Masonda3f9742015-11-20 10:17:19 -0500105 twd-watchdog@20620 {
Jon Mason7ba8cd82015-11-17 14:55:26 -0500106 compatible = "arm,cortex-a9-twd-wdt";
Jon Masonda3f9742015-11-20 10:17:19 -0500107 reg = <0x20620 0x20>;
Jon Mason7ba8cd82015-11-17 14:55:26 -0500108 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
109 IRQ_TYPE_LEVEL_HIGH)>;
110 clocks = <&periph_clk>;
111 };
112
Jon Masonda3f9742015-11-20 10:17:19 -0500113 gic: interrupt-controller@21000 {
Jon Mason7b2e9872015-08-31 19:48:53 -0400114 compatible = "arm,cortex-a9-gic";
115 #interrupt-cells = <3>;
116 #address-cells = <0>;
117 interrupt-controller;
Jon Masonda3f9742015-11-20 10:17:19 -0500118 reg = <0x21000 0x1000>,
119 <0x20100 0x100>;
Jon Mason7b2e9872015-08-31 19:48:53 -0400120 };
121
Jon Mason7ba8cd82015-11-17 14:55:26 -0500122 L2: l2-cache {
123 compatible = "arm,pl310-cache";
Jon Masonda3f9742015-11-20 10:17:19 -0500124 reg = <0x22000 0x1000>;
Jon Mason7ba8cd82015-11-17 14:55:26 -0500125 cache-unified;
126 cache-level = <2>;
Jon Mason1a9d53c2015-11-02 13:40:58 -0500127 };
Jon Mason7b2e9872015-08-31 19:48:53 -0400128 };
129
130 clocks {
131 #address-cells = <1>;
132 #size-cells = <1>;
133 ranges;
134
Jon Masonda3f9742015-11-20 10:17:19 -0500135 osc: oscillator {
Jon Mason7b2e9872015-08-31 19:48:53 -0400136 #clock-cells = <0>;
Jon Masonda3f9742015-11-20 10:17:19 -0500137 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 Mason7b2e9872015-08-31 19:48:53 -0400163 };
164 };
165
166 axi {
167 compatible = "simple-bus";
Jon Mason41254752015-11-02 13:40:57 -0500168 ranges = <0x00000000 0x18000000 0x0011ba08>;
Jon Mason7b2e9872015-08-31 19:48:53 -0400169 #address-cells = <1>;
170 #size-cells = <1>;
171
Yendapally Reddy Dhananjaya Reddy018e4fe2015-12-04 12:12:42 -0500172 gpioa: gpio@0020 {
173 compatible = "brcm,nsp-gpio-a";
174 reg = <0x0020 0x70>,
175 <0x3f1c4 0x1c>;
176 #gpio-cells = <2>;
177 gpio-controller;
178 ngpios = <32>;
179 interrupt-controller;
180 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
181 gpio-ranges = <&pinctrl 0 0 32>;
182 };
183
Jon Mason7ba8cd82015-11-17 14:55:26 -0500184 uart0: serial@0300 {
Jon Mason7b2e9872015-08-31 19:48:53 -0400185 compatible = "ns16550a";
186 reg = <0x0300 0x100>;
187 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Jon Masonda3f9742015-11-20 10:17:19 -0500188 clocks = <&osc>;
Jon Mason7b2e9872015-08-31 19:48:53 -0400189 status = "disabled";
190 };
191
Jon Mason7ba8cd82015-11-17 14:55:26 -0500192 uart1: serial@0400 {
Jon Mason7b2e9872015-08-31 19:48:53 -0400193 compatible = "ns16550a";
194 reg = <0x0400 0x100>;
195 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Jon Masonda3f9742015-11-20 10:17:19 -0500196 clocks = <&osc>;
Jon Mason7b2e9872015-08-31 19:48:53 -0400197 status = "disabled";
198 };
Jon Mason1dbcfb22015-11-02 13:40:56 -0500199
Jon Mason7ba8cd82015-11-17 14:55:26 -0500200 nand: nand@26000 {
Jon Mason41254752015-11-02 13:40:57 -0500201 compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
202 reg = <0x026000 0x600>,
203 <0x11b408 0x600>,
204 <0x026f00 0x20>;
205 reg-names = "nand", "iproc-idm", "iproc-ext";
206 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
207
208 #address-cells = <1>;
209 #size-cells = <0>;
210
211 brcm,nand-has-wp;
212 };
Jon Mason0f9f27a2015-11-17 14:55:27 -0500213
214 i2c0: i2c@38000 {
215 compatible = "brcm,iproc-i2c";
216 reg = <0x38000 0x50>;
217 #address-cells = <1>;
218 #size-cells = <0>;
219 interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>;
220 clock-frequency = <100000>;
221 };
Jon Masonda3f9742015-11-20 10:17:19 -0500222
223 lcpll0: lcpll0@3f100 {
224 #clock-cells = <1>;
225 compatible = "brcm,nsp-lcpll0";
226 reg = <0x3f100 0x14>;
227 clocks = <&osc>;
228 clock-output-names = "lcpll0", "pcie_phy", "sdio",
229 "ddr_phy";
230 };
231
232 genpll: genpll@3f140 {
233 #clock-cells = <1>;
234 compatible = "brcm,nsp-genpll";
235 reg = <0x3f140 0x24>;
236 clocks = <&osc>;
237 clock-output-names = "genpll", "phy", "ethernetclk",
238 "usbclk", "iprocfast", "sata1",
239 "sata2";
240 };
Yendapally Reddy Dhananjaya Reddyea2d8972015-11-20 12:58:29 -0500241
242 pinctrl: pinctrl@3f1c0 {
243 compatible = "brcm,nsp-pinmux";
244 reg = <0x3f1c0 0x04>,
245 <0x30028 0x04>,
246 <0x3f408 0x04>;
247 };
Jon Mason7b2e9872015-08-31 19:48:53 -0400248 };
Jon Mason52219902016-02-05 17:43:20 -0500249
250 pcie0: pcie@18012000 {
251 compatible = "brcm,iproc-pcie";
252 reg = <0x18012000 0x1000>;
253
254 #interrupt-cells = <1>;
255 interrupt-map-mask = <0 0 0 0>;
256 interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_NONE>;
257
258 linux,pci-domain = <0>;
259
260 bus-range = <0x00 0xff>;
261
262 #address-cells = <3>;
263 #size-cells = <2>;
264 device_type = "pci";
265
266 /* Note: The HW does not support I/O resources. So,
267 * only the memory resource range is being specified.
268 */
269 ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>;
270
271 status = "disabled";
272 };
273
274 pcie1: pcie@18013000 {
275 compatible = "brcm,iproc-pcie";
276 reg = <0x18013000 0x1000>;
277
278 #interrupt-cells = <1>;
279 interrupt-map-mask = <0 0 0 0>;
280 interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_NONE>;
281
282 linux,pci-domain = <1>;
283
284 bus-range = <0x00 0xff>;
285
286 #address-cells = <3>;
287 #size-cells = <2>;
288 device_type = "pci";
289
290 /* Note: The HW does not support I/O resources. So,
291 * only the memory resource range is being specified.
292 */
293 ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>;
294
295 status = "disabled";
296 };
297
298 pcie2: pcie@18014000 {
299 compatible = "brcm,iproc-pcie";
300 reg = <0x18014000 0x1000>;
301
302 #interrupt-cells = <1>;
303 interrupt-map-mask = <0 0 0 0>;
304 interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_NONE>;
305
306 linux,pci-domain = <2>;
307
308 bus-range = <0x00 0xff>;
309
310 #address-cells = <3>;
311 #size-cells = <2>;
312 device_type = "pci";
313
314 /* Note: The HW does not support I/O resources. So,
315 * only the memory resource range is being specified.
316 */
317 ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>;
318
319 status = "disabled";
320 };
Jon Mason7b2e9872015-08-31 19:48:53 -0400321};