ipq806x: add v4.9 support
[openwrt/staging/yousong.git] / target / linux / ipq806x / files-4.4 / 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 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 = "ok";
115 serial@16340000 {
116 status = "ok";
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 = "ok";
128 };
129
130 sata@29000000 {
131 status = "ok";
132 };
133
134 phy@100f8800 { /* USB3 port 1 HS phy */
135 status = "ok";
136 };
137
138 phy@100f8830 { /* USB3 port 1 SS phy */
139 status = "ok";
140 };
141
142 phy@110f8800 { /* USB3 port 0 HS phy */
143 status = "ok";
144 };
145
146 phy@110f8830 { /* USB3 port 0 SS phy */
147 status = "ok";
148 };
149
150 usb30@0 {
151 status = "ok";
152 };
153
154 usb30@1 {
155 status = "ok";
156 };
157
158 pcie0: pci@1b500000 {
159 status = "ok";
160 phy-tx0-term-offset = <7>;
161 };
162
163 pcie1: pci@1b700000 {
164 status = "ok";
165 phy-tx0-term-offset = <7>;
166 };
167
168 pcie2: pci@1b900000 {
169 status = "ok";
170 phy-tx0-term-offset = <7>;
171 };
172
173 nand@1ac00000 {
174 status = "ok";
175
176 pinctrl-0 = <&nand_pins>;
177 pinctrl-names = "default";
178
179 nand-ecc-strength = <4>;
180 nand-bus-width = <8>;
181
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 SBL1@0 {
186 label = "SBL1";
187 reg = <0x0000000 0x0040000>;
188 read-only;
189 };
190
191 MIBIB@40000 {
192 label = "MIBIB";
193 reg = <0x0040000 0x0140000>;
194 read-only;
195 };
196
197 SBL2@180000 {
198 label = "SBL2";
199 reg = <0x0180000 0x0140000>;
200 read-only;
201 };
202
203 SBL3@2c0000 {
204 label = "SBL3";
205 reg = <0x02c0000 0x0280000>;
206 read-only;
207 };
208
209 DDRCONFIG@540000 {
210 label = "DDRCONFIG";
211 reg = <0x0540000 0x0120000>;
212 read-only;
213 };
214
215 SSD@660000 {
216 label = "SSD";
217 reg = <0x0660000 0x0120000>;
218 read-only;
219 };
220
221 TZ@780000 {
222 label = "TZ";
223 reg = <0x0780000 0x0280000>;
224 read-only;
225 };
226
227 RPM@a00000 {
228 label = "RPM";
229 reg = <0x0a00000 0x0280000>;
230 read-only;
231 };
232
233 art: art@c80000 {
234 label = "art";
235 reg = <0x0c80000 0x0140000>;
236 read-only;
237 };
238
239 APPSBL@dc0000 {
240 label = "APPSBL";
241 reg = <0x0dc0000 0x0100000>;
242 read-only;
243 };
244
245 u_env@ec0000 {
246 label = "u_env";
247 reg = <0x0ec0000 0x0040000>;
248 };
249
250 s_env@f00000 {
251 label = "s_env";
252 reg = <0x0f00000 0x0040000>;
253 };
254
255 devinfo@f40000 {
256 label = "devinfo";
257 reg = <0x0f40000 0x0040000>;
258 };
259
260 linux@f80000 {
261 label = "kernel1";
262 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
263 };
264
265 rootfs@1280000 {
266 label = "rootfs1";
267 reg = <0x1280000 0x2500000>;
268 };
269
270 linux2@3780000 {
271 label = "kernel2";
272 reg = <0x3780000 0x2800000>;
273 };
274
275 rootfs2@3a80000 {
276 label = "rootfs2";
277 reg = <0x3a80000 0x2500000>;
278 };
279
280 syscfg@5f80000 {
281 label = "syscfg";
282 reg = <0x5f80000 0x2080000>;
283 };
284 };
285
286 mdio0: mdio {
287 compatible = "virtual,mdio-gpio";
288 #address-cells = <1>;
289 #size-cells = <0>;
290 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
291 pinctrl-0 = <&mdio0_pins>;
292 pinctrl-names = "default";
293
294 phy0: ethernet-phy@0 {
295 device_type = "ethernet-phy";
296 reg = <0>;
297 qca,ar8327-initvals = <
298 0x00004 0x7600000 /* PAD0_MODE */
299 0x00008 0x1000000 /* PAD5_MODE */
300 0x0000c 0x80 /* PAD6_MODE */
301 0x000e4 0x6a545 /* MAC_POWER_SEL */
302 0x000e0 0xc74164de /* SGMII_CTRL */
303 0x0007c 0x4e /* PORT0_STATUS */
304 0x00094 0x4e /* PORT6_STATUS */
305 >;
306 };
307
308 phy4: ethernet-phy@4 {
309 device_type = "ethernet-phy";
310 reg = <4>;
311 };
312 };
313
314 gmac1: ethernet@37200000 {
315 status = "ok";
316 phy-mode = "rgmii";
317 qcom,id = <1>;
318 qcom,phy_mdio_addr = <4>;
319 qcom,poll_required = <1>;
320 qcom,rgmii_delay = <0>;
321 qcom,emulation = <0>;
322 pinctrl-0 = <&rgmii2_pins>;
323 pinctrl-names = "default";
324 fixed-link {
325 speed = <1000>;
326 full-duplex;
327 };
328 };
329 //lan
330 gmac2: ethernet@37400000 {
331 status = "ok";
332 phy-mode = "sgmii";
333 qcom,id = <2>;
334 qcom,phy_mdio_addr = <0>; /* none */
335 qcom,poll_required = <0>; /* no polling */
336 qcom,rgmii_delay = <0>;
337 qcom,emulation = <0>;
338 fixed-link {
339 speed = <1000>;
340 full-duplex;
341 };
342 };
343
344 rpm@108000 {
345 pinctrl-0 = <&i2c4_pins>;
346 pinctrl-names = "default";
347 };
348
349 adm_dma: dma@18300000 {
350 status = "ok";
351 };
352 };
353
354 gpio-keys {
355 compatible = "gpio-keys";
356 pinctrl-0 = <&button_pins>;
357 pinctrl-names = "default";
358
359 wifi {
360 label = "wifi";
361 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
362 linux,code = <KEY_RFKILL>;
363 };
364
365 reset {
366 label = "reset";
367 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
368 linux,code = <KEY_RESTART >;
369 };
370
371 wps {
372 label = "wps";
373 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
374 linux,code = <KEY_WPS_BUTTON>;
375 };
376 };
377
378 gpio-leds {
379 compatible = "gpio-leds";
380 pinctrl-0 = <&led_pins>;
381 pinctrl-names = "default";
382
383 wps {
384 label = "ea8500:green:wps";
385 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
386 };
387
388 power: power {
389 label = "ea8500:white:power";
390 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
391 default-state = "keep";
392 };
393
394 wifi {
395 label = "ea8500:green:wifi";
396 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
397 };
398 };
399 };