blob: 25f7b0a22114ee6928e58e27ceeb61cf07b04c79 [file] [log] [blame]
Benoit Cousson295e98c62011-07-14 01:44:54 +05301/*
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
Florian Vaussard98ef79572013-05-31 14:32:55 +020010#include "omap36xx.dtsi"
Benoit Cousson295e98c62011-07-14 01:44:54 +053011
12/ {
Tony Lindgren642f12b2012-09-10 10:20:44 -070013 model = "TI OMAP3 BeagleBoard xM";
Nishanth Menon016c12d22013-10-07 15:43:49 -050014 compatible = "ti,omap3-beagle-xm", "ti,omap36xx", "ti,omap3";
Benoit Cousson295e98c62011-07-14 01:44:54 +053015
Nishanth Menona134be32013-03-19 12:53:05 -050016 cpus {
17 cpu@0 {
18 cpu0-supply = <&vcc>;
19 };
20 };
21
Benoit Cousson295e98c62011-07-14 01:44:54 +053022 memory {
23 device_type = "memory";
24 reg = <0x80000000 0x20000000>; /* 512 MB */
25 };
Florian Vaussarda60be2f2012-09-05 09:46:26 +020026
Tomi Valkeinen9955a9e2013-09-20 10:43:51 +030027 aliases {
28 display0 = &dvi0;
29 display1 = &tv0;
30 };
31
Florian Vaussarda60be2f2012-09-05 09:46:26 +020032 leds {
33 compatible = "gpio-leds";
Benoit Cousson1c1737e2012-09-05 16:42:04 +020034
35 heartbeat {
36 label = "beagleboard::usr0";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020037 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
Benoit Cousson1c1737e2012-09-05 16:42:04 +020038 linux,default-trigger = "heartbeat";
39 };
40
41 mmc {
42 label = "beagleboard::usr1";
Florian Vaussard6d624ea2013-05-31 14:32:56 +020043 gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
Benoit Cousson1c1737e2012-09-05 16:42:04 +020044 linux,default-trigger = "mmc0";
45 };
Florian Vaussarda60be2f2012-09-05 09:46:26 +020046 };
Peter Ujfalusi2c195f92012-08-29 16:31:05 +030047
Peter Ujfalusi2c09c602013-01-18 15:16:18 +010048 pwmleds {
49 compatible = "pwm-leds";
50
51 pmu_stat {
52 label = "beagleboard::pmu_stat";
53 pwms = <&twl_pwmled 1 7812500>;
54 max-brightness = <127>;
55 };
56 };
57
Peter Ujfalusi2c195f92012-08-29 16:31:05 +030058 sound {
59 compatible = "ti,omap-twl4030";
60 ti,model = "omap3beagle";
61
62 ti,mcbsp = <&mcbsp2>;
63 ti,codec = <&twl_audio>;
64 };
Kevin Hilmand641c3d2013-05-31 09:27:05 -070065
66 gpio_keys {
67 compatible = "gpio-keys";
68
69 user {
70 label = "user";
71 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
72 linux,code = <0x114>;
73 gpio-key,wakeup;
74 };
75
76 };
Roger Quadrosaaba9442013-09-24 11:53:55 +030077
78 /* HS USB Port 2 Power */
79 hsusb2_power: hsusb2_power_reg {
80 compatible = "regulator-fixed";
81 regulator-name = "hsusb2_vbus";
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
84 gpio = <&twl_gpio 18 0>; /* GPIO LEDA */
85 startup-delay-us = <70000>;
86 };
87
88 /* HS USB Host PHY on PORT 2 */
89 hsusb2_phy: hsusb2_phy {
90 compatible = "usb-nop-xceiv";
91 reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */
92 vcc-supply = <&hsusb2_power>;
93 };
Tomi Valkeinen9955a9e2013-09-20 10:43:51 +030094
95 tfp410: encoder@0 {
96 compatible = "ti,tfp410";
97 powerdown-gpios = <&twl_gpio 2 GPIO_ACTIVE_LOW>;
98
99 /* XXX pinctrl from twl */
100
101 ports {
102 #address-cells = <1>;
103 #size-cells = <0>;
104
105 port@0 {
106 reg = <0>;
107
108 tfp410_in: endpoint@0 {
109 remote-endpoint = <&dpi_out>;
110 };
111 };
112
113 port@1 {
114 reg = <1>;
115
116 tfp410_out: endpoint@0 {
117 remote-endpoint = <&dvi_connector_in>;
118 };
119 };
120 };
121 };
122
123 dvi0: connector@0 {
124 compatible = "dvi-connector";
125 label = "dvi";
126
127 digital;
128
129 ddc-i2c-bus = <&i2c3>;
130
131 port {
132 dvi_connector_in: endpoint {
133 remote-endpoint = <&tfp410_out>;
134 };
135 };
136 };
137
138 tv0: connector@1 {
139 compatible = "svideo-connector";
140 label = "tv";
141
142 port {
143 tv_connector_in: endpoint {
144 remote-endpoint = <&venc_out>;
145 };
146 };
147 };
Mathieu Poirier9d316202014-11-03 11:07:43 -0700148
149 etb@5401b000 {
150 compatible = "arm,coresight-etb10", "arm,primecell";
151 reg = <0x5401b000 0x1000>;
152
153 coresight-default-sink;
154 clocks = <&emu_src_ck>;
155 clock-names = "apb_pclk";
156 port {
157 etb_in: endpoint {
158 slave-mode;
159 remote-endpoint = <&etm_out>;
160 };
161 };
162 };
163
164 etm@54010000 {
165 compatible = "arm,coresight-etm3x", "arm,primecell";
166 reg = <0x54010000 0x1000>;
167
168 clocks = <&emu_src_ck>;
169 clock-names = "apb_pclk";
170 port {
171 etm_out: endpoint {
172 remote-endpoint = <&etb_in>;
173 };
174 };
175 };
Kevin Hilmand641c3d2013-05-31 09:27:05 -0700176};
177
178&omap3_pmx_wkup {
179 gpio1_pins: pinmux_gpio1_pins {
180 pinctrl-single,pins = <
181 0x0e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot2.gpio_4 */
182 >;
183 };
Tomi Valkeinen9955a9e2013-09-20 10:43:51 +0300184
185 dss_dpi_pins2: pinmux_dss_dpi_pins1 {
186 pinctrl-single,pins = <
187 0x0a (PIN_OUTPUT | MUX_MODE3) /* sys_boot0.dss_data18 */
188 0x0c (PIN_OUTPUT | MUX_MODE3) /* sys_boot1.dss_data19 */
189 0x10 (PIN_OUTPUT | MUX_MODE3) /* sys_boot3.dss_data20 */
190 0x12 (PIN_OUTPUT | MUX_MODE3) /* sys_boot4.dss_data21 */
191 0x14 (PIN_OUTPUT | MUX_MODE3) /* sys_boot5.dss_data22 */
192 0x16 (PIN_OUTPUT | MUX_MODE3) /* sys_boot6.dss_data23 */
193 >;
194 };
Benoit Cousson295e98c62011-07-14 01:44:54 +0530195};
Benoit Cousson5340b512011-07-14 01:44:54 +0530196
Roger Quadrosaaba9442013-09-24 11:53:55 +0300197&omap3_pmx_core {
198 pinctrl-names = "default";
199 pinctrl-0 = <
Laurent Pinchart3d495382014-01-07 14:01:39 -0800200 &hsusb2_pins
Roger Quadrosaaba9442013-09-24 11:53:55 +0300201 >;
202
203 uart3_pins: pinmux_uart3_pins {
204 pinctrl-single,pins = <
Tony Lindgren7c1babd2014-09-18 09:03:36 -0700205 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
206 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx OUTPUT | MODE0 */
Roger Quadrosaaba9442013-09-24 11:53:55 +0300207 >;
208 };
209
Laurent Pinchart3d495382014-01-07 14:01:39 -0800210 hsusb2_pins: pinmux_hsusb2_pins {
Roger Quadrosaaba9442013-09-24 11:53:55 +0300211 pinctrl-single,pins = <
Laurent Pinchart3d495382014-01-07 14:01:39 -0800212 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
213 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
214 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
215 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
216 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
217 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
218 >;
219 };
Tomi Valkeinen9955a9e2013-09-20 10:43:51 +0300220
221 dss_dpi_pins1: pinmux_dss_dpi_pins2 {
222 pinctrl-single,pins = <
223 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
224 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
225 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
226 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
227
228 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
229 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
230 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
231 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
232 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
233 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
234 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
235 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
236 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
237 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
238 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
239 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
240
241 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE3) /* dss_data18.dss_data0 */
242 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE3) /* dss_data19.dss_data1 */
243 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE3) /* dss_data20.dss_data2 */
244 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE3) /* dss_data21.dss_data3 */
245 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE3) /* dss_data22.dss_data4 */
246 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE3) /* dss_data23.dss_data5 */
247 >;
248 };
Laurent Pinchart3d495382014-01-07 14:01:39 -0800249};
250
251&omap3_pmx_core2 {
252 pinctrl-names = "default";
253 pinctrl-0 = <
254 &hsusb2_2_pins
255 >;
256
257 hsusb2_2_pins: pinmux_hsusb2_2_pins {
258 pinctrl-single,pins = <
259 OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
260 OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
261 OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
262 OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
263 OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
264 OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
Roger Quadrosaaba9442013-09-24 11:53:55 +0300265 >;
266 };
267};
268
Benoit Cousson5340b512011-07-14 01:44:54 +0530269&i2c1 {
270 clock-frequency = <2600000>;
271
272 twl: twl@48 {
273 reg = <0x48>;
274 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
275 interrupt-parent = <&intc>;
Rajendra Nayakecc7b062012-02-08 15:50:12 -0800276
Peter Ujfalusi2c195f92012-08-29 16:31:05 +0300277 twl_audio: audio {
278 compatible = "ti,twl4030-audio";
279 codec {
280 };
281 };
Tony Lindgren91888832014-06-16 01:10:22 -0700282
283 twl_power: power {
284 compatible = "ti,twl4030-power-beagleboard-xm", "ti,twl4030-power-idle-osc-off";
285 ti,use_poweroff;
286 };
Benoit Cousson5340b512011-07-14 01:44:54 +0530287 };
288};
289
Florian Vaussard98ef79572013-05-31 14:32:55 +0200290#include "twl4030.dtsi"
Kevin Hilmanf9688452013-05-31 14:09:34 -0700291#include "twl4030_omap3.dtsi"
Benoit Cousson5340b512011-07-14 01:44:54 +0530292
293&i2c2 {
294 clock-frequency = <400000>;
295};
296
297&i2c3 {
298 clock-frequency = <100000>;
Benoit Cousson5340b512011-07-14 01:44:54 +0530299};
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530300
301&mmc1 {
302 vmmc-supply = <&vmmc1>;
303 vmmc_aux-supply = <&vsim>;
Arnd Bergmann7f217792012-05-13 00:14:24 -0400304 bus-width = <8>;
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530305};
306
307&mmc2 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700308 status = "disabled";
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530309};
310
311&mmc3 {
Roland Stiggefd5c3fd2012-06-21 01:36:03 -0700312 status = "disabled";
Rajendra Nayakb3431f52012-02-22 17:42:27 +0530313};
Florian Vaussarda60be2f2012-09-05 09:46:26 +0200314
315&twl_gpio {
316 ti,use-leds;
317 /* pullups: BIT(1) */
318 ti,pullups = <0x000002>;
319 /*
320 * pulldowns:
321 * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
322 * BIT(15), BIT(16), BIT(17)
323 */
324 ti,pulldowns = <0x03a1c4>;
325};
Kishon Vijay Abraham Iad871c12013-03-07 19:05:16 +0530326
327&usb_otg_hs {
328 interface-type = <0>;
Jason Cooper914dc322013-05-09 09:06:57 -0700329 usb-phy = <&usb2_phy>;
Kishon Vijay Abraham I975d9632013-09-27 11:53:29 +0530330 phys = <&usb2_phy>;
331 phy-names = "usb2-phy";
Kishon Vijay Abraham Iad871c12013-03-07 19:05:16 +0530332 mode = <3>;
333 power = <50>;
334};
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700335
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700336&uart3 {
Tony Lindgren91888832014-06-16 01:10:22 -0700337 interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
Kevin Hilmanb859c1e2013-05-30 17:38:00 -0700338 pinctrl-names = "default";
339 pinctrl-0 = <&uart3_pins>;
340};
Kevin Hilmand641c3d2013-05-31 09:27:05 -0700341
342&gpio1 {
343 pinctrl-names = "default";
344 pinctrl-0 = <&gpio1_pins>;
345};
Roger Quadrosaaba9442013-09-24 11:53:55 +0300346
347&usbhshost {
348 port2-mode = "ehci-phy";
349};
350
351&usbhsehci {
352 phys = <0 &hsusb2_phy>;
353};
Roger Quadros30023a72013-11-26 15:03:39 -0800354
355&vaux2 {
356 regulator-name = "usb_1v8";
357 regulator-min-microvolt = <1800000>;
358 regulator-max-microvolt = <1800000>;
359 regulator-always-on;
360};
Peter Ujfalusi726322c2014-01-24 10:19:05 +0200361
362&mcbsp2 {
363 status = "okay";
364};
Tomi Valkeinen9955a9e2013-09-20 10:43:51 +0300365
366&dss {
367 status = "ok";
368
369 pinctrl-names = "default";
370 pinctrl-0 = <
371 &dss_dpi_pins1
372 &dss_dpi_pins2
373 >;
374
375 port {
376 dpi_out: endpoint {
377 remote-endpoint = <&tfp410_in>;
378 data-lines = <24>;
379 };
380 };
381};
382
383&venc {
384 status = "ok";
385
386 vdda-supply = <&vdac>;
387
388 port {
389 venc_out: endpoint {
390 remote-endpoint = <&tv_connector_in>;
391 ti,channels = <2>;
392 };
393 };
394};