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