ea7d0235cedc7a496719878a022723404b81d413
[openwrt/staging/dedeckeh.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-vr2600v.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "TP-Link Archer VR2600v";
7 compatible = "tplink,vr2600v", "qcom,ipq8064";
8
9 memory@0 {
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
12 };
13
14 aliases {
15 mdio-gpio0 = &mdio0;
16
17 led-boot = &power;
18 led-failsafe = &general;
19 led-running = &power;
20 led-upgrade = &general;
21 };
22
23 keys {
24 compatible = "gpio-keys";
25 pinctrl-0 = <&button_pins>;
26 pinctrl-names = "default";
27
28 wifi {
29 label = "wifi";
30 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 wps {
41 label = "wps";
42 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
44 };
45
46 dect {
47 label = "dect";
48 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_PHONE>;
50 };
51
52 ledswitch {
53 label = "ledswitch";
54 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_LIGHTS_TOGGLE>;
56 };
57 };
58
59 leds {
60 compatible = "gpio-leds";
61 pinctrl-0 = <&led_pins>;
62 pinctrl-names = "default";
63
64 dsl {
65 label = "white:dsl";
66 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
67 };
68
69 usb {
70 label = "white:usb";
71 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
72 };
73
74 lan {
75 label = "white:lan";
76 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
77 };
78
79 wlan2g {
80 label = "white:wlan2g";
81 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
82 };
83
84 wlan5g {
85 label = "white:wlan5g";
86 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
87 };
88
89 power: power {
90 label = "white:power";
91 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
92 default-state = "keep";
93 };
94
95 phone {
96 label = "white:phone";
97 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
98 };
99
100 wan {
101 label = "white:wan";
102 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
103 };
104
105 general: general {
106 label = "white:general";
107 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
108 };
109 };
110 };
111
112 &qcom_pinmux {
113 led_pins: led_pins {
114 mux {
115 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
116 "gpio26", "gpio53", "gpio56", "gpio66";
117 function = "gpio";
118 drive-strength = <2>;
119 bias-pull-up;
120 };
121 };
122
123 button_pins: button_pins {
124 mux {
125 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
126 function = "gpio";
127 drive-strength = <2>;
128 bias-pull-up;
129 };
130 };
131
132 spi_pins: spi_pins {
133 mux {
134 pins = "gpio18", "gpio19", "gpio21";
135 function = "gsbi5";
136 bias-pull-down;
137 };
138
139 data {
140 pins = "gpio18", "gpio19";
141 drive-strength = <10>;
142 };
143
144 cs {
145 pins = "gpio20";
146 drive-strength = <10>;
147 bias-pull-up;
148 };
149
150 clk {
151 pins = "gpio21";
152 drive-strength = <12>;
153 };
154 };
155 };
156
157 &gsbi5 {
158 qcom,mode = <GSBI_PROT_SPI>;
159 status = "okay";
160
161 spi4: spi@1a280000 {
162 status = "okay";
163
164 pinctrl-0 = <&spi_pins>;
165 pinctrl-names = "default";
166
167 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
168
169 W25Q128@0 {
170 compatible = "jedec,spi-nor";
171 #address-cells = <1>;
172 #size-cells = <1>;
173 spi-max-frequency = <50000000>;
174 reg = <0>;
175
176 SBL1@0 {
177 label = "SBL1";
178 reg = <0x0 0x20000>;
179 read-only;
180 };
181
182 MIBIB@20000 {
183 label = "MIBIB";
184 reg = <0x20000 0x20000>;
185 read-only;
186 };
187
188 SBL2@40000 {
189 label = "SBL2";
190 reg = <0x40000 0x40000>;
191 read-only;
192 };
193
194 SBL3@80000 {
195 label = "SBL3";
196 reg = <0x80000 0x80000>;
197 read-only;
198 };
199
200 DDRCONFIG@100000 {
201 label = "DDRCONFIG";
202 reg = <0x100000 0x10000>;
203 read-only;
204 };
205
206 SSD@110000 {
207 label = "SSD";
208 reg = <0x110000 0x10000>;
209 read-only;
210 };
211
212 TZ@120000 {
213 label = "TZ";
214 reg = <0x120000 0x80000>;
215 read-only;
216 };
217
218 RPM@1a0000 {
219 label = "RPM";
220 reg = <0x1a0000 0x80000>;
221 read-only;
222 };
223
224 APPSBL@220000 {
225 label = "APPSBL";
226 reg = <0x220000 0x80000>;
227 read-only;
228 };
229
230 APPSBLENV@2a0000 {
231 label = "APPSBLENV";
232 reg = <0x2a0000 0x40000>;
233 read-only;
234 };
235
236 OLDART@2e0000 {
237 label = "OLDART";
238 reg = <0x2e0000 0x40000>;
239 read-only;
240 };
241
242 kernel@320000 {
243 label = "kernel";
244 reg = <0x320000 0x300000>;
245 };
246
247 rootfs@620000 {
248 label = "rootfs";
249 reg = <0x620000 0x960000>;
250 };
251
252 defaultmac: default-mac@0xfaf100 {
253 label = "default-mac";
254 reg = <0xfaf100 0x00200>;
255 read-only;
256 };
257
258 ART@fc0000 {
259 label = "ART";
260 reg = <0xfc0000 0x40000>;
261 read-only;
262 };
263 };
264 };
265 };
266
267 &usb3_0 {
268 status = "okay";
269 };
270
271 &usb3_1 {
272 status = "okay";
273 };
274
275 &pcie0 {
276 status = "okay";
277 };
278
279 &pcie1 {
280 status = "okay";
281 max-link-speed = <1>;
282 };
283
284 &mdio0 {
285 status = "okay";
286
287 pinctrl-0 = <&mdio0_pins>;
288 pinctrl-names = "default";
289
290 phy0: ethernet-phy@0 {
291 reg = <0>;
292 qca,ar8327-initvals = <
293 0x00004 0x7600000 /* PAD0_MODE */
294 0x00008 0x1000000 /* PAD5_MODE */
295 0x0000c 0x80 /* PAD6_MODE */
296 0x000e4 0x6a545 /* MAC_POWER_SEL */
297 0x000e0 0xc74164de /* SGMII_CTRL */
298 0x0007c 0x4e /* PORT0_STATUS */
299 0x00094 0x4e /* PORT6_STATUS */
300 >;
301 };
302
303 phy4: ethernet-phy@4 {
304 reg = <4>;
305 };
306 };
307
308 &gmac1 {
309 status = "okay";
310 phy-mode = "rgmii";
311 qcom,id = <1>;
312
313 pinctrl-0 = <&rgmii2_pins>;
314 pinctrl-names = "default";
315
316 mtd-mac-address = <&defaultmac 0>;
317 mtd-mac-address-increment = <1>;
318
319 fixed-link {
320 speed = <1000>;
321 full-duplex;
322 };
323 };
324
325 &gmac2 {
326 status = "okay";
327 phy-mode = "sgmii";
328 qcom,id = <2>;
329
330 mtd-mac-address = <&defaultmac 0>;
331
332 fixed-link {
333 speed = <1000>;
334 full-duplex;
335 };
336 };
337
338 &adm_dma {
339 status = "okay";
340 };