Commit 094a29d0 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'mvebu-dt-4.1' of git://git.infradead.org/linux-mvebu into next/dt

Pull "mvebu dt changes for v4.1 (part #1)" from Gregory CLEMENT:

- fix SDHCI nodes on Armada 38x
- add Linksys WRT1900AC (Mamba) support (including the Ethernet switch)
- add several fixes and improvement for dove
- enable GPIO fan alarm support for 2Big Network v2
- add several fixes about unit address
- add support for Armada 39x SoC and board

* tag 'mvebu-dt-4.1' of git://git.infradead.org/linux-mvebu:
  ARM: mvebu: add Device Tree files for Armada 39x SoC and board
  ARM: mvebu: fix unit address of MPIC nodes
  ARM: mvebu: use stdout-path in all armada-*.dts
  ARM: mvebu: add serial port aliases on Armada 370/375/38x/XP
  ARM: mvebu: remove aliases for Ethernet devices on Armada 370/375/38x/XP
  ARM: mvebu: add UART labels to Armada 375
  ARM: mvebu: add missing UART labels on Armada 38x
  ARM: mvebu: fix usb@ unit address on Armada 38x to match register address
  ARM: mvebu: a385-db-ap: Enable the NAND
  ARM: ARMADA XP: WRT1900AC: Add support for the Ethernet switch
  ARM: Kirkwood: enable GPIO fan alarm support for 2Big Network v2
  ARM: mvebu: Fix MPIC unit address
  ARM: dts: dove: Add some more common pinctrl settings
  ARM: dts: dove: Add node labels for PCIe ports 0 and 1
  ARM: dts: dove: Always include gpio and interrupt-controller headers
  ARM: dts: dove: Fix uart[23] reg property
  ARM: mvebu: add Linksys WRT1900AC (Mamba) support
  ARM: mvebu: Add Device Tree description of SDHCI for Armada 388 RD
  ARM: mvebu: Update the SDHCI node on Armada 38x
  ARM: mvebu: Use macros for interrupt flags on Armada 38x sdhci node
parents 4d0b756e 538da83d
...@@ -629,11 +629,14 @@ dtb-$(CONFIG_MACH_ARMADA_38X) += \ ...@@ -629,11 +629,14 @@ dtb-$(CONFIG_MACH_ARMADA_38X) += \
armada-388-db.dtb \ armada-388-db.dtb \
armada-388-gp.dtb \ armada-388-gp.dtb \
armada-388-rd.dtb armada-388-rd.dtb
dtb-$(CONFIG_MACH_ARMADA_39X) += \
armada-398-db.dtb
dtb-$(CONFIG_MACH_ARMADA_XP) += \ dtb-$(CONFIG_MACH_ARMADA_XP) += \
armada-xp-axpwifiap.dtb \ armada-xp-axpwifiap.dtb \
armada-xp-db.dtb \ armada-xp-db.dtb \
armada-xp-gp.dtb \ armada-xp-gp.dtb \
armada-xp-lenovo-ix4-300d.dtb \ armada-xp-lenovo-ix4-300d.dtb \
armada-xp-linksys-mamba.dtb \
armada-xp-matrix.dtb \ armada-xp-matrix.dtb \
armada-xp-netgear-rn2120.dtb \ armada-xp-netgear-rn2120.dtb \
armada-xp-openblocks-ax3-4.dtb \ armada-xp-openblocks-ax3-4.dtb \
......
...@@ -55,7 +55,7 @@ / { ...@@ -55,7 +55,7 @@ / {
compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp"; compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -51,7 +51,7 @@ / { ...@@ -51,7 +51,7 @@ / {
compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp"; compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -53,7 +53,7 @@ / { ...@@ -53,7 +53,7 @@ / {
compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp"; compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -53,7 +53,7 @@ / { ...@@ -53,7 +53,7 @@ / {
compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp"; compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -64,7 +64,7 @@ / { ...@@ -64,7 +64,7 @@ / {
compatible = "marvell,a370-rd", "marvell,armada370", "marvell,armada-370-xp"; compatible = "marvell,a370-rd", "marvell,armada370", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -67,8 +67,7 @@ / { ...@@ -67,8 +67,7 @@ / {
"marvell,armada-370-xp"; "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
stdout-path = &uart0;
}; };
memory { memory {
......
...@@ -59,8 +59,8 @@ / { ...@@ -59,8 +59,8 @@ / {
compatible = "marvell,armada-370-xp"; compatible = "marvell,armada-370-xp";
aliases { aliases {
eth0 = &eth0; serial0 = &uart0;
eth1 = &eth1; serial1 = &uart1;
}; };
cpus { cpus {
...@@ -223,7 +223,7 @@ mbusc: mbus-controller@20000 { ...@@ -223,7 +223,7 @@ mbusc: mbus-controller@20000 {
<0x20250 0x8>; <0x20250 0x8>;
}; };
mpic: interrupt-controller@20000 { mpic: interrupt-controller@20a00 {
compatible = "marvell,mpic"; compatible = "marvell,mpic";
#interrupt-cells = <1>; #interrupt-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -232,7 +232,7 @@ sscg@18330 { ...@@ -232,7 +232,7 @@ sscg@18330 {
reg = <0x18330 0x4>; reg = <0x18330 0x4>;
}; };
interrupt-controller@20000 { interrupt-controller@20a00 {
reg = <0x20a00 0x1d0>, <0x21870 0x58>; reg = <0x20a00 0x1d0>, <0x21870 0x58>;
}; };
......
...@@ -55,7 +55,7 @@ / { ...@@ -55,7 +55,7 @@ / {
compatible = "marvell,a375-db", "marvell,armada375"; compatible = "marvell,a375-db", "marvell,armada375";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -60,8 +60,8 @@ aliases { ...@@ -60,8 +60,8 @@ aliases {
gpio0 = &gpio0; gpio0 = &gpio0;
gpio1 = &gpio1; gpio1 = &gpio1;
gpio2 = &gpio2; gpio2 = &gpio2;
ethernet0 = &eth0; serial0 = &uart0;
ethernet1 = &eth1; serial1 = &uart1;
}; };
clocks { clocks {
...@@ -276,7 +276,7 @@ i2c1: i2c@11100 { ...@@ -276,7 +276,7 @@ i2c1: i2c@11100 {
status = "disabled"; status = "disabled";
}; };
serial@12000 { uart0: serial@12000 {
compatible = "snps,dw-apb-uart"; compatible = "snps,dw-apb-uart";
reg = <0x12000 0x100>; reg = <0x12000 0x100>;
reg-shift = <2>; reg-shift = <2>;
...@@ -286,7 +286,7 @@ serial@12000 { ...@@ -286,7 +286,7 @@ serial@12000 {
status = "disabled"; status = "disabled";
}; };
serial@12100 { uart1: serial@12100 {
compatible = "snps,dw-apb-uart"; compatible = "snps,dw-apb-uart";
reg = <0x12100 0x100>; reg = <0x12100 0x100>;
reg-shift = <2>; reg-shift = <2>;
...@@ -394,7 +394,7 @@ mbusc: mbus-controller@20000 { ...@@ -394,7 +394,7 @@ mbusc: mbus-controller@20000 {
reg = <0x20000 0x100>, <0x20180 0x20>; reg = <0x20000 0x100>, <0x20180 0x20>;
}; };
mpic: interrupt-controller@20000 { mpic: interrupt-controller@20a00 {
compatible = "marvell,mpic"; compatible = "marvell,mpic";
reg = <0x20a00 0x2d0>, <0x21070 0x58>; reg = <0x20a00 0x2d0>, <0x21070 0x58>;
#interrupt-cells = <1>; #interrupt-cells = <1>;
......
...@@ -49,8 +49,7 @@ / { ...@@ -49,8 +49,7 @@ / {
compatible = "marvell,a385-db-ap", "marvell,armada385", "marvell,armada38x"; compatible = "marvell,a385-db-ap", "marvell,armada385", "marvell,armada38x";
chosen { chosen {
bootargs = "console=ttyS0,115200"; stdout-path = "serial1:115200n8";
stdout-path = &uart1;
}; };
memory { memory {
...@@ -150,6 +149,19 @@ ethernet@70000 { ...@@ -150,6 +149,19 @@ ethernet@70000 {
phy = <&phy0>; phy = <&phy0>;
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
}; };
nfc: flash@d0000 {
status = "okay";
#address-cells = <1>;
#size-cells = <1>;
num-cs = <1>;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
marvell,nand-keep-config;
marvell,nand-enable-arbiter;
nand-on-flash-bbt;
};
}; };
pcie-controller { pcie-controller {
......
...@@ -54,7 +54,7 @@ / { ...@@ -54,7 +54,7 @@ / {
"marvell,armada385", "marvell,armada380"; "marvell,armada385", "marvell,armada380";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
...@@ -99,7 +99,7 @@ ethernet@30000 { ...@@ -99,7 +99,7 @@ ethernet@30000 {
phy-mode = "rgmii-id"; phy-mode = "rgmii-id";
}; };
usb@50000 { usb@58000 {
status = "ok"; status = "ok";
}; };
......
...@@ -48,8 +48,7 @@ / { ...@@ -48,8 +48,7 @@ / {
compatible = "marvell,a385-gp", "marvell,armada388", "marvell,armada380"; compatible = "marvell,a385-gp", "marvell,armada388", "marvell,armada380";
chosen { chosen {
bootargs = "console=ttyS0,115200"; stdout-path = "serial0:115200n8";
stdout-path = &uart0;
}; };
memory { memory {
...@@ -135,7 +134,7 @@ ethernet@30000 { ...@@ -135,7 +134,7 @@ ethernet@30000 {
}; };
/* CON4 */ /* CON4 */
usb@50000 { usb@58000 {
vcc-supply = <&reg_usb2_0_vbus>; vcc-supply = <&reg_usb2_0_vbus>;
status = "okay"; status = "okay";
}; };
......
...@@ -55,7 +55,7 @@ / { ...@@ -55,7 +55,7 @@ / {
"marvell,armada385","marvell,armada380"; "marvell,armada385","marvell,armada380";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
...@@ -85,6 +85,16 @@ i2c@11000 { ...@@ -85,6 +85,16 @@ i2c@11000 {
clock-frequency = <100000>; clock-frequency = <100000>;
}; };
sdhci@d8000 {
pinctrl-names = "default";
pinctrl-0 = <&sdhci_pins>;
broken-cd;
no-1-8-v;
wp-inverted;
bus-width = <8>;
status = "okay";
};
serial@12000 { serial@12000 {
status = "okay"; status = "okay";
}; };
......
...@@ -59,9 +59,8 @@ / { ...@@ -59,9 +59,8 @@ / {
aliases { aliases {
gpio0 = &gpio0; gpio0 = &gpio0;
gpio1 = &gpio1; gpio1 = &gpio1;
ethernet0 = &eth0; serial0 = &uart0;
ethernet1 = &eth1; serial1 = &uart1;
ethernet2 = &eth2;
}; };
soc { soc {
...@@ -216,7 +215,7 @@ uart0: serial@12000 { ...@@ -216,7 +215,7 @@ uart0: serial@12000 {
status = "disabled"; status = "disabled";
}; };
serial@12100 { uart1: serial@12100 {
compatible = "snps,dw-apb-uart"; compatible = "snps,dw-apb-uart";
reg = <0x12100 0x100>; reg = <0x12100 0x100>;
reg-shift = <2>; reg-shift = <2>;
...@@ -368,7 +367,7 @@ mbusc: mbus-controller@20000 { ...@@ -368,7 +367,7 @@ mbusc: mbus-controller@20000 {
reg = <0x20000 0x100>, <0x20180 0x20>; reg = <0x20000 0x100>, <0x20180 0x20>;
}; };
mpic: interrupt-controller@20000 { mpic: interrupt-controller@20a00 {
compatible = "marvell,mpic"; compatible = "marvell,mpic";
reg = <0x20a00 0x2d0>, <0x21070 0x58>; reg = <0x20a00 0x2d0>, <0x21070 0x58>;
#interrupt-cells = <1>; #interrupt-cells = <1>;
...@@ -435,7 +434,7 @@ eth2: ethernet@34000 { ...@@ -435,7 +434,7 @@ eth2: ethernet@34000 {
status = "disabled"; status = "disabled";
}; };
usb@50000 { usb@58000 {
compatible = "marvell,orion-ehci"; compatible = "marvell,orion-ehci";
reg = <0x58000 0x500>; reg = <0x58000 0x500>;
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
...@@ -548,8 +547,11 @@ flash@d0000 { ...@@ -548,8 +547,11 @@ flash@d0000 {
sdhci@d8000 { sdhci@d8000 {
compatible = "marvell,armada-380-sdhci"; compatible = "marvell,armada-380-sdhci";
reg = <0xd8000 0x1000>, <0xdc000 0x100>; reg-names = "sdhci", "mbus", "conf-sdio3";
interrupts = <0 25 0x4>; reg = <0xd8000 0x1000>,
<0xdc000 0x100>,
<0x18454 0x4>;
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gateclk 17>; clocks = <&gateclk 17>;
mrvl,clk-delay-cycles = <0x1F>; mrvl,clk-delay-cycles = <0x1F>;
status = "disabled"; status = "disabled";
......
/*
* Device Tree Include file for Marvell Armada 390 SoC.
*
* Copyright (C) 2015 Marvell
*
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*
* 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.
*/
#include "armada-39x.dtsi"
/ {
soc {
internal-regs {
pinctrl@18000 {
compatible = "marvell,mv88f6920-pinctrl";
reg = <0x18000 0x20>;
};
};
};
/*
* Device Tree Include file for Marvell Armada 398 Development Board
*
* Copyright (C) 2015 Marvell
*
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*
* 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.
*/
/dts-v1/;
#include "armada-398.dtsi"
/ {
model = "Marvell Armada 398 Development Board";
compatible = "marvell,a398-db", "marvell,armada398", "marvell,armada390";
chosen {
stdout-path = "serial0:115200n8";
};
memory {
device_type = "memory";
reg = <0x00000000 0x80000000>; /* 2 GB */
};
soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
internal-regs {
spi@10680 {
status = "okay";
pinctrl-0 = <&spi1_pins>;
pinctrl-names = "default";
spi-flash@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "n25q128a13";
reg = <0>;
spi-max-frequency = <108000000>;
partition@0 {
label = "U-Boot";
reg = <0 0x400000>;
};
partition@400000 {
label = "Filesystem";
reg = <0x400000 0x1000000>;
};
};
};
i2c@11000 {
pinctrl-0 = <&i2c0_pins>;
pinctrl-names = "default";
status = "okay";
clock-frequency = <100000>;
};
serial@12000 {
pinctrl-0 = <&uart0_pins>;
pinctrl-names = "default";
status = "okay";
};
serial@12100 {
pinctrl-0 = <&uart1_pins>;
pinctrl-names = "default";
status = "okay";
};
flash@d0000 {
status = "okay";
pinctrl-0 = <&nand_pins>;
pinctrl-names = "default";
num-cs = <1>;
marvell,nand-keep-config;
marvell,nand-enable-arbiter;
nand-on-flash-bbt;
nand-ecc-strength = <8>;
nand-ecc-step-size = <512>;
partition@0 {
label = "U-Boot";
reg = <0 0x800000>;
};
partition@800000 {
label = "Linux";
reg = <0x800000 0x800000>;
};
partition@1000000 {
label = "Filesystem";
reg = <0x1000000 0x3f000000>;
};
};
};
pcie-controller {
status = "okay";
pcie@1,0 {
status = "okay";
};
pcie@2,0 {
status = "okay";
};
pcie@3,0 {
status = "okay";
};
};
};
};
/*
* Device Tree Include file for Marvell Armada 398 SoC.
*
* Copyright (C) 2015 Marvell
*
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*
* 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.
*/
#include "armada-39x.dtsi"
/ {
compatible = "marvell,armada398", "marvell,armada390";
soc {
internal-regs {
pinctrl@18000 {
compatible = "marvell,mv88f6928-pinctrl";
reg = <0x18000 0x20>;
};
};
};
};
This diff is collapsed.
...@@ -59,7 +59,7 @@ / { ...@@ -59,7 +59,7 @@ / {
compatible = "marvell,rd-axpwifiap", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp"; compatible = "marvell,rd-axpwifiap", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -64,7 +64,7 @@ / { ...@@ -64,7 +64,7 @@ / {
compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; compatible = "marvell,axp-db", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -65,7 +65,7 @@ / { ...@@ -65,7 +65,7 @@ / {
compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; compatible = "marvell,axp-gp", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -54,8 +54,7 @@ / { ...@@ -54,8 +54,7 @@ / {
"marvell,armadaxp", "marvell,armada-370-xp"; "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
stdout-path = &uart0;
}; };
memory { memory {
......
/*
* Device Tree file for the Linksys WRT1900AC (Mamba).
*
* Note: this board is shipped with a new generation boot loader that
* remaps internal registers at 0xf1000000. Therefore, if earlyprintk
* is used, the CONFIG_DEBUG_MVEBU_UART0_ALTERNATE option should be
* used.
*
* Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org>
*
* Based on armada-xp-axpwifiap.dts:
*
* Copyright (C) 2013 Marvell
*
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*
* 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 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.
*
* 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 "AS IS", 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.
*/
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "armada-xp-mv78230.dtsi"
/ {
model = "Linksys WRT1900AC";
compatible = "linksys,mamba", "marvell,armadaxp-mv78230",
"marvell,armadaxp", "marvell,armada-370-xp";
chosen {
bootargs = "console=ttyS0,115200";
stdout-path = &uart0;
};
memory {
device_type = "memory";
reg = <0x00000000 0x00000000 0x00000000 0x10000000>; /* 256MB */
};
soc {
ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
pcie-controller {
status = "okay";
/* Etron EJ168 USB 3.0 controller */
pcie@1,0 {
/* Port 0, Lane 0 */
status = "okay";
};
/* First mini-PCIe port */
pcie@2,0 {
/* Port 0, Lane 1 */
status = "okay";
};
/* Second mini-PCIe port */
pcie@3,0 {
/* Port 0, Lane 3 */
status = "okay";
};
};
internal-regs {
/* J10: VCC, NC, RX, NC, TX, GND */
serial@12000 {
status = "okay";
};
sata@a0000 {
nr-ports = <1>;
status = "okay";
};
ethernet@70000 {
pinctrl-0 = <&ge0_rgmii_pins>;
pinctrl-names = "default";
status = "okay";
phy-mode = "rgmii-id";
fixed-link {
speed = <1000>;
full-duplex;
};
};
ethernet@74000 {
pinctrl-0 = <&ge1_rgmii_pins>;
pinctrl-names = "default";
status = "okay";
phy-mode = "rgmii-id";
fixed-link {
speed = <1000>;
full-duplex;
};
};
/* USB part of the eSATA/USB 2.0 port */
usb@50000 {
status = "okay";
};
i2c@11000 {
status = "okay";
clock-frequency = <100000>;
tmp421@4c {
compatible = "ti,tmp421";
reg = <0x4c>;
};
tlc59116@68 {
#address-cells = <1>;
#size-cells = <0>;
#gpio-cells = <2>;
compatible = "ti,tlc59116";
reg = <0x68>;
wan_amber@0 {
label = "mamba:amber:wan";
reg = <0x0>;
};
wan_white@1 {
label = "mamba:white:wan";
reg = <0x1>;
};
wlan_2g@2 {
label = "mamba:white:wlan_2g";
reg = <0x2>;
};
wlan_5g@3 {
label = "mamba:white:wlan_5g";
reg = <0x3>;
};
esata@4 {
label = "mamba:white:esata";
reg = <0x4>;
};
usb2@5 {
label = "mamba:white:usb2";
reg = <0x5>;
};
usb3_1@6 {
label = "mamba:white:usb3_1";
reg = <0x6>;
};
usb3_2@7 {
label = "mamba:white:usb3_2";
reg = <0x7>;
};
wps_white@8 {
label = "mamba:white:wps";
reg = <0x8>;
};
wps_amber@9 {
label = "mamba:amber:wps";
reg = <0x9>;
};
};
};
nand@d0000 {
status = "okay";
num-cs = <1>;
marvell,nand-keep-config;
marvell,nand-enable-arbiter;
nand-on-flash-bbt;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>; /* 1MB */
read-only;
};
partition@100000 {
label = "u_env";
reg = <0x100000 0x40000>; /* 256KB */
};
partition@140000 {
label = "s_env";
reg = <0x140000 0x40000>; /* 256KB */
};
partition@900000 {
label = "devinfo";
reg = <0x900000 0x100000>; /* 1MB */
read-only;
};
/* kernel1 overlaps with rootfs1 by design */
partition@a00000 {
label = "kernel1";
reg = <0xa00000 0x2800000>; /* 40MB */
};
partition@d00000 {
label = "rootfs1";
reg = <0xd00000 0x2500000>; /* 37MB */
};
/* kernel2 overlaps with rootfs2 by design */
partition@3200000 {
label = "kernel2";
reg = <0x3200000 0x2800000>; /* 40MB */
};
partition@3500000 {
label = "rootfs2";
reg = <0x3500000 0x2500000>; /* 37MB */
};
/*
* 38MB, last MB is for the BBT, not writable
*/
partition@5a00000 {
label = "syscfg";
reg = <0x5a00000 0x2600000>;
};
/*
* Unused area between "s_env" and "devinfo".
* Moved here because otherwise the renumbered
* partitions would break the bootloader
* supplied bootargs
*/
partition@180000 {
label = "unused_area";
reg = <0x180000 0x780000>; /* 7.5MB */
};
};
spi0: spi@10600 {
status = "okay";
spi-flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "everspin,mr25h256";
reg = <0>; /* Chip select 0 */
spi-max-frequency = <40000000>;
};
};
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&keys_pin>;
pinctrl-names = "default";
button@1 {
label = "WPS";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
};
button@2 {
label = "Factory Reset Button";
linux,code = <KEY_RESTART>;
gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
};
};
gpio-leds {
compatible = "gpio-leds";
pinctrl-0 = <&power_led_pin>;
pinctrl-names = "default";
power {
label = "mamba:white:power";
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
};
gpio_fan {
/* SUNON HA4010V4-0000-C99 */
compatible = "gpio-fan";
gpios = <&gpio0 24 0>;
gpio-fan,speed-map = <0 0
4500 1>;
};
dsa@0 {
compatible = "marvell,dsa";
#address-cells = <2>;
#size-cells = <0>;
dsa,ethernet = <&eth0>;
dsa,mii-bus = <&mdio>;
switch@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0>; /* MDIO address 0, switch 0 in tree */
port@0 {
reg = <0>;
label = "lan4";
};
port@1 {
reg = <1>;
label = "lan3";
};
port@2 {
reg = <2>;
label = "lan2";
};
port@3 {
reg = <3>;
label = "lan1";
};
port@4 {
reg = <4>;
label = "internet";
};
port@5 {
reg = <5>;
label = "cpu";
};
};
};
};
&pinctrl {
keys_pin: keys-pin {
marvell,pins = "mpp32", "mpp33";
marvell,function = "gpio";
};
power_led_pin: power-led-pin {
marvell,pins = "mpp40";
marvell,function = "gpio";
};
gpio_fan_pin: gpio-fan-pin {
marvell,pins = "mpp24";
marvell,function = "gpio";
};
};
...@@ -52,7 +52,7 @@ / { ...@@ -52,7 +52,7 @@ / {
compatible = "marvell,axp-matrix", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp"; compatible = "marvell,axp-matrix", "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -57,7 +57,6 @@ aliases { ...@@ -57,7 +57,6 @@ aliases {
gpio0 = &gpio0; gpio0 = &gpio0;
gpio1 = &gpio1; gpio1 = &gpio1;
gpio2 = &gpio2; gpio2 = &gpio2;
eth3 = &eth3;
}; };
cpus { cpus {
......
...@@ -57,7 +57,6 @@ aliases { ...@@ -57,7 +57,6 @@ aliases {
gpio0 = &gpio0; gpio0 = &gpio0;
gpio1 = &gpio1; gpio1 = &gpio1;
gpio2 = &gpio2; gpio2 = &gpio2;
eth3 = &eth3;
}; };
......
...@@ -53,7 +53,7 @@ / { ...@@ -53,7 +53,7 @@ / {
compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp"; compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -54,7 +54,7 @@ / { ...@@ -54,7 +54,7 @@ / {
compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
}; };
memory { memory {
......
...@@ -67,8 +67,7 @@ / { ...@@ -67,8 +67,7 @@ / {
"marvell,armadaxp", "marvell,armada-370-xp"; "marvell,armadaxp", "marvell,armada-370-xp";
chosen { chosen {
bootargs = "console=ttyS0,115200 earlyprintk"; stdout-path = "serial0:115200n8";
stdout-path = &uart0;
}; };
memory { memory {
......
...@@ -57,7 +57,8 @@ / { ...@@ -57,7 +57,8 @@ / {
compatible = "marvell,armadaxp", "marvell,armada-370-xp"; compatible = "marvell,armadaxp", "marvell,armada-370-xp";
aliases { aliases {
eth2 = &eth2; serial2 = &uart2;
serial3 = &uart3;
}; };
soc { soc {
...@@ -153,7 +154,7 @@ cpuclk: clock-complex@18700 { ...@@ -153,7 +154,7 @@ cpuclk: clock-complex@18700 {
clocks = <&coreclk 1>; clocks = <&coreclk 1>;
}; };
interrupt-controller@20000 { interrupt-controller@20a00 {
reg = <0x20a00 0x2d0>, <0x21070 0x58>; reg = <0x20a00 0x2d0>, <0x21070 0x58>;
}; };
......
/include/ "skeleton.dtsi" /include/ "skeleton.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
/ { / {
...@@ -61,7 +64,7 @@ pcie: pcie-controller { ...@@ -61,7 +64,7 @@ pcie: pcie-controller {
0x82000000 0x2 0x0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 Mem */ 0x82000000 0x2 0x0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 Mem */
0x81000000 0x2 0x0 MBUS_ID(0x08, 0xe0) 0 1 0>; /* Port 1.0 I/O */ 0x81000000 0x2 0x0 MBUS_ID(0x08, 0xe0) 0 1 0>; /* Port 1.0 I/O */
pcie-port@0 { pcie0: pcie-port@0 {
device_type = "pci"; device_type = "pci";
status = "disabled"; status = "disabled";
assigned-addresses = <0x82000800 0 0x40000 0 0x2000>; assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
...@@ -79,7 +82,7 @@ pcie-port@0 { ...@@ -79,7 +82,7 @@ pcie-port@0 {
interrupt-map = <0 0 0 0 &intc 16>; interrupt-map = <0 0 0 0 &intc 16>;
}; };
pcie-port@1 { pcie1: pcie-port@1 {
device_type = "pci"; device_type = "pci";
status = "disabled"; status = "disabled";
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>; assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
...@@ -154,7 +157,7 @@ uart1: serial@12100 { ...@@ -154,7 +157,7 @@ uart1: serial@12100 {
uart2: serial@12200 { uart2: serial@12200 {
compatible = "ns16550a"; compatible = "ns16550a";
reg = <0x12000 0x100>; reg = <0x12200 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <9>; interrupts = <9>;
clocks = <&core_clk 0>; clocks = <&core_clk 0>;
...@@ -163,7 +166,7 @@ uart2: serial@12200 { ...@@ -163,7 +166,7 @@ uart2: serial@12200 {
uart3: serial@12300 { uart3: serial@12300 {
compatible = "ns16550a"; compatible = "ns16550a";
reg = <0x12100 0x100>; reg = <0x12300 0x100>;
reg-shift = <2>; reg-shift = <2>;
interrupts = <10>; interrupts = <10>;
clocks = <&core_clk 0>; clocks = <&core_clk 0>;
...@@ -448,6 +451,11 @@ pmx_gpio_9: pmx-gpio-9 { ...@@ -448,6 +451,11 @@ pmx_gpio_9: pmx-gpio-9 {
marvell,function = "gpio"; marvell,function = "gpio";
}; };
pmx_pcie1_clkreq: pmx-pcie1-clkreq {
marvell,pins = "mpp9";
marvell,function = "pex1";
};
pmx_gpio_10: pmx-gpio-10 { pmx_gpio_10: pmx-gpio-10 {
marvell,pins = "mpp10"; marvell,pins = "mpp10";
marvell,function = "gpio"; marvell,function = "gpio";
...@@ -458,6 +466,11 @@ pmx_gpio_11: pmx-gpio-11 { ...@@ -458,6 +466,11 @@ pmx_gpio_11: pmx-gpio-11 {
marvell,function = "gpio"; marvell,function = "gpio";
}; };
pmx_pcie0_clkreq: pmx-pcie0-clkreq {
marvell,pins = "mpp11";
marvell,function = "pex0";
};
pmx_gpio_12: pmx-gpio-12 { pmx_gpio_12: pmx-gpio-12 {
marvell,pins = "mpp12"; marvell,pins = "mpp12";
marvell,function = "gpio"; marvell,function = "gpio";
...@@ -563,6 +576,18 @@ pmx_spi0_gpio: pmx-spi0-gpio { ...@@ -563,6 +576,18 @@ pmx_spi0_gpio: pmx-spi0-gpio {
marvell,function = "gpio"; marvell,function = "gpio";
}; };
pmx_spi1_4_7: pmx-spi1-4-7 {
marvell,pins = "mpp4", "mpp5",
"mpp6", "mpp7";
marvell,function = "spi1";
};
pmx_spi1_20_23: pmx-spi1-20-23 {
marvell,pins = "mpp20", "mpp21",
"mpp22", "mpp23";
marvell,function = "spi1";
};
pmx_uart1: pmx-uart1 { pmx_uart1: pmx-uart1 {
marvell,pins = "mpp_uart1"; marvell,pins = "mpp_uart1";
marvell,function = "uart1"; marvell,function = "uart1";
...@@ -582,6 +607,36 @@ pmx_nand_gpo: pmx-nand-gpo { ...@@ -582,6 +607,36 @@ pmx_nand_gpo: pmx-nand-gpo {
marvell,pins = "mpp_nand"; marvell,pins = "mpp_nand";
marvell,function = "gpo"; marvell,function = "gpo";
}; };
pmx_i2c1: pmx-i2c1 {
marvell,pins = "mpp17", "mpp19";
marvell,function = "twsi";
};
pmx_i2c2: pmx-i2c2 {
marvell,pins = "mpp_audio1";
marvell,function = "twsi";
};
pmx_ssp_i2c2: pmx-ssp-i2c2 {
marvell,pins = "mpp_audio1";
marvell,function = "ssp/twsi";
};
pmx_i2cmux_0: pmx-i2cmux-0 {
marvell,pins = "twsi";
marvell,function = "twsi-opt1";
};
pmx_i2cmux_1: pmx-i2cmux-1 {
marvell,pins = "twsi";
marvell,function = "twsi-opt2";
};
pmx_i2cmux_2: pmx-i2cmux-2 {
marvell,pins = "twsi";
marvell,function = "twsi-opt3";
};
}; };
core_clk: core-clocks@d0214 { core_clk: core-clocks@d0214 {
......
...@@ -27,6 +27,11 @@ memory { ...@@ -27,6 +27,11 @@ memory {
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x10000000>; reg = <0x00000000 0x10000000>;
}; };
fan {
compatible = "gpio-fan";
alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
};
}; };
&regulators { &regulators {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment