ea44c8f0d207276b0eb8f59cbd9397ad0c7ae207
[openwrt/openwrt.git] / target / linux / mvebu / files-4.14 / arch / arm / boot / dts / armada-385-linksys-venom.dts
1 /*
2 * Device Tree file for the Linksys WRT32X (Venom)
3 *
4 * Copyright (C) 2017 Imre Kaloz <kaloz@openwrt.org>
5 *
6 *
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
10 * whole.
11 *
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.
15 *
16 * Or, alternatively,
17 *
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
25 * conditions:
26 *
27 * The above copyright notice and this permission notice shall be
28 * included in all copies or substantial portions of the Software.
29 *
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.
38 */
39
40 /dts-v1/;
41 #include <dt-bindings/gpio/gpio.h>
42 #include <dt-bindings/input/input.h>
43 #include "armada-385-linksys.dtsi"
44
45 / {
46 model = "Linksys WRT32X";
47 compatible = "linksys,venom", "linksys,armada385", "marvell,armada385",
48 "marvell,armada380";
49 };
50
51 &expander0 {
52 wan_amber@0 {
53 label = "venom:amber:wan";
54 reg = <0x0>;
55 };
56
57 wan_blue@1 {
58 label = "venom:blue:wan";
59 reg = <0x1>;
60 };
61
62 usb2@5 {
63 label = "venom:blue:usb2";
64 reg = <0x5>;
65 };
66
67 usb3_1@6 {
68 label = "venom:blue:usb3_1";
69 reg = <0x6>;
70 };
71
72 usb3_2@7 {
73 label = "venom:blue:usb3_2";
74 reg = <0x7>;
75 };
76
77 wps_blue@8 {
78 label = "venom:blue:wps";
79 reg = <0x8>;
80 };
81
82 wps_amber@9 {
83 label = "venom:amber:wps";
84 reg = <0x9>;
85 };
86 };
87
88 &gpio_leds {
89 power {
90 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
91 label = "venom:blue:power";
92 };
93
94 sata {
95 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
96 label = "venom:blue:sata";
97 };
98
99 wlan_2g {
100 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
101 label = "venom:blue:wlan_2g";
102 };
103
104 wlan_5g {
105 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
106 label = "venom:blue:wlan_5g";
107 };
108 };
109
110 &gpio_leds_pins {
111 marvell,pins = "mpp21", "mpp45", "mpp46", "mpp56";
112 };
113
114 &nand {
115 /* Spansion S34ML02G2 256MiB, OEM Layout */
116 partition@0 {
117 label = "u-boot";
118 reg = <0x0000000 0x200000>; /* 2MB */
119 read-only;
120 };
121
122 partition@200000 {
123 label = "u_env";
124 reg = <0x200000 0x20000>; /* 128KB */
125 };
126
127 partition@220000 {
128 label = "s_env";
129 reg = <0x220000 0x40000>; /* 256KB */
130 };
131
132 partition@180000 {
133 label = "unused_area";
134 reg = <0x260000 0x5c0000>; /* 5.75MB */
135 };
136
137 partition@7e0000 {
138 label = "devinfo";
139 reg = <0x7e0000 0x40000>; /* 256KB */
140 read-only;
141 };
142
143 /* kernel1 overlaps with rootfs1 by design */
144 partition@900000 {
145 label = "kernel1";
146 reg = <0x900000 0x7b00000>; /* 123MB */
147 };
148
149 partition@c00000 {
150 label = "rootfs1";
151 reg = <0xc00000 0x7800000>; /* 120MB */
152 };
153
154 /* kernel2 overlaps with rootfs2 by design */
155 partition@8400000 {
156 label = "kernel2";
157 reg = <0x8400000 0x7b00000>; /* 123MB */
158 };
159
160 partition@8700000 {
161 label = "rootfs2";
162 reg = <0x8700000 0x7800000>; /* 120MB */
163 };
164
165 /* last MB is for the BBT, not writable */
166 partition@ff00000 {
167 label = "BBT";
168 reg = <0xff00000 0x100000>;
169 };
170 };
171
172
173 &pcie1 {
174 mwlwifi {
175 marvell,chainmask = <4 4>;
176 };
177 };
178
179 &pcie2 {
180 mwlwifi {
181 marvell,chainmask = <4 4>;
182 };
183 };
184
185 &sdhci {
186 pinctrl-names = "default";
187 pinctrl-0 = <&sdhci_pins>;
188 no-1-8-v;
189 non-removable;
190 wp-inverted;
191 bus-width = <8>;
192 status = "okay";
193 };
194
195 &usb3_1_vbus {
196 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
197 };
198
199 &usb3_1_vbus_pins {
200 marvell,pins = "mpp44";
201 };