2012-06-14 00:01:28 +07:00
|
|
|
/*
|
|
|
|
* Device Tree Include file for Marvell Armada 370 and Armada XP SoC
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Marvell
|
|
|
|
*
|
|
|
|
* Lior Amsalem <alior@marvell.com>
|
|
|
|
* Gregory CLEMENT <gregory.clement@free-electrons.com>
|
|
|
|
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
* Ben Dooks <ben.dooks@codethink.co.uk>
|
|
|
|
*
|
2015-01-26 21:15:52 +07:00
|
|
|
* This file is dual-licensed: you can use it either under the terms
|
|
|
|
* of the GPL or the X11 license, at your option. Note that this dual
|
|
|
|
* licensing only applies to this file, and not this project as a
|
|
|
|
* whole.
|
|
|
|
*
|
|
|
|
* a) This file is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* Or, alternatively
|
|
|
|
*
|
|
|
|
* b) Permission is hereby granted, free of charge, to any person
|
|
|
|
* obtaining a copy of this software and associated documentation
|
|
|
|
* files (the "Software"), to deal in the Software without
|
|
|
|
* restriction, including without limitation the rights to use
|
|
|
|
* copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
* sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following
|
|
|
|
* conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
|
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
|
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
|
|
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
2012-06-14 00:01:28 +07:00
|
|
|
*
|
|
|
|
* This file contains the definitions that are common to the Armada
|
|
|
|
* 370 and Armada XP SoC.
|
|
|
|
*/
|
|
|
|
|
2013-04-12 21:29:10 +07:00
|
|
|
/include/ "skeleton64.dtsi"
|
2012-06-14 00:01:28 +07:00
|
|
|
|
2013-07-26 20:17:57 +07:00
|
|
|
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
|
|
|
|
|
2012-06-14 00:01:28 +07:00
|
|
|
/ {
|
|
|
|
model = "Marvell Armada 370 and XP SoC";
|
2012-11-09 22:29:17 +07:00
|
|
|
compatible = "marvell,armada-370-xp";
|
2012-06-14 00:01:28 +07:00
|
|
|
|
2013-06-03 23:47:36 +07:00
|
|
|
aliases {
|
2015-03-03 21:41:01 +07:00
|
|
|
serial0 = &uart0;
|
|
|
|
serial1 = &uart1;
|
2013-06-03 23:47:36 +07:00
|
|
|
};
|
|
|
|
|
2012-06-14 00:01:28 +07:00
|
|
|
cpus {
|
2013-04-19 00:29:34 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2012-06-14 00:01:28 +07:00
|
|
|
cpu@0 {
|
|
|
|
compatible = "marvell,sheeva-v7";
|
2013-04-19 00:29:34 +07:00
|
|
|
device_type = "cpu";
|
|
|
|
reg = <0>;
|
2012-06-14 00:01:28 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-03-03 17:43:17 +07:00
|
|
|
pmu {
|
|
|
|
compatible = "arm,cortex-a9-pmu";
|
|
|
|
interrupts-extended = <&mpic 3>;
|
|
|
|
};
|
|
|
|
|
2012-06-14 00:01:28 +07:00
|
|
|
soc {
|
2013-07-26 20:17:57 +07:00
|
|
|
#address-cells = <2>;
|
2012-06-14 00:01:28 +07:00
|
|
|
#size-cells = <1>;
|
2013-07-26 20:17:57 +07:00
|
|
|
controller = <&mbusc>;
|
2012-06-14 00:01:28 +07:00
|
|
|
interrupt-parent = <&mpic>;
|
ARM: mvebu: change the default PCIe apertures for Armada 370/XP
The latest Marvell bootloaders for various boards change the MBus
Window base address from 0xC0000000 to 0xF0000000, in order to make
more RAM in the first 4 GB actually usable by the kernel (RAM that is
covered by the MBus window is "shadowed" and therefore not usable).
However, our default PCIe memory and I/O apertures where sitting at
0xe0000000 (for memory) and 0xe8000000 (for I/O), which will now be
outside of the MBus Window range on those platforms. To make things
work, we have to ensure those apertures use addresses in the
0xF0000000 -> 0xFFFFFFFF range.
Of course this change of the MBus Window base address from 0xC0000000
to 0xF0000000 also comes with a change of the internal register base
address from 0xD0000000 to 0xF1000000.
We have therefore designed the following memory map:
* 0xF0000000 -> 0xF1000000: 16 MB, used for NOR flashes on Armada XP
GP and Armada XP DB.
* 0xF1000000 -> 0xF1100000: 1 MB, used for internal registers.
* 0xF8000000 -> 0xFFE00000: 126 MB, used for PCIe memory.
* 0xFFE00000 -> 0xFFF00000: 1 MB, used for PCIe I/O.
* 0xFFF00000 -> 0xFFFFFFFF: 1 MB, used for the BootROM mapping
There is one exception to this layout: the Armada XP OpenBlocks, which
has a 128 MB NOR flash, mapped from 0xF0000000 to 0xF8000000. This
does not conflict with the current change for the PCIe I/O and memory
apertures, and continues to work because on Armada XP OpenBlocks, the
bootloader is an old one, and continues to have internal registers
mapped at 0xD0000000.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
2014-03-04 23:36:59 +07:00
|
|
|
pcie-mem-aperture = <0xf8000000 0x7e00000>;
|
|
|
|
pcie-io-aperture = <0xffe00000 0x100000>;
|
2012-06-14 00:01:28 +07:00
|
|
|
|
2013-07-26 20:17:59 +07:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
internal-regs {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2013-07-26 20:17:57 +07:00
|
|
|
ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
|
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
rtc@10300 {
|
|
|
|
compatible = "marvell,orion-rtc";
|
|
|
|
reg = <0x10300 0x20>;
|
|
|
|
interrupts = <50>;
|
2013-07-26 20:17:57 +07:00
|
|
|
};
|
2013-04-12 21:29:09 +07:00
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
spi0: spi@10600 {
|
|
|
|
reg = <0x10600 0x28>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
cell-index = <0>;
|
|
|
|
interrupts = <30>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
2013-04-12 21:29:07 +07:00
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
spi1: spi@10680 {
|
|
|
|
reg = <0x10680 0x28>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
cell-index = <1>;
|
|
|
|
interrupts = <92>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c0: i2c@11000 {
|
|
|
|
compatible = "marvell,mv64xxx-i2c";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
interrupts = <31>;
|
|
|
|
timeout-ms = <1000>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c1: i2c@11100 {
|
|
|
|
compatible = "marvell,mv64xxx-i2c";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
interrupts = <32>;
|
|
|
|
timeout-ms = <1000>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
2013-04-12 21:29:07 +07:00
|
|
|
|
2014-11-22 06:45:35 +07:00
|
|
|
uart0: serial@12000 {
|
2012-12-05 00:04:59 +07:00
|
|
|
compatible = "snps,dw-apb-uart";
|
2013-04-12 21:29:08 +07:00
|
|
|
reg = <0x12000 0x100>;
|
2012-06-14 00:01:28 +07:00
|
|
|
reg-shift = <2>;
|
|
|
|
interrupts = <41>;
|
2013-03-06 17:23:33 +07:00
|
|
|
reg-io-width = <1>;
|
2014-04-18 14:41:46 +07:00
|
|
|
clocks = <&coreclk 0>;
|
2012-06-14 00:01:28 +07:00
|
|
|
status = "disabled";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
2014-11-22 06:45:35 +07:00
|
|
|
|
|
|
|
uart1: serial@12100 {
|
2012-12-05 00:04:59 +07:00
|
|
|
compatible = "snps,dw-apb-uart";
|
2013-04-12 21:29:08 +07:00
|
|
|
reg = <0x12100 0x100>;
|
2012-06-14 00:01:28 +07:00
|
|
|
reg-shift = <2>;
|
|
|
|
interrupts = <42>;
|
2013-03-06 17:23:33 +07:00
|
|
|
reg-io-width = <1>;
|
2014-04-18 14:41:46 +07:00
|
|
|
clocks = <&coreclk 0>;
|
2012-06-14 00:01:28 +07:00
|
|
|
status = "disabled";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
|
|
|
|
2014-11-22 06:45:56 +07:00
|
|
|
pinctrl: pin-ctrl@18000 {
|
|
|
|
reg = <0x18000 0x38>;
|
|
|
|
};
|
|
|
|
|
2013-10-19 06:02:31 +07:00
|
|
|
coredivclk: corediv-clock@18740 {
|
|
|
|
compatible = "marvell,armada-370-corediv-clock";
|
|
|
|
reg = <0x18740 0xc>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
clocks = <&mainpll>;
|
|
|
|
clock-output-names = "nand";
|
|
|
|
};
|
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
mbusc: mbus-controller@20000 {
|
|
|
|
compatible = "marvell,mbus-controller";
|
2014-11-21 23:00:12 +07:00
|
|
|
reg = <0x20000 0x100>, <0x20180 0x20>,
|
|
|
|
<0x20250 0x8>;
|
2013-12-12 20:59:17 +07:00
|
|
|
};
|
|
|
|
|
2015-03-03 21:41:03 +07:00
|
|
|
mpic: interrupt-controller@20a00 {
|
2013-12-12 20:59:17 +07:00
|
|
|
compatible = "marvell,mpic";
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
interrupt-controller;
|
|
|
|
msi-controller;
|
|
|
|
};
|
|
|
|
|
|
|
|
coherency-fabric@20200 {
|
|
|
|
compatible = "marvell,coherency-fabric";
|
2013-12-20 06:24:56 +07:00
|
|
|
reg = <0x20200 0xb0>, <0x21010 0x1c>;
|
2013-12-12 20:59:17 +07:00
|
|
|
};
|
|
|
|
|
2013-04-12 21:29:09 +07:00
|
|
|
timer@20300 {
|
|
|
|
reg = <0x20300 0x30>, <0x21040 0x30>;
|
|
|
|
interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
|
|
|
|
};
|
|
|
|
|
2014-02-11 06:00:32 +07:00
|
|
|
watchdog@20300 {
|
|
|
|
reg = <0x20300 0x34>, <0x20704 0x4>;
|
|
|
|
};
|
|
|
|
|
2014-04-14 20:50:32 +07:00
|
|
|
pmsu@22000 {
|
|
|
|
compatible = "marvell,armada-370-pmsu";
|
|
|
|
reg = <0x22000 0x1000>;
|
|
|
|
};
|
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
usb@50000 {
|
|
|
|
compatible = "marvell,orion-ehci";
|
|
|
|
reg = <0x50000 0x500>;
|
|
|
|
interrupts = <45>;
|
2013-04-12 21:29:09 +07:00
|
|
|
status = "disabled";
|
|
|
|
};
|
2012-10-26 19:30:47 +07:00
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
usb@51000 {
|
|
|
|
compatible = "marvell,orion-ehci";
|
|
|
|
reg = <0x51000 0x500>;
|
|
|
|
interrupts = <46>;
|
|
|
|
status = "disabled";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
2012-09-04 20:06:43 +07:00
|
|
|
|
2013-06-03 23:47:36 +07:00
|
|
|
eth0: ethernet@70000 {
|
2013-05-21 17:33:27 +07:00
|
|
|
reg = <0x70000 0x4000>;
|
2012-09-04 20:06:43 +07:00
|
|
|
interrupts = <8>;
|
2012-11-19 20:18:09 +07:00
|
|
|
clocks = <&gateclk 4>;
|
2012-09-04 20:06:43 +07:00
|
|
|
status = "disabled";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
2012-09-04 20:06:43 +07:00
|
|
|
|
2014-11-06 02:02:00 +07:00
|
|
|
mdio: mdio {
|
2013-12-12 20:59:17 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "marvell,orion-mdio";
|
|
|
|
reg = <0x72004 0x4>;
|
2014-03-26 06:33:58 +07:00
|
|
|
clocks = <&gateclk 4>;
|
2013-12-12 20:59:17 +07:00
|
|
|
};
|
|
|
|
|
2013-06-03 23:47:36 +07:00
|
|
|
eth1: ethernet@74000 {
|
2013-05-21 17:33:27 +07:00
|
|
|
reg = <0x74000 0x4000>;
|
2012-09-04 20:06:43 +07:00
|
|
|
interrupts = <10>;
|
2012-11-19 20:18:09 +07:00
|
|
|
clocks = <&gateclk 3>;
|
2012-09-04 20:06:43 +07:00
|
|
|
status = "disabled";
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
sata@a0000 {
|
2014-01-24 09:45:38 +07:00
|
|
|
compatible = "marvell,armada-370-sata";
|
2013-12-12 20:59:17 +07:00
|
|
|
reg = <0xa0000 0x5000>;
|
|
|
|
interrupts = <55>;
|
|
|
|
clocks = <&gateclk 15>, <&gateclk 30>;
|
|
|
|
clock-names = "0", "1";
|
2013-04-12 21:29:09 +07:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2013-12-12 20:59:17 +07:00
|
|
|
nand@d0000 {
|
|
|
|
compatible = "marvell,armada370-nand";
|
|
|
|
reg = <0xd0000 0x54>;
|
2013-04-12 21:29:09 +07:00
|
|
|
#address-cells = <1>;
|
2013-12-12 20:59:17 +07:00
|
|
|
#size-cells = <1>;
|
|
|
|
interrupts = <113>;
|
|
|
|
clocks = <&coredivclk 0>;
|
2013-04-12 21:29:09 +07:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
mvsdio@d4000 {
|
|
|
|
compatible = "marvell,orion-sdio";
|
|
|
|
reg = <0xd4000 0x200>;
|
|
|
|
interrupts = <54>;
|
|
|
|
clocks = <&gateclk 17>;
|
2013-05-14 04:18:58 +07:00
|
|
|
bus-width = <4>;
|
|
|
|
cap-sdio-irq;
|
|
|
|
cap-sd-highspeed;
|
|
|
|
cap-mmc-highspeed;
|
2013-04-12 21:29:09 +07:00
|
|
|
status = "disabled";
|
|
|
|
};
|
2013-04-11 02:04:01 +07:00
|
|
|
};
|
2012-06-14 00:01:28 +07:00
|
|
|
};
|
2013-10-19 06:02:30 +07:00
|
|
|
|
|
|
|
clocks {
|
|
|
|
/* 2 GHz fixed main PLL */
|
|
|
|
mainpll: mainpll {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <2000000000>;
|
|
|
|
};
|
|
|
|
};
|
2013-04-12 21:29:09 +07:00
|
|
|
};
|