4ae7de604b4d0b79045f171e778966f19a456406
[openwrt/staging/lynxis.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-c2600.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "TP-Link Archer C2600";
7 compatible = "tplink,c2600", "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 label-mac-device = &gmac2;
22 };
23
24 keys {
25 compatible = "gpio-keys";
26 pinctrl-0 = <&button_pins>;
27 pinctrl-names = "default";
28
29 wifi {
30 label = "wifi";
31 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RFKILL>;
33 };
34
35 reset {
36 label = "reset";
37 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40
41 wps {
42 label = "wps";
43 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
45 };
46
47 ledswitch {
48 label = "ledswitch";
49 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_LIGHTS_TOGGLE>;
51 };
52 };
53
54 leds {
55 compatible = "gpio-leds";
56 pinctrl-0 = <&led_pins>;
57 pinctrl-names = "default";
58
59 lan {
60 label = "white:lan";
61 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
62 };
63
64 usb4 {
65 label = "white:usb_4";
66 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
67 };
68
69 usb2 {
70 label = "white:usb_2";
71 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
72 };
73
74 wps {
75 label = "white:wps";
76 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
77 };
78
79 wan_amber {
80 label = "amber:wan";
81 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
82 };
83
84 wan_white {
85 label = "white:wan";
86 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
87 };
88
89 power: power {
90 label = "white:power";
91 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
92 default-state = "keep";
93 };
94
95 general: general {
96 label = "white:general";
97 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
98 };
99 };
100 };
101
102 &qcom_pinmux {
103 button_pins: button_pins {
104 mux {
105 pins = "gpio16", "gpio54", "gpio65";
106 function = "gpio";
107 drive-strength = <2>;
108 bias-pull-up;
109 };
110 };
111
112 led_pins: led_pins {
113 mux {
114 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
115 "gpio53", "gpio66";
116 function = "gpio";
117 drive-strength = <2>;
118 bias-pull-up;
119 };
120 };
121
122 spi_pins: spi_pins {
123 mux {
124 pins = "gpio18", "gpio19", "gpio21";
125 function = "gsbi5";
126 bias-pull-down;
127 };
128
129 data {
130 pins = "gpio18", "gpio19";
131 drive-strength = <10>;
132 };
133
134 cs {
135 pins = "gpio20";
136 function = "gpio";
137 drive-strength = <10>;
138 bias-pull-up;
139 };
140
141 clk {
142 pins = "gpio21";
143 drive-strength = <12>;
144 };
145 };
146
147 usb0_pwr_en_pin: usb0_pwr_en_pin {
148 mux {
149 pins = "gpio25";
150 function = "gpio";
151 drive-strength = <10>;
152 bias-pull-up;
153 output-high;
154 };
155 };
156
157 usb1_pwr_en_pin: usb1_pwr_en_pin {
158 mux {
159 pins = "gpio23";
160 function = "gpio";
161 drive-strength = <10>;
162 bias-pull-up;
163 output-high;
164 };
165 };
166 };
167
168 &gsbi5 {
169 qcom,mode = <GSBI_PROT_SPI>;
170 status = "okay";
171
172 spi5: spi@1a280000 {
173 status = "okay";
174
175 pinctrl-0 = <&spi_pins>;
176 pinctrl-names = "default";
177
178 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
179
180 m25p80@0 {
181 compatible = "jedec,spi-nor";
182 #address-cells = <1>;
183 #size-cells = <1>;
184 spi-max-frequency = <50000000>;
185 reg = <0>;
186
187 SBL1@0 {
188 label = "SBL1";
189 reg = <0x0 0x20000>;
190 read-only;
191 };
192
193 MIBIB@20000 {
194 label = "MIBIB";
195 reg = <0x20000 0x20000>;
196 read-only;
197 };
198
199 SBL2@40000 {
200 label = "SBL2";
201 reg = <0x40000 0x20000>;
202 read-only;
203 };
204
205 SBL3@60000 {
206 label = "SBL3";
207 reg = <0x60000 0x30000>;
208 read-only;
209 };
210
211 DDRCONFIG@90000 {
212 label = "DDRCONFIG";
213 reg = <0x90000 0x10000>;
214 read-only;
215 };
216
217 SSD@a0000 {
218 label = "SSD";
219 reg = <0xa0000 0x10000>;
220 read-only;
221 };
222
223 TZ@b0000 {
224 label = "TZ";
225 reg = <0xb0000 0x30000>;
226 read-only;
227 };
228
229 RPM@e0000 {
230 label = "RPM";
231 reg = <0xe0000 0x20000>;
232 read-only;
233 };
234
235 fs-uboot@100000 {
236 label = "fs-uboot";
237 reg = <0x100000 0x70000>;
238 read-only;
239 };
240
241 uboot-env@170000 {
242 label = "uboot-env";
243 reg = <0x170000 0x40000>;
244 read-only;
245 };
246
247 radio@1b0000 {
248 label = "radio";
249 reg = <0x1b0000 0x40000>;
250 read-only;
251 };
252
253 os-image@1f0000 {
254 label = "os-image";
255 reg = <0x1f0000 0x400000>;
256 };
257
258 rootfs@5f0000 {
259 label = "rootfs";
260 reg = <0x5f0000 0x1900000>;
261 };
262
263 defaultmac: default-mac@1ef0000 {
264 label = "default-mac";
265 reg = <0x1ef0000 0x00200>;
266 read-only;
267 };
268
269 pin@1ef0200 {
270 label = "pin";
271 reg = <0x1ef0200 0x00200>;
272 read-only;
273 };
274
275 product-info@1ef0400 {
276 label = "product-info";
277 reg = <0x1ef0400 0x0fc00>;
278 read-only;
279 };
280
281 partition-table@1f00000 {
282 label = "partition-table";
283 reg = <0x1f00000 0x10000>;
284 read-only;
285 };
286
287 soft-version@1f10000 {
288 label = "soft-version";
289 reg = <0x1f10000 0x10000>;
290 read-only;
291 };
292
293 support-list@1f20000 {
294 label = "support-list";
295 reg = <0x1f20000 0x10000>;
296 read-only;
297 };
298
299 profile@1f30000 {
300 label = "profile";
301 reg = <0x1f30000 0x10000>;
302 read-only;
303 };
304
305 default-config@1f40000 {
306 label = "default-config";
307 reg = <0x1f40000 0x10000>;
308 read-only;
309 };
310
311 user-config@1f50000 {
312 label = "user-config";
313 reg = <0x1f50000 0x40000>;
314 read-only;
315 };
316
317 qos-db@1f90000 {
318 label = "qos-db";
319 reg = <0x1f90000 0x40000>;
320 read-only;
321 };
322
323 usb-config@1fd0000 {
324 label = "usb-config";
325 reg = <0x1fd0000 0x10000>;
326 read-only;
327 };
328
329 log@1fe0000 {
330 label = "log";
331 reg = <0x1fe0000 0x20000>;
332 read-only;
333 };
334 };
335 };
336 };
337
338 &usb3_0 {
339 status = "okay";
340
341 pinctrl-0 = <&usb0_pwr_en_pin>;
342 pinctrl-names = "default";
343 };
344
345 &usb3_1 {
346 status = "okay";
347
348 pinctrl-0 = <&usb1_pwr_en_pin>;
349 pinctrl-names = "default";
350 };
351
352 &pcie0 {
353 status = "okay";
354 };
355
356 &pcie1 {
357 status = "okay";
358 max-link-speed = <1>;
359 };
360
361 &mdio0 {
362 status = "okay";
363
364 pinctrl-0 = <&mdio0_pins>;
365 pinctrl-names = "default";
366
367 phy0: ethernet-phy@0 {
368 reg = <0>;
369 qca,ar8327-initvals = <
370 0x00004 0x7600000 /* PAD0_MODE */
371 0x00008 0x1000000 /* PAD5_MODE */
372 0x0000c 0x80 /* PAD6_MODE */
373 0x000e4 0x6a545 /* MAC_POWER_SEL */
374 0x000e0 0xc74164de /* SGMII_CTRL */
375 0x0007c 0x4e /* PORT0_STATUS */
376 0x00094 0x4e /* PORT6_STATUS */
377 >;
378 };
379
380 phy4: ethernet-phy@4 {
381 reg = <4>;
382 };
383 };
384
385 &gmac1 {
386 status = "okay";
387 phy-mode = "rgmii";
388 qcom,id = <1>;
389
390 pinctrl-0 = <&rgmii2_pins>;
391 pinctrl-names = "default";
392
393 mtd-mac-address = <&defaultmac 0x8>;
394 mtd-mac-address-increment = <1>;
395
396 fixed-link {
397 speed = <1000>;
398 full-duplex;
399 };
400 };
401
402 &gmac2 {
403 status = "okay";
404 phy-mode = "sgmii";
405 qcom,id = <2>;
406
407 mtd-mac-address = <&defaultmac 0x8>;
408
409 fixed-link {
410 speed = <1000>;
411 full-duplex;
412 };
413 };
414
415 &adm_dma {
416 status = "okay";
417 };