2 * Device Tree file for the Linksys WRT3200ACM (Rango)
4 * Copyright (C) 2016 Imre Kaloz <kaloz@openwrt.org>
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is licensed under the terms of the GNU General Public
13 * License version 2. This program is licensed "as is" without
14 * any warranty of any kind, whether express or implied.
18 * b) Permission is hereby granted, free of charge, to any person
19 * obtaining a copy of this software and associated documentation
20 * files (the "Software"), to deal in the Software without
21 * restriction, including without limitation the rights to use,
22 * copy, modify, merge, publish, distribute, sublicense, and/or
23 * sell copies of the Software, and to permit persons to whom the
24 * Software is furnished to do so, subject to the following
27 * The above copyright notice and this permission notice shall be
28 * included in all copies or substantial portions of the Software.
30 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
32 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
34 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
35 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
36 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
37 * OTHER DEALINGS IN THE SOFTWARE.
41 #include <dt-bindings/gpio/gpio.h>
42 #include <dt-bindings/input/input.h>
43 #include "armada-385.dtsi"
46 model = "Linksys WRT3200ACM";
47 compatible = "linksys,rango", "linksys,armada385", "marvell,armada385",
51 stdout-path = "serial0:115200n8";
55 device_type = "memory";
56 reg = <0x00000000 0x20000000>; /* 512 MB */
60 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
61 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
62 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
63 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
64 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&i2c0_pins>;
78 compatible = "ti,tmp421";
85 compatible = "nxp,pca9635";
89 label = "rango:amber:wan";
94 label = "rango:white:wan";
99 label = "rango:white:usb2";
104 label = "rango:white:usb3_1";
109 label = "rango:white:usb3_2";
114 label = "rango:white:wps";
119 label = "rango:amber:wps";
125 /* J10: VCC, NC, RX, NC, TX, GND */
132 phy-mode = "rgmii-id";
133 buffer-manager = <&bm>;
145 buffer-manager = <&bm>;
167 pinctrl-names = "default";
168 pinctrl-0 = <&sdhci_pins>;
176 /* USB part of the eSATA/USB 2.0 port */
183 usb-phy = <&usb3_phy>;
189 nand-ecc-strength = <4>;
190 nand-ecc-step-size = <512>;
191 marvell,nand-keep-config;
192 marvell,nand-enable-arbiter;
197 reg = <0x0000000 0x200000>; /* 2MB */
203 reg = <0x200000 0x20000>; /* 128KB */
208 reg = <0x220000 0x40000>; /* 256KB */
213 reg = <0x7e0000 0x40000>; /* 256KB */
219 reg = <0x820000 0x1e0000>; /* 1920KB */
223 /* kernel1 overlaps with rootfs1 by design */
226 reg = <0xa00000 0x5000000>; /* 80MB */
231 reg = <0x1000000 0x4a00000>; /* 74MB */
234 /* kernel2 overlaps with rootfs2 by design */
237 reg = <0x5a00000 0x5000000>; /* 80MB */
242 reg = <0x6000000 0x4a00000>; /* 74MB */
246 * 86MB, last MB is for the BBT, not writable
250 reg = <0xaa00000 0x5600000>;
254 * Unused area between "s_env" and "devinfo".
255 * Moved here because otherwise the renumbered
256 * partitions would break the bootloader
260 label = "unused_area";
261 reg = <0x260000 0x5c0000>; /* 5.75MB */
274 /* Marvell 88W8964, 5GHz-only */
279 marvell,chainmask = <4 4>;
285 /* Marvell 88W8964, 2GHz-only */
290 marvell,chainmask = <4 4>;
298 compatible = "usb-nop-xceiv";
299 vcc-supply = <®_xhci0_vbus>;
302 reg_xhci0_vbus: xhci0-vbus {
303 compatible = "regulator-fixed";
304 pinctrl-names = "default";
305 pinctrl-0 = <&xhci0_vbus_pins>;
306 regulator-name = "xhci0-vbus";
307 regulator-min-microvolt = <5000000>;
308 regulator-max-microvolt = <5000000>;
310 gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>;
314 compatible = "gpio-keys";
315 #address-cells = <1>;
317 pinctrl-0 = <&reset_key_pin &wps_key_pin>;
318 pinctrl-names = "default";
322 linux,code = <KEY_WPS_BUTTON>;
323 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
327 label = "Factory Reset Button";
328 linux,code = <KEY_RESTART>;
329 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
334 compatible = "gpio-leds";
335 pinctrl-0 = <&power_led_pin &sata_led_pin &wlan_2g_led_pin &wlan_5g_led_pin>;
336 pinctrl-names = "default";
339 label = "rango:white:sata";
340 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
341 linux,default-trigger = "disk-activity";
345 label = "rango:white:wlan_2g";
346 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
350 label = "rango:white:wlan_5g";
351 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
355 label = "rango:white:power";
356 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
357 default-state = "on";
362 compatible = "marvell,dsa";
363 #address-cells = <2>;
366 dsa,ethernet = <ð2>;
367 dsa,mii-bus = <&mdio>;
370 #address-cells = <1>;
372 reg = <0x0 0>; /* MDIO address 0, switch 0 in tree */
407 #address-cells = <1>;
409 compatible = "marvell,88e6352";
421 sata_led_pin: sata-led-pin {
422 marvell,pins = "mpp21";
423 marvell,function = "gpio";
426 wps_key_pin: wps-key-pin {
427 marvell,pins = "mpp24";
428 marvell,function = "gpio";
431 reset_key_pin: reset-key-pin {
432 marvell,pins = "mpp29";
433 marvell,function = "gpio";
436 wlan_2g_led_pin: wlan-2g-led-pin {
437 marvell,pins = "mpp45";
438 marvell,function = "gpio";
441 wlan_5g_led_pin: wlan-5g-led-pin {
442 marvell,pins = "mpp46";
443 marvell,function = "gpio";
446 xhci0_vbus_pins: xhci0-vbus-pins {
447 marvell,pins = "mpp47";
448 marvell,function = "gpio";
451 power_led_pin: power-led-pin {
452 marvell,pins = "mpp56";
453 marvell,function = "gpio";