ipq806x: move further common nodes to the DTSI files
[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 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 };
37
38 reset {
39 label = "reset";
40 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43
44 wps {
45 label = "wps";
46 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_WPS_BUTTON>;
48 };
49 };
50
51 leds {
52 compatible = "gpio-leds";
53 pinctrl-0 = <&led_pins>;
54 pinctrl-names = "default";
55
56 usb1 {
57 label = "d7800:white:usb1";
58 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
59 };
60
61 usb2 {
62 label = "d7800:white:usb2";
63 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
64 };
65
66 power_amber: power_amber {
67 label = "d7800:amber:power";
68 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
69 };
70
71 wan_white {
72 label = "d7800:white:wan";
73 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
74 };
75
76 wan_amber {
77 label = "d7800:amber:wan";
78 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
79 };
80
81 wps {
82 label = "d7800:white:wps";
83 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
84 };
85
86 esata {
87 label = "d7800:white:esata";
88 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
89 };
90
91 power_white: power_white {
92 label = "d7800:white:power";
93 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
94 default-state = "keep";
95 };
96
97 wifi {
98 label = "d7800:white:wifi";
99 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
100 };
101 };
102 };
103
104 &qcom_pinmux {
105 button_pins: button_pins {
106 mux {
107 pins = "gpio6", "gpio54", "gpio65";
108 function = "gpio";
109 drive-strength = <2>;
110 bias-pull-up;
111 };
112 };
113
114 led_pins: led_pins {
115 mux {
116 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
117 "gpio24","gpio26", "gpio53", "gpio64";
118 function = "gpio";
119 drive-strength = <2>;
120 bias-pull-up;
121 };
122 };
123
124 usb0_pwr_en_pins: usb0_pwr_en_pins {
125 mux {
126 pins = "gpio15";
127 function = "gpio";
128 drive-strength = <12>;
129 bias-pull-down;
130 output-high;
131 };
132 };
133
134 usb1_pwr_en_pins: usb1_pwr_en_pins {
135 mux {
136 pins = "gpio16", "gpio68";
137 function = "gpio";
138 drive-strength = <12>;
139 bias-pull-down;
140 output-high;
141 };
142 };
143 };
144
145 &sata_phy {
146 status = "okay";
147 };
148
149 &sata {
150 status = "okay";
151 };
152
153 &usb3_0 {
154 status = "okay";
155
156 pinctrl-0 = <&usb0_pwr_en_pins>;
157 pinctrl-names = "default";
158 };
159
160 &usb3_1 {
161 status = "okay";
162
163 pinctrl-0 = <&usb1_pwr_en_pins>;
164 pinctrl-names = "default";
165 };
166
167 &pcie0 {
168 status = "okay";
169 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
170 pinctrl-0 = <&pcie0_pins>;
171 pinctrl-names = "default";
172 };
173
174 &pcie1 {
175 status = "okay";
176 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
177 pinctrl-0 = <&pcie1_pins>;
178 pinctrl-names = "default";
179 force_gen1 = <1>;
180 };
181
182 &nand_controller {
183 status = "okay";
184
185 pinctrl-0 = <&nand_pins>;
186 pinctrl-names = "default";
187
188 #address-cells = <1>;
189 #size-cells = <0>;
190
191 nand@0 {
192 reg = <0>;
193 compatible = "qcom,nandcs";
194
195 nand-ecc-strength = <4>;
196 nand-bus-width = <8>;
197 nand-ecc-step-size = <512>;
198
199 partitions {
200 compatible = "fixed-partitions";
201 #address-cells = <1>;
202 #size-cells = <1>;
203
204 qcadata@0 {
205 label = "qcadata";
206 reg = <0x0000000 0x0c80000>;
207 read-only;
208 };
209
210 APPSBL@c80000 {
211 label = "APPSBL";
212 reg = <0x0c80000 0x0500000>;
213 read-only;
214 };
215
216 APPSBLENV@1180000 {
217 label = "APPSBLENV";
218 reg = <0x1180000 0x0080000>;
219 read-only;
220 };
221
222 art: art@1200000 {
223 label = "art";
224 reg = <0x1200000 0x0140000>;
225 read-only;
226 };
227
228 artbak: art@1340000 {
229 label = "artbak";
230 reg = <0x1340000 0x0140000>;
231 read-only;
232 };
233
234 kernel@1480000 {
235 label = "kernel";
236 reg = <0x1480000 0x0400000>;
237 };
238
239 ubi@1880000 {
240 label = "ubi";
241 reg = <0x1880000 0x1C00000>;
242 };
243
244 netgear@3480000 {
245 label = "netgear";
246 reg = <0x3480000 0x4480000>;
247 read-only;
248 };
249
250 reserve@7900000 {
251 label = "reserve";
252 reg = <0x7900000 0x0700000>;
253 read-only;
254 };
255 };
256 };
257 };
258
259 &mdio0 {
260 status = "okay";
261
262 pinctrl-0 = <&mdio0_pins>;
263 pinctrl-names = "default";
264
265 phy0: ethernet-phy@0 {
266 reg = <0>;
267 qca,ar8327-initvals = <
268 0x00004 0x7600000 /* PAD0_MODE */
269 0x00008 0x1000000 /* PAD5_MODE */
270 0x0000c 0x80 /* PAD6_MODE */
271 0x000e4 0x6a545 /* MAC_POWER_SEL */
272 0x000e0 0xc74164de /* SGMII_CTRL */
273 0x0007c 0x4e /* PORT0_STATUS */
274 0x00094 0x4e /* PORT6_STATUS */
275 >;
276 };
277
278 phy4: ethernet-phy@4 {
279 reg = <4>;
280 };
281 };
282
283 &gmac1 {
284 status = "okay";
285 phy-mode = "rgmii";
286 phy-handle = <&phy4>;
287 qcom,id = <1>;
288
289 pinctrl-0 = <&rgmii2_pins>;
290 pinctrl-names = "default";
291
292 mtd-mac-address = <&art 6>;
293 };
294
295 &gmac2 {
296 status = "okay";
297 phy-mode = "sgmii";
298 qcom,id = <2>;
299
300 mtd-mac-address = <&art 0>;
301
302 fixed-link {
303 speed = <1000>;
304 full-duplex;
305 };
306 };
307
308 &adm_dma {
309 status = "okay";
310 };