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