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