ipq806x: remove mac-address-increment
[openwrt/staging/jow.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-r7500.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/soc/qcom,tcsr.h>
5
6 / {
7 model = "Netgear Nighthawk X4 R7500";
8 compatible = "netgear,r7500", "qcom,ipq8064";
9
10 memory@0 {
11 reg = <0x42000000 0xe000000>;
12 device_type = "memory";
13 };
14
15 reserved-memory {
16 #address-cells = <1>;
17 #size-cells = <1>;
18 ranges;
19 rsvd@41200000 {
20 reg = <0x41200000 0x300000>;
21 no-map;
22 };
23 };
24
25 aliases {
26 mdio-gpio0 = &mdio0;
27
28 led-boot = &power_white;
29 led-failsafe = &power_amber;
30 led-running = &power_white;
31 led-upgrade = &power_amber;
32 };
33
34 chosen {
35 bootargs = "rootfstype=squashfs noinitrd";
36 };
37
38 keys {
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
42
43 wifi {
44 label = "wifi";
45 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RFKILL>;
47 debounce-interval = <60>;
48 wakeup-source;
49 };
50
51 reset {
52 label = "reset";
53 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 debounce-interval = <60>;
56 wakeup-source;
57 };
58
59 wps {
60 label = "wps";
61 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 debounce-interval = <60>;
64 wakeup-source;
65 };
66 };
67
68 leds {
69 compatible = "gpio-leds";
70 pinctrl-0 = <&led_pins>;
71 pinctrl-names = "default";
72
73 usb1 {
74 label = "white:usb1";
75 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
76 };
77
78 usb2 {
79 label = "white:usb2";
80 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
81 };
82
83 power_amber: power_amber {
84 label = "amber:power";
85 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
86 };
87
88 wan_white {
89 label = "white:wan";
90 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
91 };
92
93 wan_amber {
94 label = "amber:wan";
95 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
96 };
97
98 wps {
99 label = "white:wps";
100 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
101 };
102
103 esata {
104 label = "white:esata";
105 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
106 };
107
108 power_white: power_white {
109 label = "white:power";
110 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
111 default-state = "keep";
112 };
113
114 wifi {
115 label = "white:wifi";
116 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
117 };
118 };
119 };
120
121 &qcom_pinmux {
122 button_pins: button_pins {
123 mux {
124 pins = "gpio6", "gpio54", "gpio65";
125 function = "gpio";
126 drive-strength = <2>;
127 bias-pull-up;
128 };
129 };
130
131 led_pins: led_pins {
132 mux {
133 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
134 "gpio24","gpio26", "gpio53", "gpio64";
135 function = "gpio";
136 drive-strength = <2>;
137 bias-pull-up;
138 };
139 };
140 };
141
142 &gsbi5 {
143 status = "disabled";
144
145 spi@1a280000 {
146 status = "disabled";
147 };
148 };
149
150 &hs_phy_0 {
151 status = "okay";
152 };
153
154 &ss_phy_0 {
155 status = "okay";
156 };
157
158 &usb3_0 {
159 status = "okay";
160 };
161
162 &hs_phy_1 {
163 status = "okay";
164 };
165
166 &ss_phy_1 {
167 status = "okay";
168 };
169
170 &usb3_1 {
171 status = "okay";
172 };
173
174 &pcie0 {
175 status = "okay";
176 };
177
178 &pcie1 {
179 status = "okay";
180 max-link-speed = <1>;
181 };
182
183 &nand {
184 status = "okay";
185
186 nand@0 {
187 reg = <0>;
188 compatible = "qcom,nandcs";
189
190 nand-ecc-strength = <4>;
191 nand-bus-width = <8>;
192 nand-ecc-step-size = <512>;
193
194 nand-is-boot-medium;
195 qcom,boot-partitions = <0x0 0x1180000>;
196
197 partitions {
198 compatible = "fixed-partitions";
199 #address-cells = <1>;
200 #size-cells = <1>;
201
202 qcadata@0 {
203 label = "qcadata";
204 reg = <0x0000000 0x0c80000>;
205 read-only;
206 };
207
208 APPSBL@c80000 {
209 label = "APPSBL";
210 reg = <0x0c80000 0x0500000>;
211 read-only;
212 };
213
214 APPSBLENV@1180000 {
215 label = "APPSBLENV";
216 reg = <0x1180000 0x0080000>;
217 read-only;
218 };
219
220 art: art@1200000 {
221 label = "art";
222 reg = <0x1200000 0x0140000>;
223 read-only;
224
225 nvmem-layout {
226 compatible = "fixed-layout";
227 #address-cells = <1>;
228 #size-cells = <1>;
229
230 macaddr_art_0: macaddr@0 {
231 reg = <0x0 0x6>;
232 };
233
234 macaddr_art_6: macaddr@6 {
235 reg = <0x6 0x6>;
236 };
237 };
238 };
239
240 kernel@1340000 {
241 label = "kernel";
242 reg = <0x1340000 0x0400000>;
243 };
244
245 ubi@1740000 {
246 label = "ubi";
247 reg = <0x1740000 0x1600000>;
248 };
249
250 netgear@2d40000 {
251 label = "netgear";
252 reg = <0x2d40000 0x0c00000>;
253 read-only;
254 };
255
256 reserve@3940000 {
257 label = "reserve";
258 reg = <0x3940000 0x46c0000>;
259 read-only;
260 };
261 };
262 };
263 };
264
265 &mdio0 {
266 status = "okay";
267
268 pinctrl-0 = <&mdio0_pins>;
269 pinctrl-names = "default";
270
271 switch@10 {
272 compatible = "qca,qca8337";
273 #address-cells = <1>;
274 #size-cells = <0>;
275 reg = <0x10>;
276
277 ports {
278 #address-cells = <1>;
279 #size-cells = <0>;
280
281 port@0 {
282 reg = <0>;
283 label = "cpu";
284 ethernet = <&gmac1>;
285 phy-mode = "rgmii";
286 tx-internal-delay-ps = <1000>;
287 rx-internal-delay-ps = <1000>;
288
289 fixed-link {
290 speed = <1000>;
291 full-duplex;
292 };
293 };
294
295 port@1 {
296 reg = <1>;
297 label = "lan1";
298 phy-mode = "internal";
299 phy-handle = <&phy_port1>;
300 };
301
302 port@2 {
303 reg = <2>;
304 label = "lan2";
305 phy-mode = "internal";
306 phy-handle = <&phy_port2>;
307 };
308
309 port@3 {
310 reg = <3>;
311 label = "lan3";
312 phy-mode = "internal";
313 phy-handle = <&phy_port3>;
314 };
315
316 port@4 {
317 reg = <4>;
318 label = "lan4";
319 phy-mode = "internal";
320 phy-handle = <&phy_port4>;
321 };
322
323 port@5 {
324 reg = <5>;
325 label = "wan";
326 phy-mode = "internal";
327 phy-handle = <&phy_port5>;
328 };
329
330 port@6 {
331 reg = <6>;
332 label = "cpu";
333 ethernet = <&gmac2>;
334 phy-mode = "sgmii";
335 qca,sgmii-enable-pll;
336
337 fixed-link {
338 speed = <1000>;
339 full-duplex;
340 };
341 };
342 };
343
344 mdio {
345 #address-cells = <1>;
346 #size-cells = <0>;
347
348 phy_port1: phy@0 {
349 reg = <0>;
350 };
351
352 phy_port2: phy@1 {
353 reg = <1>;
354 };
355
356 phy_port3: phy@2 {
357 reg = <2>;
358 };
359
360 phy_port4: phy@3 {
361 reg = <3>;
362 };
363
364 phy_port5: phy@4 {
365 reg = <4>;
366 };
367 };
368 };
369 };
370
371 &gmac1 {
372 status = "okay";
373 phy-mode = "rgmii";
374 qcom,id = <1>;
375
376 pinctrl-0 = <&rgmii2_pins>;
377 pinctrl-names = "default";
378
379 nvmem-cells = <&macaddr_art_6>;
380 nvmem-cell-names = "mac-address";
381
382 fixed-link {
383 speed = <1000>;
384 full-duplex;
385 };
386 };
387
388 &gmac2 {
389 status = "okay";
390 phy-mode = "sgmii";
391 qcom,id = <2>;
392
393 nvmem-cells = <&macaddr_art_0>;
394 nvmem-cell-names = "mac-address";
395
396 fixed-link {
397 speed = <1000>;
398 full-duplex;
399 };
400 };
401
402 &tcsr {
403 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
404 compatible = "qcom,tcsr";
405 };
406
407 &adm_dma {
408 status = "okay";
409 };