blob: 8a0bc4222cfc4ca16c8d06c1570645c2e2139b48 [file] [log] [blame]
Linus Walleijf123a662014-10-01 09:30:45 +02001/*
2 * Copyright 2014 Linaro Ltd
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 * THE SOFTWARE.
21 */
22
23/dts-v1/;
24#include <dt-bindings/interrupt-controller/irq.h>
Linus Walleij10d8dde2014-10-13 13:21:40 +020025#include <dt-bindings/gpio/gpio.h>
Linus Walleijf123a662014-10-01 09:30:45 +020026#include "skeleton.dtsi"
27
28/ {
29 model = "ARM RealView PB1176";
30 compatible = "arm,realview-pb1176";
31
32 chosen { };
33
34 aliases {
35 serial0 = &pb1176_serial0;
36 serial1 = &pb1176_serial1;
37 serial2 = &pb1176_serial2;
38 serial3 = &pb1176_serial3;
Linus Walleij7f9ac7d2014-10-10 15:11:31 +020039 serial4 = &fpga_serial;
Linus Walleijf123a662014-10-01 09:30:45 +020040 };
41
42 memory {
43 /* 128 MiB memory @ 0x0 */
44 reg = <0x00000000 0x08000000>;
45 };
46
Linus Walleij10d8dde2014-10-13 13:21:40 +020047 /* The voltage to the MMC card is hardwired at 3.3V */
48 vmmc: fixedregulator@0 {
49 compatible = "regulator-fixed";
50 regulator-name = "vmmc";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53 regulator-boot-on;
54 };
55
Linus Walleijf123a662014-10-01 09:30:45 +020056 xtal24mhz: xtal24mhz@24M {
57 #clock-cells = <0>;
58 compatible = "fixed-clock";
59 clock-frequency = <24000000>;
60 };
61
62 timclk: timclk@1M {
63 #clock-cells = <0>;
64 compatible = "fixed-factor-clock";
65 clock-div = <24>;
66 clock-mult = <1>;
67 clocks = <&xtal24mhz>;
68 };
69
Linus Walleij10d8dde2014-10-13 13:21:40 +020070 mclk: mclk@24M {
71 #clock-cells = <0>;
72 compatible = "fixed-factor-clock";
73 clock-div = <1>;
74 clock-mult = <1>;
75 clocks = <&xtal24mhz>;
76 };
77
Linus Walleij7406c392014-10-10 15:21:02 +020078 kmiclk: kmiclk@24M {
79 #clock-cells = <0>;
80 compatible = "fixed-factor-clock";
81 clock-div = <1>;
82 clock-mult = <1>;
83 clocks = <&xtal24mhz>;
84 };
85
Linus Walleij24ec3ff2014-10-10 15:07:55 +020086 sspclk: sspclk@24M {
87 #clock-cells = <0>;
88 compatible = "fixed-factor-clock";
89 clock-div = <1>;
90 clock-mult = <1>;
91 clocks = <&xtal24mhz>;
92 };
93
Linus Walleijf123a662014-10-01 09:30:45 +020094 uartclk: uartclk@24M {
95 #clock-cells = <0>;
96 compatible = "fixed-factor-clock";
97 clock-div = <1>;
98 clock-mult = <1>;
99 clocks = <&xtal24mhz>;
100 };
101
102 /* FIXME: this actually hangs off the PLL clocks */
103 pclk: pclk@0 {
104 #clock-cells = <0>;
105 compatible = "fixed-clock";
106 clock-frequency = <0>;
107 };
108
Linus Walleij5c3f5ed2014-10-14 15:05:57 +0200109 flash@30000000 {
110 compatible = "arm,versatile-flash", "cfi-flash";
111 reg = <0x30000000 0x4000000>;
112 bank-width = <4>;
113 };
114
115 fpga_flash@38000000 {
116 compatible = "arm,versatile-flash", "cfi-flash";
117 reg = <0x38000000 0x800000>;
118 bank-width = <4>;
119 };
120
121 /*
122 * The "secure flash" contains things like the boot
123 * monitor so we don't want people to accidentally
124 * screw this up. Mark the device tree node disabled
125 * by default.
126 */
127 secflash@3c000000 {
128 compatible = "arm,versatile-flash", "cfi-flash";
129 reg = <0x3c000000 0x4000000>;
130 bank-width = <4>;
131 status = "disabled";
132 };
133
Linus Walleijcc9ab842016-01-14 13:36:48 +0100134 usb@3b000000 {
135 compatible = "nxp,usb-isp1761";
136 reg = <0x3b000000 0x20000>;
137 interrupt-parent = <&intc_fpga1176>;
138 interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
139 port1-otg;
140 };
141
Linus Walleijf123a662014-10-01 09:30:45 +0200142 soc {
143 #address-cells = <1>;
144 #size-cells = <1>;
145 compatible = "arm,realview-pb1176-soc", "simple-bus";
146 regmap = <&syscon>;
147 ranges;
148
149 syscon: syscon@10000000 {
Linus Walleij480aa742015-03-03 10:06:16 +0100150 compatible = "arm,realview-pb1176-syscon", "syscon", "simple-mfd";
Linus Walleijf123a662014-10-01 09:30:45 +0200151 reg = <0x10000000 0x1000>;
152
153 led@08.0 {
154 compatible = "register-bit-led";
155 offset = <0x08>;
156 mask = <0x01>;
157 label = "versatile:0";
158 linux,default-trigger = "heartbeat";
159 default-state = "on";
160 };
161 led@08.1 {
162 compatible = "register-bit-led";
163 offset = <0x08>;
164 mask = <0x02>;
165 label = "versatile:1";
166 linux,default-trigger = "mmc0";
167 default-state = "off";
168 };
169 led@08.2 {
170 compatible = "register-bit-led";
171 offset = <0x08>;
172 mask = <0x04>;
173 label = "versatile:2";
174 linux,default-trigger = "cpu0";
175 default-state = "off";
176 };
177 led@08.3 {
178 compatible = "register-bit-led";
179 offset = <0x08>;
180 mask = <0x08>;
181 label = "versatile:3";
182 default-state = "off";
183 };
184 led@08.4 {
185 compatible = "register-bit-led";
186 offset = <0x08>;
187 mask = <0x10>;
188 label = "versatile:4";
189 default-state = "off";
190 };
191 led@08.5 {
192 compatible = "register-bit-led";
193 offset = <0x08>;
194 mask = <0x20>;
195 label = "versatile:5";
196 default-state = "off";
197 };
198 led@08.6 {
199 compatible = "register-bit-led";
200 offset = <0x08>;
201 mask = <0x40>;
202 label = "versatile:6";
203 default-state = "off";
204 };
205 led@08.7 {
206 compatible = "register-bit-led";
207 offset = <0x08>;
208 mask = <0x80>;
209 label = "versatile:7";
210 default-state = "off";
211 };
Linus Walleij2d76ab22016-01-12 14:50:47 +0100212 oscclk0: osc0@0c {
213 compatible = "arm,syscon-icst307";
214 #clock-cells = <0>;
215 lock-offset = <0x20>;
216 vco-offset = <0x0C>;
217 clocks = <&xtal24mhz>;
218 };
219 oscclk1: osc1@10 {
220 compatible = "arm,syscon-icst307";
221 #clock-cells = <0>;
222 lock-offset = <0x20>;
223 vco-offset = <0x10>;
224 clocks = <&xtal24mhz>;
225 };
226 oscclk2: osc2@14 {
227 compatible = "arm,syscon-icst307";
228 #clock-cells = <0>;
229 lock-offset = <0x20>;
230 vco-offset = <0x14>;
231 clocks = <&xtal24mhz>;
232 };
233 oscclk3: osc3@18 {
234 compatible = "arm,syscon-icst307";
235 #clock-cells = <0>;
236 lock-offset = <0x20>;
237 vco-offset = <0x18>;
238 clocks = <&xtal24mhz>;
239 };
240 oscclk4: osc4@1c {
241 compatible = "arm,syscon-icst307";
242 #clock-cells = <0>;
243 lock-offset = <0x20>;
244 vco-offset = <0x1c>;
245 clocks = <&xtal24mhz>;
246 };
Linus Walleijf123a662014-10-01 09:30:45 +0200247 };
248
249 /* Primary DevChip GIC synthesized with the CPU */
250 intc_dc1176: interrupt-controller@10120000 {
251 compatible = "arm,arm1176jzf-devchip-gic", "arm,arm11mp-gic";
252 #interrupt-cells = <3>;
253 #address-cells = <1>;
254 interrupt-controller;
255 reg = <0x10121000 0x1000>,
256 <0x10120000 0x100>;
257 };
258
Linus Walleijf123a662014-10-01 09:30:45 +0200259 L2: l2-cache {
260 compatible = "arm,l220-cache";
261 reg = <0x10110000 0x1000>;
262 interrupt-parent = <&intc_dc1176>;
263 interrupts = <0 13 IRQ_TYPE_LEVEL_HIGH>;
264 cache-unified;
265 cache-level = <2>;
266 /*
267 * Override default cache size, sets and
268 * associativity as these may be erroneously set
269 * up by boot loader(s).
270 */
271 arm,override-auxreg;
272 cache-size = <131072>; // 128kB
273 cache-sets = <512>;
274 cache-line-size = <32>;
275 };
276
277 pmu {
278 compatible = "arm,arm1176-pmu";
279 interrupt-parent = <&intc_dc1176>;
280 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
281 };
282
283 timer01: timer@10104000 {
284 compatible = "arm,sp804", "arm,primecell";
285 reg = <0x10104000 0x1000>;
286 interrupt-parent = <&intc_dc1176>;
287 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>, <0 9 IRQ_TYPE_LEVEL_HIGH>;
288 clocks = <&timclk>, <&timclk>, <&pclk>;
289 clock-names = "timer1", "timer2", "apb_pclk";
290 };
291
292 timer23: timer@10105000 {
293 compatible = "arm,sp804", "arm,primecell";
294 reg = <0x10105000 0x1000>;
295 interrupt-parent = <&intc_dc1176>;
296 interrupts = <0 10 IRQ_TYPE_LEVEL_HIGH>;
297 arm,sp804-has-irq = <1>;
298 clocks = <&timclk>, <&timclk>, <&pclk>;
299 clock-names = "timer1", "timer2", "apb_pclk";
300 };
301
Linus Walleij383caed2014-10-10 14:26:06 +0200302 pb1176_rtc: rtc@10108000 {
303 compatible = "arm,pl031", "arm,primecell";
304 reg = <0x10108000 0x1000>;
305 interrupt-parent = <&intc_dc1176>;
306 interrupts = <0 14 IRQ_TYPE_LEVEL_HIGH>;
307 clocks = <&pclk>;
308 clock-names = "apb_pclk";
309 };
310
Linus Walleij75fd1322014-10-08 15:15:17 +0200311 pb1176_gpio0: gpio@1010a000 {
312 compatible = "arm,pl061", "arm,primecell";
313 reg = <0x1010a000 0x1000>;
314 gpio-controller;
315 interrupt-parent = <&intc_dc1176>;
316 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
317 #gpio-cells = <2>;
318 interrupt-controller;
319 #interrupt-cells = <2>;
320 clocks = <&pclk>;
321 clock-names = "apb_pclk";
322 };
323
Linus Walleij24ec3ff2014-10-10 15:07:55 +0200324 pb1176_ssp: ssp@1010b000 {
325 compatible = "arm,pl022", "arm,primecell";
326 reg = <0x1010b000 0x1000>;
327 interrupt-parent = <&intc_dc1176>;
328 interrupts = <0 17 IRQ_TYPE_LEVEL_HIGH>;
329 clocks = <&sspclk>, <&pclk>;
330 clock-names = "SSPCLK", "apb_pclk";
331 };
332
Linus Walleijf123a662014-10-01 09:30:45 +0200333 pb1176_serial0: serial@1010c000 {
334 compatible = "arm,pl011", "arm,primecell";
335 reg = <0x1010c000 0x1000>;
336 interrupt-parent = <&intc_dc1176>;
337 interrupts = <0 18 IRQ_TYPE_LEVEL_HIGH>;
338 clocks = <&uartclk>, <&pclk>;
339 clock-names = "uartclk", "apb_pclk";
340 };
341
342 pb1176_serial1: serial@1010d000 {
343 compatible = "arm,pl011", "arm,primecell";
344 reg = <0x1010d000 0x1000>;
345 interrupt-parent = <&intc_dc1176>;
346 interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
347 clocks = <&uartclk>, <&pclk>;
348 clock-names = "uartclk", "apb_pclk";
349 };
350
351 pb1176_serial2: serial@1010e000 {
352 compatible = "arm,pl011", "arm,primecell";
353 reg = <0x1010e000 0x1000>;
354 interrupt-parent = <&intc_dc1176>;
355 interrupts = <0 20 IRQ_TYPE_LEVEL_HIGH>;
356 clocks = <&uartclk>, <&pclk>;
357 clock-names = "uartclk", "apb_pclk";
358 };
359
360 pb1176_serial3: serial@1010f000 {
361 compatible = "arm,pl011", "arm,primecell";
362 reg = <0x1010f000 0x1000>;
363 interrupt-parent = <&intc_dc1176>;
364 interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
365 clocks = <&uartclk>, <&pclk>;
366 clock-names = "uartclk", "apb_pclk";
367 };
Linus Walleij5c3f5ed2014-10-14 15:05:57 +0200368
369 /* Direct-mapped development chip ROM */
370 pb1176_rom@10200000 {
371 compatible = "direct-mapped";
372 reg = <0x10200000 0x4000>;
373 bank-width = <1>;
374 };
Linus Walleijf123a662014-10-01 09:30:45 +0200375 };
Linus Walleijc7eb3f42014-10-08 15:26:52 +0200376
377 /* These peripherals are inside the FPGA rather than the DevChip */
378 fpga {
379 #address-cells = <1>;
380 #size-cells = <1>;
381 compatible = "simple-bus";
382 ranges;
383
Linus Walleijefcf8962016-01-14 13:23:48 +0100384 fpga_aaci: aaci@10004000 {
385 compatible = "arm,pl041", "arm,primecell";
386 reg = <0x10004000 0x1000>;
387 interrupt-parent = <&intc_fpga1176>;
388 interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
389 clocks = <&pclk>;
390 clock-names = "apb_pclk";
391 };
392
Linus Walleij10d8dde2014-10-13 13:21:40 +0200393 fpga_mci: mmcsd@10005000 {
394 compatible = "arm,pl18x", "arm,primecell";
395 reg = <0x10005000 0x1000>;
396 interrupt-parent = <&intc_fpga1176>;
397 interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>,
398 <0 2 IRQ_TYPE_LEVEL_HIGH>;
399 /* Due to frequent FIFO overruns, use just 500 kHz */
400 max-frequency = <500000>;
401 bus-width = <4>;
402 cap-sd-highspeed;
403 cap-mmc-highspeed;
404 clocks = <&mclk>, <&pclk>;
405 clock-names = "mclk", "apb_pclk";
406 vmmc-supply = <&vmmc>;
407 cd-gpios = <&fpga_gpio1 0 GPIO_ACTIVE_LOW>;
408 wp-gpios = <&fpga_gpio1 1 GPIO_ACTIVE_HIGH>;
409 };
410
Linus Walleij7406c392014-10-10 15:21:02 +0200411 fpga_kmi0: kmi@10006000 {
412 compatible = "arm,pl050", "arm,primecell";
413 reg = <0x10006000 0x1000>;
414 interrupt-parent = <&intc_fpga1176>;
415 interrupts = <0 3 IRQ_TYPE_LEVEL_HIGH>;
416 clocks = <&kmiclk>, <&pclk>;
417 clock-names = "KMIREFCLK", "apb_pclk";
418 };
419
420 fpga_kmi1: kmi@10007000 {
421 compatible = "arm,pl050", "arm,primecell";
422 reg = <0x10007000 0x1000>;
423 interrupt-parent = <&intc_fpga1176>;
424 interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
425 clocks = <&kmiclk>, <&pclk>;
426 clock-names = "KMIREFCLK", "apb_pclk";
427 };
428
Linus Walleijad38a342014-10-10 11:20:49 +0200429 fpga_charlcd: charlcd@10008000 {
430 compatible = "arm,versatile-lcd";
431 reg = <0x10008000 0x1000>;
432 interrupt-parent = <&intc_fpga1176>;
433 interrupts = <0 7 IRQ_TYPE_LEVEL_HIGH>;
434 clocks = <&pclk>;
435 clock-names = "apb_pclk";
436 };
437
Linus Walleij7f9ac7d2014-10-10 15:11:31 +0200438 fpga_serial: serial@10009000 {
439 compatible = "arm,pl011", "arm,primecell";
440 reg = <0x10009000 0x1000>;
441 interrupt-parent = <&intc_fpga1176>;
442 interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
443 clocks = <&uartclk>, <&pclk>;
444 clock-names = "uartclk", "apb_pclk";
445 };
446
Linus Walleijc7eb3f42014-10-08 15:26:52 +0200447 /* This GIC on the board is cascaded off the DevChip GIC */
448 intc_fpga1176: interrupt-controller@10040000 {
449 compatible = "arm,arm1176jzf-devchip-gic", "arm,arm11mp-gic";
450 #interrupt-cells = <3>;
451 #address-cells = <1>;
452 interrupt-controller;
453 reg = <0x10041000 0x1000>,
454 <0x10040000 0x100>;
455 interrupt-parent = <&intc_dc1176>;
456 interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
457 };
Linus Walleij75fd1322014-10-08 15:15:17 +0200458
459 fpga_gpio0: gpio@10014000 {
460 compatible = "arm,pl061", "arm,primecell";
461 reg = <0x10014000 0x1000>;
462 gpio-controller;
463 interrupt-parent = <&intc_fpga1176>;
464 interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
465 #gpio-cells = <2>;
466 interrupt-controller;
467 #interrupt-cells = <2>;
468 clocks = <&pclk>;
469 clock-names = "apb_pclk";
470 };
471
472 fpga_gpio1: gpio@10015000 {
473 compatible = "arm,pl061", "arm,primecell";
474 reg = <0x10015000 0x1000>;
475 gpio-controller;
476 interrupt-parent = <&intc_fpga1176>;
477 interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;
478 #gpio-cells = <2>;
479 interrupt-controller;
480 #interrupt-cells = <2>;
481 clocks = <&pclk>;
482 clock-names = "apb_pclk";
483 };
Linus Walleij383caed2014-10-10 14:26:06 +0200484
485 fpga_rtc: rtc@10017000 {
486 compatible = "arm,pl031", "arm,primecell";
487 reg = <0x10017000 0x1000>;
488 interrupt-parent = <&intc_fpga1176>;
489 interrupts = <0 25 IRQ_TYPE_LEVEL_HIGH>;
490 clocks = <&pclk>;
491 clock-names = "apb_pclk";
492 };
Linus Walleij7f9ac7d2014-10-10 15:11:31 +0200493
494
Linus Walleijc7eb3f42014-10-08 15:26:52 +0200495 };
Linus Walleijf123a662014-10-01 09:30:45 +0200496};