blob: b3e9d28ed87b105be2af59b04809b354c188c01c [file] [log] [blame]
Hauke Mehrtensd27509f2014-02-04 00:01:45 +01001/*
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 Masoncdc36b22015-11-20 10:17:18 -050011#include <dt-bindings/clock/bcm-nsp.h>
Rafał Miłeckifb026d32014-10-01 15:45:28 +020012#include <dt-bindings/gpio/gpio.h>
Rafał Miłeckif6f82342014-11-30 18:28:29 +010013#include <dt-bindings/input/input.h>
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010014#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 Masoncdc36b22015-11-20 10:17:18 -050031 clocks = <&iprocslow>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010032 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 Masoncdc36b22015-11-20 10:17:18 -050039 clocks = <&iprocslow>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010040 status = "disabled";
41 };
42 };
43
44 mpcore {
45 compatible = "simple-bus";
Jon Masoncdc36b22015-11-20 10:17:18 -050046 ranges = <0x00000000 0x19000000 0x00023000>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010047 #address-cells = <1>;
48 #size-cells = <1>;
49
Jon Masoncdc36b22015-11-20 10:17:18 -050050 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 Mehrtensd27509f2014-02-04 00:01:45 +010058 compatible = "arm,cortex-a9-scu";
Jon Masoncdc36b22015-11-20 10:17:18 -050059 reg = <0x20000 0x100>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010060 };
61
Jon Masoncdc36b22015-11-20 10:17:18 -050062 timer@20200 {
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010063 compatible = "arm,cortex-a9-global-timer";
Jon Masoncdc36b22015-11-20 10:17:18 -050064 reg = <0x20200 0x100>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010065 interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
Jon Masoncdc36b22015-11-20 10:17:18 -050066 clocks = <&periph_clk>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010067 };
68
Jon Masoncdc36b22015-11-20 10:17:18 -050069 local-timer@20600 {
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010070 compatible = "arm,cortex-a9-twd-timer";
Jon Masoncdc36b22015-11-20 10:17:18 -050071 reg = <0x20600 0x100>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010072 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
Jon Masoncdc36b22015-11-20 10:17:18 -050073 clocks = <&periph_clk>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010074 };
75
Jon Masoncdc36b22015-11-20 10:17:18 -050076 gic: interrupt-controller@21000 {
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010077 compatible = "arm,cortex-a9-gic";
78 #interrupt-cells = <3>;
79 #address-cells = <0>;
80 interrupt-controller;
Jon Masoncdc36b22015-11-20 10:17:18 -050081 reg = <0x21000 0x1000>,
82 <0x20100 0x100>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010083 };
84
Jon Masoncdc36b22015-11-20 10:17:18 -050085 L2: cache-controller@22000 {
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010086 compatible = "arm,pl310-cache";
Jon Masoncdc36b22015-11-20 10:17:18 -050087 reg = <0x22000 0x1000>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010088 cache-unified;
Hauke Mehrtensdb44f132015-07-29 23:50:59 +020089 arm,shared-override;
90 prefetch-data = <1>;
91 prefetch-instr = <1>;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +010092 cache-level = <2>;
93 };
94 };
95
Felix Fietkau1ff80362015-07-29 23:51:00 +020096 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 Mehrtensd27509f2014-02-04 00:01:45 +0100103 clocks {
104 #address-cells = <1>;
Jon Masoncdc36b22015-11-20 10:17:18 -0500105 #size-cells = <1>;
106 ranges;
Hauke Mehrtensd27509f2014-02-04 00:01:45 +0100107
Jon Masoncdc36b22015-11-20 10:17:18 -0500108 osc: oscillator {
Hauke Mehrtensd27509f2014-02-04 00:01:45 +0100109 #clock-cells = <0>;
Jon Masoncdc36b22015-11-20 10:17:18 -0500110 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 Mehrtensd27509f2014-02-04 00:01:45 +0100136 };
137 };
Rafał Miłeckifb026d32014-10-01 15:45:28 +0200138
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 Mehrtensdec37882014-09-24 23:50:07 +0200146 #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 Mehrtens1f80de62015-05-24 21:08:14 +0200152 /* 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 Mehrtensdec37882014-09-24 23:50:07 +0200176 /* 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łeckifb026d32014-10-01 15:45:28 +0200204 chipcommon: chipcommon@0 {
205 reg = <0x00000000 0x1000>;
206
207 gpio-controller;
208 #gpio-cells = <2>;
209 };
Rafał Miłeckidd70ccf2016-03-23 16:52:47 +0100210
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łeckifb026d32014-10-01 15:45:28 +0200224 };
Hauke Mehrtens9faa5962015-05-29 23:39:47 +0200225
Jon Masoncdc36b22015-11-20 10:17:18 -0500226 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 Mehrtens9faa5962015-05-29 23:39:47 +0200245 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 Mehrtensd27509f2014-02-04 00:01:45 +0100256};