xref: /openbmc/u-boot/arch/arm/dts/dra7-evm.dts (revision a7da6f8c)
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8/dts-v1/;
9
10#include "dra74x.dtsi"
11#include <dt-bindings/gpio/gpio.h>
12
13/ {
14	model = "TI DRA742";
15	compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7";
16
17	chosen {
18		stdout-path = &uart1;
19		tick-timer = &timer2;
20	};
21
22	memory {
23		device_type = "memory";
24		reg = <0x80000000 0x60000000>; /* 1536 MB */
25	};
26
27	mmc2_3v3: fixedregulator-mmc2 {
28		compatible = "regulator-fixed";
29		regulator-name = "mmc2_3v3";
30		regulator-min-microvolt = <3300000>;
31		regulator-max-microvolt = <3300000>;
32	};
33
34	extcon_usb1: extcon_usb1 {
35		compatible = "linux,extcon-usb-gpio";
36		id-gpio = <&pcf_gpio_21 1 GPIO_ACTIVE_HIGH>;
37	};
38
39	extcon_usb2: extcon_usb2 {
40		compatible = "linux,extcon-usb-gpio";
41		id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
42	};
43
44	vtt_fixed: fixedregulator-vtt {
45		compatible = "regulator-fixed";
46		regulator-name = "vtt_fixed";
47		regulator-min-microvolt = <1350000>;
48		regulator-max-microvolt = <1350000>;
49		regulator-always-on;
50		regulator-boot-on;
51		enable-active-high;
52		gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
53	};
54};
55
56&dra7_pmx_core {
57	pinctrl-names = "default";
58	pinctrl-0 = <&vtt_pin>;
59
60	vtt_pin: pinmux_vtt_pin {
61		pinctrl-single,pins = <
62			0x3b4 (PIN_OUTPUT | MUX_MODE14) /* spi1_cs1.gpio7_11 */
63		>;
64	};
65
66	i2c1_pins: pinmux_i2c1_pins {
67		pinctrl-single,pins = <
68			0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda */
69			0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl */
70		>;
71	};
72
73	i2c2_pins: pinmux_i2c2_pins {
74		pinctrl-single,pins = <
75			0x408 (PIN_INPUT | MUX_MODE0) /* i2c2_sda */
76			0x40c (PIN_INPUT | MUX_MODE0) /* i2c2_scl */
77		>;
78	};
79
80	i2c3_pins: pinmux_i2c3_pins {
81		pinctrl-single,pins = <
82			0x288 (PIN_INPUT | MUX_MODE9) /* gpio6_14.i2c3_sda */
83			0x28c (PIN_INPUT | MUX_MODE9) /* gpio6_15.i2c3_scl */
84		>;
85	};
86
87	mcspi1_pins: pinmux_mcspi1_pins {
88		pinctrl-single,pins = <
89			0x3a4 (PIN_INPUT | MUX_MODE0) /* spi1_sclk */
90			0x3a8 (PIN_INPUT | MUX_MODE0) /* spi1_d1 */
91			0x3ac (PIN_INPUT | MUX_MODE0) /* spi1_d0 */
92			0x3b0 (PIN_INPUT_SLEW | MUX_MODE0) /* spi1_cs0 */
93			0x3b8 (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs2.hdmi1_hpd */
94			0x3bc (PIN_INPUT_SLEW | MUX_MODE6) /* spi1_cs3.hdmi1_cec */
95		>;
96	};
97
98	mcspi2_pins: pinmux_mcspi2_pins {
99		pinctrl-single,pins = <
100			0x3c0 (PIN_INPUT | MUX_MODE0) /* spi2_sclk */
101			0x3c4 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
102			0x3c8 (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_d1 */
103			0x3cc (PIN_INPUT_SLEW | MUX_MODE0) /* spi2_cs0 */
104		>;
105	};
106
107	uart1_pins: pinmux_uart1_pins {
108		pinctrl-single,pins = <
109			0x3e0 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_rxd */
110			0x3e4 (PIN_INPUT_SLEW | MUX_MODE0) /* uart1_txd */
111			0x3e8 (PIN_INPUT | MUX_MODE3) /* uart1_ctsn */
112			0x3ec (PIN_INPUT | MUX_MODE3) /* uart1_rtsn */
113		>;
114	};
115
116	uart2_pins: pinmux_uart2_pins {
117		pinctrl-single,pins = <
118			0x3f0 (PIN_INPUT | MUX_MODE0) /* uart2_rxd */
119			0x3f4 (PIN_INPUT | MUX_MODE0) /* uart2_txd */
120			0x3f8 (PIN_INPUT | MUX_MODE0) /* uart2_ctsn */
121			0x3fc (PIN_INPUT | MUX_MODE0) /* uart2_rtsn */
122		>;
123	};
124
125	uart3_pins: pinmux_uart3_pins {
126		pinctrl-single,pins = <
127			0x248 (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */
128			0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
129		>;
130	};
131
132	qspi1_pins: pinmux_qspi1_pins {
133		pinctrl-single,pins = <
134			0x4c (PIN_INPUT | MUX_MODE1)  /* gpmc_a3.qspi1_cs2 */
135			0x50 (PIN_INPUT | MUX_MODE1)  /* gpmc_a4.qspi1_cs3 */
136			0x74 (PIN_INPUT | MUX_MODE1)  /* gpmc_a13.qspi1_rtclk */
137			0x78 (PIN_INPUT | MUX_MODE1)  /* gpmc_a14.qspi1_d3 */
138			0x7c (PIN_INPUT | MUX_MODE1)  /* gpmc_a15.qspi1_d2 */
139			0x80 (PIN_INPUT | MUX_MODE1) /* gpmc_a16.qspi1_d1 */
140			0x84 (PIN_INPUT | MUX_MODE1)  /* gpmc_a17.qspi1_d0 */
141			0x88 (PIN_INPUT | MUX_MODE1)  /* qpmc_a18.qspi1_sclk */
142			0xb8 (PIN_INPUT_PULLUP | MUX_MODE1)  /* gpmc_cs2.qspi1_cs0 */
143			0xbc (PIN_INPUT_PULLUP | MUX_MODE1)  /* gpmc_cs3.qspi1_cs1 */
144		>;
145	};
146
147	usb1_pins: pinmux_usb1_pins {
148                pinctrl-single,pins = <
149			0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
150                >;
151        };
152
153	usb2_pins: pinmux_usb2_pins {
154                pinctrl-single,pins = <
155			0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
156                >;
157        };
158
159	nand_flash_x16: nand_flash_x16 {
160		/* On DRA7 EVM, GPMC_WPN and NAND_BOOTn comes from DIP switch
161		 * So NAND flash requires following switch settings:
162		 * SW5.9 (GPMC_WPN) = LOW
163		 * SW5.1 (NAND_BOOTn) = HIGH */
164		pinctrl-single,pins = <
165			0x0 	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad0	*/
166			0x4 	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad1	*/
167			0x8 	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad2	*/
168			0xc 	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad3	*/
169			0x10	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad4	*/
170			0x14	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad5	*/
171			0x18	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad6	*/
172			0x1c	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad7	*/
173			0x20	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad8	*/
174			0x24	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad9	*/
175			0x28	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad10	*/
176			0x2c	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad11	*/
177			0x30	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad12	*/
178			0x34	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad13	*/
179			0x38	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad14	*/
180			0x3c	(PIN_INPUT  | MUX_MODE0)	/* gpmc_ad15	*/
181			0xd8	(PIN_INPUT_PULLUP  | MUX_MODE0)	/* gpmc_wait0	*/
182			0xcc	(PIN_OUTPUT | MUX_MODE0)	/* gpmc_wen	*/
183			0xb4	(PIN_OUTPUT_PULLUP | MUX_MODE0)	/* gpmc_csn0	*/
184			0xc4	(PIN_OUTPUT | MUX_MODE0)	/* gpmc_advn_ale */
185			0xc8	(PIN_OUTPUT | MUX_MODE0)	/* gpmc_oen_ren	 */
186			0xd0	(PIN_OUTPUT | MUX_MODE0)	/* gpmc_be0n_cle */
187		>;
188	};
189
190	cpsw_default: cpsw_default {
191		pinctrl-single,pins = <
192			/* Slave 1 */
193			0x250 (PIN_OUTPUT | MUX_MODE0)	/* rgmii0_txc.rgmii0_txc */
194			0x254 (PIN_OUTPUT | MUX_MODE0)	/* rgmii0_txctl.rgmii0_txctl */
195			0x258 (PIN_OUTPUT | MUX_MODE0)	/* rgmii0_td3.rgmii0_txd3 */
196			0x25c (PIN_OUTPUT | MUX_MODE0)	/* rgmii0_txd2.rgmii0_txd2 */
197			0x260 (PIN_OUTPUT | MUX_MODE0)	/* rgmii0_txd1.rgmii0_txd1 */
198			0x264 (PIN_OUTPUT | MUX_MODE0)	/* rgmii0_txd0.rgmii0_txd0 */
199			0x268 (PIN_INPUT | MUX_MODE0)	/* rgmii0_rxc.rgmii0_rxc */
200			0x26c (PIN_INPUT | MUX_MODE0)	/* rgmii0_rxctl.rgmii0_rxctl */
201			0x270 (PIN_INPUT | MUX_MODE0)	/* rgmii0_rxd3.rgmii0_rxd3 */
202			0x274 (PIN_INPUT | MUX_MODE0)	/* rgmii0_rxd2.rgmii0_rxd2 */
203			0x278 (PIN_INPUT | MUX_MODE0)	/* rgmii0_rxd1.rgmii0_rxd1 */
204			0x27c (PIN_INPUT | MUX_MODE0)	/* rgmii0_rxd0.rgmii0_rxd0 */
205
206			/* Slave 2 */
207			0x198 (PIN_OUTPUT | MUX_MODE3)	/* vin2a_d12.rgmii1_txc */
208			0x19c (PIN_OUTPUT | MUX_MODE3)	/* vin2a_d13.rgmii1_tctl */
209			0x1a0 (PIN_OUTPUT | MUX_MODE3)	/* vin2a_d14.rgmii1_td3 */
210			0x1a4 (PIN_OUTPUT | MUX_MODE3)	/* vin2a_d15.rgmii1_td2 */
211			0x1a8 (PIN_OUTPUT | MUX_MODE3)	/* vin2a_d16.rgmii1_td1 */
212			0x1ac (PIN_OUTPUT | MUX_MODE3)	/* vin2a_d17.rgmii1_td0 */
213			0x1b0 (PIN_INPUT | MUX_MODE3)	/* vin2a_d18.rgmii1_rclk */
214			0x1b4 (PIN_INPUT | MUX_MODE3)	/* vin2a_d19.rgmii1_rctl */
215			0x1b8 (PIN_INPUT | MUX_MODE3)	/* vin2a_d20.rgmii1_rd3 */
216			0x1bc (PIN_INPUT | MUX_MODE3)	/* vin2a_d21.rgmii1_rd2 */
217			0x1c0 (PIN_INPUT | MUX_MODE3)	/* vin2a_d22.rgmii1_rd1 */
218			0x1c4 (PIN_INPUT | MUX_MODE3)	/* vin2a_d23.rgmii1_rd0 */
219		>;
220
221	};
222
223	cpsw_sleep: cpsw_sleep {
224		pinctrl-single,pins = <
225			/* Slave 1 */
226			0x250 (MUX_MODE15)
227			0x254 (MUX_MODE15)
228			0x258 (MUX_MODE15)
229			0x25c (MUX_MODE15)
230			0x260 (MUX_MODE15)
231			0x264 (MUX_MODE15)
232			0x268 (MUX_MODE15)
233			0x26c (MUX_MODE15)
234			0x270 (MUX_MODE15)
235			0x274 (MUX_MODE15)
236			0x278 (MUX_MODE15)
237			0x27c (MUX_MODE15)
238
239			/* Slave 2 */
240			0x198 (MUX_MODE15)
241			0x19c (MUX_MODE15)
242			0x1a0 (MUX_MODE15)
243			0x1a4 (MUX_MODE15)
244			0x1a8 (MUX_MODE15)
245			0x1ac (MUX_MODE15)
246			0x1b0 (MUX_MODE15)
247			0x1b4 (MUX_MODE15)
248			0x1b8 (MUX_MODE15)
249			0x1bc (MUX_MODE15)
250			0x1c0 (MUX_MODE15)
251			0x1c4 (MUX_MODE15)
252		>;
253	};
254
255	davinci_mdio_default: davinci_mdio_default {
256		pinctrl-single,pins = <
257			0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0)	/* mdio_d.mdio_d */
258			0x240 (PIN_INPUT_PULLUP | MUX_MODE0)	/* mdio_clk.mdio_clk */
259		>;
260	};
261
262	davinci_mdio_sleep: davinci_mdio_sleep {
263		pinctrl-single,pins = <
264			0x23c (MUX_MODE15)
265			0x240 (MUX_MODE15)
266		>;
267	};
268
269	dcan1_pins_default: dcan1_pins_default {
270		pinctrl-single,pins = <
271			0x3d0   (PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
272			0x418   (PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
273		>;
274	};
275
276	dcan1_pins_sleep: dcan1_pins_sleep {
277		pinctrl-single,pins = <
278			0x3d0   (MUX_MODE15 | PULL_UP)	/* dcan1_tx.off */
279			0x418   (MUX_MODE15 | PULL_UP)	/* wakeup0.off */
280		>;
281	};
282};
283
284&i2c1 {
285	status = "okay";
286	pinctrl-names = "default";
287	pinctrl-0 = <&i2c1_pins>;
288	clock-frequency = <400000>;
289
290	tps659038: tps659038@58 {
291		compatible = "ti,tps659038";
292		reg = <0x58>;
293
294		tps659038_pmic {
295			compatible = "ti,tps659038-pmic";
296
297			regulators {
298				smps123_reg: smps123 {
299					/* VDD_MPU */
300					regulator-name = "smps123";
301					regulator-min-microvolt = < 850000>;
302					regulator-max-microvolt = <1250000>;
303					regulator-always-on;
304					regulator-boot-on;
305				};
306
307				smps45_reg: smps45 {
308					/* VDD_DSPEVE */
309					regulator-name = "smps45";
310					regulator-min-microvolt = < 850000>;
311					regulator-max-microvolt = <1150000>;
312					regulator-always-on;
313					regulator-boot-on;
314				};
315
316				smps6_reg: smps6 {
317					/* VDD_GPU - over VDD_SMPS6 */
318					regulator-name = "smps6";
319					regulator-min-microvolt = <850000>;
320					regulator-max-microvolt = <1250000>;
321					regulator-always-on;
322					regulator-boot-on;
323				};
324
325				smps7_reg: smps7 {
326					/* CORE_VDD */
327					regulator-name = "smps7";
328					regulator-min-microvolt = <850000>;
329					regulator-max-microvolt = <1060000>;
330					regulator-always-on;
331					regulator-boot-on;
332				};
333
334				smps8_reg: smps8 {
335					/* VDD_IVAHD */
336					regulator-name = "smps8";
337					regulator-min-microvolt = < 850000>;
338					regulator-max-microvolt = <1250000>;
339					regulator-always-on;
340					regulator-boot-on;
341				};
342
343				smps9_reg: smps9 {
344					/* VDDS1V8 */
345					regulator-name = "smps9";
346					regulator-min-microvolt = <1800000>;
347					regulator-max-microvolt = <1800000>;
348					regulator-always-on;
349					regulator-boot-on;
350				};
351
352				ldo1_reg: ldo1 {
353					/* LDO1_OUT --> SDIO  */
354					regulator-name = "ldo1";
355					regulator-min-microvolt = <1800000>;
356					regulator-max-microvolt = <3300000>;
357					regulator-boot-on;
358				};
359
360				ldo2_reg: ldo2 {
361					/* VDD_RTCIO */
362					/* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
363					regulator-name = "ldo2";
364					regulator-min-microvolt = <3300000>;
365					regulator-max-microvolt = <3300000>;
366					regulator-always-on;
367					regulator-boot-on;
368				};
369
370				ldo3_reg: ldo3 {
371					/* VDDA_1V8_PHY */
372					regulator-name = "ldo3";
373					regulator-min-microvolt = <1800000>;
374					regulator-max-microvolt = <1800000>;
375					regulator-always-on;
376					regulator-boot-on;
377				};
378
379				ldo9_reg: ldo9 {
380					/* VDD_RTC */
381					regulator-name = "ldo9";
382					regulator-min-microvolt = <1050000>;
383					regulator-max-microvolt = <1050000>;
384					regulator-always-on;
385					regulator-boot-on;
386				};
387
388				ldoln_reg: ldoln {
389					/* VDDA_1V8_PLL */
390					regulator-name = "ldoln";
391					regulator-min-microvolt = <1800000>;
392					regulator-max-microvolt = <1800000>;
393					regulator-always-on;
394					regulator-boot-on;
395				};
396
397				ldousb_reg: ldousb {
398					/* VDDA_3V_USB: VDDA_USBHS33 */
399					regulator-name = "ldousb";
400					regulator-min-microvolt = <3300000>;
401					regulator-max-microvolt = <3300000>;
402					regulator-boot-on;
403				};
404			};
405		};
406	};
407
408	pcf_gpio_21: gpio@21 {
409		compatible = "ti,pcf8575";
410		reg = <0x21>;
411		lines-initial-states = <0x1408>;
412		gpio-controller;
413		#gpio-cells = <2>;
414		interrupt-parent = <&gpio6>;
415		interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
416		interrupt-controller;
417		#interrupt-cells = <2>;
418	};
419
420};
421
422&i2c2 {
423	status = "okay";
424	pinctrl-names = "default";
425	pinctrl-0 = <&i2c2_pins>;
426	clock-frequency = <400000>;
427};
428
429&i2c3 {
430	status = "okay";
431	pinctrl-names = "default";
432	pinctrl-0 = <&i2c3_pins>;
433	clock-frequency = <400000>;
434};
435
436&mcspi1 {
437	status = "okay";
438	pinctrl-names = "default";
439	pinctrl-0 = <&mcspi1_pins>;
440};
441
442&mcspi2 {
443	status = "okay";
444	pinctrl-names = "default";
445	pinctrl-0 = <&mcspi2_pins>;
446};
447
448&uart1 {
449	status = "okay";
450	pinctrl-names = "default";
451	pinctrl-0 = <&uart1_pins>;
452	interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
453			      <&dra7_pmx_core 0x3e0>;
454};
455
456&uart2 {
457	status = "okay";
458	pinctrl-names = "default";
459	pinctrl-0 = <&uart2_pins>;
460};
461
462&uart3 {
463	status = "okay";
464	pinctrl-names = "default";
465	pinctrl-0 = <&uart3_pins>;
466};
467
468&mmc1 {
469	status = "okay";
470	vmmc-supply = <&ldo1_reg>;
471	bus-width = <4>;
472	/*
473	 * SDCD signal is not being used here - using the fact that GPIO mode
474	 * is always hardwired.
475	 */
476	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
477};
478
479&mmc2 {
480	status = "okay";
481	vmmc-supply = <&mmc2_3v3>;
482	bus-width = <8>;
483};
484
485&cpu0 {
486	cpu0-supply = <&smps123_reg>;
487};
488
489&qspi {
490	status = "okay";
491	pinctrl-names = "default";
492	pinctrl-0 = <&qspi1_pins>;
493
494	spi-max-frequency = <48000000>;
495	m25p80@0 {
496		compatible = "s25fl256s1","spi-flash";
497		spi-max-frequency = <48000000>;
498		reg = <0>;
499		spi-tx-bus-width = <1>;
500		spi-rx-bus-width = <4>;
501		spi-cpol;
502		spi-cpha;
503		#address-cells = <1>;
504		#size-cells = <1>;
505
506		/* MTD partition table.
507		 * The ROM checks the first four physical blocks
508		 * for a valid file to boot and the flash here is
509		 * 64KiB block size.
510		 */
511		partition@0 {
512			label = "QSPI.SPL";
513			reg = <0x00000000 0x000010000>;
514		};
515		partition@1 {
516			label = "QSPI.SPL.backup1";
517			reg = <0x00010000 0x00010000>;
518		};
519		partition@2 {
520			label = "QSPI.SPL.backup2";
521			reg = <0x00020000 0x00010000>;
522		};
523		partition@3 {
524			label = "QSPI.SPL.backup3";
525			reg = <0x00030000 0x00010000>;
526		};
527		partition@4 {
528			label = "QSPI.u-boot";
529			reg = <0x00040000 0x00100000>;
530		};
531		partition@5 {
532			label = "QSPI.u-boot-spl-os";
533			reg = <0x00140000 0x00080000>;
534		};
535		partition@6 {
536			label = "QSPI.u-boot-env";
537			reg = <0x001c0000 0x00010000>;
538		};
539		partition@7 {
540			label = "QSPI.u-boot-env.backup1";
541			reg = <0x001d0000 0x0010000>;
542		};
543		partition@8 {
544			label = "QSPI.kernel";
545			reg = <0x001e0000 0x0800000>;
546		};
547		partition@9 {
548			label = "QSPI.file-system";
549			reg = <0x009e0000 0x01620000>;
550		};
551	};
552};
553
554&omap_dwc3_1 {
555	extcon = <&extcon_usb1>;
556};
557
558&omap_dwc3_2 {
559	extcon = <&extcon_usb2>;
560};
561
562&usb1 {
563	dr_mode = "peripheral";
564	pinctrl-names = "default";
565	pinctrl-0 = <&usb1_pins>;
566};
567
568&usb2 {
569	dr_mode = "host";
570	pinctrl-names = "default";
571	pinctrl-0 = <&usb2_pins>;
572};
573
574&elm {
575	status = "okay";
576};
577
578&gpmc {
579	status = "okay";
580	pinctrl-names = "default";
581	pinctrl-0 = <&nand_flash_x16>;
582	ranges = <0 0 0 0x01000000>;	/* minimum GPMC partition = 16MB */
583	nand@0,0 {
584		reg = <0 0 4>;		/* device IO registers */
585		ti,nand-ecc-opt = "bch8";
586		ti,elm-id = <&elm>;
587		nand-bus-width = <16>;
588		gpmc,device-width = <2>;
589		gpmc,sync-clk-ps = <0>;
590		gpmc,cs-on-ns = <0>;
591		gpmc,cs-rd-off-ns = <80>;
592		gpmc,cs-wr-off-ns = <80>;
593		gpmc,adv-on-ns = <0>;
594		gpmc,adv-rd-off-ns = <60>;
595		gpmc,adv-wr-off-ns = <60>;
596		gpmc,we-on-ns = <10>;
597		gpmc,we-off-ns = <50>;
598		gpmc,oe-on-ns = <4>;
599		gpmc,oe-off-ns = <40>;
600		gpmc,access-ns = <40>;
601		gpmc,wr-access-ns = <80>;
602		gpmc,rd-cycle-ns = <80>;
603		gpmc,wr-cycle-ns = <80>;
604		gpmc,bus-turnaround-ns = <0>;
605		gpmc,cycle2cycle-delay-ns = <0>;
606		gpmc,clk-activation-ns = <0>;
607		gpmc,wait-monitoring-ns = <0>;
608		gpmc,wr-data-mux-bus-ns = <0>;
609		/* MTD partition table */
610		/* All SPL-* partitions are sized to minimal length
611		 * which can be independently programmable. For
612		 * NAND flash this is equal to size of erase-block */
613		#address-cells = <1>;
614		#size-cells = <1>;
615		partition@0 {
616			label = "NAND.SPL";
617			reg = <0x00000000 0x000020000>;
618		};
619		partition@1 {
620			label = "NAND.SPL.backup1";
621			reg = <0x00020000 0x00020000>;
622		};
623		partition@2 {
624			label = "NAND.SPL.backup2";
625			reg = <0x00040000 0x00020000>;
626		};
627		partition@3 {
628			label = "NAND.SPL.backup3";
629			reg = <0x00060000 0x00020000>;
630		};
631		partition@4 {
632			label = "NAND.u-boot-spl-os";
633			reg = <0x00080000 0x00040000>;
634		};
635		partition@5 {
636			label = "NAND.u-boot";
637			reg = <0x000c0000 0x00100000>;
638		};
639		partition@6 {
640			label = "NAND.u-boot-env";
641			reg = <0x001c0000 0x00020000>;
642		};
643		partition@7 {
644			label = "NAND.u-boot-env.backup1";
645			reg = <0x001e0000 0x00020000>;
646		};
647		partition@8 {
648			label = "NAND.kernel";
649			reg = <0x00200000 0x00800000>;
650		};
651		partition@9 {
652			label = "NAND.file-system";
653			reg = <0x00a00000 0x0f600000>;
654		};
655	};
656};
657
658&usb2_phy1 {
659	phy-supply = <&ldousb_reg>;
660};
661
662&usb2_phy2 {
663	phy-supply = <&ldousb_reg>;
664};
665
666&gpio7 {
667	ti,no-reset-on-init;
668	ti,no-idle-on-init;
669};
670
671&mac {
672	status = "okay";
673	pinctrl-names = "default", "sleep";
674	pinctrl-0 = <&cpsw_default>;
675	pinctrl-1 = <&cpsw_sleep>;
676	dual_emac;
677};
678
679&cpsw_emac0 {
680	phy_id = <&davinci_mdio>, <2>;
681	phy-mode = "rgmii";
682	dual_emac_res_vlan = <1>;
683};
684
685&cpsw_emac1 {
686	phy_id = <&davinci_mdio>, <3>;
687	phy-mode = "rgmii";
688	dual_emac_res_vlan = <2>;
689};
690
691&davinci_mdio {
692	pinctrl-names = "default", "sleep";
693	pinctrl-0 = <&davinci_mdio_default>;
694	pinctrl-1 = <&davinci_mdio_sleep>;
695};
696
697&dcan1 {
698	status = "ok";
699	pinctrl-names = "default", "sleep", "active";
700	pinctrl-0 = <&dcan1_pins_sleep>;
701	pinctrl-1 = <&dcan1_pins_sleep>;
702	pinctrl-2 = <&dcan1_pins_default>;
703};
704