ipq806x: move mdio node to ipq8064 dts
[openwrt/openwrt.git] / target / linux / ipq806x / files-5.4 / arch / arm / boot / dts / qcom-ipq8064-r7500v2.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Netgear Nighthawk X4 R7500v2";
7 compatible = "netgear,r7500v2", "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 rsvd@5fe00000 {
24 reg = <0x5fe00000 0x200000>;
25 reusable;
26 };
27 };
28
29 aliases {
30 serial0 = &gsbi4_serial;
31 mdio-gpio0 = &mdio0;
32
33 led-boot = &power;
34 led-failsafe = &power;
35 led-running = &power;
36 led-upgrade = &power;
37 };
38
39 chosen {
40 bootargs = "rootfstype=squashfs noinitrd";
41 stdout-path = "serial0:115200n8";
42 };
43
44 keys {
45 compatible = "gpio-keys";
46 pinctrl-0 = <&button_pins>;
47 pinctrl-names = "default";
48
49 wifi {
50 label = "wifi";
51 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RFKILL>;
53 };
54
55 reset {
56 label = "reset";
57 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
59 };
60
61 wps {
62 label = "wps";
63 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_WPS_BUTTON>;
65 };
66 };
67
68 leds {
69 compatible = "gpio-leds";
70 pinctrl-0 = <&led_pins>;
71 pinctrl-names = "default";
72
73 usb1 {
74 label = "r7500v2:amber:usb1";
75 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
76 };
77
78 usb3 {
79 label = "r7500v2:amber:usb3";
80 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
81 };
82
83 status {
84 label = "r7500v2:amber:status";
85 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
86 };
87
88 internet {
89 label = "r7500v2:white:internet";
90 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
91 };
92
93 wan {
94 label = "r7500v2:white:wan";
95 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
96 };
97
98 wps {
99 label = "r7500v2:white:wps";
100 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
101 };
102
103 esata {
104 label = "r7500v2:white:esata";
105 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
106 };
107
108 power: power {
109 label = "r7500v2:white:power";
110 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
111 default-state = "keep";
112 };
113
114 wifi {
115 label = "r7500v2:white:wifi";
116 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
117 };
118 };
119 };
120
121 &adm_dma {
122 status = "okay";
123 };
124
125 &qcom_pinmux {
126 button_pins: button_pins {
127 mux {
128 pins = "gpio6", "gpio54", "gpio65";
129 function = "gpio";
130 drive-strength = <2>;
131 bias-pull-up;
132 };
133 };
134
135 i2c4_pins: i2c4_pinmux {
136 mux {
137 pins = "gpio12", "gpio13";
138 function = "gsbi4";
139 drive-strength = <12>;
140 bias-disable;
141 };
142 };
143
144 led_pins: led_pins {
145 mux {
146 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
147 "gpio24","gpio26", "gpio53", "gpio64";
148 function = "gpio";
149 drive-strength = <2>;
150 bias-pull-up;
151 };
152 };
153
154 mdio0_pins: mdio0_pins {
155 mux {
156 pins = "gpio0", "gpio1";
157 function = "mdio";
158 drive-strength = <8>;
159 bias-disable;
160 };
161 };
162
163 nand_pins: nand_pins {
164 disable {
165 pins = "gpio34", "gpio35", "gpio36",
166 "gpio37", "gpio38";
167 function = "nand";
168 drive-strength = <10>;
169 bias-disable;
170 };
171
172 pullups {
173 pins = "gpio39";
174 function = "nand";
175 drive-strength = <10>;
176 bias-pull-up;
177 };
178
179 hold {
180 pins = "gpio40", "gpio41", "gpio42",
181 "gpio43", "gpio44", "gpio45",
182 "gpio46", "gpio47";
183 function = "nand";
184 drive-strength = <10>;
185 bias-bus-hold;
186 };
187 };
188
189 rgmii2_pins: rgmii2_pins {
190 mux {
191 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
192 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
193 function = "rgmii2";
194 drive-strength = <8>;
195 bias-disable;
196 };
197 };
198
199 usb0_pwr_en_pins: usb0_pwr_en_pins {
200 mux {
201 pins = "gpio15";
202 function = "gpio";
203 drive-strength = <12>;
204 bias-pull-down;
205 output-high;
206 };
207 };
208
209 usb1_pwr_en_pins: usb1_pwr_en_pins {
210 mux {
211 pins = "gpio16", "gpio68";
212 function = "gpio";
213 drive-strength = <12>;
214 bias-pull-down;
215 output-high;
216 };
217 };
218 };
219
220 &gsbi4 {
221 qcom,mode = <GSBI_PROT_I2C_UART>;
222 status = "okay";
223 serial@16340000 {
224 status = "okay";
225 };
226 /*
227 * The i2c device on gsbi4 should not be enabled.
228 * On ipq806x designs gsbi4 i2c is meant for exclusive
229 * RPM usage. Turning this on in kernel manifests as
230 * i2c failure for the RPM.
231 */
232 };
233
234 &sata_phy {
235 status = "okay";
236 };
237
238 &sata {
239 status = "okay";
240 };
241
242 &usb3_0 {
243 status = "okay";
244
245 pinctrl-0 = <&usb0_pwr_en_pins>;
246 pinctrl-names = "default";
247 };
248
249 &usb3_1 {
250 status = "okay";
251
252 pinctrl-0 = <&usb1_pwr_en_pins>;
253 pinctrl-names = "default";
254 };
255
256 &pcie0 {
257 status = "okay";
258 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
259 pinctrl-0 = <&pcie0_pins>;
260 pinctrl-names = "default";
261 };
262
263 &pcie1 {
264 status = "okay";
265 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
266 pinctrl-0 = <&pcie1_pins>;
267 pinctrl-names = "default";
268 force_gen1 = <1>;
269 };
270
271 &nand_controller {
272 status = "okay";
273
274 pinctrl-0 = <&nand_pins>;
275 pinctrl-names = "default";
276
277 nand@0 {
278 reg = <0>;
279 compatible = "qcom,nandcs";
280
281 nand-ecc-strength = <4>;
282 nand-bus-width = <8>;
283 nand-ecc-step-size = <512>;
284
285 partitions {
286 compatible = "fixed-partitions";
287 #address-cells = <1>;
288 #size-cells = <1>;
289
290 qcadata@0 {
291 label = "qcadata";
292 reg = <0x0000000 0x0c80000>;
293 read-only;
294 };
295
296 APPSBL@c80000 {
297 label = "APPSBL";
298 reg = <0x0c80000 0x0500000>;
299 read-only;
300 };
301
302 APPSBLENV@1180000 {
303 label = "APPSBLENV";
304 reg = <0x1180000 0x0080000>;
305 read-only;
306 };
307
308 art: art@1200000 {
309 label = "art";
310 reg = <0x1200000 0x0140000>;
311 read-only;
312 };
313
314 artbak: art@1340000 {
315 label = "artbak";
316 reg = <0x1340000 0x0140000>;
317 read-only;
318 };
319
320 kernel@1480000 {
321 label = "kernel";
322 reg = <0x1480000 0x0400000>;
323 };
324
325 ubi@1880000 {
326 label = "ubi";
327 reg = <0x1880000 0x6080000>;
328 };
329
330 reserve@7900000 {
331 label = "reserve";
332 reg = <0x7900000 0x0700000>;
333 read-only;
334 };
335 };
336 };
337 };
338
339 &mdio0 {
340 status = "okay";
341
342 pinctrl-0 = <&mdio0_pins>;
343 pinctrl-names = "default";
344
345 phy0: ethernet-phy@0 {
346 reg = <0>;
347 qca,ar8327-initvals = <
348 0x00004 0x7600000 /* PAD0_MODE */
349 0x00008 0x1000000 /* PAD5_MODE */
350 0x0000c 0x80 /* PAD6_MODE */
351 0x000e4 0xaa545 /* MAC_POWER_SEL */
352 0x000e0 0xc74164de /* SGMII_CTRL */
353 0x0007c 0x4e /* PORT0_STATUS */
354 0x00094 0x4e /* PORT6_STATUS */
355 >;
356 };
357
358 phy4: ethernet-phy@4 {
359 reg = <4>;
360 };
361 };
362
363 &gmac1 {
364 status = "okay";
365 phy-mode = "rgmii";
366 qcom,id = <1>;
367
368 pinctrl-0 = <&rgmii2_pins>;
369 pinctrl-names = "default";
370
371 mtd-mac-address = <&art 6>;
372
373 fixed-link {
374 speed = <1000>;
375 full-duplex;
376 };
377 };
378
379 &gmac2 {
380 status = "okay";
381 phy-mode = "sgmii";
382 qcom,id = <2>;
383
384 mtd-mac-address = <&art 0>;
385
386 fixed-link {
387 speed = <1000>;
388 full-duplex;
389 };
390 };