• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
5 */
6
7/dts-v1/;
8
9#include "omap36xx.dtsi"
10#include "logicpd-som-lv.dtsi"
11#include "omap-gpmc-smsc9221.dtsi"
12
13/ {
14	model = "LogicPD Zoom DM3730 SOM-LV Development Kit";
15	compatible = "logicpd,dm3730-som-lv-devkit", "ti,omap3630", "ti,omap3";
16
17	chosen {
18		stdout-path = &uart1;
19	};
20
21	gpio_keys {
22		compatible = "gpio-keys";
23		pinctrl-names = "default";
24		pinctrl-0 = <&gpio_key_pins>;
25
26		sysboot2 {
27			label = "gpio3";
28			gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;	/* gpio_111 / uP_GPIO_3 */
29			linux,code = <BTN_0>;
30			wakeup-source;
31		};
32	};
33
34	sound {
35		compatible = "ti,omap-twl4030";
36		ti,model = "omap3logic";
37		ti,mcbsp = <&mcbsp2>;
38	};
39
40	leds {
41		compatible = "gpio-leds";
42		pinctrl-names = "default";
43		pinctrl-0 = <&led_pins &led_pins_wkup>;
44
45		led1 {
46			label = "led1";
47			gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;	/* gpio133 */
48			linux,default-trigger = "cpu0";
49		};
50
51		led2 {
52			label = "led2";
53			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;	/* gpio11 */
54			linux,default-trigger = "none";
55		};
56	};
57};
58
59&vaux1 {
60	regulator-min-microvolt = <3000000>;
61	regulator-max-microvolt = <3000000>;
62};
63
64&vaux4 {
65	regulator-min-microvolt = <1800000>;
66	regulator-max-microvolt = <1800000>;
67};
68
69&mcbsp2 {
70	status = "okay";
71};
72
73&charger {
74	ti,bb-uvolt = <3200000>;
75	ti,bb-uamp = <150>;
76};
77
78&gpmc {
79	ranges = <1 0 0x08000000 0x1000000>;	/* CS1: 16MB for LAN9221 */
80
81	ethernet@gpmc {
82		pinctrl-names = "default";
83		pinctrl-0 = <&lan9221_pins>;
84		interrupt-parent = <&gpio5>;
85		interrupts = <24 IRQ_TYPE_LEVEL_LOW>;		/* gpio_152 */
86		reg = <1 0 0xff>;
87	};
88};
89
90&vpll2 {
91	regulator-always-on;
92};
93
94&dss {
95	status = "ok";
96	vdds_dsi-supply = <&vpll2>;
97	vdda_video-supply = <&video_reg>;
98	pinctrl-names = "default";
99	pinctrl-0 = <&dss_dpi_pins1>;
100	port {
101		dpi_out: endpoint {
102			remote-endpoint = <&lcd_in>;
103			data-lines = <16>;
104		};
105	};
106};
107
108/ {
109	aliases {
110		display0 = &lcd0;
111	};
112
113	video_reg: video_reg {
114		compatible = "regulator-fixed";
115		regulator-name = "fixed-supply";
116		regulator-min-microvolt = <3300000>;
117		regulator-max-microvolt = <3300000>;
118	};
119
120	lcd0: display@0 {
121		compatible = "panel-dpi";
122		label = "28";
123		status = "okay";
124		/* default-on; */
125		pinctrl-names = "default";
126		pinctrl-0 = <&lcd_enable_pin>;
127		enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;	/* gpio155, lcd INI */
128		port {
129			lcd_in: endpoint {
130				remote-endpoint = <&dpi_out>;
131			};
132		};
133
134		panel-timing {
135			clock-frequency = <9000000>;
136			hactive = <480>;
137			vactive = <272>;
138			hfront-porch = <3>;
139			hback-porch = <2>;
140			hsync-len = <42>;
141			vback-porch = <3>;
142			vfront-porch = <2>;
143			vsync-len = <11>;
144			hsync-active = <1>;
145			vsync-active = <1>;
146			de-active = <1>;
147			pixelclk-active = <0>;
148		};
149	};
150
151	bl: backlight {
152		compatible = "pwm-backlight";
153		pinctrl-names = "default";
154		pinctrl-0 = <&backlight_pins>;
155		pwms = <&twl_pwm 0 5000000>;
156		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
157		default-brightness-level = <7>;
158		enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* gpio_8 */
159	};
160};
161
162&mmc1 {
163	interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
164	pinctrl-names = "default";
165	pinctrl-0 = <&mmc1_pins>;
166	vmmc-supply = <&vmmc1>;
167	bus-width = <4>;
168	cap-power-off-card;
169};
170
171&mmc2 {
172	status = "disabled";
173};
174
175&omap3_pmx_core {
176	gpio_key_pins: pinmux_gpio_key_pins {
177		pinctrl-single,pins = <
178			OMAP3_CORE1_IOPAD(0x212e, PIN_INPUT_PULLUP | MUX_MODE4)	/* cam_xclkb.gpio_111 / uP_GPIO_3*/
179		>;
180	};
181
182	led_pins: pinmux_led_pins {
183		pinctrl-single,pins = <
184			OMAP3_CORE1_IOPAD(0x215e, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* sdmmc2_dat1.gpio_133 / uP_GPIO_0 */
185		>;
186	};
187
188	lan9221_pins: pinmux_lan9221_pins {
189		pinctrl-single,pins = <
190			OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4)	/* mcbsp4_clkx.gpio_152 */
191		>;
192	};
193
194	mmc1_pins: pinmux_mmc1_pins {
195		pinctrl-single,pins = <
196			OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0)	/* sdmmc1_clk.sdmmc1_clk */
197			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0)	/* sdmmc1_cmd.sdmmc1_cmd */
198			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat0.sdmmc1_dat0 */
199			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat1.sdmmc1_dat1 */
200			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat2.sdmmc1_dat2 */
201			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat3.sdmmc1_dat3 */
202			OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLUP | MUX_MODE4)	/* cam_strobe.gpio_126 */
203			OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT_PULLUP | MUX_MODE4)	/* cam_d11.gpio_110 */
204		>;
205	};
206
207	lcd_enable_pin: pinmux_lcd_enable_pin {
208		pinctrl-single,pins = <
209			OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4)       /* mcbsp4_fs.gpio_155 */
210		>;
211	};
212
213	dss_dpi_pins1: pinmux_dss_dpi_pins1 {
214		pinctrl-single,pins = <
215			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_pclk.dss_pclk */
216			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_hsync.dss_hsync */
217			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_vsync.dss_vsync */
218			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_acbias.dss_acbias */
219
220			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data0.dss_data0 */
221			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data1.dss_data1 */
222			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data2.dss_data2 */
223			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data3.dss_data3 */
224			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data4.dss_data4 */
225			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data5.dss_data5 */
226			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data6.dss_data6 */
227			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data7.dss_data7 */
228			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data8.dss_data8 */
229			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data9.dss_data9 */
230			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data10.dss_data10 */
231			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data11.dss_data11 */
232			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data12.dss_data12 */
233			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data13.dss_data13 */
234			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data14.dss_data14 */
235			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data15.dss_data15 */
236		>;
237	};
238};
239
240&omap3_pmx_wkup {
241	led_pins_wkup: pinmux_led_pins_wkup {
242		pinctrl-single,pins = <
243			OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* jtag_emu0.gpio_11 / uP_GPIO_1 */
244		>;
245	};
246
247	backlight_pins: pinmux_backlight_pins {
248		pinctrl-single,pins = <
249			OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4)       /* sys_boot6.gpio_8 */
250		>;
251	};
252};
253
254
255&uart1 {
256	interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
257};
258
259/* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
260&usb_otg_hs {
261	pinctrl-names = "default";
262	pinctrl-0 = <&hsusb_otg_pins>;
263	interface-type = <0>;
264	usb-phy = <&usb2_phy>;
265	phys = <&usb2_phy>;
266	phy-names = "usb2-phy";
267	mode = <3>;
268	power = <50>;
269};
270