940e01439d08ff38ce788553ff4ad8d416378e00
[openwrt/openwrt.git] / target / linux / ipq806x / files / 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 aliases {
15 mdio-gpio0 = &mdio0;
16
17 led-boot = &power_white;
18 led-failsafe = &power_amber;
19 led-running = &power_white;
20 led-upgrade = &power_amber;
21 };
22
23 chosen {
24 bootargs = "rootfstype=squashfs noinitrd";
25 };
26
27 keys {
28 compatible = "gpio-keys";
29 pinctrl-0 = <&button_pins>;
30 pinctrl-names = "default";
31
32 wifi {
33 label = "wifi";
34 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RFKILL>;
36 debounce-interval = <60>;
37 wakeup-source;
38 };
39
40 reset {
41 label = "reset";
42 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 debounce-interval = <60>;
45 wakeup-source;
46 };
47
48 wps {
49 label = "wps";
50 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 debounce-interval = <60>;
53 wakeup-source;
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59 pinctrl-0 = <&led_pins>;
60 pinctrl-names = "default";
61
62 usb1 {
63 label = "white:usb1";
64 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
65 };
66
67 usb2 {
68 label = "white:usb2";
69 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
70 };
71
72 power_amber: power_amber {
73 label = "amber:power";
74 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
75 };
76
77 wan_white {
78 label = "white:wan";
79 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
80 };
81
82 wan_amber {
83 label = "amber:wan";
84 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
85 };
86
87 wps {
88 label = "white:wps";
89 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
90 };
91
92 esata {
93 label = "white:esata";
94 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
95 };
96
97 power_white: power_white {
98 label = "white:power";
99 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
100 default-state = "keep";
101 };
102
103 wifi {
104 label = "white:wifi";
105 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
106 };
107 };
108 };
109
110 &qcom_pinmux {
111 button_pins: button_pins {
112 mux {
113 pins = "gpio6", "gpio54", "gpio65";
114 function = "gpio";
115 drive-strength = <2>;
116 bias-pull-up;
117 };
118 };
119
120 led_pins: led_pins {
121 mux {
122 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
123 "gpio24","gpio26", "gpio53", "gpio64";
124 function = "gpio";
125 drive-strength = <2>;
126 bias-pull-up;
127 };
128 };
129
130 usb0_pwr_en_pins: usb0_pwr_en_pins {
131 mux {
132 pins = "gpio15";
133 function = "gpio";
134 drive-strength = <12>;
135 bias-pull-down;
136 output-high;
137 };
138 };
139
140 usb1_pwr_en_pins: usb1_pwr_en_pins {
141 mux {
142 pins = "gpio16", "gpio68";
143 function = "gpio";
144 drive-strength = <12>;
145 bias-pull-down;
146 output-high;
147 };
148 };
149 };
150
151 &sata_phy {
152 status = "okay";
153 };
154
155 &sata {
156 status = "okay";
157 };
158
159 &usb3_0 {
160 status = "okay";
161
162 pinctrl-0 = <&usb0_pwr_en_pins>;
163 pinctrl-names = "default";
164 };
165
166 &usb3_1 {
167 status = "okay";
168
169 pinctrl-0 = <&usb1_pwr_en_pins>;
170 pinctrl-names = "default";
171 };
172
173 &pcie0 {
174 status = "okay";
175 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
176 pinctrl-0 = <&pcie0_pins>;
177 pinctrl-names = "default";
178
179 bridge@0,0 {
180 reg = <0x00000000 0 0 0 0>;
181 #address-cells = <3>;
182 #size-cells = <2>;
183 ranges;
184
185 wifi@1,0 {
186 compatible = "pci168c,0040";
187 reg = <0x00010000 0 0 0 0>;
188
189 nvmem-cells = <&macaddr_art_6>;
190 nvmem-cell-names = "mac-address";
191 mac-address-increment = <(1)>;
192 };
193 };
194 };
195
196 &pcie1 {
197 status = "okay";
198 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
199 pinctrl-0 = <&pcie1_pins>;
200 pinctrl-names = "default";
201 max-link-speed = <1>;
202
203 bridge@0,0 {
204 reg = <0x00000000 0 0 0 0>;
205 #address-cells = <3>;
206 #size-cells = <2>;
207 ranges;
208
209 wifi@1,0 {
210 compatible = "pci168c,0040";
211 reg = <0x00010000 0 0 0 0>;
212
213 nvmem-cells = <&macaddr_art_6>;
214 nvmem-cell-names = "mac-address";
215 mac-address-increment = <(2)>;
216 };
217 };
218 };
219
220 &nand_controller {
221 status = "okay";
222
223 pinctrl-0 = <&nand_pins>;
224 pinctrl-names = "default";
225
226 #address-cells = <1>;
227 #size-cells = <0>;
228
229 nand@0 {
230 reg = <0>;
231 compatible = "qcom,nandcs";
232
233 nand-ecc-strength = <4>;
234 nand-bus-width = <8>;
235 nand-ecc-step-size = <512>;
236
237 nand-is-boot-medium;
238 qcom,boot_pages_size = <0x1180000>;
239
240 partitions {
241 compatible = "fixed-partitions";
242 #address-cells = <1>;
243 #size-cells = <1>;
244
245 qcadata@0 {
246 label = "qcadata";
247 reg = <0x0000000 0x0c80000>;
248 read-only;
249 };
250
251 APPSBL@c80000 {
252 label = "APPSBL";
253 reg = <0x0c80000 0x0500000>;
254 read-only;
255 };
256
257 APPSBLENV@1180000 {
258 label = "APPSBLENV";
259 reg = <0x1180000 0x0080000>;
260 read-only;
261 };
262
263 art: art@1200000 {
264 label = "art";
265 reg = <0x1200000 0x0140000>;
266 read-only;
267 };
268
269 artbak: art@1340000 {
270 label = "artbak";
271 reg = <0x1340000 0x0140000>;
272 read-only;
273 };
274
275 kernel@1480000 {
276 label = "kernel";
277 reg = <0x1480000 0x0400000>;
278 };
279
280 ubi@1880000 {
281 label = "ubi";
282 reg = <0x1880000 0x1C00000>;
283 };
284
285 netgear@3480000 {
286 label = "netgear";
287 reg = <0x3480000 0x4480000>;
288 read-only;
289 };
290
291 reserve@7900000 {
292 label = "reserve";
293 reg = <0x7900000 0x0700000>;
294 read-only;
295 };
296 };
297 };
298 };
299
300 &mdio0 {
301 status = "okay";
302
303 pinctrl-0 = <&mdio0_pins>;
304 pinctrl-names = "default";
305
306 phy0: ethernet-phy@0 {
307 reg = <0>;
308 qca,ar8327-initvals = <
309 0x00004 0x7600000 /* PAD0_MODE */
310 0x00008 0x1000000 /* PAD5_MODE */
311 0x0000c 0x80 /* PAD6_MODE */
312 0x000e4 0x6a545 /* MAC_POWER_SEL */
313 0x000e0 0xc74164de /* SGMII_CTRL */
314 0x0007c 0x4e /* PORT0_STATUS */
315 0x00094 0x4e /* PORT6_STATUS */
316 >;
317 };
318
319 phy4: ethernet-phy@4 {
320 reg = <4>;
321 };
322 };
323
324 &gmac1 {
325 status = "okay";
326 phy-mode = "rgmii";
327 qcom,id = <1>;
328
329 pinctrl-0 = <&rgmii2_pins>;
330 pinctrl-names = "default";
331
332 nvmem-cells = <&macaddr_art_6>;
333 nvmem-cell-names = "mac-address";
334
335 fixed-link {
336 speed = <1000>;
337 full-duplex;
338 };
339 };
340
341 &gmac2 {
342 status = "okay";
343 phy-mode = "sgmii";
344 qcom,id = <2>;
345
346 nvmem-cells = <&macaddr_art_0>;
347 nvmem-cell-names = "mac-address";
348
349 fixed-link {
350 speed = <1000>;
351 full-duplex;
352 };
353 };
354
355 &adm_dma {
356 status = "okay";
357 };
358
359 &art {
360 compatible = "nvmem-cells";
361 #address-cells = <1>;
362 #size-cells = <1>;
363
364 macaddr_art_0: macaddr@0 {
365 reg = <0x0 0x6>;
366 };
367
368 macaddr_art_6: macaddr@6 {
369 reg = <0x6 0x6>;
370 };
371 };