ipq806x: use new usb3 implementation
[openwrt/staging/stintel.git] / target / linux / ipq806x / files-4.19 / arch / arm / boot / dts / qcom-ipq8064-ea8500.dts
1 #include "qcom-ipq8064-v2.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 model = "Linksys EA8500 WiFi Router";
7 compatible = "linksys,ea8500", "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;
29 led-failsafe = &power;
30 led-running = &power;
31 led-upgrade = &power;
32 };
33
34 chosen {
35 bootargs = "console=ttyMSM0,115200n8";
36 stdout-path = "serial0:115200n8";
37 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
38 };
39
40 soc {
41 pinmux@800000 {
42 button_pins: button_pins {
43 mux {
44 pins = "gpio65", "gpio67", "gpio68";
45 function = "gpio";
46 drive-strength = <2>;
47 bias-pull-up;
48 };
49 };
50
51 i2c4_pins: i2c4_pinmux {
52 mux {
53 pins = "gpio12", "gpio13";
54 function = "gsbi4";
55 drive-strength = <12>;
56 bias-disable;
57 };
58 };
59
60 led_pins: led_pins {
61 mux {
62 pins = "gpio6", "gpio53", "gpio54";
63 function = "gpio";
64 drive-strength = <2>;
65 bias-pull-up;
66 };
67 };
68
69 mdio0_pins: mdio0_pins {
70 mux {
71 pins = "gpio0", "gpio1";
72 function = "gpio";
73 drive-strength = <8>;
74 bias-disable;
75 };
76 };
77
78 nand_pins: nand_pins {
79 mux {
80 pins = "gpio34", "gpio35", "gpio36",
81 "gpio37", "gpio38", "gpio39",
82 "gpio40", "gpio41", "gpio42",
83 "gpio43", "gpio44", "gpio45",
84 "gpio46", "gpio47";
85 function = "nand";
86 drive-strength = <10>;
87 bias-disable;
88 };
89 pullups {
90 pins = "gpio39";
91 bias-pull-up;
92 };
93 hold {
94 pins = "gpio40", "gpio41", "gpio42",
95 "gpio43", "gpio44", "gpio45",
96 "gpio46", "gpio47";
97 bias-bus-hold;
98 };
99 };
100
101 rgmii2_pins: rgmii2_pins {
102 mux {
103 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
105 function = "rgmii2";
106 drive-strength = <8>;
107 bias-disable;
108 };
109 };
110 };
111
112 gsbi@16300000 {
113 qcom,mode = <GSBI_PROT_I2C_UART>;
114 status = "okay";
115 serial@16340000 {
116 status = "okay";
117 };
118 /*
119 * The i2c device on gsbi4 should not be enabled.
120 * On ipq806x designs gsbi4 i2c is meant for exclusive
121 * RPM usage. Turning this on in kernel manifests as
122 * i2c failure for the RPM.
123 */
124 };
125
126 sata-phy@1b400000 {
127 status = "okay";
128 };
129
130 sata@29000000 {
131 status = "okay";
132 };
133
134 usb3_0: usb3@110f8800 {
135 status = "okay";
136 };
137
138 usb3_1: usb3@100f8800 {
139 status = "okay";
140 };
141
142 pcie0: pci@1b500000 {
143 status = "okay";
144 force_gen1 = <1>;
145 };
146
147 pcie1: pci@1b700000 {
148 status = "okay";
149 };
150
151 pcie2: pci@1b900000 {
152 status = "okay";
153 };
154
155 nand@1ac00000 {
156 status = "okay";
157
158 pinctrl-0 = <&nand_pins>;
159 pinctrl-names = "default";
160
161 cs0 {
162 reg = <0>;
163 compatible = "qcom,nandcs";
164
165 nand-ecc-strength = <4>;
166 nand-bus-width = <8>;
167 nand-ecc-step-size = <512>;
168
169 partitions {
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
172 #size-cells = <1>;
173
174 SBL1@0 {
175 label = "SBL1";
176 reg = <0x0000000 0x0040000>;
177 read-only;
178 };
179
180 MIBIB@40000 {
181 label = "MIBIB";
182 reg = <0x0040000 0x0140000>;
183 read-only;
184 };
185
186 SBL2@180000 {
187 label = "SBL2";
188 reg = <0x0180000 0x0140000>;
189 read-only;
190 };
191
192 SBL3@2c0000 {
193 label = "SBL3";
194 reg = <0x02c0000 0x0280000>;
195 read-only;
196 };
197
198 DDRCONFIG@540000 {
199 label = "DDRCONFIG";
200 reg = <0x0540000 0x0120000>;
201 read-only;
202 };
203
204 SSD@660000 {
205 label = "SSD";
206 reg = <0x0660000 0x0120000>;
207 read-only;
208 };
209
210 TZ@780000 {
211 label = "TZ";
212 reg = <0x0780000 0x0280000>;
213 read-only;
214 };
215
216 RPM@a00000 {
217 label = "RPM";
218 reg = <0x0a00000 0x0280000>;
219 read-only;
220 };
221
222 art: art@c80000 {
223 label = "art";
224 reg = <0x0c80000 0x0140000>;
225 read-only;
226 };
227
228 APPSBL@dc0000 {
229 label = "APPSBL";
230 reg = <0x0dc0000 0x0100000>;
231 read-only;
232 };
233
234 u_env@ec0000 {
235 label = "u_env";
236 reg = <0x0ec0000 0x0040000>;
237 };
238
239 s_env@f00000 {
240 label = "s_env";
241 reg = <0x0f00000 0x0040000>;
242 };
243
244 devinfo@f40000 {
245 label = "devinfo";
246 reg = <0x0f40000 0x0040000>;
247 };
248
249 linux@f80000 {
250 label = "kernel1";
251 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
252 };
253
254 rootfs@1280000 {
255 label = "rootfs1";
256 reg = <0x1280000 0x2500000>;
257 };
258
259 linux2@3780000 {
260 label = "kernel2";
261 reg = <0x3780000 0x2800000>;
262 };
263
264 rootfs2@3a80000 {
265 label = "rootfs2";
266 reg = <0x3a80000 0x2500000>;
267 };
268
269 syscfg@5f80000 {
270 label = "syscfg";
271 reg = <0x5f80000 0x2080000>;
272 };
273 };
274 };
275 };
276
277 mdio0: mdio {
278 compatible = "virtual,mdio-gpio";
279 #address-cells = <1>;
280 #size-cells = <0>;
281 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
282 pinctrl-0 = <&mdio0_pins>;
283 pinctrl-names = "default";
284
285 phy0: ethernet-phy@0 {
286 reg = <0>;
287 qca,ar8327-initvals = <
288 0x00004 0x7600000 /* PAD0_MODE */
289 0x00008 0x1000000 /* PAD5_MODE */
290 0x0000c 0x80 /* PAD6_MODE */
291 0x000e4 0x6a545 /* MAC_POWER_SEL */
292 0x000e0 0xc74164de /* SGMII_CTRL */
293 0x0007c 0x4e /* PORT0_STATUS */
294 0x00094 0x4e /* PORT6_STATUS */
295 >;
296 };
297
298 phy4: ethernet-phy@4 {
299 reg = <4>;
300 };
301 };
302
303 gmac1: ethernet@37200000 {
304 status = "okay";
305 phy-mode = "rgmii";
306 qcom,id = <1>;
307 qcom,phy_mdio_addr = <4>;
308 qcom,poll_required = <1>;
309 qcom,rgmii_delay = <0>;
310 qcom,emulation = <0>;
311 pinctrl-0 = <&rgmii2_pins>;
312 pinctrl-names = "default";
313 fixed-link {
314 speed = <1000>;
315 full-duplex;
316 };
317 };
318 //lan
319 gmac2: ethernet@37400000 {
320 status = "okay";
321 phy-mode = "sgmii";
322 qcom,id = <2>;
323 qcom,phy_mdio_addr = <0>; /* none */
324 qcom,poll_required = <0>; /* no polling */
325 qcom,rgmii_delay = <0>;
326 qcom,emulation = <0>;
327 fixed-link {
328 speed = <1000>;
329 full-duplex;
330 };
331 };
332
333 adm_dma: dma@18300000 {
334 status = "okay";
335 };
336 };
337
338 keys {
339 compatible = "gpio-keys";
340 pinctrl-0 = <&button_pins>;
341 pinctrl-names = "default";
342
343 wifi {
344 label = "wifi";
345 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
346 linux,code = <KEY_RFKILL>;
347 };
348
349 reset {
350 label = "reset";
351 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
352 linux,code = <KEY_RESTART >;
353 };
354
355 wps {
356 label = "wps";
357 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
358 linux,code = <KEY_WPS_BUTTON>;
359 };
360 };
361
362 leds {
363 compatible = "gpio-leds";
364 pinctrl-0 = <&led_pins>;
365 pinctrl-names = "default";
366
367 wps {
368 label = "ea8500:green:wps";
369 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
370 };
371
372 power: power {
373 label = "ea8500:white:power";
374 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
375 default-state = "keep";
376 };
377
378 wifi {
379 label = "ea8500:green:wifi";
380 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
381 };
382 };
383 };
384