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