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