blob: 4214818df3a0bc4e1efe13059980a3488a3fb92c [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
44 mpcore {
45 compatible = "simple-bus";
Jon Masonda3f9742015-11-20 10:17:19 -050046 ranges = <0x00000000 0x19000000 0x00023000>;
Jon Mason7b2e9872015-08-31 19:48:53 -040047 #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 Masonda3f9742015-11-20 10:17:19 -050062 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 Mason7ba8cd82015-11-17 14:55:26 -050070 compatible = "arm,cortex-a9-global-timer";
Jon Masonda3f9742015-11-20 10:17:19 -050071 reg = <0x20200 0x100>;
Jon Mason7ba8cd82015-11-17 14:55:26 -050072 interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
73 clocks = <&periph_clk>;
Jon Mason7b2e9872015-08-31 19:48:53 -040074 };
75
Jon Masonda3f9742015-11-20 10:17:19 -050076 twd-timer@20600 {
Jon Mason7ba8cd82015-11-17 14:55:26 -050077 compatible = "arm,cortex-a9-twd-timer";
Jon Masonda3f9742015-11-20 10:17:19 -050078 reg = <0x20600 0x20>;
Jon Mason7ba8cd82015-11-17 14:55:26 -050079 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
80 IRQ_TYPE_LEVEL_HIGH)>;
81 clocks = <&periph_clk>;
82 };
83
Jon Masonda3f9742015-11-20 10:17:19 -050084 twd-watchdog@20620 {
Jon Mason7ba8cd82015-11-17 14:55:26 -050085 compatible = "arm,cortex-a9-twd-wdt";
Jon Masonda3f9742015-11-20 10:17:19 -050086 reg = <0x20620 0x20>;
Jon Mason7ba8cd82015-11-17 14:55:26 -050087 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
88 IRQ_TYPE_LEVEL_HIGH)>;
89 clocks = <&periph_clk>;
90 };
91
Jon Masonda3f9742015-11-20 10:17:19 -050092 gic: interrupt-controller@21000 {
Jon Mason7b2e9872015-08-31 19:48:53 -040093 compatible = "arm,cortex-a9-gic";
94 #interrupt-cells = <3>;
95 #address-cells = <0>;
96 interrupt-controller;
Jon Masonda3f9742015-11-20 10:17:19 -050097 reg = <0x21000 0x1000>,
98 <0x20100 0x100>;
Jon Mason7b2e9872015-08-31 19:48:53 -040099 };
100
Jon Mason7ba8cd82015-11-17 14:55:26 -0500101 L2: l2-cache {
102 compatible = "arm,pl310-cache";
Jon Masonda3f9742015-11-20 10:17:19 -0500103 reg = <0x22000 0x1000>;
Jon Mason7ba8cd82015-11-17 14:55:26 -0500104 cache-unified;
105 cache-level = <2>;
Jon Mason1a9d53c2015-11-02 13:40:58 -0500106 };
Jon Mason7b2e9872015-08-31 19:48:53 -0400107 };
108
109 clocks {
110 #address-cells = <1>;
111 #size-cells = <1>;
112 ranges;
113
Jon Masonda3f9742015-11-20 10:17:19 -0500114 osc: oscillator {
Jon Mason7b2e9872015-08-31 19:48:53 -0400115 #clock-cells = <0>;
Jon Masonda3f9742015-11-20 10:17:19 -0500116 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 Mason7b2e9872015-08-31 19:48:53 -0400142 };
143 };
144
145 axi {
146 compatible = "simple-bus";
Jon Mason41254752015-11-02 13:40:57 -0500147 ranges = <0x00000000 0x18000000 0x0011ba08>;
Jon Mason7b2e9872015-08-31 19:48:53 -0400148 #address-cells = <1>;
149 #size-cells = <1>;
150
Jon Mason7ba8cd82015-11-17 14:55:26 -0500151 uart0: serial@0300 {
Jon Mason7b2e9872015-08-31 19:48:53 -0400152 compatible = "ns16550a";
153 reg = <0x0300 0x100>;
154 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Jon Masonda3f9742015-11-20 10:17:19 -0500155 clocks = <&osc>;
Jon Mason7b2e9872015-08-31 19:48:53 -0400156 status = "disabled";
157 };
158
Jon Mason7ba8cd82015-11-17 14:55:26 -0500159 uart1: serial@0400 {
Jon Mason7b2e9872015-08-31 19:48:53 -0400160 compatible = "ns16550a";
161 reg = <0x0400 0x100>;
162 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Jon Masonda3f9742015-11-20 10:17:19 -0500163 clocks = <&osc>;
Jon Mason7b2e9872015-08-31 19:48:53 -0400164 status = "disabled";
165 };
Jon Mason1dbcfb22015-11-02 13:40:56 -0500166
Jon Mason7ba8cd82015-11-17 14:55:26 -0500167 pcie0: pcie@12000 {
Jon Mason1dbcfb22015-11-02 13:40:56 -0500168 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 Mason7ba8cd82015-11-17 14:55:26 -0500191 pcie1: pcie@13000 {
Jon Mason1dbcfb22015-11-02 13:40:56 -0500192 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 Mason7ba8cd82015-11-17 14:55:26 -0500215 pcie2: pcie@14000 {
Jon Mason1dbcfb22015-11-02 13:40:56 -0500216 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 Mason41254752015-11-02 13:40:57 -0500238
Jon Mason7ba8cd82015-11-17 14:55:26 -0500239 nand: nand@26000 {
Jon Mason41254752015-11-02 13:40:57 -0500240 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 Mason0f9f27a2015-11-17 14:55:27 -0500252
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 Masonda3f9742015-11-20 10:17:19 -0500261
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 Reddyea2d8972015-11-20 12:58:29 -0500280
281 pinctrl: pinctrl@3f1c0 {
282 compatible = "brcm,nsp-pinmux";
283 reg = <0x3f1c0 0x04>,
284 <0x30028 0x04>,
285 <0x3f408 0x04>;
286 };
Jon Mason7b2e9872015-08-31 19:48:53 -0400287 };
288};