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