2 * Device Tree file for the Linksys WRT1900AC (Mamba).
4 * Note: this board is shipped with a new generation boot loader that
5 * remaps internal registers at 0xf1000000. Therefore, if earlyprintk
6 * is used, the CONFIG_DEBUG_MVEBU_UART0_ALTERNATE option should be
9 * Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org>
11 * Based on armada-xp-axpwifiap.dts:
13 * Copyright (C) 2013 Marvell
15 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 * This file is dual-licensed: you can use it either under the terms
18 * of the GPL or the X11 license, at your option. Note that this dual
19 * licensing only applies to this file, and not this project as a
22 * a) This file is licensed under the terms of the GNU General Public
23 * License version 2. This program is licensed "as is" without
24 * any warranty of any kind, whether express or implied.
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
51 #include <dt-bindings/gpio/gpio.h>
52 #include <dt-bindings/input/input.h>
53 #include "armada-xp-mv78230.dtsi"
56 model = "Linksys WRT1900AC";
57 compatible = "linksys,mamba", "marvell,armadaxp-mv78230",
58 "marvell,armadaxp", "marvell,armada-370-xp";
61 bootargs = "console=ttyS0,115200";
66 device_type = "memory";
67 reg = <0x00000000 0x00000000 0x00000000 0x10000000>; /* 256MB */
71 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
72 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
73 MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
74 MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
75 MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>;
80 /* No crystal connected to the internal RTC */
84 /* J10: VCC, NC, RX, NC, TX, GND */
95 pinctrl-0 = <&ge0_rgmii_pins>;
96 pinctrl-names = "default";
98 phy-mode = "rgmii-id";
99 buffer-manager = <&bm>;
109 pinctrl-0 = <&ge1_rgmii_pins>;
110 pinctrl-names = "default";
112 phy-mode = "rgmii-id";
113 buffer-manager = <&bm>;
122 /* USB part of the eSATA/USB 2.0 port */
129 clock-frequency = <100000>;
132 compatible = "ti,tmp421";
137 #address-cells = <1>;
140 compatible = "ti,tlc59116";
144 label = "mamba:amber:wan";
149 label = "mamba:white:wan";
154 label = "mamba:white:wlan_2g";
159 label = "mamba:white:wlan_5g";
164 label = "mamba:white:esata";
166 linux,default-trigger = "disk-activity";
170 label = "mamba:white:usb2";
175 label = "mamba:white:usb3_1";
180 label = "mamba:white:usb3_2";
185 label = "mamba:white:wps";
190 label = "mamba:amber:wps";
203 marvell,nand-keep-config;
204 marvell,nand-enable-arbiter;
206 nand-ecc-strength = <4>;
207 nand-ecc-step-size = <512>;
211 reg = <0x0000000 0x100000>; /* 1MB */
217 reg = <0x100000 0x40000>; /* 256KB */
222 reg = <0x140000 0x40000>; /* 256KB */
227 reg = <0x900000 0x100000>; /* 1MB */
231 /* kernel1 overlaps with rootfs1 by design */
234 reg = <0xa00000 0x2800000>; /* 40MB */
239 reg = <0xd00000 0x2500000>; /* 37MB */
242 /* kernel2 overlaps with rootfs2 by design */
245 reg = <0x3200000 0x2800000>; /* 40MB */
250 reg = <0x3500000 0x2500000>; /* 37MB */
254 * 38MB, last MB is for the BBT, not writable
258 reg = <0x5a00000 0x2600000>;
262 * Unused area between "s_env" and "devinfo".
263 * Moved here because otherwise the renumbered
264 * partitions would break the bootloader
268 label = "unused_area";
269 reg = <0x180000 0x780000>; /* 7.5MB */
280 compatible = "gpio-keys";
281 #address-cells = <1>;
283 pinctrl-0 = <&keys_pin>;
284 pinctrl-names = "default";
288 linux,code = <KEY_WPS_BUTTON>;
289 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
293 label = "Factory Reset Button";
294 linux,code = <KEY_RESTART>;
295 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
300 compatible = "gpio-leds";
301 pinctrl-0 = <&power_led_pin>;
302 pinctrl-names = "default";
305 label = "mamba:white:power";
306 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
307 default-state = "on";
312 /* SUNON HA4010V4-0000-C99 */
314 compatible = "pwm-fan";
315 pwms = <&gpio0 24 4000>;
321 compatible = "marvell,dsa";
322 #address-cells = <2>;
325 dsa,ethernet = <ð0>;
326 dsa,mii-bus = <&mdio>;
329 #address-cells = <1>;
331 reg = <0x0 0>; /* MDIO address 0, switch 0 in tree */
369 /* Etron EJ168 USB 3.0 controller */
375 /* First mini-PCIe port */
381 /* Second mini-PCIe port */
391 marvell,pins = "mpp32", "mpp33";
392 marvell,function = "gpio";
395 power_led_pin: power-led-pin {
396 marvell,pins = "mpp40";
397 marvell,function = "gpio";
400 gpio_fan_pin: gpio-fan-pin {
401 marvell,pins = "mpp24";
402 marvell,function = "gpio";
410 #address-cells = <1>;
412 compatible = "everspin,mr25h256";
413 reg = <0>; /* Chip select 0 */
414 spi-max-frequency = <40000000>;
422 compatible = "marvell,mv88e6085";
423 #address-cells = <1>;
428 #address-cells = <1>;