2 * Device Tree file for the Linksys WRT32X (Venom)
4 * Copyright (C) 2017 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-linksys.dtsi"
46 model = "Linksys WRT32X";
47 compatible = "linksys,wrt32x", "linksys,venom", "linksys,armada385",
48 "marvell,armada385", "marvell,armada380";
51 bootargs = "console=ttyS0,115200";
52 stdout-path = "serial0:115200n8";
53 append-rootblock = "root=/dev/mtdblock";
59 label = "venom:amber:wan";
64 label = "venom:blue:wan";
69 label = "venom:blue:usb2";
74 label = "venom:blue:usb3_1";
79 label = "venom:blue:usb3_2";
84 label = "venom:blue:wps";
89 label = "venom:amber:wps";
96 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
97 label = "venom:blue:power";
101 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
102 label = "venom:blue:sata";
106 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
107 label = "venom:blue:wlan_2g";
111 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
112 label = "venom:blue:wlan_5g";
117 marvell,pins = "mpp21", "mpp45", "mpp46", "mpp56";
121 /* Spansion S34ML02G2 256MiB, OEM Layout */
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
129 reg = <0x0000000 0x200000>; /* 2MB */
135 reg = <0x200000 0x20000>; /* 128KB */
140 reg = <0x220000 0x40000>; /* 256KB */
144 label = "unused_area";
145 reg = <0x260000 0x5c0000>; /* 5.75MB */
150 reg = <0x7e0000 0x40000>; /* 256KB */
154 /* kernel1 overlaps with rootfs1 by design */
157 reg = <0x900000 0x7b00000>; /* 123MB */
162 reg = <0xf00000 0x7500000>; /* 117MB */
165 /* kernel2 overlaps with rootfs2 by design */
168 reg = <0x8400000 0x7b00000>; /* 123MB */
173 reg = <0x8a00000 0x7500000>; /* 117MB */
176 /* last MB is for the BBT, not writable */
179 reg = <0xff00000 0x100000>;
187 marvell,chainmask = <4 4>;
193 marvell,chainmask = <4 4>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&sdhci_pins>;
208 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
212 marvell,pins = "mpp44";