ipq8064: fix dwc3-of-simple module unloading for Netgear R7500
[openwrt/staging/chunkeey.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 clocks = <&gcc USB30_0_UTMI_CLK>;
137 status = "ok";
138 };
139
140 phy@100f8830 { /* USB3 port 1 SS phy */
141 clocks = <&gcc USB30_0_MASTER_CLK>;
142 status = "ok";
143 };
144
145 phy@110f8800 { /* USB3 port 0 HS phy */
146 clocks = <&gcc USB30_1_UTMI_CLK>;
147 status = "ok";
148 };
149
150 phy@110f8830 { /* USB3 port 0 SS phy */
151 clocks = <&gcc USB30_1_MASTER_CLK>;
152 status = "ok";
153 };
154
155 usb30@0 {
156 clocks = <&gcc USB30_1_MASTER_CLK>;
157 status = "ok";
158 };
159
160 usb30@1 {
161 clocks = <&gcc USB30_0_MASTER_CLK>;
162 status = "ok";
163 };
164
165 pcie0: pci@1b500000 {
166 status = "ok";
167 };
168
169 pcie1: pci@1b700000 {
170 status = "ok";
171 };
172
173 nand@1ac00000 {
174 status = "ok";
175
176 pinctrl-0 = <&nand_pins>;
177 pinctrl-names = "default";
178
179 cs0 {
180 reg = <0>;
181 compatible = "qcom,nandcs";
182
183 nand-ecc-strength = <4>;
184 nand-bus-width = <8>;
185 nand-ecc-step-size = <512>;
186
187 partitions {
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 qcadata@0 {
193 label = "qcadata";
194 reg = <0x0000000 0x0c80000>;
195 read-only;
196 };
197
198 APPSBL@c80000 {
199 label = "APPSBL";
200 reg = <0x0c80000 0x0500000>;
201 read-only;
202 };
203
204 APPSBLENV@1180000 {
205 label = "APPSBLENV";
206 reg = <0x1180000 0x0080000>;
207 read-only;
208 };
209
210 art: art@1200000 {
211 label = "art";
212 reg = <0x1200000 0x0140000>;
213 read-only;
214 };
215
216 kernel@1340000 {
217 label = "kernel";
218 reg = <0x1340000 0x0200000>;
219 };
220
221 ubi@1540000 {
222 label = "ubi";
223 reg = <0x1540000 0x1800000>;
224 };
225
226 netgear@2d40000 {
227 label = "netgear";
228 reg = <0x2d40000 0x0c00000>;
229 read-only;
230 };
231
232 reserve@3940000 {
233 label = "reserve";
234 reg = <0x3940000 0x46c0000>;
235 read-only;
236 };
237
238 firmware@1340000 {
239 label = "firmware";
240 reg = <0x1340000 0x1a00000>;
241 };
242 };
243 };
244 };
245
246 mdio0: mdio {
247 compatible = "virtual,mdio-gpio";
248 #address-cells = <1>;
249 #size-cells = <0>;
250 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
251 pinctrl-0 = <&mdio0_pins>;
252 pinctrl-names = "default";
253
254 phy0: ethernet-phy@0 {
255 device_type = "ethernet-phy";
256 reg = <0>;
257 qca,ar8327-initvals = <
258 0x00004 0x7600000 /* PAD0_MODE */
259 0x00008 0x1000000 /* PAD5_MODE */
260 0x0000c 0x80 /* PAD6_MODE */
261 0x000e4 0x6a545 /* MAC_POWER_SEL */
262 0x000e0 0xc74164de /* SGMII_CTRL */
263 0x0007c 0x4e /* PORT0_STATUS */
264 0x00094 0x4e /* PORT6_STATUS */
265 >;
266 };
267
268 phy4: ethernet-phy@4 {
269 device_type = "ethernet-phy";
270 reg = <4>;
271 };
272 };
273
274 gmac1: ethernet@37200000 {
275 status = "ok";
276 phy-mode = "rgmii";
277 qcom,id = <1>;
278
279 pinctrl-0 = <&rgmii2_pins>;
280 pinctrl-names = "default";
281
282 mtd-mac-address = <&art 6>;
283
284 fixed-link {
285 speed = <1000>;
286 full-duplex;
287 };
288 };
289
290 gmac2: ethernet@37400000 {
291 status = "ok";
292 phy-mode = "sgmii";
293 qcom,id = <2>;
294
295 mtd-mac-address = <&art 0>;
296
297 fixed-link {
298 speed = <1000>;
299 full-duplex;
300 };
301 };
302
303 rpm@108000 {
304 pinctrl-0 = <&i2c4_pins>;
305 pinctrl-names = "default";
306 };
307 };
308
309 gpio-keys {
310 compatible = "gpio-keys";
311 pinctrl-0 = <&button_pins>;
312 pinctrl-names = "default";
313
314 wifi {
315 label = "wifi";
316 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
317 linux,code = <KEY_RFKILL>;
318 };
319
320 reset {
321 label = "reset";
322 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
323 linux,code = <KEY_RESTART>;
324 };
325
326 wps {
327 label = "wps";
328 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
329 linux,code = <KEY_WPS_BUTTON>;
330 };
331 };
332
333 gpio-leds {
334 compatible = "gpio-leds";
335 pinctrl-0 = <&led_pins>;
336 pinctrl-names = "default";
337
338 usb1 {
339 label = "r7500:white:usb1";
340 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
341 };
342
343 usb2 {
344 label = "r7500:white:usb2";
345 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
346 };
347
348 power_amber: power_amber {
349 label = "r7500:amber:power";
350 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
351 };
352
353 wan_white {
354 label = "r7500:white:wan";
355 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
356 };
357
358 wan_amber {
359 label = "r7500:amber:wan";
360 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
361 };
362
363 wps {
364 label = "r7500:white:wps";
365 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
366 };
367
368 esata {
369 label = "r7500:white:esata";
370 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
371 };
372
373 power_white: power_white {
374 label = "r7500:white:power";
375 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
376 default-state = "keep";
377 };
378
379 wifi {
380 label = "r7500:white:wifi";
381 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
382 };
383 };
384 };
385
386 &tcsr {
387 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
388 compatible = "qcom,tcsr";
389 };
390
391 &adm_dma {
392 status = "ok";
393 };