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