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