1 /*
2 * Copyright (C) 2012 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/;
10 /include/ "omap5.dtsi"
11 /include/ "samsung_k3pe0e000b.dtsi"
13 / {
14 model = "TI OMAP5 uEVM board";
15 compatible = "ti,omap5-uevm", "ti,omap5";
17 cpus {
18 cpu@0 {
19 cpu0-supply = <&smps123_reg>;
20 };
21 };
23 memory {
24 device_type = "memory";
25 reg = <0x80000000 0x7F000000>; /* 2032 MB */
26 };
28 vmmcsd_fixed: fixedregulator-mmcsd {
29 compatible = "regulator-fixed";
30 regulator-name = "vmmcsd_fixed";
31 regulator-min-microvolt = <3000000>;
32 regulator-max-microvolt = <3000000>;
33 };
35 /* HS USB Port 2 RESET */
36 hsusb2_reset: hsusb2_reset_reg {
37 compatible = "regulator-fixed";
38 regulator-name = "hsusb2_reset";
39 regulator-min-microvolt = <3300000>;
40 regulator-max-microvolt = <3300000>;
41 gpio = <&gpio3 16 0>; /* gpio3_80 HUB_NRESET */
42 startup-delay-us = <70000>;
43 enable-active-high;
44 };
46 /* HS USB Host PHY on PORT 2 */
47 hsusb2_phy: hsusb2_phy {
48 compatible = "usb-nop-xceiv";
49 reset-supply = <&hsusb2_reset>;
50 };
52 /* HS USB Port 3 RESET */
53 hsusb3_reset: hsusb3_reset_reg {
54 compatible = "regulator-fixed";
55 regulator-name = "hsusb3_reset";
56 regulator-min-microvolt = <3300000>;
57 regulator-max-microvolt = <3300000>;
58 gpio = <&gpio3 15 0>; /* gpio3_79 ETH_NRESET */
59 startup-delay-us = <70000>;
60 enable-active-high;
61 };
63 /* HS USB Host PHY on PORT 3 */
64 hsusb3_phy: hsusb3_phy {
65 compatible = "usb-nop-xceiv";
66 reset-supply = <&hsusb3_reset>;
67 };
69 /* hsusb2_phy is clocked by FREF_CLK1 i.e. auxclk1 */
70 clock_alias {
71 clock-name = "auxclk1_ck";
72 clock-alias = "main_clk";
73 device = <&hsusb2_phy>;
74 clock-frequency = <19200000>; /* 19.2 MHz */
75 };
77 sound {
78 compatible = "ti,abe-twl6040";
79 ti,model = "PandaBoard5";
81 ti,jack-detection = <1>;
82 ti,mclk-freq = <19200000>;
84 ti,mcpdm = <&mcpdm>;
85 ti,mcbsp1 = <&mcbsp1>;
86 ti,mcbsp2 = <&mcbsp2>;
87 ti,aess = <&aess>;
89 ti,twl6040 = <&twl6040>;
91 /* Audio routing */
92 ti,audio-routing =
93 "Headset Stereophone", "HSOL",
94 "Headset Stereophone", "HSOR",
95 "Line Out", "AUXL",
96 "Line Out", "AUXR",
97 "HSMIC", "Headset Mic",
98 "Headset Mic", "Headset Mic Bias",
99 "AFML", "Line In",
100 "AFMR", "Line In",
101 "Headset Playback", "PDM_DL1",
102 "PDM_UL1", "Capture",
103 "40122000.mcbsp Playback", "BT_VX_DL",
104 "BT_VX_UL", "40122000.mcbsp Capture",
105 "40124000.mcbsp Playback", "MM_EXT_DL",
106 "MM_EXT_UL", "40124000.mcbsp Capture";
107 };
109 sound_hdmi {
110 compatible = "ti,omap-hdmi-tpd12s015-audio";
111 ti,model = "OMAP5HDMI";
113 ti,hdmi_audio = <&hdmi>;
114 ti,level_shifter = <&tpd12s015>;
115 };
117 leds {
118 compatible = "gpio-leds";
119 led@1 {
120 label = "omap5:blue:usr1";
121 gpios = <&gpio5 25 0>; /* gpio5_153 D1 LED */
122 linux,default-trigger = "heartbeat";
123 default-state = "off";
124 };
125 };
126 };
128 &omap5_pmx_core {
129 pinctrl-names = "default";
130 pinctrl-0 = <
131 &twl6040_pins
132 &mcpdm_pins
133 &dmic_pins
134 &mcbsp1_pins
135 &mcbsp2_pins
136 &usbhost_pins
137 &dss_hdmi_pins
138 &tpd12s015_pins
139 &tca6424a_pins
140 &palmas_pins
141 &led_gpio_pins
142 >;
144 twl6040_pins: pinmux_twl6040_pins {
145 pinctrl-single,pins = <
146 0x17e 0x6 /* mcspi1_somi.gpio5_141 OUTPUT | MODE6 */
147 0x18a 0x6 /* perslimbus2_clock.gpio5_145 OUTPUT | MODE6 */
148 >;
149 };
151 mcpdm_pins: pinmux_mcpdm_pins {
152 pinctrl-single,pins = <
153 0x142 0x108 /* abe_clks.abe_clks INPUT PULLDOWN | MODE0 */
154 0x15c 0x108 /* abemcpdm_ul_data.abemcpdm_ul_data INPUT PULLDOWN | MODE0 */
155 0x15e 0x108 /* abemcpdm_dl_data.abemcpdm_dl_data INPUT PULLDOWN | MODE0 */
156 0x160 0x118 /* abemcpdm_frame.abemcpdm_frame INPUT PULLUP | MODE0 */
157 0x162 0x108 /* abemcpdm_lb_clk.abemcpdm_lb_clk INPUT PULLDOWN | MODE0 */
158 >;
159 };
161 dmic_pins: pinmux_dmic_pins {
162 pinctrl-single,pins = <
163 0x144 0x100 /* abedmic_din1.abedmic_din1 INPUT | MODE0 */
164 0x146 0x100 /* abedmic_din2.abedmic_din2 INPUT | MODE0 */
165 0x148 0x100 /* abedmic_din3.abedmic_din3 INPUT | MODE0 */
166 0x14a 0 /* abedmic_clk1.abedmic_clk1 OUTPUT | MODE0 */
167 >;
168 };
170 mcbsp1_pins: pinmux_mcbsp1_pins {
171 pinctrl-single,pins = <
172 0x14c 0x101 /* abedmic_clk2.abemcbsp1_fsx INPUT | MODE1 */
173 0x14e 0x9 /* abedmic_clk3.abemcbsp1_dx OUTPUT PULLDOWN | MODE1 */
174 0x150 0x101 /* abeslimbus1_clock.abemcbsp1_clkx INPUT | MODE0 */
175 0x152 0x109 /* abeslimbus1_data.abemcbsp1_dr INPUT PULLDOWN | MODE1 */
176 >;
177 };
179 mcbsp2_pins: pinmux_mcbsp2_pins {
180 pinctrl-single,pins = <
181 0x154 0x108 /* abemcbsp2_dr.abemcbsp2_dr INPUT PULLDOWN | MODE0 */
182 0x156 0x8 /* abemcbsp2_dx.abemcbsp2_dx OUTPUT PULLDOWN | MODE0 */
183 0x158 0x100 /* abemcbsp2_fsx.abemcbsp2_fsx INPUT | MODE0 */
184 0x15a 0x100 /* abemcbsp2_clkx.abemcbsp2_clkx INPUT | MODE0 */
185 >;
186 };
188 usbhost_pins: pinmux_usbhost_pins {
189 pinctrl-single,pins = <
190 0x84 0x100 /* usbb2_hsic_strobe INPUT | MODE 0 */
191 0x86 0x100 /* usbb2_hsic_data INPUT | MODE 0 */
193 0x19e 0x100 /* usbb3_hsic_strobe INPUT | MODE 0 */
194 0x1a0 0x100 /* usbb3_hsic_data INPUT | MODE 0 */
196 0x70 0x6 /* gpio3_80 OUTPUT | MODE 6 HUB_NRESET */
197 0x6e 0x6 /* gpio3_79 OUTPUT | MODE 6 ETH_NRESET */
198 >;
199 };
201 dss_hdmi_pins: pinmux_dss_hdmi_pins {
202 pinctrl-single,pins = <
203 0x0fc 0x118 /* hdmi_cec.hdmi_cec INPUT PULLUP | MODE 0 */
204 0x100 0x106 /* GPIO7_194, DDC-SCL */
205 0x102 0x106 /* GPIO7_195, DDC-SDA */
206 >;
207 };
209 tpd12s015_pins: pinmux_tpd12s015_pins {
210 pinctrl-single,pins = <
211 0x0fe 0x116 /* hdmi_hpd.gpio7_193 INPUT PULLDOWN | MODE6 */
212 >;
213 };
215 tca6424a_pins: pinmux_tca6424a_pins {
216 pinctrl-single,pins = <
217 0x186 0x100 /* i2c5_scl.i2c5_scl INPUT | MODE0 */
218 0x188 0x100 /* i2c5_sda.i2c5_sda INPUT | MODE0 */
219 >;
220 };
222 uart1_pins: pinmux_uart1_pins {
223 pinctrl-single,pins = <
224 0x60 0x0 /* uart1_tx.uart1_cts MODE0 */
225 0x62 0x118 /* uart1_tx.uart1_cts INPUT | PULLUP | MODE0 */
226 0x64 0x118 /* uart1_rx.uart1_rts INPUT | PULLUP | MODE0 */
227 0x66 0 /* uart1_rx.uart1_rts MODE0 */
228 >;
229 };
231 uart3_pins: pinmux_uart3_pins {
232 pinctrl-single,pins = <
233 0x19a 0x0 /* uart3_rts_irsd.uart3_tx_irtx MODE0 */
234 0x19c 0x118 /* uart3_rx_irrx.uart3_usbb3_hsic INPUT | PULLUP | MODE0 */
235 >;
236 };
238 uart5_pins: pinmux_uart5_pins {
239 pinctrl-single,pins = <
240 0x170 0x118 /* uart5_rx.uart5_rx INPUT | PULLUP | MODE0 */
241 0x172 0x0 /* uart5_tx.uart5_tx MODE0 */
242 0x174 0x118 /* uart5_cts.uart5_rts INPUT | PULLUP | MODE0 */
243 0x176 0x0 /* uart5_cts.uart5_rts MODE0 */
244 >;
245 };
247 mcspi2_pins: pinmux_mcspi2_pins {
248 pinctrl-single,pins = <
249 0xbc 0x100 /* MCSPI2_CLK INPUTENABLE | MODE0 */
250 0xbe 0x100 /* MCSPI2_SIMO INPUTENABLE | MODE0 */
251 0xc0 0x118 /* MCSPI2_SOMI PULLUP | INPUTENABLE | MODE0*/
252 0xc2 0x0 /* MCSPI2_CS MODE0*/
253 >;
254 };
256 mcspi3_pins: pinmux_mcspi3_pins {
257 pinctrl-single,pins = <
258 0x78 0x101 /* MCSPI2_SOMI INPUTENABLE | MODE1 */
259 0x7a 0x101 /* MCSPI2_CS INPUTENABLE | MODE1 */
260 0x7c 0x101 /* MCSPI2_SIMO INPUTENABLE | MODE1 */
261 0x7e 0x101 /* MCSPI2_CLK INPUTENABLE | MODE1 */
262 >;
263 };
265 mcspi4_pins: pinmux_mcspi4_pins {
266 pinctrl-single,pins = <
267 0x164 0x101 /* MCSPI2_CLK INPUTENABLE | MODE1 */
268 0x168 0x101 /* MCSPI2_SIMO INPUTENABLE | MODE1 */
269 0x16a 0x101 /* MCSPI2_SOMI INPUTENABLE | MODE1 */
270 0x16c 0x101 /* MCSPI2_CS INPUTENABLE | MODE1 */
271 >;
272 };
274 palmas_pins: pinmux_palmas_pins {
275 pinctrl-single,pins = <
276 0x140 0x11f /* MSLEEP INPUT | PULLUP | MODE7 */
277 >;
278 };
280 led_gpio_pins: pinmux_led_gpio_pins {
281 pinctrl-single,pins = <
282 0x196 0x6 /* uart3_cts_rctx.gpio5_153 OUTPUT | MODE6 */
283 >;
284 };
285 };
287 &omap5_pmx_wkup {
288 pinctrl-names = "default";
289 pinctrl-0 = <
290 &usbhost_wkup_pins
291 >;
293 usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
294 pinctrl-single,pins = <
295 0x1A 0x0 /* fref_clk1_out OUTPUT | MODE 7 for USB hub clk */
296 >;
297 };
298 };
300 &mmc1 {
301 vmmc-supply = <&vmmcsd_fixed>;
302 bus-width = <4>;
303 };
305 &mmc2 {
306 vmmc-supply = <&vmmcsd_fixed>;
307 bus-width = <8>;
308 ti,non-removable;
309 };
311 &mmc3 {
312 bus-width = <4>;
313 ti,non-removable;
314 status = "disabled";
315 };
317 &mmc4 {
318 status = "disabled";
319 };
321 &mmc5 {
322 status = "disabled";
323 };
325 &i2c5 {
326 tca6424a: tca6424a@22 {
327 compatible = "ti,tca6424a";
328 reg = <0x22>;
329 gpio-controller;
330 #gpio-cells = <2>;
331 };
332 };
334 &mcbsp3 {
335 status = "disabled";
336 };
338 &emif1 {
339 cs1-used;
340 device-handle = <&samsung_K3PE0E000B>;
341 };
343 &emif2 {
344 cs1-used;
345 device-handle = <&samsung_K3PE0E000B>;
346 };
348 &i2c1 {
349 clock-frequency = <400000>;
351 palmas: palmas@48 {
352 reg = <0x48>;
353 /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
354 interrupts = <0 7 4>; /* IRQ_SYS_1N cascaded to gic */
355 interrupt-parent = <&gic>;
356 };
358 twl6040: twl@4b {
359 compatible = "ti,twl6040";
361 interrupts = <0 119 4>; /* IRQ_SYS_2N cascaded to gic */
362 interrupt-parent = <&gic>;
363 ti,audpwron-gpio = <&gpio5 13 0>; /* gpio line 141 */
365 vio-supply = <&smps7_reg>;
366 v2v1-supply = <&smps9_reg>;
367 enable-active-high;
368 };
369 };
371 &usbhshost {
372 port2-mode = "ehci-hsic";
373 port3-mode = "ehci-hsic";
374 };
376 &usbhsehci {
377 phys = <0 &hsusb2_phy &hsusb3_phy>;
378 };
380 /include/ "palmas.dtsi"
381 /include/ "twl6040.dtsi"
383 &hdmi {
384 tpd12s015: tpd12s015 {
385 compatible = "ti,tpd12s015";
387 gpios = <&tca6424a 0 0>, /* TCA6424A P01, CT_CP_HDP */
388 <&tca6424a 1 0>, /* TCA6424A P00, LS_OE*/
389 <&gpio7 1 0>, /* 193, HPD */
390 <&gpio7 2 0>, /* 194, SCL */
391 <&gpio7 3 0>; /* 195, SDA */
394 hdmi-monitor {
395 compatible = "ti,hdmi_panel";
396 };
398 };
399 };
401 &uart1 {
402 pinctrl-names = "default";
403 pinctrl-0 = <&uart1_pins>;
404 };
406 &uart3 {
407 pinctrl-names = "default";
408 pinctrl-0 = <&uart3_pins>;
409 };
411 &uart5 {
412 pinctrl-names = "default";
413 pinctrl-0 = <&uart5_pins>;
414 };
416 &mcspi2 {
417 pinctrl-names = "default";
418 pinctrl-0 = <&mcspi2_pins>;
419 };
421 &mcspi3 {
422 pinctrl-names = "default";
423 pinctrl-0 = <&mcspi3_pins>;
424 };
426 &mcspi4 {
427 pinctrl-names = "default";
428 pinctrl-0 = <&mcspi4_pins>;
429 };