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