ec0aa0c0ee7716b95f204a032800c59481b9ce0a
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-vr2600v.dts
1 #include "qcom-ipq8064-v1.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 reserved-memory {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
18 rsvd@41200000 {
19 reg = <0x41200000 0x300000>;
20 no-map;
21 };
22 };
23
24 aliases {
25 serial0 = &uart4;
26 mdio-gpio0 = &mdio0;
27
28 led-boot = &power;
29 led-failsafe = &general;
30 led-running = &power;
31 led-upgrade = &general;
32 };
33
34 chosen {
35 linux,stdout-path = "serial0:115200n8";
36 };
37
38 soc {
39 pinmux@800000 {
40 led_pins: led_pins {
41 mux {
42 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio17",
43 "gpio26", "gpio53", "gpio56", "gpio66";
44 function = "gpio";
45 drive-strength = <2>;
46 bias-pull-up;
47 };
48 };
49
50 i2c4_pins: i2c4_pinmux {
51 mux {
52 pins = "gpio12", "gpio13";
53 function = "gsbi4";
54 drive-strength = <12>;
55 bias-disable;
56 };
57 };
58
59 button_pins: button_pins {
60 mux {
61 pins = "gpio54", "gpio64", "gpio65", "gpio67", "gpio68";
62 function = "gpio";
63 drive-strength = <2>;
64 bias-pull-up;
65 };
66 };
67
68 spi_pins: spi_pins {
69 mux {
70 pins = "gpio18", "gpio19", "gpio21";
71 function = "gsbi5";
72 bias-pull-down;
73 };
74
75 data {
76 pins = "gpio18", "gpio19";
77 drive-strength = <10>;
78 };
79
80 cs {
81 pins = "gpio20";
82 drive-strength = <10>;
83 bias-pull-up;
84 };
85
86 clk {
87 pins = "gpio21";
88 drive-strength = <12>;
89 };
90 };
91
92 mdio0_pins: mdio0_pins {
93 mux {
94 pins = "gpio0", "gpio1";
95 function = "gpio";
96 drive-strength = <8>;
97 bias-disable;
98 };
99 };
100
101 rgmii2_pins: rgmii2_pins {
102 mux {
103 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
105 function = "rgmii2";
106 drive-strength = <8>;
107 bias-disable;
108 };
109 };
110 };
111
112 gsbi@16300000 {
113 qcom,mode = <GSBI_PROT_I2C_UART>;
114 status = "ok";
115 serial@16340000 {
116 status = "ok";
117 };
118 /*
119 * The i2c device on gsbi4 should not be enabled.
120 * On ipq806x designs gsbi4 i2c is meant for exclusive
121 * RPM usage. Turning this on in kernel manifests as
122 * i2c failure for the RPM.
123 */
124 };
125
126 gsbi5: gsbi@1a200000 {
127 qcom,mode = <GSBI_PROT_SPI>;
128 status = "ok";
129
130 spi4: spi@1a280000 {
131 status = "ok";
132 spi-max-frequency = <50000000>;
133
134 pinctrl-0 = <&spi_pins>;
135 pinctrl-names = "default";
136
137 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
138
139 flash: W25Q128@0 {
140 compatible = "jedec,spi-nor";
141 #address-cells = <1>;
142 #size-cells = <1>;
143 spi-max-frequency = <50000000>;
144 reg = <0>;
145
146 SBL1@0 {
147 label = "SBL1";
148 reg = <0x0 0x20000>;
149 read-only;
150 };
151
152 MIBIB@20000 {
153 label = "MIBIB";
154 reg = <0x20000 0x20000>;
155 read-only;
156 };
157
158 SBL2@40000 {
159 label = "SBL2";
160 reg = <0x40000 0x40000>;
161 read-only;
162 };
163
164 SBL3@80000 {
165 label = "SBL3";
166 reg = <0x80000 0x80000>;
167 read-only;
168 };
169
170 DDRCONFIG@100000 {
171 label = "DDRCONFIG";
172 reg = <0x100000 0x10000>;
173 read-only;
174 };
175
176 SSD@110000 {
177 label = "SSD";
178 reg = <0x110000 0x10000>;
179 read-only;
180 };
181
182 TZ@120000 {
183 label = "TZ";
184 reg = <0x120000 0x80000>;
185 read-only;
186 };
187
188 RPM@1a0000 {
189 label = "RPM";
190 reg = <0x1a0000 0x80000>;
191 read-only;
192 };
193
194 APPSBL@220000 {
195 label = "APPSBL";
196 reg = <0x220000 0x80000>;
197 read-only;
198 };
199
200 APPSBLENV@2a0000 {
201 label = "APPSBLENV";
202 reg = <0x2a0000 0x40000>;
203 read-only;
204 };
205
206 OLDART@2e0000 {
207 label = "OLDART";
208 reg = <0x2e0000 0x40000>;
209 read-only;
210 };
211
212 kernel@320000 {
213 label = "kernel";
214 reg = <0x320000 0x200000>;
215 };
216
217 rootfs@520000 {
218 label = "rootfs";
219 reg = <0x520000 0xa60000>;
220 };
221
222 defaultmac: default-mac@0xfaf100 {
223 label = "default-mac";
224 reg = <0xfaf100 0x00200>;
225 read-only;
226 };
227
228 ART@fc0000 {
229 label = "ART";
230 reg = <0xfc0000 0x40000>;
231 read-only;
232 };
233 };
234 };
235 };
236
237 phy@100f8800 { /* USB3 port 1 HS phy */
238 status = "ok";
239 };
240
241 phy@100f8830 { /* USB3 port 1 SS phy */
242 status = "ok";
243 };
244
245 phy@110f8800 { /* USB3 port 0 HS phy */
246 status = "ok";
247 };
248
249 phy@110f8830 { /* USB3 port 0 SS phy */
250 status = "ok";
251 };
252
253 usb30@0 {
254 status = "ok";
255 };
256
257 usb30@1 {
258 status = "ok";
259 };
260
261 pcie0: pci@1b500000 {
262 status = "ok";
263 phy-tx0-term-offset = <7>;
264 };
265
266 pcie1: pci@1b700000 {
267 status = "ok";
268 phy-tx0-term-offset = <7>;
269 };
270
271 mdio0: mdio {
272 compatible = "virtual,mdio-gpio";
273 #address-cells = <1>;
274 #size-cells = <0>;
275 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
276 pinctrl-0 = <&mdio0_pins>;
277 pinctrl-names = "default";
278
279 phy0: ethernet-phy@0 {
280 device_type = "ethernet-phy";
281 reg = <0>;
282 qca,ar8327-initvals = <
283 0x00004 0x7600000 /* PAD0_MODE */
284 0x00008 0x1000000 /* PAD5_MODE */
285 0x0000c 0x80 /* PAD6_MODE */
286 0x000e4 0x6a545 /* MAC_POWER_SEL */
287 0x000e0 0xc74164de /* SGMII_CTRL */
288 0x0007c 0x4e /* PORT0_STATUS */
289 0x00094 0x4e /* PORT6_STATUS */
290 >;
291 };
292
293 phy4: ethernet-phy@4 {
294 device_type = "ethernet-phy";
295 reg = <4>;
296 };
297 };
298
299 gmac1: ethernet@37200000 {
300 status = "ok";
301 phy-mode = "rgmii";
302 qcom,id = <1>;
303
304 pinctrl-0 = <&rgmii2_pins>;
305 pinctrl-names = "default";
306
307 mtd-mac-address = <&defaultmac 0>;
308 mtd-mac-address-increment = <1>;
309
310 fixed-link {
311 speed = <1000>;
312 full-duplex;
313 };
314 };
315
316 gmac2: ethernet@37400000 {
317 status = "ok";
318 phy-mode = "sgmii";
319 qcom,id = <2>;
320
321 mtd-mac-address = <&defaultmac 0>;
322
323 fixed-link {
324 speed = <1000>;
325 full-duplex;
326 };
327 };
328
329 rpm@108000 {
330 pinctrl-0 = <&i2c4_pins>;
331 pinctrl-names = "default";
332 };
333 };
334
335 gpio-keys {
336 compatible = "gpio-keys";
337 pinctrl-0 = <&button_pins>;
338 pinctrl-names = "default";
339
340 wifi {
341 label = "wifi";
342 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
343 linux,code = <KEY_RFKILL>;
344 };
345
346 reset {
347 label = "reset";
348 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
349 linux,code = <KEY_RESTART>;
350 };
351
352 wps {
353 label = "wps";
354 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
355 linux,code = <KEY_WPS_BUTTON>;
356 };
357
358 dect {
359 label = "dect";
360 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
361 linux,code = <KEY_PHONE>;
362 };
363
364 ledswitch {
365 label = "ledswitch";
366 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
367 linux,code = <KEY_LIGHTS_TOGGLE>;
368 };
369 };
370
371 gpio-leds {
372 compatible = "gpio-leds";
373 pinctrl-0 = <&led_pins>;
374 pinctrl-names = "default";
375
376 dsl {
377 label = "vr2600v:white:dsl";
378 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
379 };
380
381 usb {
382 label = "vr2600v:white:usb";
383 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
384 };
385
386 lan {
387 label = "vr2600v:white:lan";
388 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
389 };
390
391 wlan2g {
392 label = "vr2600v:white:wlan2g";
393 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
394 };
395
396 wlan5g {
397 label = "vr2600v:white:wlan5g";
398 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
399 };
400
401 power: power {
402 label = "vr2600v:white:power";
403 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
404 };
405
406 phone {
407 label = "vr2600v:white:phone";
408 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
409 };
410
411 wan {
412 label = "vr2600v:white:wan";
413 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
414 };
415
416 general: general {
417 label = "vr2600v:white:general";
418 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
419 };
420 };
421 };
422
423 &adm_dma {
424 status = "ok";
425 };