1a6b7eb4d67005f2292a01d1ec8d87b086ea411a
[openwrt/openwrt.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 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 &adm_dma {
123 status = "okay";
124 };
125
126 &mdio0 {
127 status = "okay";
128
129 pinctrl-0 = <&mdio0_pins>;
130 pinctrl-names = "default";
131
132 ethernet-phy@0 {
133 reg = <0>;
134 qca,ar8327-initvals = <
135 0x00004 0x06000000 /* PAD0_MODE */
136 0x0000c 0x00080080 /* PAD6_MODE */
137 0x000e4 0x0006a545 /* MAC_POWER_SEL */
138 0x000e0 0xc74164de /* SGMII_CTRL */
139 0x0007c 0x0000004e /* PORT0_STATUS */
140 0x00094 0x0000004e /* PORT6_STATUS */
141 >;
142 };
143
144 ethernet-phy@4 {
145 reg = <4>;
146 };
147 };
148
149 &gmac1 {
150 status = "okay";
151
152 phy-mode = "rgmii";
153 qcom,id = <1>;
154
155 pinctrl-0 = <&rgmii2_pins>;
156 pinctrl-names = "default";
157
158 mtd-mac-address = <&PRODUCTDATA 6>;
159
160 fixed-link {
161 speed = <1000>;
162 full-duplex;
163 };
164 };
165
166 &gmac2 {
167 status = "okay";
168
169 phy-mode = "sgmii";
170 qcom,id = <2>;
171
172 mtd-mac-address = <&PRODUCTDATA 0>;
173
174 fixed-link {
175 speed = <1000>;
176 full-duplex;
177 };
178 };
179
180 &gsbi5 {
181 status = "okay";
182
183 qcom,mode = <GSBI_PROT_SPI>;
184
185 spi@1a280000 {
186 status = "okay";
187
188 pinctrl-0 = <&spi_pins>;
189 pinctrl-names = "default";
190
191 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
192
193 flash@0 {
194 compatible = "jedec,spi-nor";
195 spi-max-frequency = <50000000>;
196 reg = <0>;
197
198 partitions {
199 compatible = "fixed-partitions";
200 #address-cells = <1>;
201 #size-cells = <1>;
202
203 SBL1@0 {
204 label = "SBL1";
205 reg = <0x0 0x20000>;
206 read-only;
207 };
208
209 MIBIB@20000 {
210 label = "MIBIB";
211 reg = <0x20000 0x20000>;
212 read-only;
213 };
214
215 SBL2@40000 {
216 label = "SBL2";
217 reg = <0x40000 0x40000>;
218 read-only;
219 };
220
221 SBL3@80000 {
222 label = "SBL3";
223 reg = <0x80000 0x80000>;
224 read-only;
225 };
226
227 DDRCONFIG@100000 {
228 label = "DDRCONFIG";
229 reg = <0x100000 0x10000>;
230 read-only;
231 };
232
233 SSD@110000 {
234 label = "SSD";
235 reg = <0x110000 0x10000>;
236 read-only;
237 };
238
239 TZ@120000 {
240 label = "TZ";
241 reg = <0x120000 0x80000>;
242 read-only;
243 };
244
245 RPM@1a0000 {
246 label = "RPM";
247 reg = <0x1a0000 0x80000>;
248 read-only;
249 };
250
251 APPSBL@220000 {
252 label = "APPSBL";
253 reg = <0x220000 0x80000>;
254 read-only;
255 };
256
257 APPSBLENV@2a0000 {
258 label = "APPSBLENV";
259 reg = <0x2a0000 0x10000>;
260 };
261
262 PRODUCTDATA: PRODUCTDATA@2b0000 {
263 label = "PRODUCTDATA";
264 reg = <0x2b0000 0x30000>;
265 read-only;
266 };
267
268 ART@2e0000 {
269 label = "ART";
270 reg = <0x2e0000 0x40000>;
271 read-only;
272 };
273
274 TP@320000 {
275 label = "TP";
276 reg = <0x320000 0x40000>;
277 read-only;
278 };
279
280 TINY@360000 {
281 label = "TINY";
282 reg = <0x360000 0x500000>;
283 read-only;
284 };
285
286 firmware@860000 {
287 compatible = "denx,uimage";
288 label = "firmware";
289 reg = <0x860000 0x17a0000>;
290 };
291 };
292 };
293 };
294 };
295
296 &usb3_0 {
297 status = "okay";
298
299 pinctrl-0 = <&usb_pwr_en_pins>;
300 pinctrl-names = "default";
301 };
302
303 &usb3_1 {
304 status = "okay";
305 };
306
307 &pcie0 {
308 status = "okay";
309 };
310
311 &pcie1 {
312 status = "okay";
313 max-link-speed = <1>;
314 };
315
316 &qcom_pinmux {
317 button_pins: button_pins {
318 mux {
319 pins = "gpio16", "gpio54", "gpio24", "gpio25";
320 function = "gpio";
321 drive-strength = <2>;
322 bias-pull-up;
323 };
324 };
325
326 led_pins: led_pins {
327 mux {
328 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio14",
329 "gpio15", "gpio55", "gpio56", "gpio57", "gpio58",
330 "gpio64", "gpio65";
331 function = "gpio";
332 drive-strength = <2>;
333 bias-pull-down;
334 };
335 };
336
337 spi_pins: spi_pins {
338 mux {
339 pins = "gpio18", "gpio19", "gpio21";
340 function = "gsbi5";
341 bias-pull-down;
342 };
343
344 data {
345 pins = "gpio18", "gpio19";
346 drive-strength = <10>;
347 };
348
349 cs {
350 pins = "gpio20";
351 drive-strength = <10>;
352 bias-pull-up;
353 };
354
355 clk {
356 pins = "gpio21";
357 drive-strength = <12>;
358 };
359 };
360
361 usb_pwr_en_pins: usb_pwr_en_pins {
362 mux {
363 pins = "gpio22";
364 function = "gpio";
365 drive-strength = <2>;
366 bias-pull-down;
367 output-high;
368 };
369 };
370 };