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