2014-02-17 21:23:28 +07:00
|
|
|
/*
|
|
|
|
* Device Tree Include file for Marvell Armada 38x family of SoCs.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Marvell
|
|
|
|
*
|
|
|
|
* Lior Amsalem <alior@marvell.com>
|
|
|
|
* Gregory CLEMENT <gregory.clement@free-electrons.com>
|
|
|
|
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "skeleton.dtsi"
|
2014-02-20 18:11:30 +07:00
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
2014-02-20 18:11:31 +07:00
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
2014-02-17 21:23:28 +07:00
|
|
|
|
|
|
|
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Marvell Armada 38x family SoC";
|
|
|
|
compatible = "marvell,armada38x";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
gpio0 = &gpio0;
|
|
|
|
gpio1 = &gpio1;
|
|
|
|
eth0 = ð0;
|
|
|
|
eth1 = ð1;
|
|
|
|
eth2 = ð2;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
compatible = "marvell,armada380-mbus", "marvell,armada370-mbus",
|
|
|
|
"simple-bus";
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
controller = <&mbusc>;
|
|
|
|
interrupt-parent = <&gic>;
|
|
|
|
pcie-mem-aperture = <0xe0000000 0x8000000>;
|
|
|
|
pcie-io-aperture = <0xe8000000 0x100000>;
|
|
|
|
|
|
|
|
bootrom {
|
|
|
|
compatible = "marvell,bootrom";
|
|
|
|
reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
devbus-bootcs {
|
|
|
|
compatible = "marvell,mvebu-devbus";
|
|
|
|
reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
|
|
|
|
ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
devbus-cs0 {
|
|
|
|
compatible = "marvell,mvebu-devbus";
|
|
|
|
reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
|
|
|
|
ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
devbus-cs1 {
|
|
|
|
compatible = "marvell,mvebu-devbus";
|
|
|
|
reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
|
|
|
|
ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
devbus-cs2 {
|
|
|
|
compatible = "marvell,mvebu-devbus";
|
|
|
|
reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
|
|
|
|
ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
devbus-cs3 {
|
|
|
|
compatible = "marvell,mvebu-devbus";
|
|
|
|
reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
|
|
|
|
ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
internal-regs {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
|
|
|
|
|
|
|
|
L2: cache-controller@8000 {
|
|
|
|
compatible = "arm,pl310-cache";
|
|
|
|
reg = <0x8000 0x1000>;
|
|
|
|
cache-unified;
|
|
|
|
cache-level = <2>;
|
|
|
|
};
|
|
|
|
|
2014-04-14 20:47:08 +07:00
|
|
|
scu@c000 {
|
|
|
|
compatible = "arm,cortex-a9-scu";
|
|
|
|
reg = <0xc000 0x58>;
|
|
|
|
};
|
|
|
|
|
2014-02-17 21:23:28 +07:00
|
|
|
timer@c600 {
|
|
|
|
compatible = "arm,cortex-a9-twd-timer";
|
|
|
|
reg = <0xc600 0x20>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
|
2014-02-17 21:23:28 +07:00
|
|
|
clocks = <&coreclk 2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gic: interrupt-controller@d000 {
|
|
|
|
compatible = "arm,cortex-a9-gic";
|
|
|
|
#interrupt-cells = <3>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
interrupt-controller;
|
|
|
|
reg = <0xd000 0x1000>,
|
|
|
|
<0xc100 0x100>;
|
|
|
|
};
|
|
|
|
|
|
|
|
spi0: spi@10600 {
|
|
|
|
compatible = "marvell,orion-spi";
|
|
|
|
reg = <0x10600 0x50>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
cell-index = <0>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
spi1: spi@10680 {
|
|
|
|
compatible = "marvell,orion-spi";
|
|
|
|
reg = <0x10680 0x50>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
cell-index = <1>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c0: i2c@11000 {
|
|
|
|
compatible = "marvell,mv64xxx-i2c";
|
|
|
|
reg = <0x11000 0x20>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
timeout-ms = <1000>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@11100 {
|
|
|
|
compatible = "marvell,mv64xxx-i2c";
|
|
|
|
reg = <0x11100 0x20>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
timeout-ms = <1000>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
serial@12000 {
|
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x12000 0x100>;
|
|
|
|
reg-shift = <2>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
reg-io-width = <1>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
serial@12100 {
|
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x12100 0x100>;
|
|
|
|
reg-shift = <2>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
reg-io-width = <1>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl {
|
|
|
|
compatible = "marvell,mv88f6820-pinctrl";
|
|
|
|
reg = <0x18000 0x20>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio0: gpio@18100 {
|
|
|
|
compatible = "marvell,orion-gpio";
|
|
|
|
reg = <0x18100 0x40>;
|
|
|
|
ngpios = <32>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
gpio1: gpio@18140 {
|
|
|
|
compatible = "marvell,orion-gpio";
|
|
|
|
reg = <0x18140 0x40>;
|
|
|
|
ngpios = <28>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
system-controller@18200 {
|
|
|
|
compatible = "marvell,armada-380-system-controller",
|
|
|
|
"marvell,armada-370-xp-system-controller";
|
|
|
|
reg = <0x18200 0x100>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gateclk: clock-gating-control@18220 {
|
|
|
|
compatible = "marvell,armada-380-gating-clock";
|
|
|
|
reg = <0x18220 0x4>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
coreclk: mvebu-sar@18600 {
|
|
|
|
compatible = "marvell,armada-380-core-clock";
|
|
|
|
reg = <0x18600 0x04>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mbusc: mbus-controller@20000 {
|
|
|
|
compatible = "marvell,mbus-controller";
|
|
|
|
reg = <0x20000 0x100>, <0x20180 0x20>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mpic: interrupt-controller@20000 {
|
|
|
|
compatible = "marvell,mpic";
|
|
|
|
reg = <0x20a00 0x2d0>, <0x21070 0x58>;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
interrupt-controller;
|
|
|
|
msi-controller;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
timer@20300 {
|
|
|
|
compatible = "marvell,armada-380-timer",
|
|
|
|
"marvell,armada-xp-timer";
|
|
|
|
reg = <0x20300 0x30>, <0x21040 0x30>;
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
|
2014-02-17 21:23:28 +07:00
|
|
|
<&mpic 5>,
|
|
|
|
<&mpic 6>;
|
|
|
|
clocks = <&coreclk 2>, <&refclk>;
|
|
|
|
clock-names = "nbclk", "fixed";
|
|
|
|
};
|
|
|
|
|
2014-04-14 20:23:32 +07:00
|
|
|
watchdog@20300 {
|
|
|
|
compatible = "marvell,armada-380-wdt";
|
|
|
|
reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>;
|
|
|
|
clocks = <&coreclk 2>, <&refclk>;
|
|
|
|
clock-names = "nbclk", "fixed";
|
|
|
|
};
|
|
|
|
|
2014-04-14 20:54:08 +07:00
|
|
|
cpurst@20800 {
|
|
|
|
compatible = "marvell,armada-370-cpu-reset";
|
|
|
|
reg = <0x20800 0x10>;
|
|
|
|
};
|
|
|
|
|
2014-04-14 20:47:08 +07:00
|
|
|
coherency-fabric@21010 {
|
|
|
|
compatible = "marvell,armada-380-coherency-fabric";
|
|
|
|
reg = <0x21010 0x1c>;
|
|
|
|
};
|
|
|
|
|
2014-04-14 20:54:08 +07:00
|
|
|
pmsu@22000 {
|
|
|
|
compatible = "marvell,armada-380-pmsu";
|
|
|
|
reg = <0x22000 0x1000>;
|
|
|
|
};
|
|
|
|
|
2014-02-17 21:23:28 +07:00
|
|
|
eth1: ethernet@30000 {
|
|
|
|
compatible = "marvell,armada-370-neta";
|
|
|
|
reg = <0x30000 0x4000>;
|
|
|
|
interrupts-extended = <&mpic 10>;
|
|
|
|
clocks = <&gateclk 3>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
eth2: ethernet@34000 {
|
|
|
|
compatible = "marvell,armada-370-neta";
|
|
|
|
reg = <0x34000 0x4000>;
|
|
|
|
interrupts-extended = <&mpic 12>;
|
|
|
|
clocks = <&gateclk 2>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
xor@60800 {
|
|
|
|
compatible = "marvell,orion-xor";
|
|
|
|
reg = <0x60800 0x100
|
|
|
|
0x60a00 0x100>;
|
|
|
|
clocks = <&gateclk 22>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
xor00 {
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
};
|
|
|
|
xor01 {
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
dmacap,memset;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xor@60900 {
|
|
|
|
compatible = "marvell,orion-xor";
|
|
|
|
reg = <0x60900 0x100
|
|
|
|
0x60b00 0x100>;
|
|
|
|
clocks = <&gateclk 28>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
xor10 {
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
};
|
|
|
|
xor11 {
|
2014-02-20 18:11:31 +07:00
|
|
|
interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 21:23:28 +07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
dmacap,memset;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
eth0: ethernet@70000 {
|
|
|
|
compatible = "marvell,armada-370-neta";
|
|
|
|
reg = <0x70000 0x4000>;
|
|
|
|
interrupts-extended = <&mpic 8>;
|
|
|
|
clocks = <&gateclk 4>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "marvell,orion-mdio";
|
|
|
|
reg = <0x72004 0x4>;
|
|
|
|
};
|
2014-03-14 03:24:30 +07:00
|
|
|
|
2014-04-15 22:00:04 +07:00
|
|
|
sata@a8000 {
|
|
|
|
compatible = "marvell,armada-380-ahci";
|
|
|
|
reg = <0xa8000 0x2000>;
|
|
|
|
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&gateclk 15>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
sata@e0000 {
|
|
|
|
compatible = "marvell,armada-380-ahci";
|
|
|
|
reg = <0xe0000 0x2000>;
|
|
|
|
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&gateclk 30>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2014-03-14 03:24:30 +07:00
|
|
|
coredivclk: clock@e4250 {
|
|
|
|
compatible = "marvell,armada-380-corediv-clock";
|
|
|
|
reg = <0xe4250 0xc>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
clocks = <&mainpll>;
|
|
|
|
clock-output-names = "nand";
|
|
|
|
};
|
2014-03-14 03:24:31 +07:00
|
|
|
|
|
|
|
flash@d0000 {
|
|
|
|
compatible = "marvell,armada370-nand";
|
|
|
|
reg = <0xd0000 0x54>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&coredivclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2014-04-14 21:41:16 +07:00
|
|
|
|
|
|
|
sdhci@d8000 {
|
|
|
|
compatible = "marvell,armada-380-sdhci";
|
|
|
|
reg = <0xd8000 0x1000>, <0xdc000 0x100>;
|
|
|
|
interrupts = <0 25 0x4>;
|
|
|
|
clocks = <&gateclk 17>;
|
|
|
|
mrvl,clk-delay-cycles = <0x1F>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2014-02-17 21:23:28 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
clocks {
|
2014-03-14 03:24:29 +07:00
|
|
|
/* 2 GHz fixed main PLL */
|
|
|
|
mainpll: mainpll {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <2000000000>;
|
|
|
|
};
|
|
|
|
|
2014-02-17 21:23:28 +07:00
|
|
|
/* 25 MHz reference crystal */
|
|
|
|
refclk: oscillator {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <25000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|