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";
157 compatible = "gpio,tlc59116";
166 marvell,nand-keep-config;
167 marvell,nand-enable-arbiter;
169 nand-ecc-strength = <4>;
170 nand-ecc-step-size = <512>;
175 reg = <0x0000000 0x100000>; /* 1MB */
181 reg = <0x100000 0x40000>; /* 256KB */
186 reg = <0x140000 0x40000>; /* 256KB */
191 reg = <0x900000 0x100000>; /* 1MB */
197 reg = <0xa00000 0x2800000>; /* 3MB */
202 reg = <0xd00000 0x2500000>; /* 37MB */
207 reg = <0x3200000 0x2800000>; /* 3MB */
212 reg = <0x3500000 0x2500000>; /* 37MB */
215 /* Last MB is for the BBT, i.e. not writable */
218 reg = <0x5a00000 0x2600000>; /* 38MB */
224 pinctrl-0 = <&pmx_spi>;
225 pinctrl-names = "default";
228 #address-cells = <1>;
230 compatible = "mr25h256";
231 reg = <0>; /* Chip select 0 */
232 spi-max-frequency = <108000000>;
239 compatible = "gpio-keys";
240 #address-cells = <1>;
242 pinctrl-0 = <&pmx_keys>;
243 pinctrl-names = "default";
247 linux,code = <KEY_WPS_BUTTON>;
248 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
252 label = "Factory Reset Button";
253 linux,code = <KEY_RESTART>;
254 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
259 compatible = "gpio-leds";
260 pinctrl-0 = <&power_led_pin>;
261 pinctrl-names = "default";
264 label = "mamba:white:power";
265 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
266 default-state = "on";
271 /* SUNON HA4010V4-0000-C99 */
272 compatible = "gpio-fan";
273 gpios = <&gpio0 24 0>;
275 gpio-fan,speed-map = <0 0
280 compatible = "marvell,88e6172";