ipq806x: enable Linksys EA8500 eth1 interface
[openwrt/staging/aparcar.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 mdio-gpio0 = &mdio0;
26
27 led-boot = &power;
28 led-failsafe = &power;
29 led-running = &power;
30 led-upgrade = &power;
31 };
32
33 chosen {
34 bootargs = "console=ttyMSM0,115200n8";
35 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
36 };
37
38 keys {
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
42
43 wifi {
44 label = "wifi";
45 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RFKILL>;
47 };
48
49 reset {
50 label = "reset";
51 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART >;
53 };
54
55 wps {
56 label = "wps";
57 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
59 };
60 };
61
62 leds {
63 compatible = "gpio-leds";
64 pinctrl-0 = <&led_pins>;
65 pinctrl-names = "default";
66
67 wps {
68 label = "ea8500:green:wps";
69 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
70 };
71
72 power: power {
73 label = "ea8500:white:power";
74 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
75 default-state = "keep";
76 };
77
78 wifi {
79 label = "ea8500:green:wifi";
80 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
81 };
82 };
83 };
84
85 &qcom_pinmux {
86 button_pins: button_pins {
87 mux {
88 pins = "gpio65", "gpio67", "gpio68";
89 function = "gpio";
90 drive-strength = <2>;
91 bias-pull-up;
92 };
93 };
94
95 led_pins: led_pins {
96 mux {
97 pins = "gpio6", "gpio53", "gpio54";
98 function = "gpio";
99 drive-strength = <2>;
100 bias-pull-up;
101 };
102 };
103 };
104
105 &gsbi4 {
106 qcom,mode = <GSBI_PROT_I2C_UART>;
107 status = "okay";
108 serial@16340000 {
109 status = "okay";
110 };
111 /*
112 * The i2c device on gsbi4 should not be enabled.
113 * On ipq806x designs gsbi4 i2c is meant for exclusive
114 * RPM usage. Turning this on in kernel manifests as
115 * i2c failure for the RPM.
116 */
117 };
118
119 &sata_phy {
120 status = "okay";
121 };
122
123 &sata {
124 status = "okay";
125 };
126
127 &usb3_0 {
128 status = "okay";
129 };
130
131 &usb3_1 {
132 status = "okay";
133 };
134
135 &pcie0 {
136 status = "okay";
137 force_gen1 = <1>;
138 };
139
140 &pcie1 {
141 status = "okay";
142 };
143
144 &pcie2 {
145 status = "okay";
146 };
147
148 &nand_controller {
149 status = "okay";
150
151 pinctrl-0 = <&nand_pins>;
152 pinctrl-names = "default";
153
154 nand@0 {
155 reg = <0>;
156 compatible = "qcom,nandcs";
157
158 nand-ecc-strength = <4>;
159 nand-bus-width = <8>;
160 nand-ecc-step-size = <512>;
161
162 partitions {
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 SBL1@0 {
168 label = "SBL1";
169 reg = <0x0000000 0x0040000>;
170 read-only;
171 };
172
173 MIBIB@40000 {
174 label = "MIBIB";
175 reg = <0x0040000 0x0140000>;
176 read-only;
177 };
178
179 SBL2@180000 {
180 label = "SBL2";
181 reg = <0x0180000 0x0140000>;
182 read-only;
183 };
184
185 SBL3@2c0000 {
186 label = "SBL3";
187 reg = <0x02c0000 0x0280000>;
188 read-only;
189 };
190
191 DDRCONFIG@540000 {
192 label = "DDRCONFIG";
193 reg = <0x0540000 0x0120000>;
194 read-only;
195 };
196
197 SSD@660000 {
198 label = "SSD";
199 reg = <0x0660000 0x0120000>;
200 read-only;
201 };
202
203 TZ@780000 {
204 label = "TZ";
205 reg = <0x0780000 0x0280000>;
206 read-only;
207 };
208
209 RPM@a00000 {
210 label = "RPM";
211 reg = <0x0a00000 0x0280000>;
212 read-only;
213 };
214
215 art: art@c80000 {
216 label = "art";
217 reg = <0x0c80000 0x0140000>;
218 read-only;
219 };
220
221 APPSBL@dc0000 {
222 label = "APPSBL";
223 reg = <0x0dc0000 0x0100000>;
224 read-only;
225 };
226
227 u_env@ec0000 {
228 label = "u_env";
229 reg = <0x0ec0000 0x0040000>;
230 };
231
232 s_env@f00000 {
233 label = "s_env";
234 reg = <0x0f00000 0x0040000>;
235 };
236
237 devinfo@f40000 {
238 label = "devinfo";
239 reg = <0x0f40000 0x0040000>;
240 };
241
242 linux@f80000 {
243 label = "kernel1";
244 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
245 };
246
247 rootfs@1280000 {
248 label = "rootfs1";
249 reg = <0x1280000 0x2500000>;
250 };
251
252 linux2@3780000 {
253 label = "kernel2";
254 reg = <0x3780000 0x2800000>;
255 };
256
257 rootfs2@3a80000 {
258 label = "rootfs2";
259 reg = <0x3a80000 0x2500000>;
260 };
261
262 syscfg@5f80000 {
263 label = "syscfg";
264 reg = <0x5f80000 0x2080000>;
265 };
266 };
267 };
268 };
269
270 &mdio0 {
271 status = "okay";
272
273 pinctrl-0 = <&mdio0_pins>;
274 pinctrl-names = "default";
275
276 phy0: ethernet-phy@0 {
277 reg = <0>;
278 qca,ar8327-initvals = <
279 0x00004 0x7600000 /* PAD0_MODE */
280 0x00008 0x1000000 /* PAD5_MODE */
281 0x0000c 0x80 /* PAD6_MODE */
282 0x00010 0x2613a0 /* PWS_REG */
283 0x000e4 0x6a545 /* MAC_POWER_SEL */
284 0x000e0 0xc74164de /* SGMII_CTRL */
285 0x0007c 0x4e /* PORT0_STATUS */
286 0x00094 0x4e /* PORT6_STATUS */
287 >;
288 };
289
290 phy4: ethernet-phy@4 {
291 reg = <4>;
292 };
293 };
294
295 &gmac1 {
296 status = "okay";
297 phy-mode = "rgmii";
298 qcom,id = <1>;
299 qcom,phy_mdio_addr = <4>;
300 qcom,poll_required = <1>;
301 qcom,rgmii_delay = <0>;
302 qcom,emulation = <0>;
303 pinctrl-0 = <&rgmii2_pins>;
304 pinctrl-names = "default";
305 fixed-link {
306 speed = <1000>;
307 full-duplex;
308 };
309 };
310 /* LAN */
311 &gmac2 {
312 status = "okay";
313 phy-mode = "sgmii";
314 qcom,id = <2>;
315 qcom,phy_mdio_addr = <0>; /* none */
316 qcom,poll_required = <0>; /* no polling */
317 qcom,rgmii_delay = <0>;
318 qcom,emulation = <0>;
319 fixed-link {
320 speed = <1000>;
321 full-duplex;
322 };
323 };
324
325 &adm_dma {
326 status = "okay";
327 };