2014-02-17 07: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>
|
|
|
|
*
|
2015-01-26 07:15:59 -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.
|
|
|
|
*
|
2016-12-27 14:36:42 -07:00
|
|
|
* This file is distributed in the hope that it will be useful,
|
2015-01-26 07:15:59 -07:00
|
|
|
* 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.
|
|
|
|
*
|
2016-12-27 14:36:42 -07:00
|
|
|
* Or, alternatively,
|
2015-01-26 07:15:59 -07:00
|
|
|
*
|
|
|
|
* 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
|
2016-12-27 14:36:42 -07:00
|
|
|
* restriction, including without limitation the rights to use,
|
2015-01-26 07:15:59 -07:00
|
|
|
* 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.
|
|
|
|
*
|
2016-12-27 14:36:42 -07:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
2015-01-26 07:15:59 -07:00
|
|
|
* 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
|
2016-12-27 14:36:42 -07:00
|
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
2015-01-26 07:15:59 -07:00
|
|
|
* 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.
|
2014-02-17 07:23:28 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "skeleton.dtsi"
|
2014-02-20 04:11:30 -07:00
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
2014-02-20 04:11:31 -07:00
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
2014-02-17 07:23:28 -07:00
|
|
|
|
|
|
|
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Marvell Armada 38x family SoC";
|
2014-06-23 08:16:51 -06:00
|
|
|
compatible = "marvell,armada380";
|
2014-02-17 07:23:28 -07:00
|
|
|
|
|
|
|
aliases {
|
|
|
|
gpio0 = &gpio0;
|
|
|
|
gpio1 = &gpio1;
|
2015-03-03 07:41:01 -07:00
|
|
|
serial0 = &uart0;
|
|
|
|
serial1 = &uart1;
|
2014-02-17 07:23:28 -07:00
|
|
|
};
|
|
|
|
|
2015-03-03 03:43:19 -07:00
|
|
|
pmu {
|
|
|
|
compatible = "arm,cortex-a9-pmu";
|
|
|
|
interrupts-extended = <&mpic 3>;
|
|
|
|
};
|
|
|
|
|
2014-02-17 07:23:28 -07:00
|
|
|
soc {
|
2014-12-30 05:43:44 -07:00
|
|
|
compatible = "marvell,armada380-mbus", "simple-bus";
|
2014-02-17 07:23:28 -07:00
|
|
|
#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>;
|
2015-06-11 05:51:12 -06:00
|
|
|
arm,double-linefill-incr = <1>;
|
|
|
|
arm,double-linefill-wrap = <0>;
|
|
|
|
arm,double-linefill = <1>;
|
|
|
|
prefetch-data = <1>;
|
2014-02-17 07:23:28 -07:00
|
|
|
};
|
|
|
|
|
2014-04-14 07:47:08 -06:00
|
|
|
scu@c000 {
|
|
|
|
compatible = "arm,cortex-a9-scu";
|
|
|
|
reg = <0xc000 0x58>;
|
|
|
|
};
|
|
|
|
|
2014-02-17 07:23:28 -07:00
|
|
|
timer@c600 {
|
|
|
|
compatible = "arm,cortex-a9-twd-timer";
|
|
|
|
reg = <0xc600 0x20>;
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
|
2014-02-17 07: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>;
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c0: i2c@11000 {
|
|
|
|
compatible = "marvell,mv64xxx-i2c";
|
|
|
|
reg = <0x11000 0x20>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07: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 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
timeout-ms = <1000>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2015-01-08 10:38:11 -07:00
|
|
|
uart0: serial@12000 {
|
2014-02-17 07:23:28 -07:00
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x12000 0x100>;
|
|
|
|
reg-shift = <2>;
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
reg-io-width = <1>;
|
2014-04-18 01:41:46 -06:00
|
|
|
clocks = <&coreclk 0>;
|
2014-02-17 07:23:28 -07:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2015-03-03 07:40:58 -07:00
|
|
|
uart1: serial@12100 {
|
2014-02-17 07:23:28 -07:00
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x12100 0x100>;
|
|
|
|
reg-shift = <2>;
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
reg-io-width = <1>;
|
2014-04-18 01:41:46 -06:00
|
|
|
clocks = <&coreclk 0>;
|
2014-02-17 07:23:28 -07:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2015-01-08 10:38:11 -07:00
|
|
|
pinctrl: pinctrl@18000 {
|
2014-02-17 07:23:28 -07:00
|
|
|
reg = <0x18000 0x20>;
|
2015-01-08 10:38:08 -07:00
|
|
|
|
|
|
|
ge0_rgmii_pins: ge-rgmii-pins-0 {
|
|
|
|
marvell,pins = "mpp6", "mpp7", "mpp8",
|
|
|
|
"mpp9", "mpp10", "mpp11",
|
|
|
|
"mpp12", "mpp13", "mpp14",
|
|
|
|
"mpp15", "mpp16", "mpp17";
|
|
|
|
marvell,function = "ge0";
|
|
|
|
};
|
|
|
|
|
2015-01-08 10:38:10 -07:00
|
|
|
ge1_rgmii_pins: ge-rgmii-pins-1 {
|
|
|
|
marvell,pins = "mpp21", "mpp27", "mpp28",
|
|
|
|
"mpp29", "mpp30", "mpp31",
|
|
|
|
"mpp32", "mpp37", "mpp38",
|
|
|
|
"mpp39", "mpp40", "mpp41";
|
|
|
|
marvell,function = "ge1";
|
|
|
|
};
|
|
|
|
|
2015-01-08 10:38:08 -07:00
|
|
|
i2c0_pins: i2c-pins-0 {
|
|
|
|
marvell,pins = "mpp2", "mpp3";
|
|
|
|
marvell,function = "i2c0";
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio_pins: mdio-pins {
|
|
|
|
marvell,pins = "mpp4", "mpp5";
|
|
|
|
marvell,function = "ge";
|
|
|
|
};
|
|
|
|
|
|
|
|
ref_clk0_pins: ref-clk-pins-0 {
|
|
|
|
marvell,pins = "mpp45";
|
|
|
|
marvell,function = "ref";
|
|
|
|
};
|
|
|
|
|
2015-01-08 10:38:10 -07:00
|
|
|
ref_clk1_pins: ref-clk-pins-1 {
|
|
|
|
marvell,pins = "mpp46";
|
|
|
|
marvell,function = "ref";
|
|
|
|
};
|
|
|
|
|
|
|
|
spi0_pins: spi-pins-0 {
|
|
|
|
marvell,pins = "mpp22", "mpp23", "mpp24",
|
|
|
|
"mpp25";
|
|
|
|
marvell,function = "spi0";
|
|
|
|
};
|
|
|
|
|
2015-01-08 10:38:08 -07:00
|
|
|
spi1_pins: spi-pins-1 {
|
|
|
|
marvell,pins = "mpp56", "mpp57", "mpp58",
|
|
|
|
"mpp59";
|
|
|
|
marvell,function = "spi1";
|
|
|
|
};
|
|
|
|
|
2016-08-23 17:21:15 -06:00
|
|
|
nand_pins: nand-pins {
|
|
|
|
marvell,pins = "mpp22", "mpp34", "mpp23",
|
|
|
|
"mpp33", "mpp38", "mpp28",
|
|
|
|
"mpp40", "mpp42", "mpp35",
|
|
|
|
"mpp36", "mpp25", "mpp30",
|
|
|
|
"mpp32";
|
|
|
|
marvell,function = "dev";
|
|
|
|
};
|
|
|
|
|
2015-01-08 10:38:08 -07:00
|
|
|
uart0_pins: uart-pins-0 {
|
|
|
|
marvell,pins = "mpp0", "mpp1";
|
|
|
|
marvell,function = "ua0";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart1_pins: uart-pins-1 {
|
|
|
|
marvell,pins = "mpp19", "mpp20";
|
|
|
|
marvell,function = "ua1";
|
|
|
|
};
|
2015-01-08 10:38:10 -07:00
|
|
|
|
|
|
|
sdhci_pins: sdhci-pins {
|
|
|
|
marvell,pins = "mpp48", "mpp49", "mpp50",
|
|
|
|
"mpp52", "mpp53", "mpp54",
|
|
|
|
"mpp55", "mpp57", "mpp58",
|
|
|
|
"mpp59";
|
|
|
|
marvell,function = "sd0";
|
|
|
|
};
|
|
|
|
|
|
|
|
sata0_pins: sata-pins-0 {
|
|
|
|
marvell,pins = "mpp20";
|
|
|
|
marvell,function = "sata0";
|
|
|
|
};
|
|
|
|
|
|
|
|
sata1_pins: sata-pins-1 {
|
|
|
|
marvell,pins = "mpp19";
|
|
|
|
marvell,function = "sata1";
|
|
|
|
};
|
|
|
|
|
|
|
|
sata2_pins: sata-pins-2 {
|
|
|
|
marvell,pins = "mpp47";
|
|
|
|
marvell,function = "sata2";
|
|
|
|
};
|
|
|
|
|
|
|
|
sata3_pins: sata-pins-3 {
|
|
|
|
marvell,pins = "mpp44";
|
|
|
|
marvell,function = "sata3";
|
|
|
|
};
|
2014-02-17 07:23:28 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
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 04: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 07: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 04: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 07: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>;
|
|
|
|
};
|
|
|
|
|
2015-02-26 02:51:17 -07:00
|
|
|
mpic: interrupt-controller@20a00 {
|
2014-02-17 07:23:28 -07:00
|
|
|
compatible = "marvell,mpic";
|
|
|
|
reg = <0x20a00 0x2d0>, <0x21070 0x58>;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
interrupt-controller;
|
|
|
|
msi-controller;
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
timer@20300 {
|
|
|
|
compatible = "marvell,armada-380-timer",
|
|
|
|
"marvell,armada-xp-timer";
|
|
|
|
reg = <0x20300 0x30>, <0x21040 0x30>;
|
2014-02-20 04: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 07:23:28 -07:00
|
|
|
<&mpic 5>,
|
|
|
|
<&mpic 6>;
|
|
|
|
clocks = <&coreclk 2>, <&refclk>;
|
|
|
|
clock-names = "nbclk", "fixed";
|
|
|
|
};
|
|
|
|
|
2014-04-14 07:23:32 -06: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 07:54:08 -06:00
|
|
|
cpurst@20800 {
|
|
|
|
compatible = "marvell,armada-370-cpu-reset";
|
|
|
|
reg = <0x20800 0x10>;
|
|
|
|
};
|
|
|
|
|
2014-07-09 07:40:14 -06:00
|
|
|
mpcore-soc-ctrl@20d20 {
|
|
|
|
compatible = "marvell,armada-380-mpcore-soc-ctrl";
|
|
|
|
reg = <0x20d20 0x6c>;
|
|
|
|
};
|
|
|
|
|
2014-04-14 07:47:08 -06:00
|
|
|
coherency-fabric@21010 {
|
|
|
|
compatible = "marvell,armada-380-coherency-fabric";
|
|
|
|
reg = <0x21010 0x1c>;
|
|
|
|
};
|
|
|
|
|
2014-04-14 07:54:08 -06:00
|
|
|
pmsu@22000 {
|
|
|
|
compatible = "marvell,armada-380-pmsu";
|
|
|
|
reg = <0x22000 0x1000>;
|
|
|
|
};
|
|
|
|
|
ARM: dts: armada-38x: change order of ethernet DT nodes on Armada 38x
On Armada 38x, the available network interfaces are:
- port 0, at 0x70000
- port 1, at 0x30000
- port 2, at 0x34000
Due to the rule saying that DT nodes should be ordered by register
addresses, the network interfaces are probed in this order:
- port 1, at 0x30000, which gets named eth0
- port 2, at 0x34000, which gets named eth1
- port 0, at 0x70000, which gets named eth2
(if all three ports are enabled at the board level)
Unfortunately, the network subsystem doesn't provide any way to rename
network interfaces from the kernel (it can only be done from
userspace). So, the default naming of the network interfaces is very
confusing as it doesn't match the datasheet, nor the naming of the
interfaces in the bootloader, nor the naming of the interfaces on
labels printed on the board.
For example, on the Armada 388 GP, the board has two ports, labelled
GE0 and GE1. One has to know that GE0 is eth1 and GE1 is eth0, which
isn't really obvious.
In order to solve this, this patch proposes to exceptionaly violate
the rule of "order DT nodes by register address", and put the 0x70000
node before the 0x30000 node, so that network interfaces get named in
a more natural way.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
2016-01-27 08:08:19 -07:00
|
|
|
/*
|
|
|
|
* As a special exception to the "order by
|
|
|
|
* register address" rule, the eth0 node is
|
|
|
|
* placed here to ensure that it gets
|
|
|
|
* registered as the first interface, since
|
|
|
|
* the network subsystem doesn't allow naming
|
|
|
|
* interfaces using DT aliases. Without this,
|
|
|
|
* the ordering of interfaces is different
|
|
|
|
* from the one used in U-Boot and the
|
|
|
|
* labeling of interfaces on the boards, which
|
|
|
|
* is very confusing for users.
|
|
|
|
*/
|
|
|
|
eth0: ethernet@70000 {
|
|
|
|
compatible = "marvell,armada-370-neta";
|
|
|
|
reg = <0x70000 0x4000>;
|
|
|
|
interrupts-extended = <&mpic 8>;
|
|
|
|
clocks = <&gateclk 4>;
|
|
|
|
tx-csum-limit = <9800>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2014-02-17 07: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";
|
|
|
|
};
|
|
|
|
|
2015-03-03 07:40:57 -07:00
|
|
|
usb@58000 {
|
2014-05-15 04:17:40 -06:00
|
|
|
compatible = "marvell,orion-ehci";
|
|
|
|
reg = <0x58000 0x500>;
|
|
|
|
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&gateclk 18>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2014-02-17 07:23:28 -07:00
|
|
|
xor@60800 {
|
2015-06-17 06:12:21 -06:00
|
|
|
compatible = "marvell,armada-380-xor", "marvell,orion-xor";
|
2014-02-17 07:23:28 -07:00
|
|
|
reg = <0x60800 0x100
|
|
|
|
0x60a00 0x100>;
|
|
|
|
clocks = <&gateclk 22>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
xor00 {
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
};
|
|
|
|
xor01 {
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
dmacap,memset;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xor@60900 {
|
2015-06-17 06:12:21 -06:00
|
|
|
compatible = "marvell,armada-380-xor", "marvell,orion-xor";
|
2014-02-17 07:23:28 -07:00
|
|
|
reg = <0x60900 0x100
|
|
|
|
0x60b00 0x100>;
|
|
|
|
clocks = <&gateclk 28>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
xor10 {
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
};
|
|
|
|
xor11 {
|
2014-02-20 04:11:31 -07:00
|
|
|
interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
|
2014-02-17 07:23:28 -07:00
|
|
|
dmacap,memcpy;
|
|
|
|
dmacap,xor;
|
|
|
|
dmacap,memset;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-05-06 07:13:59 -06:00
|
|
|
mdio: mdio@72004 {
|
2014-02-17 07:23:28 -07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
compatible = "marvell,orion-mdio";
|
|
|
|
reg = <0x72004 0x4>;
|
2014-03-25 17:33:59 -06:00
|
|
|
clocks = <&gateclk 4>;
|
2014-02-17 07:23:28 -07:00
|
|
|
};
|
2014-03-13 14:24:30 -06:00
|
|
|
|
2015-08-18 02:08:58 -06:00
|
|
|
crypto@90000 {
|
|
|
|
compatible = "marvell,armada-38x-crypto";
|
|
|
|
reg = <0x90000 0x10000>;
|
|
|
|
reg-names = "regs";
|
|
|
|
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&gateclk 23>, <&gateclk 21>,
|
|
|
|
<&gateclk 14>, <&gateclk 16>;
|
|
|
|
clock-names = "cesa0", "cesa1",
|
|
|
|
"cesaz0", "cesaz1";
|
|
|
|
marvell,crypto-srams = <&crypto_sram0>,
|
|
|
|
<&crypto_sram1>;
|
|
|
|
marvell,crypto-sram-size = <0x800>;
|
|
|
|
};
|
|
|
|
|
2015-02-13 15:41:18 -07:00
|
|
|
rtc@a3800 {
|
|
|
|
compatible = "marvell,armada-380-rtc";
|
|
|
|
reg = <0xa3800 0x20>, <0x184a0 0x0c>;
|
|
|
|
reg-names = "rtc", "rtc-soc";
|
|
|
|
interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
};
|
|
|
|
|
2014-04-15 09:00:04 -06:00
|
|
|
sata@a8000 {
|
|
|
|
compatible = "marvell,armada-380-ahci";
|
|
|
|
reg = <0xa8000 0x2000>;
|
|
|
|
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&gateclk 15>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2016-03-14 02:38:57 -06:00
|
|
|
bm: bm@c8000 {
|
|
|
|
compatible = "marvell,armada-380-neta-bm";
|
|
|
|
reg = <0xc8000 0xac>;
|
|
|
|
clocks = <&gateclk 13>;
|
|
|
|
internal-mem = <&bm_bppi>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2014-04-15 09:00:04 -06:00
|
|
|
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-13 14:24:30 -06:00
|
|
|
coredivclk: clock@e4250 {
|
|
|
|
compatible = "marvell,armada-380-corediv-clock";
|
|
|
|
reg = <0xe4250 0xc>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
clocks = <&mainpll>;
|
|
|
|
clock-output-names = "nand";
|
|
|
|
};
|
2014-03-13 14:24:31 -06:00
|
|
|
|
2014-04-24 14:23:24 -06:00
|
|
|
thermal@e8078 {
|
|
|
|
compatible = "marvell,armada380-thermal";
|
|
|
|
reg = <0xe4078 0x4>, <0xe4074 0x4>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-03-13 14:24:31 -06: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 08:41:16 -06:00
|
|
|
|
|
|
|
sdhci@d8000 {
|
|
|
|
compatible = "marvell,armada-380-sdhci";
|
2015-01-29 04:36:29 -07:00
|
|
|
reg-names = "sdhci", "mbus", "conf-sdio3";
|
|
|
|
reg = <0xd8000 0x1000>,
|
|
|
|
<0xdc000 0x100>,
|
|
|
|
<0x18454 0x4>;
|
2015-01-29 04:36:28 -07:00
|
|
|
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
|
2014-04-14 08:41:16 -06:00
|
|
|
clocks = <&gateclk 17>;
|
|
|
|
mrvl,clk-delay-cycles = <0x1F>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2014-05-15 04:17:39 -06:00
|
|
|
|
|
|
|
usb3@f0000 {
|
|
|
|
compatible = "marvell,armada-380-xhci";
|
|
|
|
reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
|
|
|
|
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&gateclk 9>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
usb3@f8000 {
|
|
|
|
compatible = "marvell,armada-380-xhci";
|
|
|
|
reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
|
|
|
|
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&gateclk 10>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2014-02-17 07:23:28 -07:00
|
|
|
};
|
2015-08-18 02:08:58 -06:00
|
|
|
|
|
|
|
crypto_sram0: sa-sram0 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <MBUS_ID(0x09, 0x19) 0 0x800>;
|
|
|
|
clocks = <&gateclk 23>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0 MBUS_ID(0x09, 0x19) 0 0x800>;
|
|
|
|
};
|
|
|
|
|
|
|
|
crypto_sram1: sa-sram1 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <MBUS_ID(0x09, 0x15) 0 0x800>;
|
|
|
|
clocks = <&gateclk 21>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0 MBUS_ID(0x09, 0x15) 0 0x800>;
|
|
|
|
};
|
2016-03-14 02:38:57 -06:00
|
|
|
|
|
|
|
bm_bppi: bm-bppi {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
|
|
|
|
ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
clocks = <&gateclk 13>;
|
|
|
|
no-memory-wc;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2016-07-13 03:55:18 -06:00
|
|
|
|
|
|
|
spi0: spi@10600 {
|
|
|
|
compatible = "marvell,armada-380-spi",
|
|
|
|
"marvell,orion-spi";
|
|
|
|
reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
cell-index = <0>;
|
|
|
|
interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
spi1: spi@10680 {
|
|
|
|
compatible = "marvell,armada-380-spi",
|
|
|
|
"marvell,orion-spi";
|
|
|
|
reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
cell-index = <1>;
|
|
|
|
interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&coreclk 0>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2014-02-17 07:23:28 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
clocks {
|
2016-10-25 17:52:42 -06:00
|
|
|
/* 1 GHz fixed main PLL */
|
2014-03-13 14:24:29 -06:00
|
|
|
mainpll: mainpll {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
2015-04-27 00:55:18 -06:00
|
|
|
clock-frequency = <1000000000>;
|
2014-03-13 14:24:29 -06:00
|
|
|
};
|
|
|
|
|
2014-02-17 07:23:28 -07:00
|
|
|
/* 25 MHz reference crystal */
|
|
|
|
refclk: oscillator {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <25000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|