1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Device Tree file for the Linksys WRT1900AC (Mamba).
5 * Note: this board is shipped with a new generation boot loader that
6 * remaps internal registers at 0xf1000000. Therefore, if earlyprintk
7 * is used, the CONFIG_DEBUG_MVEBU_UART0_ALTERNATE option should be
10 * Copyright (C) 2014 Imre Kaloz <kaloz@openwrt.org>
12 * Based on armada-xp-axpwifiap.dts:
14 * Copyright (C) 2013 Marvell
16 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
20 #include <dt-bindings/gpio/gpio.h>
21 #include <dt-bindings/input/input.h>
22 #include "armada-xp-mv78230.dtsi"
25 model = "Linksys WRT1900AC";
26 compatible = "linksys,mamba", "marvell,armadaxp-mv78230",
27 "marvell,armadaxp", "marvell,armada-370-xp";
30 bootargs = "console=ttyS0,115200";
35 device_type = "memory";
36 reg = <0x00000000 0x00000000 0x00000000 0x10000000>; /* 256MB */
40 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000
41 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
42 MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
43 MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
44 MBUS_ID(0x0c, 0x04) 0 0 0xf1200000 0x100000>;
49 /* No crystal connected to the internal RTC */
53 /* J10: VCC, NC, RX, NC, TX, GND */
64 pinctrl-0 = <&ge0_rgmii_pins>;
65 pinctrl-names = "default";
67 phy-mode = "rgmii-id";
68 buffer-manager = <&bm>;
78 pinctrl-0 = <&ge1_rgmii_pins>;
79 pinctrl-names = "default";
81 phy-mode = "rgmii-id";
82 buffer-manager = <&bm>;
91 /* USB part of the eSATA/USB 2.0 port */
98 clock-frequency = <100000>;
101 compatible = "ti,tmp421";
106 #address-cells = <1>;
109 compatible = "ti,tlc59116";
113 label = "mamba:amber:wan";
118 label = "mamba:white:wan";
123 label = "mamba:white:wlan_2g";
128 label = "mamba:white:wlan_5g";
133 label = "mamba:white:esata";
135 linux,default-trigger = "disk-activity";
139 label = "mamba:white:usb2";
144 label = "mamba:white:usb3_1";
149 label = "mamba:white:usb3_2";
154 label = "mamba:white:wps";
159 label = "mamba:amber:wps";
172 marvell,nand-keep-config;
173 marvell,nand-enable-arbiter;
175 nand-ecc-strength = <4>;
176 nand-ecc-step-size = <512>;
180 reg = <0x0000000 0x100000>; /* 1MB */
186 reg = <0x100000 0x40000>; /* 256KB */
191 reg = <0x140000 0x40000>; /* 256KB */
196 reg = <0x900000 0x100000>; /* 1MB */
200 /* kernel1 overlaps with rootfs1 by design */
203 reg = <0xa00000 0x2800000>; /* 40MB */
208 reg = <0xd00000 0x2500000>; /* 37MB */
211 /* kernel2 overlaps with rootfs2 by design */
214 reg = <0x3200000 0x2800000>; /* 40MB */
219 reg = <0x3500000 0x2500000>; /* 37MB */
223 * 38MB, last MB is for the BBT, not writable
227 reg = <0x5a00000 0x2600000>;
231 * Unused area between "s_env" and "devinfo".
232 * Moved here because otherwise the renumbered
233 * partitions would break the bootloader
237 label = "unused_area";
238 reg = <0x180000 0x780000>; /* 7.5MB */
249 compatible = "gpio-keys";
250 #address-cells = <1>;
252 pinctrl-0 = <&keys_pin>;
253 pinctrl-names = "default";
257 linux,code = <KEY_WPS_BUTTON>;
258 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
262 label = "Factory Reset Button";
263 linux,code = <KEY_RESTART>;
264 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
269 compatible = "gpio-leds";
270 pinctrl-0 = <&power_led_pin>;
271 pinctrl-names = "default";
274 label = "mamba:white:power";
275 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
276 default-state = "on";
281 /* SUNON HA4010V4-0000-C99 */
283 compatible = "pwm-fan";
284 pwms = <&gpio0 24 4000>;
290 compatible = "marvell,dsa";
291 #address-cells = <2>;
294 dsa,ethernet = <ð0>;
295 dsa,mii-bus = <&mdio>;
298 #address-cells = <1>;
300 reg = <0x0 0>; /* MDIO address 0, switch 0 in tree */
338 /* Etron EJ168 USB 3.0 controller */
344 /* First mini-PCIe port */
350 /* Second mini-PCIe port */
360 marvell,pins = "mpp32", "mpp33";
361 marvell,function = "gpio";
364 power_led_pin: power-led-pin {
365 marvell,pins = "mpp40";
366 marvell,function = "gpio";
369 gpio_fan_pin: gpio-fan-pin {
370 marvell,pins = "mpp24";
371 marvell,function = "gpio";
379 #address-cells = <1>;
381 compatible = "everspin,mr25h256";
382 reg = <0>; /* Chip select 0 */
383 spi-max-frequency = <40000000>;
391 compatible = "marvell,mv88e6085";
392 #address-cells = <1>;
397 #address-cells = <1>;