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