2 * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
15 * b) Permission is hereby granted, free of charge, to any person
16 * obtaining a copy of this software and associated documentation
17 * files (the "Software"), to deal in the Software without
18 * restriction, including without limitation the rights to use,
19 * copy, modify, merge, publish, distribute, sublicense, and/or
20 * sell copies of the Software, and to permit persons to whom the
21 * Software is furnished to do so, subject to the following
24 * The above copyright notice and this permission notice shall be
25 * included in all copies or substantial portions of the Software.
27 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
29 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
30 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
31 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
32 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
33 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
34 * OTHER DEALINGS IN THE SOFTWARE.
37 #include <dt-bindings/clock/berlin2q.h>
38 #include <dt-bindings/interrupt-controller/arm-gic.h>
41 model = "Marvell Armada 1500 pro (BG2-Q) SoC";
42 compatible = "marvell,berlin2q", "marvell,berlin";
54 enable-method = "marvell,berlin-smp";
57 compatible = "arm,cortex-a9";
59 next-level-cache = <&l2>;
62 clocks = <&chip_clk CLKID_CPU>;
63 clock-latency = <100000>;
64 /* Can be modified by the bootloader */
75 compatible = "arm,cortex-a9";
77 next-level-cache = <&l2>;
82 compatible = "arm,cortex-a9";
84 next-level-cache = <&l2>;
89 compatible = "arm,cortex-a9";
91 next-level-cache = <&l2>;
97 compatible = "fixed-clock";
99 clock-frequency = <25000000>;
103 compatible = "simple-bus";
104 #address-cells = <1>;
107 ranges = <0 0xf7000000 0x1000000>;
108 interrupt-parent = <&gic>;
111 compatible = "arm,cortex-a9-pmu";
112 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
113 <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
114 <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
115 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
116 interrupt-affinity = <&cpu0>,
122 sdhci0: sdhci@ab0000 {
123 compatible = "mrvl,pxav3-mmc";
124 reg = <0xab0000 0x200>;
125 clocks = <&chip_clk CLKID_SDIO1XIN>, <&chip_clk CLKID_SDIO>;
126 clock-names = "io", "core";
127 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
131 sdhci1: sdhci@ab0800 {
132 compatible = "mrvl,pxav3-mmc";
133 reg = <0xab0800 0x200>;
134 clocks = <&chip_clk CLKID_SDIO1XIN>, <&chip_clk CLKID_SDIO>;
135 clock-names = "io", "core";
136 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
140 sdhci2: sdhci@ab1000 {
141 compatible = "mrvl,pxav3-mmc";
142 reg = <0xab1000 0x200>;
143 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
144 clocks = <&chip_clk CLKID_NFC_ECC>, <&chip_clk CLKID_SDIO>;
145 clock-names = "io", "core";
149 l2: l2-cache-controller@ac0000 {
150 compatible = "arm,pl310-cache";
151 reg = <0xac0000 0x1000>;
154 arm,data-latency = <2 2 2>;
155 arm,tag-latency = <2 2 2>;
158 scu: snoop-control-unit@ad0000 {
159 compatible = "arm,cortex-a9-scu";
160 reg = <0xad0000 0x58>;
164 compatible = "arm,cortex-a9-twd-timer";
165 reg = <0xad0600 0x20>;
166 clocks = <&chip_clk CLKID_TWD>;
167 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
170 gic: interrupt-controller@ad1000 {
171 compatible = "arm,cortex-a9-gic";
172 reg = <0xad1000 0x1000>, <0xad0100 0x100>;
173 interrupt-controller;
174 #interrupt-cells = <3>;
177 usb_phy2: phy@a2f400 {
178 compatible = "marvell,berlin2cd-usb-phy";
179 reg = <0xa2f400 0x128>;
181 resets = <&chip_rst 0x104 14>;
186 compatible = "chipidea,usb2";
187 reg = <0xa30000 0x10000>;
188 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
189 clocks = <&chip_clk CLKID_USB2>;
191 phy-names = "usb-phy";
195 usb_phy0: phy@b74000 {
196 compatible = "marvell,berlin2cd-usb-phy";
197 reg = <0xb74000 0x128>;
199 resets = <&chip_rst 0x104 12>;
203 usb_phy1: phy@b78000 {
204 compatible = "marvell,berlin2cd-usb-phy";
205 reg = <0xb78000 0x128>;
207 resets = <&chip_rst 0x104 13>;
211 eth0: ethernet@b90000 {
212 compatible = "marvell,pxa168-eth";
213 reg = <0xb90000 0x10000>;
214 clocks = <&chip_clk CLKID_GETH0>;
215 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
216 /* set by bootloader */
217 local-mac-address = [00 00 00 00 00 00];
218 #address-cells = <1>;
220 phy-connection-type = "mii";
221 phy-handle = <ðphy0>;
224 ethphy0: ethernet-phy@0 {
230 compatible = "marvell,berlin-cpu-ctrl";
231 reg = <0xdd0000 0x10000>;
235 compatible = "simple-bus";
236 #address-cells = <1>;
239 ranges = <0 0xe80000 0x10000>;
240 interrupt-parent = <&aic>;
243 compatible = "snps,dw-apb-gpio";
244 reg = <0x0400 0x400>;
245 #address-cells = <1>;
249 compatible = "snps,dw-apb-gpio-port";
252 snps,nr-gpios = <32>;
254 interrupt-controller;
255 #interrupt-cells = <2>;
261 compatible = "snps,dw-apb-gpio";
262 reg = <0x0800 0x400>;
263 #address-cells = <1>;
267 compatible = "snps,dw-apb-gpio-port";
270 snps,nr-gpios = <32>;
272 interrupt-controller;
273 #interrupt-cells = <2>;
279 compatible = "snps,dw-apb-gpio";
280 reg = <0x0c00 0x400>;
281 #address-cells = <1>;
285 compatible = "snps,dw-apb-gpio-port";
288 snps,nr-gpios = <32>;
290 interrupt-controller;
291 #interrupt-cells = <2>;
297 compatible = "snps,dw-apb-gpio";
298 reg = <0x1000 0x400>;
299 #address-cells = <1>;
303 compatible = "snps,dw-apb-gpio-port";
306 snps,nr-gpios = <32>;
308 interrupt-controller;
309 #interrupt-cells = <2>;
315 compatible = "snps,designware-i2c";
316 #address-cells = <1>;
318 reg = <0x1400 0x100>;
320 clocks = <&chip_clk CLKID_CFG>;
321 pinctrl-0 = <&twsi0_pmux>;
322 pinctrl-names = "default";
327 compatible = "snps,designware-i2c";
328 #address-cells = <1>;
330 reg = <0x1800 0x100>;
332 clocks = <&chip_clk CLKID_CFG>;
333 pinctrl-0 = <&twsi1_pmux>;
334 pinctrl-names = "default";
339 compatible = "snps,dw-apb-timer";
341 clocks = <&chip_clk CLKID_CFG>;
342 clock-names = "timer";
347 compatible = "snps,dw-apb-timer";
349 clocks = <&chip_clk CLKID_CFG>;
350 clock-names = "timer";
354 compatible = "snps,dw-apb-timer";
356 clocks = <&chip_clk CLKID_CFG>;
357 clock-names = "timer";
362 compatible = "snps,dw-apb-timer";
364 clocks = <&chip_clk CLKID_CFG>;
365 clock-names = "timer";
370 compatible = "snps,dw-apb-timer";
372 clocks = <&chip_clk CLKID_CFG>;
373 clock-names = "timer";
378 compatible = "snps,dw-apb-timer";
380 clocks = <&chip_clk CLKID_CFG>;
381 clock-names = "timer";
386 compatible = "snps,dw-apb-timer";
388 clocks = <&chip_clk CLKID_CFG>;
389 clock-names = "timer";
394 compatible = "snps,dw-apb-timer";
396 clocks = <&chip_clk CLKID_CFG>;
397 clock-names = "timer";
401 aic: interrupt-controller@3800 {
402 compatible = "snps,dw-apb-ictl";
404 interrupt-controller;
405 #interrupt-cells = <1>;
406 interrupt-parent = <&gic>;
407 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
411 chip: chip-control@ea0000 {
412 compatible = "simple-mfd", "syscon";
413 reg = <0xea0000 0x400>, <0xdd0170 0x10>;
416 compatible = "marvell,berlin2q-clk";
419 clock-names = "refclk";
422 soc_pinctrl: pin-controller {
423 compatible = "marvell,berlin2q-soc-pinctrl";
430 twsi0_pmux: twsi0-pmux {
435 twsi1_pmux: twsi1-pmux {
442 compatible = "marvell,berlin2-reset";
448 compatible = "marvell,berlin2q-ahci", "generic-ahci";
449 reg = <0xe90000 0x1000>;
450 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
451 clocks = <&chip_clk CLKID_SATA>;
452 #address-cells = <1>;
457 phys = <&sata_phy 0>;
463 phys = <&sata_phy 1>;
468 sata_phy: phy@e900a0 {
469 compatible = "marvell,berlin2q-sata-phy";
470 reg = <0xe900a0 0x200>;
471 clocks = <&chip_clk CLKID_SATA>;
472 #address-cells = <1>;
487 compatible = "chipidea,usb2";
488 reg = <0xed0000 0x10000>;
489 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
490 clocks = <&chip_clk CLKID_USB0>;
492 phy-names = "usb-phy";
497 compatible = "chipidea,usb2";
498 reg = <0xee0000 0x10000>;
499 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
500 clocks = <&chip_clk CLKID_USB1>;
502 phy-names = "usb-phy";
507 compatible = "marvell,berlin-pwm";
508 reg = <0xf20000 0x40>;
509 clocks = <&chip_clk CLKID_CFG>;
514 compatible = "simple-bus";
515 #address-cells = <1>;
518 ranges = <0 0xfc0000 0x10000>;
519 interrupt-parent = <&sic>;
521 wdt0: watchdog@1000 {
522 compatible = "snps,dw-wdt";
523 reg = <0x1000 0x100>;
528 wdt1: watchdog@2000 {
529 compatible = "snps,dw-wdt";
530 reg = <0x2000 0x100>;
535 wdt2: watchdog@3000 {
536 compatible = "snps,dw-wdt";
537 reg = <0x3000 0x100>;
542 sm_gpio1: gpio@5000 {
543 compatible = "snps,dw-apb-gpio";
544 reg = <0x5000 0x400>;
545 #address-cells = <1>;
549 compatible = "snps,dw-apb-gpio-port";
552 snps,nr-gpios = <32>;
558 compatible = "snps,designware-i2c";
559 #address-cells = <1>;
561 reg = <0x7000 0x100>;
564 pinctrl-0 = <&twsi2_pmux>;
565 pinctrl-names = "default";
570 compatible = "snps,designware-i2c";
571 #address-cells = <1>;
573 reg = <0x8000 0x100>;
576 pinctrl-0 = <&twsi3_pmux>;
577 pinctrl-names = "default";
582 compatible = "snps,dw-apb-uart";
583 reg = <0x9000 0x100>;
587 pinctrl-0 = <&uart0_pmux>;
588 pinctrl-names = "default";
593 compatible = "snps,dw-apb-uart";
594 reg = <0xa000 0x100>;
598 pinctrl-0 = <&uart1_pmux>;
599 pinctrl-names = "default";
603 sm_gpio0: gpio@c000 {
604 compatible = "snps,dw-apb-gpio";
605 reg = <0xc000 0x400>;
606 #address-cells = <1>;
610 compatible = "snps,dw-apb-gpio-port";
613 snps,nr-gpios = <32>;
618 sysctrl: pin-controller@d000 {
619 compatible = "simple-mfd", "syscon";
620 reg = <0xd000 0x100>;
622 sys_pinctrl: pin-controller {
623 compatible = "marvell,berlin2q-system-pinctrl";
625 uart0_pmux: uart0-pmux {
630 uart1_pmux: uart1-pmux {
635 twsi2_pmux: twsi2-pmux {
640 twsi3_pmux: twsi3-pmux {
647 compatible = "marvell,berlin2-adc";
648 interrupts = <12>, <14>;
649 interrupt-names = "adc", "tsen";
653 sic: interrupt-controller@e000 {
654 compatible = "snps,dw-apb-ictl";
656 interrupt-controller;
657 #interrupt-cells = <1>;
658 interrupt-parent = <&gic>;
659 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;