]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/arm/boot/dts/bcm-nsp.dtsi
ARM: dts: NSP: Add AMAC entries
[mirror_ubuntu-artful-kernel.git] / arch / arm / boot / dts / bcm-nsp.dtsi
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>
35 #include <dt-bindings/clock/bcm-nsp.h>
36
37 #include "skeleton.dtsi"
38
39 / {
40 compatible = "brcm,nsp";
41 model = "Broadcom Northstar Plus SoC";
42 interrupt-parent = <&gic>;
43
44 cpus {
45 #address-cells = <1>;
46 #size-cells = <0>;
47
48 cpu0: cpu@0 {
49 device_type = "cpu";
50 compatible = "arm,cortex-a9";
51 next-level-cache = <&L2>;
52 reg = <0x0>;
53 };
54
55 cpu1: 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 = <0xffff0fec>;
61 reg = <0x1>;
62 };
63 };
64
65 pmu {
66 compatible = "arm,cortex-a9-pmu";
67 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH
68 GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
69 interrupt-affinity = <&cpu0>, <&cpu1>;
70 };
71
72 mpcore {
73 compatible = "simple-bus";
74 ranges = <0x00000000 0x19000000 0x00023000>;
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 a9pll: arm_clk@00000 {
79 #clock-cells = <0>;
80 compatible = "brcm,nsp-armpll";
81 clocks = <&osc>;
82 reg = <0x00000 0x1000>;
83 };
84
85 timer@20200 {
86 compatible = "arm,cortex-a9-global-timer";
87 reg = <0x20200 0x100>;
88 interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
89 clocks = <&periph_clk>;
90 };
91
92 twd-timer@20600 {
93 compatible = "arm,cortex-a9-twd-timer";
94 reg = <0x20600 0x20>;
95 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
96 IRQ_TYPE_LEVEL_HIGH)>;
97 clocks = <&periph_clk>;
98 };
99
100 twd-watchdog@20620 {
101 compatible = "arm,cortex-a9-twd-wdt";
102 reg = <0x20620 0x20>;
103 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
104 IRQ_TYPE_LEVEL_HIGH)>;
105 clocks = <&periph_clk>;
106 };
107
108 gic: interrupt-controller@21000 {
109 compatible = "arm,cortex-a9-gic";
110 #interrupt-cells = <3>;
111 #address-cells = <0>;
112 interrupt-controller;
113 reg = <0x21000 0x1000>,
114 <0x20100 0x100>;
115 };
116
117 L2: l2-cache {
118 compatible = "arm,pl310-cache";
119 reg = <0x22000 0x1000>;
120 cache-unified;
121 cache-level = <2>;
122 };
123 };
124
125 clocks {
126 #address-cells = <1>;
127 #size-cells = <1>;
128 ranges;
129
130 osc: oscillator {
131 #clock-cells = <0>;
132 compatible = "fixed-clock";
133 clock-frequency = <25000000>;
134 };
135
136 iprocmed: iprocmed {
137 #clock-cells = <0>;
138 compatible = "fixed-factor-clock";
139 clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
140 clock-div = <2>;
141 clock-mult = <1>;
142 };
143
144 iprocslow: iprocslow {
145 #clock-cells = <0>;
146 compatible = "fixed-factor-clock";
147 clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
148 clock-div = <4>;
149 clock-mult = <1>;
150 };
151
152 periph_clk: periph_clk {
153 #clock-cells = <0>;
154 compatible = "fixed-factor-clock";
155 clocks = <&a9pll>;
156 clock-div = <2>;
157 clock-mult = <1>;
158 };
159 };
160
161 axi {
162 compatible = "simple-bus";
163 ranges = <0x00000000 0x18000000 0x0011ba08>;
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 gpioa: gpio@0020 {
168 compatible = "brcm,nsp-gpio-a";
169 reg = <0x0020 0x70>,
170 <0x3f1c4 0x1c>;
171 #gpio-cells = <2>;
172 gpio-controller;
173 ngpios = <32>;
174 interrupt-controller;
175 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
176 gpio-ranges = <&pinctrl 0 0 32>;
177 };
178
179 uart0: serial@0300 {
180 compatible = "ns16550a";
181 reg = <0x0300 0x100>;
182 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
183 clocks = <&osc>;
184 status = "disabled";
185 };
186
187 uart1: serial@0400 {
188 compatible = "ns16550a";
189 reg = <0x0400 0x100>;
190 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
191 clocks = <&osc>;
192 status = "disabled";
193 };
194
195 dma@20000 {
196 compatible = "arm,pl330", "arm,primecell";
197 reg = <0x20000 0x1000>;
198 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
199 <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
200 <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
201 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
202 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
203 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
204 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
205 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
206 <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
207 clocks = <&iprocslow>;
208 clock-names = "apb_pclk";
209 #dma-cells = <1>;
210 };
211
212 amac0: ethernet@22000 {
213 compatible = "brcm,nsp-amac";
214 reg = <0x022000 0x1000>,
215 <0x110000 0x1000>;
216 reg-names = "amac_base", "idm_base";
217 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
218 status = "disabled";
219 };
220
221 amac1: ethernet@23000 {
222 compatible = "brcm,nsp-amac";
223 reg = <0x023000 0x1000>,
224 <0x111000 0x1000>;
225 reg-names = "amac_base", "idm_base";
226 interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
227 status = "disabled";
228 };
229
230 nand: nand@26000 {
231 compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
232 reg = <0x026000 0x600>,
233 <0x11b408 0x600>,
234 <0x026f00 0x20>;
235 reg-names = "nand", "iproc-idm", "iproc-ext";
236 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
237
238 #address-cells = <1>;
239 #size-cells = <0>;
240
241 brcm,nand-has-wp;
242 };
243
244 rng: rng@33000 {
245 compatible = "brcm,bcm-nsp-rng";
246 reg = <0x33000 0x14>;
247 };
248
249 ccbtimer0: timer@34000 {
250 compatible = "arm,sp804";
251 reg = <0x34000 0x1000>;
252 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
253 <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
254 clocks = <&iprocslow>;
255 clock-names = "apb_pclk";
256 };
257
258 ccbtimer1: timer@35000 {
259 compatible = "arm,sp804";
260 reg = <0x35000 0x1000>;
261 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
262 <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
263 clocks = <&iprocslow>;
264 clock-names = "apb_pclk";
265 };
266
267 i2c0: i2c@38000 {
268 compatible = "brcm,iproc-i2c";
269 reg = <0x38000 0x50>;
270 #address-cells = <1>;
271 #size-cells = <0>;
272 interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>;
273 clock-frequency = <100000>;
274 };
275
276 watchdog@39000 {
277 compatible = "arm,sp805", "arm,primecell";
278 reg = <0x39000 0x1000>;
279 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
280 clocks = <&iprocslow>, <&iprocslow>;
281 clock-names = "wdogclk", "apb_pclk";
282 };
283
284 lcpll0: lcpll0@3f100 {
285 #clock-cells = <1>;
286 compatible = "brcm,nsp-lcpll0";
287 reg = <0x3f100 0x14>;
288 clocks = <&osc>;
289 clock-output-names = "lcpll0", "pcie_phy", "sdio",
290 "ddr_phy";
291 };
292
293 genpll: genpll@3f140 {
294 #clock-cells = <1>;
295 compatible = "brcm,nsp-genpll";
296 reg = <0x3f140 0x24>;
297 clocks = <&osc>;
298 clock-output-names = "genpll", "phy", "ethernetclk",
299 "usbclk", "iprocfast", "sata1",
300 "sata2";
301 };
302
303 pinctrl: pinctrl@3f1c0 {
304 compatible = "brcm,nsp-pinmux";
305 reg = <0x3f1c0 0x04>,
306 <0x30028 0x04>,
307 <0x3f408 0x04>;
308 };
309
310 sata_phy: sata_phy@40100 {
311 compatible = "brcm,iproc-nsp-sata-phy";
312 reg = <0x40100 0x340>;
313 reg-names = "phy";
314 #address-cells = <1>;
315 #size-cells = <0>;
316
317 sata_phy0: sata-phy@0 {
318 reg = <0>;
319 #phy-cells = <0>;
320 status = "disabled";
321 };
322
323 sata_phy1: sata-phy@1 {
324 reg = <1>;
325 #phy-cells = <0>;
326 status = "disabled";
327 };
328 };
329
330 sata: ahci@41000 {
331 compatible = "brcm,bcm-nsp-ahci";
332 reg-names = "ahci", "top-ctrl";
333 reg = <0x41000 0x1000>, <0x40020 0x1c>;
334 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
335 #address-cells = <1>;
336 #size-cells = <0>;
337 status = "disabled";
338
339 sata0: sata-port@0 {
340 reg = <0>;
341 phys = <&sata_phy0>;
342 phy-names = "sata-phy";
343 };
344
345 sata1: sata-port@1 {
346 reg = <1>;
347 phys = <&sata_phy1>;
348 phy-names = "sata-phy";
349 };
350 };
351 };
352
353 pcie0: pcie@18012000 {
354 compatible = "brcm,iproc-pcie";
355 reg = <0x18012000 0x1000>;
356
357 #interrupt-cells = <1>;
358 interrupt-map-mask = <0 0 0 0>;
359 interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_NONE>;
360
361 linux,pci-domain = <0>;
362
363 bus-range = <0x00 0xff>;
364
365 #address-cells = <3>;
366 #size-cells = <2>;
367 device_type = "pci";
368
369 /* Note: The HW does not support I/O resources. So,
370 * only the memory resource range is being specified.
371 */
372 ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>;
373
374 status = "disabled";
375
376 msi-parent = <&msi0>;
377 msi0: msi@18012000 {
378 compatible = "brcm,iproc-msi";
379 msi-controller;
380 interrupt-parent = <&gic>;
381 interrupts = <GIC_SPI 127 IRQ_TYPE_NONE>,
382 <GIC_SPI 128 IRQ_TYPE_NONE>,
383 <GIC_SPI 129 IRQ_TYPE_NONE>,
384 <GIC_SPI 130 IRQ_TYPE_NONE>;
385 brcm,pcie-msi-inten;
386 };
387 };
388
389 pcie1: pcie@18013000 {
390 compatible = "brcm,iproc-pcie";
391 reg = <0x18013000 0x1000>;
392
393 #interrupt-cells = <1>;
394 interrupt-map-mask = <0 0 0 0>;
395 interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_NONE>;
396
397 linux,pci-domain = <1>;
398
399 bus-range = <0x00 0xff>;
400
401 #address-cells = <3>;
402 #size-cells = <2>;
403 device_type = "pci";
404
405 /* Note: The HW does not support I/O resources. So,
406 * only the memory resource range is being specified.
407 */
408 ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>;
409
410 status = "disabled";
411
412 msi-parent = <&msi1>;
413 msi1: msi@18013000 {
414 compatible = "brcm,iproc-msi";
415 msi-controller;
416 interrupt-parent = <&gic>;
417 interrupts = <GIC_SPI 133 IRQ_TYPE_NONE>,
418 <GIC_SPI 134 IRQ_TYPE_NONE>,
419 <GIC_SPI 135 IRQ_TYPE_NONE>,
420 <GIC_SPI 136 IRQ_TYPE_NONE>;
421 brcm,pcie-msi-inten;
422 };
423 };
424
425 pcie2: pcie@18014000 {
426 compatible = "brcm,iproc-pcie";
427 reg = <0x18014000 0x1000>;
428
429 #interrupt-cells = <1>;
430 interrupt-map-mask = <0 0 0 0>;
431 interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_NONE>;
432
433 linux,pci-domain = <2>;
434
435 bus-range = <0x00 0xff>;
436
437 #address-cells = <3>;
438 #size-cells = <2>;
439 device_type = "pci";
440
441 /* Note: The HW does not support I/O resources. So,
442 * only the memory resource range is being specified.
443 */
444 ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>;
445
446 status = "disabled";
447
448 msi-parent = <&msi2>;
449 msi2: msi@18014000 {
450 compatible = "brcm,iproc-msi";
451 msi-controller;
452 interrupt-parent = <&gic>;
453 interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>,
454 <GIC_SPI 140 IRQ_TYPE_NONE>,
455 <GIC_SPI 141 IRQ_TYPE_NONE>,
456 <GIC_SPI 142 IRQ_TYPE_NONE>;
457 brcm,pcie-msi-inten;
458 };
459 };
460 };