xref: /openbmc/u-boot/arch/arm/dts/dra7-evm.dts (revision 4ddaa6ce28e6528e00d32bcdfc7905df2dbbbb06)
1e5520e18SMugunthan V N/*
2e5520e18SMugunthan V N * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3e5520e18SMugunthan V N *
4e5520e18SMugunthan V N * This program is free software; you can redistribute it and/or modify
5e5520e18SMugunthan V N * it under the terms of the GNU General Public License version 2 as
6e5520e18SMugunthan V N * published by the Free Software Foundation.
7e5520e18SMugunthan V N */
8e5520e18SMugunthan V N/dts-v1/;
9e5520e18SMugunthan V N
10e5520e18SMugunthan V N#include "dra74x.dtsi"
11*4ddaa6ceSLokesh Vutla#include "dra7-evm-common.dtsi"
12*4ddaa6ceSLokesh Vutla#include "dra74x-mmc-iodelay.dtsi"
13e5520e18SMugunthan V N
14e5520e18SMugunthan V N/ {
15e5520e18SMugunthan V N	model = "TI DRA742";
16e5520e18SMugunthan V N	compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7";
17e5520e18SMugunthan V N
187aa1a408SLokesh Vutla	memory@0 {
19e5520e18SMugunthan V N		device_type = "memory";
207aa1a408SLokesh Vutla		reg = <0x0 0x80000000 0x0 0x60000000>; /* 1536 MB */
21e5520e18SMugunthan V N	};
22e5520e18SMugunthan V N
23*4ddaa6ceSLokesh Vutla	evm_1v8_sw: fixedregulator-evm_1v8 {
24*4ddaa6ceSLokesh Vutla		compatible = "regulator-fixed";
25*4ddaa6ceSLokesh Vutla		regulator-name = "evm_1v8";
26*4ddaa6ceSLokesh Vutla		vin-supply = <&smps9_reg>;
27*4ddaa6ceSLokesh Vutla		regulator-min-microvolt = <1800000>;
28*4ddaa6ceSLokesh Vutla		regulator-max-microvolt = <1800000>;
29*4ddaa6ceSLokesh Vutla	};
30*4ddaa6ceSLokesh Vutla
31257bdb3fSVignesh R	evm_3v3_sd: fixedregulator-sd {
32257bdb3fSVignesh R		compatible = "regulator-fixed";
33257bdb3fSVignesh R		regulator-name = "evm_3v3_sd";
34257bdb3fSVignesh R		regulator-min-microvolt = <3300000>;
35257bdb3fSVignesh R		regulator-max-microvolt = <3300000>;
36257bdb3fSVignesh R		enable-active-high;
37257bdb3fSVignesh R		gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>;
38257bdb3fSVignesh R	};
39257bdb3fSVignesh R
407aa1a408SLokesh Vutla	evm_3v3_sw: fixedregulator-evm_3v3_sw {
41e5520e18SMugunthan V N		compatible = "regulator-fixed";
427aa1a408SLokesh Vutla		regulator-name = "evm_3v3_sw";
437aa1a408SLokesh Vutla		vin-supply = <&sysen1>;
44e5520e18SMugunthan V N		regulator-min-microvolt = <3300000>;
45e5520e18SMugunthan V N		regulator-max-microvolt = <3300000>;
46e5520e18SMugunthan V N	};
47e5520e18SMugunthan V N
487aa1a408SLokesh Vutla	aic_dvdd: fixedregulator-aic_dvdd {
497aa1a408SLokesh Vutla		/* TPS77018DBVT */
507aa1a408SLokesh Vutla		compatible = "regulator-fixed";
517aa1a408SLokesh Vutla		regulator-name = "aic_dvdd";
527aa1a408SLokesh Vutla		vin-supply = <&evm_3v3_sw>;
537aa1a408SLokesh Vutla		regulator-min-microvolt = <1800000>;
547aa1a408SLokesh Vutla		regulator-max-microvolt = <1800000>;
557aa1a408SLokesh Vutla	};
567aa1a408SLokesh Vutla
57e5520e18SMugunthan V N	extcon_usb2: extcon_usb2 {
58e5520e18SMugunthan V N		compatible = "linux,extcon-usb-gpio";
59e5520e18SMugunthan V N		id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>;
60e5520e18SMugunthan V N	};
61e5520e18SMugunthan V N
62e5520e18SMugunthan V N	vtt_fixed: fixedregulator-vtt {
63e5520e18SMugunthan V N		compatible = "regulator-fixed";
64e5520e18SMugunthan V N		regulator-name = "vtt_fixed";
65e5520e18SMugunthan V N		regulator-min-microvolt = <1350000>;
66e5520e18SMugunthan V N		regulator-max-microvolt = <1350000>;
67e5520e18SMugunthan V N		regulator-always-on;
68e5520e18SMugunthan V N		regulator-boot-on;
69e5520e18SMugunthan V N		enable-active-high;
707aa1a408SLokesh Vutla		vin-supply = <&sysen2>;
71e5520e18SMugunthan V N		gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
72e5520e18SMugunthan V N	};
737aa1a408SLokesh Vutla
74e5520e18SMugunthan V N};
75e5520e18SMugunthan V N
76e5520e18SMugunthan V N&dra7_pmx_core {
77e5520e18SMugunthan V N	dcan1_pins_default: dcan1_pins_default {
78e5520e18SMugunthan V N		pinctrl-single,pins = <
797aa1a408SLokesh Vutla			DRA7XX_CORE_IOPAD(0x37d0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */
807aa1a408SLokesh Vutla			DRA7XX_CORE_IOPAD(0x3818, PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */
81e5520e18SMugunthan V N		>;
82e5520e18SMugunthan V N	};
83e5520e18SMugunthan V N
84e5520e18SMugunthan V N	dcan1_pins_sleep: dcan1_pins_sleep {
85e5520e18SMugunthan V N		pinctrl-single,pins = <
867aa1a408SLokesh Vutla			DRA7XX_CORE_IOPAD(0x37d0, MUX_MODE15 | PULL_UP)	/* dcan1_tx.off */
877aa1a408SLokesh Vutla			DRA7XX_CORE_IOPAD(0x3818, MUX_MODE15 | PULL_UP)	/* wakeup0.off */
887aa1a408SLokesh Vutla		>;
897aa1a408SLokesh Vutla	};
907aa1a408SLokesh Vutla
91*4ddaa6ceSLokesh Vutla	mmc1_pins_default: mmc1_pins_default {
927aa1a408SLokesh Vutla		pinctrl-single,pins = <
93*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14)	/* mmc1sdcd.gpio219 */
94*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
95*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
96*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
97*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
98*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
99*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
1007aa1a408SLokesh Vutla		>;
1017aa1a408SLokesh Vutla	};
1027aa1a408SLokesh Vutla
103*4ddaa6ceSLokesh Vutla	mmc2_pins_default: mmc2_pins_default {
1047aa1a408SLokesh Vutla		pinctrl-single,pins = <
105*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x349c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */
106*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x34b0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
107*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x34a0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
108*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x34a4, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
109*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x34a8, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
110*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x34ac, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
111*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x348c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
112*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3490, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
113*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3494, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
114*4ddaa6ceSLokesh Vutla			DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
115e5520e18SMugunthan V N		>;
116e5520e18SMugunthan V N	};
117e5520e18SMugunthan V N};
118e5520e18SMugunthan V N
119e5520e18SMugunthan V N&i2c1 {
120e5520e18SMugunthan V N	status = "okay";
121e5520e18SMugunthan V N	clock-frequency = <400000>;
122e5520e18SMugunthan V N
123e5520e18SMugunthan V N	tps659038: tps659038@58 {
124e5520e18SMugunthan V N		compatible = "ti,tps659038";
125e5520e18SMugunthan V N		reg = <0x58>;
126*4ddaa6ceSLokesh Vutla		ti,palmas-override-powerhold;
127*4ddaa6ceSLokesh Vutla		ti,system-power-controller;
128e5520e18SMugunthan V N
129e5520e18SMugunthan V N		tps659038_pmic {
130e5520e18SMugunthan V N			compatible = "ti,tps659038-pmic";
131e5520e18SMugunthan V N
132e5520e18SMugunthan V N			regulators {
133e5520e18SMugunthan V N				smps123_reg: smps123 {
134e5520e18SMugunthan V N					/* VDD_MPU */
135e5520e18SMugunthan V N					regulator-name = "smps123";
136e5520e18SMugunthan V N					regulator-min-microvolt = < 850000>;
137e5520e18SMugunthan V N					regulator-max-microvolt = <1250000>;
138e5520e18SMugunthan V N					regulator-always-on;
139e5520e18SMugunthan V N					regulator-boot-on;
140e5520e18SMugunthan V N				};
141e5520e18SMugunthan V N
142e5520e18SMugunthan V N				smps45_reg: smps45 {
143e5520e18SMugunthan V N					/* VDD_DSPEVE */
144e5520e18SMugunthan V N					regulator-name = "smps45";
145e5520e18SMugunthan V N					regulator-min-microvolt = < 850000>;
1467aa1a408SLokesh Vutla					regulator-max-microvolt = <1250000>;
147e5520e18SMugunthan V N					regulator-always-on;
148e5520e18SMugunthan V N					regulator-boot-on;
149e5520e18SMugunthan V N				};
150e5520e18SMugunthan V N
151e5520e18SMugunthan V N				smps6_reg: smps6 {
152e5520e18SMugunthan V N					/* VDD_GPU - over VDD_SMPS6 */
153e5520e18SMugunthan V N					regulator-name = "smps6";
154e5520e18SMugunthan V N					regulator-min-microvolt = <850000>;
155e5520e18SMugunthan V N					regulator-max-microvolt = <1250000>;
156e5520e18SMugunthan V N					regulator-always-on;
157e5520e18SMugunthan V N					regulator-boot-on;
158e5520e18SMugunthan V N				};
159e5520e18SMugunthan V N
160e5520e18SMugunthan V N				smps7_reg: smps7 {
161e5520e18SMugunthan V N					/* CORE_VDD */
162e5520e18SMugunthan V N					regulator-name = "smps7";
163e5520e18SMugunthan V N					regulator-min-microvolt = <850000>;
1647aa1a408SLokesh Vutla					regulator-max-microvolt = <1150000>;
165e5520e18SMugunthan V N					regulator-always-on;
166e5520e18SMugunthan V N					regulator-boot-on;
167e5520e18SMugunthan V N				};
168e5520e18SMugunthan V N
169e5520e18SMugunthan V N				smps8_reg: smps8 {
170e5520e18SMugunthan V N					/* VDD_IVAHD */
171e5520e18SMugunthan V N					regulator-name = "smps8";
172e5520e18SMugunthan V N					regulator-min-microvolt = < 850000>;
173e5520e18SMugunthan V N					regulator-max-microvolt = <1250000>;
174e5520e18SMugunthan V N					regulator-always-on;
175e5520e18SMugunthan V N					regulator-boot-on;
176e5520e18SMugunthan V N				};
177e5520e18SMugunthan V N
178e5520e18SMugunthan V N				smps9_reg: smps9 {
179e5520e18SMugunthan V N					/* VDDS1V8 */
180e5520e18SMugunthan V N					regulator-name = "smps9";
181e5520e18SMugunthan V N					regulator-min-microvolt = <1800000>;
182e5520e18SMugunthan V N					regulator-max-microvolt = <1800000>;
183e5520e18SMugunthan V N					regulator-always-on;
184e5520e18SMugunthan V N					regulator-boot-on;
185e5520e18SMugunthan V N				};
186e5520e18SMugunthan V N
187e5520e18SMugunthan V N				ldo1_reg: ldo1 {
188e5520e18SMugunthan V N					/* LDO1_OUT --> SDIO  */
189e5520e18SMugunthan V N					regulator-name = "ldo1";
190e5520e18SMugunthan V N					regulator-min-microvolt = <1800000>;
191e5520e18SMugunthan V N					regulator-max-microvolt = <3300000>;
1927aa1a408SLokesh Vutla					regulator-always-on;
193e5520e18SMugunthan V N					regulator-boot-on;
194e5520e18SMugunthan V N				};
195e5520e18SMugunthan V N
196e5520e18SMugunthan V N				ldo2_reg: ldo2 {
197e5520e18SMugunthan V N					/* VDD_RTCIO */
198e5520e18SMugunthan V N					/* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */
199e5520e18SMugunthan V N					regulator-name = "ldo2";
200e5520e18SMugunthan V N					regulator-min-microvolt = <3300000>;
201e5520e18SMugunthan V N					regulator-max-microvolt = <3300000>;
202e5520e18SMugunthan V N					regulator-always-on;
203e5520e18SMugunthan V N					regulator-boot-on;
204e5520e18SMugunthan V N				};
205e5520e18SMugunthan V N
206e5520e18SMugunthan V N				ldo3_reg: ldo3 {
207e5520e18SMugunthan V N					/* VDDA_1V8_PHY */
208e5520e18SMugunthan V N					regulator-name = "ldo3";
209e5520e18SMugunthan V N					regulator-min-microvolt = <1800000>;
210e5520e18SMugunthan V N					regulator-max-microvolt = <1800000>;
211e5520e18SMugunthan V N					regulator-always-on;
212e5520e18SMugunthan V N					regulator-boot-on;
213e5520e18SMugunthan V N				};
214e5520e18SMugunthan V N
215e5520e18SMugunthan V N				ldo9_reg: ldo9 {
216e5520e18SMugunthan V N					/* VDD_RTC */
217e5520e18SMugunthan V N					regulator-name = "ldo9";
218e5520e18SMugunthan V N					regulator-min-microvolt = <1050000>;
219e5520e18SMugunthan V N					regulator-max-microvolt = <1050000>;
220e5520e18SMugunthan V N					regulator-always-on;
221e5520e18SMugunthan V N					regulator-boot-on;
2227aa1a408SLokesh Vutla					regulator-allow-bypass;
223e5520e18SMugunthan V N				};
224e5520e18SMugunthan V N
225e5520e18SMugunthan V N				ldoln_reg: ldoln {
226e5520e18SMugunthan V N					/* VDDA_1V8_PLL */
227e5520e18SMugunthan V N					regulator-name = "ldoln";
228e5520e18SMugunthan V N					regulator-min-microvolt = <1800000>;
229e5520e18SMugunthan V N					regulator-max-microvolt = <1800000>;
230e5520e18SMugunthan V N					regulator-always-on;
231e5520e18SMugunthan V N					regulator-boot-on;
232e5520e18SMugunthan V N				};
233e5520e18SMugunthan V N
234e5520e18SMugunthan V N				ldousb_reg: ldousb {
235e5520e18SMugunthan V N					/* VDDA_3V_USB: VDDA_USBHS33 */
236e5520e18SMugunthan V N					regulator-name = "ldousb";
237e5520e18SMugunthan V N					regulator-min-microvolt = <3300000>;
238e5520e18SMugunthan V N					regulator-max-microvolt = <3300000>;
239e5520e18SMugunthan V N					regulator-boot-on;
240e5520e18SMugunthan V N				};
2417aa1a408SLokesh Vutla
2427aa1a408SLokesh Vutla				/* REGEN1 is unused */
2437aa1a408SLokesh Vutla
2447aa1a408SLokesh Vutla				regen2: regen2 {
2457aa1a408SLokesh Vutla					/* Needed for PMIC internal resources */
2467aa1a408SLokesh Vutla					regulator-name = "regen2";
2477aa1a408SLokesh Vutla					regulator-boot-on;
2487aa1a408SLokesh Vutla					regulator-always-on;
2497aa1a408SLokesh Vutla				};
2507aa1a408SLokesh Vutla
2517aa1a408SLokesh Vutla				/* REGEN3 is unused */
2527aa1a408SLokesh Vutla
2537aa1a408SLokesh Vutla				sysen1: sysen1 {
2547aa1a408SLokesh Vutla					/* PMIC_REGEN_3V3 */
2557aa1a408SLokesh Vutla					regulator-name = "sysen1";
2567aa1a408SLokesh Vutla					regulator-boot-on;
2577aa1a408SLokesh Vutla					regulator-always-on;
2587aa1a408SLokesh Vutla				};
2597aa1a408SLokesh Vutla
2607aa1a408SLokesh Vutla				sysen2: sysen2 {
2617aa1a408SLokesh Vutla					/* PMIC_REGEN_DDR */
2627aa1a408SLokesh Vutla					regulator-name = "sysen2";
2637aa1a408SLokesh Vutla					regulator-boot-on;
2647aa1a408SLokesh Vutla					regulator-always-on;
2657aa1a408SLokesh Vutla				};
266e5520e18SMugunthan V N			};
267e5520e18SMugunthan V N		};
268e5520e18SMugunthan V N	};
269e5520e18SMugunthan V N
2707aa1a408SLokesh Vutla	pcf_lcd: gpio@20 {
2717aa1a408SLokesh Vutla		compatible = "ti,pcf8575", "nxp,pcf8575";
2727aa1a408SLokesh Vutla		reg = <0x20>;
2737aa1a408SLokesh Vutla		gpio-controller;
2747aa1a408SLokesh Vutla		#gpio-cells = <2>;
2757aa1a408SLokesh Vutla		interrupt-parent = <&gpio6>;
2767aa1a408SLokesh Vutla		interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
2777aa1a408SLokesh Vutla		interrupt-controller;
2787aa1a408SLokesh Vutla		#interrupt-cells = <2>;
2797aa1a408SLokesh Vutla	};
2807aa1a408SLokesh Vutla
281e5520e18SMugunthan V N	pcf_gpio_21: gpio@21 {
2827aa1a408SLokesh Vutla		compatible = "ti,pcf8575", "nxp,pcf8575";
283e5520e18SMugunthan V N		reg = <0x21>;
284e5520e18SMugunthan V N		lines-initial-states = <0x1408>;
285e5520e18SMugunthan V N		gpio-controller;
286e5520e18SMugunthan V N		#gpio-cells = <2>;
287e5520e18SMugunthan V N		interrupt-parent = <&gpio6>;
288e5520e18SMugunthan V N		interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
289e5520e18SMugunthan V N		interrupt-controller;
290e5520e18SMugunthan V N		#interrupt-cells = <2>;
291e5520e18SMugunthan V N	};
292e5520e18SMugunthan V N
2937aa1a408SLokesh Vutla	tlv320aic3106: tlv320aic3106@19 {
2947aa1a408SLokesh Vutla		#sound-dai-cells = <0>;
2957aa1a408SLokesh Vutla		compatible = "ti,tlv320aic3106";
2967aa1a408SLokesh Vutla		reg = <0x19>;
2977aa1a408SLokesh Vutla		adc-settle-ms = <40>;
2987aa1a408SLokesh Vutla		ai3x-micbias-vg = <1>;		/* 2.0V */
2997aa1a408SLokesh Vutla		status = "okay";
3007aa1a408SLokesh Vutla
3017aa1a408SLokesh Vutla		/* Regulators */
3027aa1a408SLokesh Vutla		AVDD-supply = <&evm_3v3_sw>;
3037aa1a408SLokesh Vutla		IOVDD-supply = <&evm_3v3_sw>;
3047aa1a408SLokesh Vutla		DRVDD-supply = <&evm_3v3_sw>;
3057aa1a408SLokesh Vutla		DVDD-supply = <&aic_dvdd>;
3067aa1a408SLokesh Vutla	};
307e5520e18SMugunthan V N};
308e5520e18SMugunthan V N
309e5520e18SMugunthan V N&i2c2 {
310e5520e18SMugunthan V N	status = "okay";
311e5520e18SMugunthan V N	clock-frequency = <400000>;
3127aa1a408SLokesh Vutla
3137aa1a408SLokesh Vutla	pcf_hdmi: gpio@26 {
3147aa1a408SLokesh Vutla		compatible = "ti,pcf8575", "nxp,pcf8575";
3157aa1a408SLokesh Vutla		reg = <0x26>;
3167aa1a408SLokesh Vutla		gpio-controller;
3177aa1a408SLokesh Vutla		#gpio-cells = <2>;
3187aa1a408SLokesh Vutla		p1 {
3197aa1a408SLokesh Vutla			/* vin6_sel_s0: high: VIN6, low: audio */
3207aa1a408SLokesh Vutla			gpio-hog;
3217aa1a408SLokesh Vutla			gpios = <1 GPIO_ACTIVE_HIGH>;
3227aa1a408SLokesh Vutla			output-low;
3237aa1a408SLokesh Vutla			line-name = "vin6_sel_s0";
3247aa1a408SLokesh Vutla		};
3257aa1a408SLokesh Vutla	};
326e5520e18SMugunthan V N};
327e5520e18SMugunthan V N
328e5520e18SMugunthan V N&mmc1 {
329e5520e18SMugunthan V N	status = "okay";
330257bdb3fSVignesh R	vmmc-supply = <&evm_3v3_sd>;
331*4ddaa6ceSLokesh Vutla	vqmmc-supply = <&ldo1_reg>;
332e5520e18SMugunthan V N	bus-width = <4>;
333e3614214SMugunthan V N	/*
334e3614214SMugunthan V N	 * SDCD signal is not being used here - using the fact that GPIO mode
335e3614214SMugunthan V N	 * is always hardwired.
336e3614214SMugunthan V N	 */
337e3614214SMugunthan V N	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
338*4ddaa6ceSLokesh Vutla	pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50-rev11", "sdr104-rev11", "ddr50", "sdr104";
339*4ddaa6ceSLokesh Vutla	pinctrl-0 = <&mmc1_pins_default>;
340*4ddaa6ceSLokesh Vutla	pinctrl-1 = <&mmc1_pins_hs>;
341*4ddaa6ceSLokesh Vutla	pinctrl-2 = <&mmc1_pins_sdr12>;
342*4ddaa6ceSLokesh Vutla	pinctrl-3 = <&mmc1_pins_sdr25>;
343*4ddaa6ceSLokesh Vutla	pinctrl-4 = <&mmc1_pins_sdr50>;
344*4ddaa6ceSLokesh Vutla	pinctrl-5 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr_rev11_conf>;
345*4ddaa6ceSLokesh Vutla	pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev11_conf>;
346*4ddaa6ceSLokesh Vutla	pinctrl-7 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr_rev20_conf>;
347*4ddaa6ceSLokesh Vutla	pinctrl-8 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>;
348e5520e18SMugunthan V N};
349e5520e18SMugunthan V N
350e5520e18SMugunthan V N&mmc2 {
351e5520e18SMugunthan V N	status = "okay";
352*4ddaa6ceSLokesh Vutla	vmmc-supply = <&evm_1v8_sw>;
353e5520e18SMugunthan V N	bus-width = <8>;
354*4ddaa6ceSLokesh Vutla	pinctrl-names = "default", "hs", "ddr_1_8v-rev11", "ddr_1_8v", "hs200_1_8v-rev11", "hs200_1_8v";
355*4ddaa6ceSLokesh Vutla	pinctrl-0 = <&mmc2_pins_default>;
356*4ddaa6ceSLokesh Vutla	pinctrl-1 = <&mmc2_pins_hs>;
357*4ddaa6ceSLokesh Vutla	pinctrl-2 = <&mmc2_pins_ddr_1_8v_rev11 &mmc2_iodelay_ddr_1_8v_rev11_conf>;
358*4ddaa6ceSLokesh Vutla	pinctrl-3 = <&mmc2_pins_ddr_rev20>;
359*4ddaa6ceSLokesh Vutla	pinctrl-4 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev11_conf>;
360*4ddaa6ceSLokesh Vutla	pinctrl-5 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>;
361e5520e18SMugunthan V N};
362e5520e18SMugunthan V N
363e5520e18SMugunthan V N&cpu0 {
364e5520e18SMugunthan V N	cpu0-supply = <&smps123_reg>;
365e5520e18SMugunthan V N};
366e5520e18SMugunthan V N
367e5520e18SMugunthan V N&omap_dwc3_2 {
368e5520e18SMugunthan V N	extcon = <&extcon_usb2>;
369e5520e18SMugunthan V N};
370e5520e18SMugunthan V N
371e5520e18SMugunthan V N&elm {
372e5520e18SMugunthan V N	status = "okay";
373e5520e18SMugunthan V N};
374e5520e18SMugunthan V N
375e5520e18SMugunthan V N&gpmc {
376*4ddaa6ceSLokesh Vutla	/*
377*4ddaa6ceSLokesh Vutla	* For the existing IOdelay configuration via U-Boot we don't
378*4ddaa6ceSLokesh Vutla	* support NAND on dra7-evm. Keep it disabled. Enabling it
379*4ddaa6ceSLokesh Vutla	* requires a different configuration by U-Boot.
380*4ddaa6ceSLokesh Vutla	*/
381*4ddaa6ceSLokesh Vutla	status = "disabled";
3827aa1a408SLokesh Vutla	ranges = <0 0 0x08000000 0x01000000>;	/* minimum GPMC partition = 16MB */
383e5520e18SMugunthan V N	nand@0,0 {
3847aa1a408SLokesh Vutla		compatible = "ti,omap2-nand";
385e5520e18SMugunthan V N		reg = <0 0 4>;		/* device IO registers */
3867aa1a408SLokesh Vutla		interrupt-parent = <&gpmc>;
3877aa1a408SLokesh Vutla		interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
3887aa1a408SLokesh Vutla			     <1 IRQ_TYPE_NONE>; /* termcount */
3897aa1a408SLokesh Vutla		rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */
390*4ddaa6ceSLokesh Vutla		ti,nand-xfer-type = "prefetch-dma";
391e5520e18SMugunthan V N		ti,nand-ecc-opt = "bch8";
392e5520e18SMugunthan V N		ti,elm-id = <&elm>;
393e5520e18SMugunthan V N		nand-bus-width = <16>;
394e5520e18SMugunthan V N		gpmc,device-width = <2>;
395e5520e18SMugunthan V N		gpmc,sync-clk-ps = <0>;
396e5520e18SMugunthan V N		gpmc,cs-on-ns = <0>;
397e5520e18SMugunthan V N		gpmc,cs-rd-off-ns = <80>;
398e5520e18SMugunthan V N		gpmc,cs-wr-off-ns = <80>;
399e5520e18SMugunthan V N		gpmc,adv-on-ns = <0>;
400e5520e18SMugunthan V N		gpmc,adv-rd-off-ns = <60>;
401e5520e18SMugunthan V N		gpmc,adv-wr-off-ns = <60>;
402e5520e18SMugunthan V N		gpmc,we-on-ns = <10>;
403e5520e18SMugunthan V N		gpmc,we-off-ns = <50>;
404e5520e18SMugunthan V N		gpmc,oe-on-ns = <4>;
405e5520e18SMugunthan V N		gpmc,oe-off-ns = <40>;
406e5520e18SMugunthan V N		gpmc,access-ns = <40>;
407e5520e18SMugunthan V N		gpmc,wr-access-ns = <80>;
408e5520e18SMugunthan V N		gpmc,rd-cycle-ns = <80>;
409e5520e18SMugunthan V N		gpmc,wr-cycle-ns = <80>;
410e5520e18SMugunthan V N		gpmc,bus-turnaround-ns = <0>;
411e5520e18SMugunthan V N		gpmc,cycle2cycle-delay-ns = <0>;
412e5520e18SMugunthan V N		gpmc,clk-activation-ns = <0>;
413e5520e18SMugunthan V N		gpmc,wr-data-mux-bus-ns = <0>;
414e5520e18SMugunthan V N		/* MTD partition table */
415e5520e18SMugunthan V N		/* All SPL-* partitions are sized to minimal length
416e5520e18SMugunthan V N		 * which can be independently programmable. For
417e5520e18SMugunthan V N		 * NAND flash this is equal to size of erase-block */
418e5520e18SMugunthan V N		#address-cells = <1>;
419e5520e18SMugunthan V N		#size-cells = <1>;
420e5520e18SMugunthan V N		partition@0 {
421e5520e18SMugunthan V N			label = "NAND.SPL";
422e5520e18SMugunthan V N			reg = <0x00000000 0x000020000>;
423e5520e18SMugunthan V N		};
424e5520e18SMugunthan V N		partition@1 {
425e5520e18SMugunthan V N			label = "NAND.SPL.backup1";
426e5520e18SMugunthan V N			reg = <0x00020000 0x00020000>;
427e5520e18SMugunthan V N		};
428e5520e18SMugunthan V N		partition@2 {
429e5520e18SMugunthan V N			label = "NAND.SPL.backup2";
430e5520e18SMugunthan V N			reg = <0x00040000 0x00020000>;
431e5520e18SMugunthan V N		};
432e5520e18SMugunthan V N		partition@3 {
433e5520e18SMugunthan V N			label = "NAND.SPL.backup3";
434e5520e18SMugunthan V N			reg = <0x00060000 0x00020000>;
435e5520e18SMugunthan V N		};
436e5520e18SMugunthan V N		partition@4 {
437e5520e18SMugunthan V N			label = "NAND.u-boot-spl-os";
438e5520e18SMugunthan V N			reg = <0x00080000 0x00040000>;
439e5520e18SMugunthan V N		};
440e5520e18SMugunthan V N		partition@5 {
441e5520e18SMugunthan V N			label = "NAND.u-boot";
442e5520e18SMugunthan V N			reg = <0x000c0000 0x00100000>;
443e5520e18SMugunthan V N		};
444e5520e18SMugunthan V N		partition@6 {
445e5520e18SMugunthan V N			label = "NAND.u-boot-env";
446e5520e18SMugunthan V N			reg = <0x001c0000 0x00020000>;
447e5520e18SMugunthan V N		};
448e5520e18SMugunthan V N		partition@7 {
449e5520e18SMugunthan V N			label = "NAND.u-boot-env.backup1";
450e5520e18SMugunthan V N			reg = <0x001e0000 0x00020000>;
451e5520e18SMugunthan V N		};
452e5520e18SMugunthan V N		partition@8 {
453e5520e18SMugunthan V N			label = "NAND.kernel";
454e5520e18SMugunthan V N			reg = <0x00200000 0x00800000>;
455e5520e18SMugunthan V N		};
456e5520e18SMugunthan V N		partition@9 {
457e5520e18SMugunthan V N			label = "NAND.file-system";
458e5520e18SMugunthan V N			reg = <0x00a00000 0x0f600000>;
459e5520e18SMugunthan V N		};
460e5520e18SMugunthan V N	};
461e5520e18SMugunthan V N};
462e5520e18SMugunthan V N
463e5520e18SMugunthan V N&usb2_phy1 {
464e5520e18SMugunthan V N	phy-supply = <&ldousb_reg>;
465e5520e18SMugunthan V N};
466e5520e18SMugunthan V N
467e5520e18SMugunthan V N&usb2_phy2 {
468e5520e18SMugunthan V N	phy-supply = <&ldousb_reg>;
469e5520e18SMugunthan V N};
470e5520e18SMugunthan V N
471e5520e18SMugunthan V N&gpio7 {
472e5520e18SMugunthan V N	ti,no-reset-on-init;
473e5520e18SMugunthan V N	ti,no-idle-on-init;
474e5520e18SMugunthan V N};
475e5520e18SMugunthan V N
476e5520e18SMugunthan V N&mac {
477e5520e18SMugunthan V N	status = "okay";
478e5520e18SMugunthan V N	dual_emac;
479e5520e18SMugunthan V N};
480e5520e18SMugunthan V N
481e5520e18SMugunthan V N&cpsw_emac0 {
482e5520e18SMugunthan V N	phy_id = <&davinci_mdio>, <2>;
483e5520e18SMugunthan V N	phy-mode = "rgmii";
484e5520e18SMugunthan V N	dual_emac_res_vlan = <1>;
485e5520e18SMugunthan V N};
486e5520e18SMugunthan V N
487e5520e18SMugunthan V N&cpsw_emac1 {
488e5520e18SMugunthan V N	phy_id = <&davinci_mdio>, <3>;
489e5520e18SMugunthan V N	phy-mode = "rgmii";
490e5520e18SMugunthan V N	dual_emac_res_vlan = <2>;
491e5520e18SMugunthan V N};
492e5520e18SMugunthan V N
493e5520e18SMugunthan V N&dcan1 {
494e5520e18SMugunthan V N	status = "ok";
495e5520e18SMugunthan V N	pinctrl-names = "default", "sleep", "active";
496e5520e18SMugunthan V N	pinctrl-0 = <&dcan1_pins_sleep>;
497e5520e18SMugunthan V N	pinctrl-1 = <&dcan1_pins_sleep>;
498e5520e18SMugunthan V N	pinctrl-2 = <&dcan1_pins_default>;
499e5520e18SMugunthan V N};
5007aa1a408SLokesh Vutla
501*4ddaa6ceSLokesh Vutla&pcie1_rc {
5027aa1a408SLokesh Vutla	status = "okay";
5037aa1a408SLokesh Vutla};
504