ipq806x: move common pinmux nodes to SoC DTSI
[openwrt/staging/chunkeey.git] / target / linux / ipq806x / files-5.4 / arch / arm / boot / dts / qcom-ipq8064-wg2600hp.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "NEC Aterm WG2600HP";
7 compatible = "nec,wg2600hp", "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
24 aliases {
25 serial0 = &gsbi4_serial;
26 mdio-gpio0 = &mdio0;
27
28 led-boot = &power_green;
29 led-failsafe = &power_red;
30 led-running = &power_green;
31 led-upgrade = &power_green;
32 };
33
34 chosen {
35 stdout-path = "serial0:115200n8";
36 };
37
38 keys {
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
42
43 wps {
44 label = "wps";
45 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48
49 reset {
50 label = "reset";
51 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54
55 bridge {
56 label = "bridge";
57 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
58 linux,code = <BTN_0>;
59 linux,input-type = <EV_SW>;
60 };
61
62 converter {
63 label = "converter";
64 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
65 linux,code = <BTN_0>;
66 linux,input-type = <EV_SW>;
67 };
68 };
69
70 leds {
71 compatible = "gpio-leds";
72 pinctrl-0 = <&led_pins>;
73 pinctrl-names = "default";
74
75 converter_green {
76 label = "wg2600hp:green:converter";
77 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
78 };
79
80 power_red: power_red {
81 label = "wg2600hp:red:power";
82 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
83 };
84
85 active_green {
86 label = "wg2600hp:green:active";
87 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
88 };
89
90 active_red {
91 label = "wg2600hp:red:active";
92 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
93 };
94
95 power_green: power_green {
96 label = "wg2600hp:green:power";
97 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
98 };
99
100 converter_red {
101 label = "wg2600hp:red:converter";
102 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
103 };
104
105 wlan2g_green {
106 label = "wg2600hp:green:wlan2g";
107 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
108 };
109
110 wlan2g_red {
111 label = "wg2600hp:red:wlan2g";
112 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
113 };
114
115 wlan5g_green {
116 label = "wg2600hp:green:wlan5g";
117 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
118 };
119
120 wlan5g_red {
121 label = "wg2600hp:red:wlan5g";
122 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
123 };
124
125 tv_green {
126 label = "wg2600hp:green:tv";
127 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
128 };
129
130 tv_red {
131 label = "wg2600hp:red:tv";
132 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_HIGH>;
133 };
134 };
135 };
136
137 &adm_dma {
138 status = "okay";
139 };
140
141 &mdio0 {
142 status = "okay";
143
144 pinctrl-0 = <&mdio0_pins>;
145 pinctrl-names = "default";
146
147 ethernet-phy@0 {
148 reg = <0>;
149 qca,ar8327-initvals = <
150 0x00004 0x06000000 /* PAD0_MODE */
151 0x0000c 0x00080080 /* PAD6_MODE */
152 0x000e4 0x0006a545 /* MAC_POWER_SEL */
153 0x000e0 0xc74164de /* SGMII_CTRL */
154 0x0007c 0x0000004e /* PORT0_STATUS */
155 0x00094 0x0000004e /* PORT6_STATUS */
156 >;
157 };
158
159 ethernet-phy@4 {
160 reg = <4>;
161 };
162 };
163
164 &gmac1 {
165 status = "okay";
166
167 phy-mode = "rgmii";
168 qcom,id = <1>;
169
170 pinctrl-0 = <&rgmii2_pins>;
171 pinctrl-names = "default";
172
173 mtd-mac-address = <&PRODUCTDATA 6>;
174
175 fixed-link {
176 speed = <1000>;
177 full-duplex;
178 };
179 };
180
181 &gmac2 {
182 status = "okay";
183
184 phy-mode = "sgmii";
185 qcom,id = <2>;
186
187 mtd-mac-address = <&PRODUCTDATA 0>;
188
189 fixed-link {
190 speed = <1000>;
191 full-duplex;
192 };
193 };
194
195 &gsbi4 {
196 status = "okay";
197 qcom,mode = <GSBI_PROT_I2C_UART>;
198 };
199
200 &gsbi4_serial {
201 status = "okay";
202 };
203
204 &gsbi5 {
205 status = "okay";
206
207 qcom,mode = <GSBI_PROT_SPI>;
208
209 spi@1a280000 {
210 status = "okay";
211
212 pinctrl-0 = <&spi_pins>;
213 pinctrl-names = "default";
214
215 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
216
217 flash@0 {
218 compatible = "jedec,spi-nor";
219 spi-max-frequency = <50000000>;
220 reg = <0>;
221
222 partitions {
223 compatible = "fixed-partitions";
224 #address-cells = <1>;
225 #size-cells = <1>;
226
227 SBL1@0 {
228 label = "SBL1";
229 reg = <0x0 0x20000>;
230 read-only;
231 };
232
233 MIBIB@20000 {
234 label = "MIBIB";
235 reg = <0x20000 0x20000>;
236 read-only;
237 };
238
239 SBL2@40000 {
240 label = "SBL2";
241 reg = <0x40000 0x40000>;
242 read-only;
243 };
244
245 SBL3@80000 {
246 label = "SBL3";
247 reg = <0x80000 0x80000>;
248 read-only;
249 };
250
251 DDRCONFIG@100000 {
252 label = "DDRCONFIG";
253 reg = <0x100000 0x10000>;
254 read-only;
255 };
256
257 SSD@110000 {
258 label = "SSD";
259 reg = <0x110000 0x10000>;
260 read-only;
261 };
262
263 TZ@120000 {
264 label = "TZ";
265 reg = <0x120000 0x80000>;
266 read-only;
267 };
268
269 RPM@1a0000 {
270 label = "RPM";
271 reg = <0x1a0000 0x80000>;
272 read-only;
273 };
274
275 APPSBL@220000 {
276 label = "APPSBL";
277 reg = <0x220000 0x80000>;
278 read-only;
279 };
280
281 APPSBLENV@2a0000 {
282 label = "APPSBLENV";
283 reg = <0x2a0000 0x10000>;
284 };
285
286 PRODUCTDATA: PRODUCTDATA@2b0000 {
287 label = "PRODUCTDATA";
288 reg = <0x2b0000 0x30000>;
289 read-only;
290 };
291
292 ART@2e0000 {
293 label = "ART";
294 reg = <0x2e0000 0x40000>;
295 read-only;
296 };
297
298 TP@320000 {
299 label = "TP";
300 reg = <0x320000 0x40000>;
301 read-only;
302 };
303
304 TINY@360000 {
305 label = "TINY";
306 reg = <0x360000 0x500000>;
307 read-only;
308 };
309
310 firmware@860000 {
311 compatible = "denx,uimage";
312 label = "firmware";
313 reg = <0x860000 0x17a0000>;
314 };
315 };
316 };
317 };
318 };
319
320 &usb3_0 {
321 status = "okay";
322
323 pinctrl-0 = <&usb_pwr_en_pins>;
324 pinctrl-names = "default";
325 };
326
327 &usb3_1 {
328 status = "okay";
329 };
330
331 &pcie0 {
332 status = "okay";
333 };
334
335 &pcie1 {
336 status = "okay";
337 force_gen1 = <1>;
338 };
339
340 &qcom_pinmux {
341 button_pins: button_pins {
342 mux {
343 pins = "gpio16", "gpio54", "gpio24", "gpio25";
344 function = "gpio";
345 drive-strength = <2>;
346 bias-pull-up;
347 };
348 };
349
350 led_pins: led_pins {
351 mux {
352 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio14",
353 "gpio15", "gpio55", "gpio56", "gpio57", "gpio58",
354 "gpio64", "gpio65";
355 function = "gpio";
356 drive-strength = <2>;
357 bias-pull-down;
358 };
359 };
360
361 spi_pins: spi_pins {
362 mux {
363 pins = "gpio18", "gpio19", "gpio21";
364 function = "gsbi5";
365 bias-pull-down;
366 };
367
368 data {
369 pins = "gpio18", "gpio19";
370 drive-strength = <10>;
371 };
372
373 cs {
374 pins = "gpio20";
375 drive-strength = <10>;
376 bias-pull-up;
377 };
378
379 clk {
380 pins = "gpio21";
381 drive-strength = <12>;
382 };
383 };
384
385 usb_pwr_en_pins: usb_pwr_en_pins {
386 mux {
387 pins = "gpio22";
388 function = "gpio";
389 drive-strength = <2>;
390 bias-pull-down;
391 output-high;
392 };
393 };
394 };