ARM: dts: lpc4357-ea4357: add emc pins and static memory devices
[deliverable/linux.git] / arch / arm / boot / dts / lpc4357-ea4357-devkit.dts
1 /*
2 * Embedded Artist LPC4357 Developer's Kit
3 *
4 * Copyright 2015 Joachim Eastwood <manabian@gmail.com>
5 *
6 * This code is released using a dual license strategy: BSD/GPL
7 * You can choose the licence that better fits your requirements.
8 *
9 * Released under the terms of 3-clause BSD License
10 * Released under the terms of GNU General Public License Version 2.0
11 *
12 */
13 /dts-v1/;
14
15 #include "lpc18xx.dtsi"
16 #include "lpc4357.dtsi"
17
18 #include "dt-bindings/input/input.h"
19 #include "dt-bindings/gpio/gpio.h"
20
21 / {
22 model = "Embedded Artists' LPC4357 Developer's Kit";
23 compatible = "ea,lpc4357-developers-kit", "nxp,lpc4357", "nxp,lpc4350";
24
25 aliases {
26 serial0 = &uart0;
27 serial1 = &uart1;
28 serial2 = &uart2;
29 serial3 = &uart3;
30 };
31
32 chosen {
33 stdout-path = &uart0;
34 };
35
36 memory {
37 device_type = "memory";
38 reg = <0x28000000 0x2000000>; /* 32 MB */
39 };
40
41 /* vmmc is controlled by sdmmc host internally */
42 vmmc: vmmc_fixed {
43 compatible = "regulator-fixed";
44 regulator-name = "vmmc-supply";
45 regulator-min-microvolt = <3300000>;
46 regulator-max-microvolt = <3300000>;
47 };
48
49 gpio_joystick {
50 compatible = "gpio-keys-polled";
51 pinctrl-names = "default";
52 pinctrl-0 = <&gpio_joystick_pins>;
53 #address-cells = <1>;
54 #size-cells = <0>;
55 poll-interval = <100>;
56 autorepeat;
57
58 button@0 {
59 label = "joy_enter";
60 linux,code = <KEY_ENTER>;
61 gpios = <&gpio LPC_GPIO(4,8) GPIO_ACTIVE_LOW>;
62 };
63
64 button@1 {
65 label = "joy_left";
66 linux,code = <KEY_LEFT>;
67 gpios = <&gpio LPC_GPIO(4,9) GPIO_ACTIVE_LOW>;
68 };
69
70 button@2 {
71 label = "joy_up";
72 linux,code = <KEY_UP>;
73 gpios = <&gpio LPC_GPIO(4,10) GPIO_ACTIVE_LOW>;
74 };
75
76 button@3 {
77 label = "joy_right";
78 linux,code = <KEY_RIGHT>;
79 gpios = <&gpio LPC_GPIO(4,12) GPIO_ACTIVE_LOW>;
80 };
81
82 button@4 {
83 label = "joy_down";
84 linux,code = <KEY_DOWN>;
85 gpios = <&gpio LPC_GPIO(4,13) GPIO_ACTIVE_LOW>;
86 };
87 };
88 };
89
90 &pinctrl {
91 emc_pins: emc-pins {
92 emc_addr0_23_cfg {
93 pins = "p2_9", "p2_10", "p2_11", "p2_12",
94 "p2_13", "p1_0", "p1_1", "p1_2",
95 "p2_8", "p2_7", "p2_6", "p2_2",
96 "p2_1", "p2_0", "p6_8", "p6_7",
97 "pd_16", "pd_15", "pe_0", "pe_1",
98 "pe_2", "pe_3", "pe_4", "pa_4";
99 function = "emc";
100 slew-rate = <1>;
101 bias-disable;
102 input-enable;
103 input-schmitt-disable;
104 };
105
106 emc_data0_31_cfg {
107 pins = "p1_7", "p1_8", "p1_9", "p1_10",
108 "p1_11", "p1_12", "p1_13", "p1_14",
109 "p5_4", "p5_5", "p5_6", "p5_7",
110 "p5_0", "p5_1", "p5_2", "p5_3",
111 "pd_2", "pd_3", "pd_4", "pd_5",
112 "pd_6", "pd_7", "pd_8", "pd_9",
113 "pe_5", "pe_6", "pe_7", "pe_8",
114 "pe_9", "pe_10", "pe_11", "pe_12";
115 function = "emc";
116 slew-rate = <1>;
117 bias-disable;
118 input-enable;
119 input-schmitt-disable;
120 };
121
122 emc_we_oe_cfg {
123 pins = "p1_6", "p1_3";
124 function = "emc";
125 slew-rate = <1>;
126 bias-disable;
127 input-enable;
128 input-schmitt-disable;
129 };
130
131 emc_bls0_3_cfg {
132 pins = "p1_4", "p6_6", "pd_13", "pd_10";
133 function = "emc";
134 slew-rate = <1>;
135 bias-disable;
136 input-enable;
137 input-schmitt-disable;
138 };
139
140 emc_cs0_3_cfg {
141 pins = "p1_5", "p6_3", "pd_12", "pd_11";
142 function = "emc";
143 slew-rate = <1>;
144 bias-disable;
145 input-enable;
146 input-schmitt-disable;
147 };
148
149 emc_sdram_dqm0_3_cfg {
150 pins = "p6_12", "p6_10", "pd_0", "pe_13";
151 function = "emc";
152 slew-rate = <1>;
153 bias-disable;
154 input-enable;
155 input-schmitt-disable;
156 };
157
158 emc_sdram_ras_cas_cfg {
159 pins = "p6_5", "p6_4";
160 function = "emc";
161 slew-rate = <1>;
162 bias-disable;
163 input-enable;
164 input-schmitt-disable;
165 };
166
167 emc_sdram_dycs0_cfg {
168 pins = "p6_9";
169 function = "emc";
170 slew-rate = <1>;
171 bias-disable;
172 input-enable;
173 input-schmitt-disable;
174 };
175
176 emc_sdram_cke_cfg {
177 pins = "p6_11";
178 function = "emc";
179 slew-rate = <1>;
180 bias-disable;
181 input-enable;
182 input-schmitt-disable;
183 };
184
185 emc_sdram_clock_cfg {
186 pins = "clk0", "clk1", "clk2", "clk3";
187 function = "emc";
188 slew-rate = <1>;
189 bias-disable;
190 input-enable;
191 input-schmitt-disable;
192 };
193 };
194
195 enet_rmii_pins: enet-rmii-pins {
196 enet_rmii_rxd_cfg {
197 pins = "p1_15", "p0_0";
198 function = "enet";
199 slew-rate = <1>;
200 bias-disable;
201 input-enable;
202 input-schmitt-disable;
203 };
204
205 enet_rmii_txd_cfg {
206 pins = "p1_18", "p1_20";
207 function = "enet";
208 slew-rate = <1>;
209 bias-disable;
210 input-enable;
211 input-schmitt-disable;
212 };
213
214 enet_rmii_rx_dv_cfg {
215 pins = "p1_16";
216 function = "enet";
217 bias-disable;
218 input-enable;
219 input-schmitt-disable;
220 };
221
222 enet_rmii_tx_en_cfg {
223 pins = "p0_1";
224 function = "enet";
225 bias-disable;
226 input-enable;
227 input-schmitt-disable;
228 };
229
230 enet_ref_clk_cfg {
231 pins = "p1_19";
232 function = "enet";
233 slew-rate = <1>;
234 bias-disable;
235 input-enable;
236 input-schmitt-disable;
237 };
238
239 enet_mdio_cfg {
240 pins = "p1_17";
241 function = "enet";
242 bias-disable;
243 input-enable;
244 input-schmitt-disable;
245 };
246
247 enet_mdc_cfg {
248 pins = "pc_1";
249 function = "enet";
250 slew-rate = <1>;
251 bias-disable;
252 input-enable;
253 input-schmitt-disable;
254 };
255 };
256
257 gpio_joystick_pins: gpio-joystick-pins {
258 gpio_joystick_cfg {
259 pins = "p9_0", "p9_1", "pa_1", "pa_2", "pa_3";
260 function = "gpio";
261 input-enable;
262 bias-disable;
263 };
264 };
265
266 sdmmc_pins: sdmmc-pins {
267 sdmmc_clk_cfg {
268 pins = "pc_0";
269 function = "sdmmc";
270 slew-rate = <1>;
271 bias-pull-down;
272 };
273
274 sdmmc_cmd_dat0_3_cfg {
275 pins = "pc_4", "pc_5", "pc_6", "pc_7", "pc_10";
276 function = "sdmmc";
277 slew-rate = <1>;
278 bias-disable;
279 input-enable;
280 input-schmitt-disable;
281 };
282
283 sdmmc_cd_cfg {
284 pins = "pc_8";
285 function = "sdmmc";
286 bias-pull-down;
287 input-enable;
288 };
289
290 sdmmc_pow_cfg {
291 pins = "pc_9";
292 function = "sdmmc";
293 bias-pull-down;
294 };
295 };
296
297 uart0_pins: uart0-pins {
298 uart0_rx_cfg {
299 pins = "pf_11";
300 function = "uart0";
301 input-schmitt-disable;
302 bias-disable;
303 input-enable;
304 };
305
306 uart0_tx_cfg {
307 pins = "pf_10";
308 function = "uart0";
309 bias-pull-down;
310 };
311 };
312
313 uart3_pins: uart3-pins {
314 uart3_rx_cfg {
315 pins = "p2_4";
316 function = "uart3";
317 input-schmitt-disable;
318 bias-disable;
319 input-enable;
320 };
321
322 uart3_tx_cfg {
323 pins = "p9_3";
324 function = "uart3";
325 bias-pull-down;
326 };
327 };
328
329 usb0_pins: usb0-pins {
330 usb0_pwr_enable {
331 pins = "p2_3";
332 function = "usb0";
333 };
334
335 usb0_pwr_fault {
336 pins = "p8_0";
337 function = "usb0";
338 bias-disable;
339 input-enable;
340 };
341 };
342 };
343
344 &emc {
345 status = "okay";
346 pinctrl-names = "default";
347 pinctrl-0 = <&emc_pins>;
348
349 cs0 {
350 #address-cells = <2>;
351 #size-cells = <1>;
352 ranges;
353
354 mpmc,cs = <0>;
355 mpmc,memory-width = <16>;
356 mpmc,byte-lane-low;
357 mpmc,write-enable-delay = <0>;
358 mpmc,output-enable-delay = <0>;
359 mpmc,read-access-delay = <70>;
360 mpmc,page-mode-read-delay = <70>;
361
362 flash@0,0 {
363 compatible = "sst,sst39vf320", "cfi-flash";
364 reg = <0 0 0x400000>;
365 bank-width = <2>;
366 #address-cells = <1>;
367 #size-cells = <1>;
368
369 partition@0 {
370 label = "bootloader";
371 reg = <0x000000 0x040000>; /* 256 KiB */
372 };
373
374 partition@1 {
375 label = "kernel";
376 reg = <0x040000 0x2c0000>; /* 2.75 MiB */
377 };
378
379 partition@2 {
380 label = "rootfs";
381 reg = <0x300000 0x100000>; /* 1 MiB */
382 };
383 };
384 };
385
386 cs2 {
387 #address-cells = <2>;
388 #size-cells = <1>;
389 ranges;
390
391 mpmc,cs = <2>;
392 mpmc,memory-width = <16>;
393
394 mmio_leds: gpio@2,0 {
395 compatible = "ti,7416374";
396 reg = <2 0 0x2>;
397 gpio-controller;
398 #gpio-cells = <2>;
399 };
400
401 };
402 };
403
404 &enet_tx_clk {
405 clock-frequency = <50000000>;
406 };
407
408 &mac {
409 status = "okay";
410 phy-mode = "rmii";
411 pinctrl-names = "default";
412 pinctrl-0 = <&enet_rmii_pins>;
413 };
414
415 &mmcsd {
416 status = "okay";
417 bus-width = <4>;
418 vmmc-supply = <&vmmc>;
419 pinctrl-names = "default";
420 pinctrl-0 = <&sdmmc_pins>;
421 };
422
423 &uart0 {
424 status = "okay";
425 pinctrl-names = "default";
426 pinctrl-0 = <&uart0_pins>;
427 };
428
429 &uart3 {
430 status = "okay";
431 pinctrl-names = "default";
432 pinctrl-0 = <&uart3_pins>;
433 };
434
435 &usb0 {
436 status = "okay";
437 pinctrl-names = "default";
438 pinctrl-0 = <&usb0_pins>;
439 };
This page took 0.058509 seconds and 5 git commands to generate.