xref: /openbmc/u-boot/arch/arm/dts/am3517-evm.dts (revision e11ef3d2)
1/*
2 * Copyright (C) 2011 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 "am3517.dtsi"
11#include "am3517-som.dtsi"
12#include "am3517-evm-ui.dtsi"
13#include <dt-bindings/input/input.h>
14
15/ {
16	model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
17	compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
18
19	aliases {
20		display0 = &lcd0;
21	};
22
23	memory@80000000 {
24		device_type = "memory";
25		reg = <0x80000000 0x10000000>; /* 256 MB */
26	};
27
28        vmmc_fixed: vmmc {
29                compatible = "regulator-fixed";
30                regulator-name = "vmmc_fixed";
31                regulator-min-microvolt = <3300000>;
32                regulator-max-microvolt = <3300000>;
33        };
34
35	gpio-keys {
36		compatible = "gpio-keys-polled";
37		poll-interval = <100>;
38
39		user_pb {
40			label = "User Push Button";
41			linux,code = <BTN_0>;
42			gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
43		};
44
45		user_sw_1 {
46			label = "User Switch 1";
47			linux,code = <BTN_1>;
48			gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
49		};
50
51		user_sw_2 {
52			label = "User Switch 2";
53			linux,code = <BTN_2>;
54			gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
55		};
56
57		user_sw_3 {
58			label = "User Switch 3";
59			linux,code = <BTN_3>;
60			gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
61		};
62
63		user_sw_4 {
64			label = "User Switch 4";
65			linux,code = <BTN_4>;
66			gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
67		};
68
69		user_sw_5 {
70			label = "User Switch 5";
71			linux,code = <BTN_5>;
72			gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
73		};
74
75		user_sw_6 {
76			label = "User Switch 6";
77			linux,code = <BTN_6>;
78			gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
79		};
80
81		user_sw_7 {
82			label = "User Switch 7";
83			linux,code = <BTN_7>;
84			gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
85		};
86
87		user_sw_8 {
88			label = "User Switch 8";
89			linux,code = <BTN_8>;
90			gpios = <&tca6416 15 GPIO_ACTIVE_LOW>;
91		};
92	};
93
94	gpio-leds {
95		compatible = "gpio-leds";
96
97		pinctrl-names = "default";
98		pinctrl-0 = <&leds_pins>;
99
100		user_led_1 {
101			label = "am3517evm:green:user_led_1";
102			gpios = <&tca6416 7 GPIO_ACTIVE_LOW>;
103			default-state = "on";
104		};
105
106		user_led_2 {
107			label = "am3517evm:green:user_led_2";
108			gpios = <&tca6416 6 GPIO_ACTIVE_LOW>;
109			default-state = "on";
110		};
111
112		user_led_3 {
113			label = "am3517evm:green:user_led_3";
114			gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
115			linux,default-trigger = "mmc0"; /* SD/MMC card activity */
116		};
117
118		user_led_4 {
119			label = "am3517evm:green:user_led_4";
120			gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
121			linux,default-trigger = "heartbeat";
122		};
123	};
124
125	lcd0: display@0 {
126		compatible = "panel-dpi";
127		label = "15";
128		status = "okay";
129		pinctrl-names = "default";
130		enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>;	/* gpio176, lcd INI */
131		vcc-supply = <&vdd_io_reg>;
132
133		port {
134			lcd_in: endpoint {
135				remote-endpoint = <&dpi_out>;
136			};
137		};
138
139		panel-timing {
140			clock-frequency = <9000000>;
141			hactive = <480>;
142			vactive = <272>;
143			hfront-porch = <3>;
144			hback-porch = <2>;
145			hsync-len = <42>;
146			vback-porch = <3>;
147			vfront-porch = <4>;
148			vsync-len = <11>;
149			hsync-active = <0>;
150			vsync-active = <0>;
151			de-active = <1>;
152			pixelclk-active = <1>;
153		};
154	};
155
156	bl: backlight {
157		compatible = "pwm-backlight";
158		pinctrl-names = "default";
159		power-supply = <&vdd_io_reg>;
160		pinctrl-0 = <&backlight_pins>;
161		pwms = <&pwm11 0 5000000 0>;
162		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
163		default-brightness-level = <7>;
164		enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */
165	};
166
167	pwm11: dmtimer-pwm@11 {
168		compatible = "ti,omap-dmtimer-pwm";
169		pinctrl-names = "default";
170		pinctrl-0 = <&pwm_pins>;
171		ti,timers = <&timer11>;
172		#pwm-cells = <3>;
173	};
174
175	/* HS USB Host PHY on PORT 1 */
176	hsusb1_phy: hsusb1_phy {
177		compatible = "usb-nop-xceiv";
178		reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
179		#phy-cells = <0>;
180	};
181};
182
183&davinci_emac {
184	     status = "okay";
185};
186
187&davinci_mdio {
188	     status = "okay";
189};
190
191&dss {
192	status = "ok";
193
194	pinctrl-names = "default";
195	pinctrl-0 = <&dss_dpi_pins>;
196
197	vdds_dsi-supply = <&vdd_io_reg>;
198	vdda_video-supply = <&vdd_io_reg>;
199
200	port {
201		dpi_out: endpoint {
202			remote-endpoint = <&lcd_in>;
203			data-lines = <16>;
204		};
205	};
206};
207
208&i2c2 {
209	clock-frequency = <400000>;
210	/* User DIP swithes [1:8] / User LEDS [1:2] */
211	tca6416: gpio@21 {
212		compatible = "ti,tca6416";
213		reg = <0x21>;
214		gpio-controller;
215		#gpio-cells = <2>;
216		vcc-supply = <&vdd_io_reg>;
217	};
218};
219
220&i2c3 {
221	clock-frequency = <400000>;
222};
223
224&mmc1 {
225	status = "okay";
226	pinctrl-names = "default";
227	pinctrl-0 = <&mmc1_pins>;
228	vmmc-supply = <&vmmc_fixed>;
229	bus-width = <4>;
230	wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
231	cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio_127 */
232};
233
234&mmc3 {
235      status = "disabled";
236};
237
238&usbhshost {
239	port1-mode = "ehci-phy";
240};
241
242&usbhsehci {
243	phys = <&hsusb1_phy>;
244};
245
246&omap3_pmx_core {
247	pinctrl-names = "default";
248	pinctrl-0 = <&hsusb1_rst_pins>;
249
250	leds_pins: pinmux_leds_pins {
251		pinctrl-single,pins = <
252			OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* jtag_emu0.gpio_11 */
253			OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* jtag_emu1.gpio_31 */
254		>;
255	};
256
257	mmc1_pins: pinmux_mmc1_pins {
258		pinctrl-single,pins = <
259			OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_clk.sdmmc1_clk */
260			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_cmd.sdmmc1_cmd */
261			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat0.sdmmc1_dat0 */
262			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat1.sdmmc1_dat1 */
263			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat2.sdmmc1_dat2 */
264			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)	/* sdmmc1_dat3.sdmmc1_dat3 */
265			OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
266			OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
267		>;
268	};
269
270	pwm_pins: pinmux_pwm_pins {
271		pinctrl-single,pins = <
272			OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1)       /* mcspi2_cs0.gpt11_pwm */
273		>;
274	};
275
276	backlight_pins: pinmux_backlight_pins {
277		pinctrl-single,pins = <
278			OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4)       /* mcspi2_cs1.gpio_182 */
279		>;
280	};
281
282	dss_dpi_pins: pinmux_dss_dpi_pins {
283		pinctrl-single,pins = <
284			OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4)       /* mcspi1_cs2.gpio_176 */
285			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)       /* dss_pclk.dss_pclk */
286			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)       /* dss_hsync.dss_hsync */
287			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)       /* dss_vsync.dss_vsync */
288			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)       /* dss_acbias.dss_acbias */
289			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)       /* dss_data0.dss_data0 */
290			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)       /* dss_data1.dss_data1 */
291			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)       /* dss_data2.dss_data2 */
292			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)       /* dss_data3.dss_data3 */
293			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)       /* dss_data4.dss_data4 */
294			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)       /* dss_data5.dss_data5 */
295			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)       /* dss_data6.dss_data6 */
296			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)       /* dss_data7.dss_data7 */
297			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)       /* dss_data8.dss_data8 */
298			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)       /* dss_data9.dss_data9 */
299			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)       /* dss_data10.dss_data10 */
300			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)       /* dss_data11.dss_data11 */
301			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)       /* dss_data12.dss_data12 */
302			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)       /* dss_data13.dss_data13 */
303			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)       /* dss_data14.dss_data14 */
304			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)       /* dss_data15.dss_data15 */
305		>;
306	};
307
308	hsusb1_rst_pins: pinmux_hsusb1_rst_pins {
309		pinctrl-single,pins = <
310			OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4)	/* gpmc_ncs6.gpio_57 */
311		>;
312	};
313};
314
315&omap3_pmx_core2 {
316	pinctrl-names = "default";
317	pinctrl-0 = <&hsusb1_pins>;
318
319	hsusb1_pins: pinmux_hsusb1_pins {
320		pinctrl-single,pins = <
321			OMAP3430_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3)	/* etk_clk.hsusb1_stp */
322			OMAP3430_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3)	/* etk_ctl.hsusb1_clk */
323			OMAP3430_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3)	/* etk_d8.hsusb1_dir */
324			OMAP3430_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3)	/* etk_d9.hsusb1_nxt */
325			OMAP3430_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3)	/* etk_d0.hsusb1_data0 */
326			OMAP3430_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3)	/* etk_d1.hsusb1_data1 */
327			OMAP3430_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3)	/* etk_d2.hsusb1_data2 */
328			OMAP3430_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3)	/* etk_d7.hsusb1_data3 */
329			OMAP3430_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3)	/* etk_d4.hsusb1_data4 */
330			OMAP3430_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3)	/* etk_d5.hsusb1_data5 */
331			OMAP3430_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3)	/* etk_d6.hsusb1_data6 */
332			OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3)	/* etk_d3.hsusb1_data7 */
333		>;
334	};
335};
336