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";
176 compatible = "gpio-keys";
177 #address-cells = <1>;
179 pinctrl-0 = <&keys_pin>;
180 pinctrl-names = "default";
184 linux,code = <KEY_WPS_BUTTON>;
185 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
189 label = "Factory Reset Button";
190 linux,code = <KEY_RESTART>;
191 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
196 compatible = "gpio-leds";
197 pinctrl-0 = <&power_led_pin>;
198 pinctrl-names = "default";
201 label = "mamba:white:power";
202 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
203 default-state = "on";
208 /* SUNON HA4010V4-0000-C99 */
210 compatible = "pwm-fan";
211 pwms = <&gpio0 24 4000>;
218 /* Etron EJ168 USB 3.0 controller */
224 /* First mini-PCIe port */
230 /* Second mini-PCIe port */
240 marvell,pins = "mpp32", "mpp33";
241 marvell,function = "gpio";
244 power_led_pin: power-led-pin {
245 marvell,pins = "mpp40";
246 marvell,function = "gpio";
249 gpio_fan_pin: gpio-fan-pin {
250 marvell,pins = "mpp24";
251 marvell,function = "gpio";
259 #address-cells = <1>;
261 compatible = "everspin,mr25h256";
262 reg = <0>; /* Chip select 0 */
263 spi-max-frequency = <40000000>;
271 compatible = "marvell,mv88e6085";
272 #address-cells = <1>;
277 #address-cells = <1>;
323 label = "pxa3xx_nand-0";
325 marvell,nand-keep-config;
327 nand-ecc-strength = <4>;
328 nand-ecc-step-size = <512>;
331 compatible = "fixed-partitions";
332 #address-cells = <1>;
337 reg = <0x0000000 0x100000>; /* 1MB */
343 reg = <0x100000 0x40000>; /* 256KB */
348 reg = <0x140000 0x40000>; /* 256KB */
353 reg = <0x900000 0x100000>; /* 1MB */
357 /* kernel1 overlaps with rootfs1 by design */
360 reg = <0xa00000 0x2800000>; /* 40MB */
365 reg = <0xd00000 0x2500000>; /* 37MB */
368 /* kernel2 overlaps with rootfs2 by design */
371 reg = <0x3200000 0x2800000>; /* 40MB */
376 reg = <0x3500000 0x2500000>; /* 37MB */
380 * 38MB, last MB is for the BBT, not writable
384 reg = <0x5a00000 0x2600000>;
388 * Unused area between "s_env" and "devinfo".
389 * Moved here because otherwise the renumbered
390 * partitions would break the bootloader
394 label = "unused_area";
395 reg = <0x180000 0x780000>; /* 7.5MB */