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_UART_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 licensed under the terms of the GNU General Public
18 * License version 2. This program is licensed "as is" without any
19 * warranty of any kind, whether express or implied.
23 #include <dt-bindings/gpio/gpio.h>
24 #include <dt-bindings/input/input.h>
25 #include "armada-xp-mv78230.dtsi"
28 model = "Linksys WRT1900AC (Mamba)";
29 compatible = "linksys,mamba", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
32 bootargs = "console=ttyS0,115200 earlyprintk";
36 device_type = "memory";
37 reg = <0x00000000 0x00000000 0x00000000 0x10000000>; /* 256MB */
41 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
42 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
47 /* Etron EJ168 USB 3.0 controller */
53 /* First mini-PCIe port */
59 /* Second mini-PCIe port */
69 marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
70 "mpp4", "mpp5", "mpp6", "mpp7",
71 "mpp8", "mpp9", "mpp10", "mpp11";
72 marvell,function = "ge0";
76 marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15",
77 "mpp16", "mpp17", "mpp18", "mpp19",
78 "mpp20", "mpp21", "mpp22", "mpp23";
79 marvell,function = "ge1";
83 marvell,pins = "mpp32", "mpp33";
84 marvell,function = "gpio";
88 marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39";
89 marvell,function = "spi";
92 power_led_pin: power-led-pin {
93 marvell,pins = "mpp40";
94 marvell,function = "gpio";
97 gpio_fan_pin: gpio-fan-pin {
98 marvell,pins = "mpp24";
99 marvell,function = "gpio";
105 clock-frequency = <250000000>;
110 clock-frequency = <250000000>;
120 pinctrl-0 = <&pmx_ge0>;
121 pinctrl-names = "default";
123 phy-mode = "rgmii-id";
131 pinctrl-0 = <&pmx_ge1>;
132 pinctrl-names = "default";
134 phy-mode = "rgmii-id";
141 /* USB part of the eSATA/USB 2.0 port */
148 clock-frequency = <100000>;
151 compatible = "ti,tmp421";
156 #address-cells = <1>;
159 compatible = "ti,tlc59116";
163 label = "mamba:amber:wan";
168 label = "mamba:white:wan";
173 label = "mamba:white:wlan_2g";
178 label = "mamba:white:wlan_5g";
183 label = "mamba:white:esata";
188 label = "mamba:white:usb2";
193 label = "mamba:white:usb3_1";
198 label = "mamba:white:usb3_2";
203 label = "mamba:white:wps";
208 label = "mamba:amber:wps";
217 marvell,nand-keep-config;
218 marvell,nand-enable-arbiter;
220 nand-ecc-strength = <4>;
221 nand-ecc-step-size = <512>;
226 reg = <0x0000000 0x100000>; /* 1MB */
232 reg = <0x100000 0x40000>; /* 256KB */
237 reg = <0x140000 0x40000>; /* 256KB */
242 reg = <0x900000 0x100000>; /* 1MB */
248 reg = <0xa00000 0x2800000>; /* 3MB */
253 reg = <0xd00000 0x2500000>; /* 37MB */
258 reg = <0x3200000 0x2800000>; /* 3MB */
263 reg = <0x3500000 0x2500000>; /* 37MB */
266 /* Last MB is for the BBT, i.e. not writable */
269 reg = <0x5a00000 0x2600000>; /* 38MB */
275 pinctrl-0 = <&pmx_spi>;
276 pinctrl-names = "default";
279 #address-cells = <1>;
281 compatible = "mr25h256";
282 reg = <0>; /* Chip select 0 */
283 spi-max-frequency = <108000000>;
290 compatible = "gpio-keys";
291 #address-cells = <1>;
293 pinctrl-0 = <&pmx_keys>;
294 pinctrl-names = "default";
298 linux,code = <KEY_WPS_BUTTON>;
299 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
303 label = "Factory Reset Button";
304 linux,code = <KEY_RESTART>;
305 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
310 compatible = "gpio-leds";
311 pinctrl-0 = <&power_led_pin>;
312 pinctrl-names = "default";
315 label = "mamba:white:power";
316 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
317 default-state = "on";
322 /* SUNON HA4010V4-0000-C99 */
323 compatible = "gpio-fan";
324 gpios = <&gpio0 24 0>;
326 gpio-fan,speed-map = <0 0
331 compatible = "marvell,88e6172";