]>
Commit | Line | Data |
---|---|---|
295e98c6 BC |
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 | ||
98ef7957 | 10 | #include "omap36xx.dtsi" |
295e98c6 BC |
11 | |
12 | / { | |
642f12b4 | 13 | model = "TI OMAP3 BeagleBoard xM"; |
016c12d2 | 14 | compatible = "ti,omap3-beagle-xm", "ti,omap36xx", "ti,omap3"; |
295e98c6 | 15 | |
a134be34 NM |
16 | cpus { |
17 | cpu@0 { | |
18 | cpu0-supply = <&vcc>; | |
19 | }; | |
20 | }; | |
21 | ||
295e98c6 BC |
22 | memory { |
23 | device_type = "memory"; | |
24 | reg = <0x80000000 0x20000000>; /* 512 MB */ | |
25 | }; | |
a60be2fe | 26 | |
9955a9e5 TV |
27 | aliases { |
28 | display0 = &dvi0; | |
29 | display1 = &tv0; | |
30 | }; | |
31 | ||
a60be2fe FV |
32 | leds { |
33 | compatible = "gpio-leds"; | |
1c1737e5 BC |
34 | |
35 | heartbeat { | |
36 | label = "beagleboard::usr0"; | |
6d624eab | 37 | gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */ |
1c1737e5 BC |
38 | linux,default-trigger = "heartbeat"; |
39 | }; | |
40 | ||
41 | mmc { | |
42 | label = "beagleboard::usr1"; | |
6d624eab | 43 | gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */ |
1c1737e5 BC |
44 | linux,default-trigger = "mmc0"; |
45 | }; | |
a60be2fe | 46 | }; |
2c195f9c | 47 | |
2c09c60c PU |
48 | 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 | ||
2c195f9c PU |
58 | sound { |
59 | compatible = "ti,omap-twl4030"; | |
60 | ti,model = "omap3beagle"; | |
61 | ||
62 | ti,mcbsp = <&mcbsp2>; | |
63 | ti,codec = <&twl_audio>; | |
64 | }; | |
d641c3d5 KH |
65 | |
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 | }; | |
aaba9442 RQ |
77 | |
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 | }; | |
9955a9e5 TV |
94 | |
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 | }; | |
d641c3d5 KH |
148 | }; |
149 | ||
150 | &omap3_pmx_wkup { | |
151 | gpio1_pins: pinmux_gpio1_pins { | |
152 | pinctrl-single,pins = < | |
153 | 0x0e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot2.gpio_4 */ | |
154 | >; | |
155 | }; | |
9955a9e5 TV |
156 | |
157 | dss_dpi_pins2: pinmux_dss_dpi_pins1 { | |
158 | pinctrl-single,pins = < | |
159 | 0x0a (PIN_OUTPUT | MUX_MODE3) /* sys_boot0.dss_data18 */ | |
160 | 0x0c (PIN_OUTPUT | MUX_MODE3) /* sys_boot1.dss_data19 */ | |
161 | 0x10 (PIN_OUTPUT | MUX_MODE3) /* sys_boot3.dss_data20 */ | |
162 | 0x12 (PIN_OUTPUT | MUX_MODE3) /* sys_boot4.dss_data21 */ | |
163 | 0x14 (PIN_OUTPUT | MUX_MODE3) /* sys_boot5.dss_data22 */ | |
164 | 0x16 (PIN_OUTPUT | MUX_MODE3) /* sys_boot6.dss_data23 */ | |
165 | >; | |
166 | }; | |
295e98c6 | 167 | }; |
5340b51d | 168 | |
aaba9442 RQ |
169 | &omap3_pmx_core { |
170 | pinctrl-names = "default"; | |
171 | pinctrl-0 = < | |
3d495383 | 172 | &hsusb2_pins |
aaba9442 RQ |
173 | >; |
174 | ||
175 | uart3_pins: pinmux_uart3_pins { | |
176 | pinctrl-single,pins = < | |
177 | 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */ | |
178 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx OUTPUT | MODE0 */ | |
179 | >; | |
180 | }; | |
181 | ||
3d495383 | 182 | hsusb2_pins: pinmux_hsusb2_pins { |
aaba9442 | 183 | pinctrl-single,pins = < |
3d495383 LP |
184 | OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */ |
185 | OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */ | |
186 | OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */ | |
187 | OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */ | |
188 | OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */ | |
189 | OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */ | |
190 | >; | |
191 | }; | |
9955a9e5 TV |
192 | |
193 | dss_dpi_pins1: pinmux_dss_dpi_pins2 { | |
194 | pinctrl-single,pins = < | |
195 | OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */ | |
196 | OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */ | |
197 | OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */ | |
198 | OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */ | |
199 | ||
200 | OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */ | |
201 | OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */ | |
202 | OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */ | |
203 | OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */ | |
204 | OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */ | |
205 | OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */ | |
206 | OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */ | |
207 | OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */ | |
208 | OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */ | |
209 | OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */ | |
210 | OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */ | |
211 | OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */ | |
212 | ||
213 | OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE3) /* dss_data18.dss_data0 */ | |
214 | OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE3) /* dss_data19.dss_data1 */ | |
215 | OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE3) /* dss_data20.dss_data2 */ | |
216 | OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE3) /* dss_data21.dss_data3 */ | |
217 | OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE3) /* dss_data22.dss_data4 */ | |
218 | OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE3) /* dss_data23.dss_data5 */ | |
219 | >; | |
220 | }; | |
3d495383 LP |
221 | }; |
222 | ||
223 | &omap3_pmx_core2 { | |
224 | pinctrl-names = "default"; | |
225 | pinctrl-0 = < | |
226 | &hsusb2_2_pins | |
227 | >; | |
228 | ||
229 | hsusb2_2_pins: pinmux_hsusb2_2_pins { | |
230 | pinctrl-single,pins = < | |
231 | OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */ | |
232 | OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */ | |
233 | OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */ | |
234 | OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */ | |
235 | OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */ | |
236 | OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */ | |
aaba9442 RQ |
237 | >; |
238 | }; | |
239 | }; | |
240 | ||
5340b51d BC |
241 | &i2c1 { |
242 | clock-frequency = <2600000>; | |
243 | ||
244 | twl: twl@48 { | |
245 | reg = <0x48>; | |
246 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | |
247 | interrupt-parent = <&intc>; | |
ecc7b060 | 248 | |
2c195f9c PU |
249 | twl_audio: audio { |
250 | compatible = "ti,twl4030-audio"; | |
251 | codec { | |
252 | }; | |
253 | }; | |
5340b51d BC |
254 | }; |
255 | }; | |
256 | ||
98ef7957 | 257 | #include "twl4030.dtsi" |
f9688457 | 258 | #include "twl4030_omap3.dtsi" |
5340b51d BC |
259 | |
260 | &i2c2 { | |
261 | clock-frequency = <400000>; | |
262 | }; | |
263 | ||
264 | &i2c3 { | |
265 | clock-frequency = <100000>; | |
5340b51d | 266 | }; |
b3431f5b RN |
267 | |
268 | &mmc1 { | |
269 | vmmc-supply = <&vmmc1>; | |
270 | vmmc_aux-supply = <&vsim>; | |
7f217794 | 271 | bus-width = <8>; |
b3431f5b RN |
272 | }; |
273 | ||
274 | &mmc2 { | |
fd5c3fd7 | 275 | status = "disabled"; |
b3431f5b RN |
276 | }; |
277 | ||
278 | &mmc3 { | |
fd5c3fd7 | 279 | status = "disabled"; |
b3431f5b | 280 | }; |
a60be2fe FV |
281 | |
282 | &twl_gpio { | |
283 | ti,use-leds; | |
284 | /* pullups: BIT(1) */ | |
285 | ti,pullups = <0x000002>; | |
286 | /* | |
287 | * pulldowns: | |
288 | * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) | |
289 | * BIT(15), BIT(16), BIT(17) | |
290 | */ | |
291 | ti,pulldowns = <0x03a1c4>; | |
292 | }; | |
ad871c10 KVA |
293 | |
294 | &usb_otg_hs { | |
295 | interface-type = <0>; | |
914dc329 | 296 | usb-phy = <&usb2_phy>; |
975d963e KVA |
297 | phys = <&usb2_phy>; |
298 | phy-names = "usb2-phy"; | |
ad871c10 KVA |
299 | mode = <3>; |
300 | power = <50>; | |
301 | }; | |
b859c1ef | 302 | |
b859c1ef KH |
303 | &uart3 { |
304 | pinctrl-names = "default"; | |
305 | pinctrl-0 = <&uart3_pins>; | |
306 | }; | |
d641c3d5 KH |
307 | |
308 | &gpio1 { | |
309 | pinctrl-names = "default"; | |
310 | pinctrl-0 = <&gpio1_pins>; | |
311 | }; | |
aaba9442 RQ |
312 | |
313 | &usbhshost { | |
314 | port2-mode = "ehci-phy"; | |
315 | }; | |
316 | ||
317 | &usbhsehci { | |
318 | phys = <0 &hsusb2_phy>; | |
319 | }; | |
30023a7e RQ |
320 | |
321 | &vaux2 { | |
322 | regulator-name = "usb_1v8"; | |
323 | regulator-min-microvolt = <1800000>; | |
324 | regulator-max-microvolt = <1800000>; | |
325 | regulator-always-on; | |
326 | }; | |
726322ce PU |
327 | |
328 | &mcbsp2 { | |
329 | status = "okay"; | |
330 | }; | |
9955a9e5 TV |
331 | |
332 | &dss { | |
333 | status = "ok"; | |
334 | ||
335 | pinctrl-names = "default"; | |
336 | pinctrl-0 = < | |
337 | &dss_dpi_pins1 | |
338 | &dss_dpi_pins2 | |
339 | >; | |
340 | ||
341 | port { | |
342 | dpi_out: endpoint { | |
343 | remote-endpoint = <&tfp410_in>; | |
344 | data-lines = <24>; | |
345 | }; | |
346 | }; | |
347 | }; | |
348 | ||
349 | &venc { | |
350 | status = "ok"; | |
351 | ||
352 | vdda-supply = <&vdac>; | |
353 | ||
354 | port { | |
355 | venc_out: endpoint { | |
356 | remote-endpoint = <&tv_connector_in>; | |
357 | ti,channels = <2>; | |
358 | }; | |
359 | }; | |
360 | }; |