omap3-beagle-xm.dts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. #include "omap36xx.dtsi"
  10. / {
  11. model = "TI OMAP3 BeagleBoard xM";
  12. compatible = "ti,omap3-beagle-xm", "ti,omap36xx", "ti,omap3";
  13. cpus {
  14. cpu@0 {
  15. cpu0-supply = <&vcc>;
  16. };
  17. };
  18. memory {
  19. device_type = "memory";
  20. reg = <0x80000000 0x20000000>; /* 512 MB */
  21. };
  22. aliases {
  23. display0 = &dvi0;
  24. display1 = &tv0;
  25. };
  26. leds {
  27. compatible = "gpio-leds";
  28. heartbeat {
  29. label = "beagleboard::usr0";
  30. gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
  31. linux,default-trigger = "heartbeat";
  32. };
  33. mmc {
  34. label = "beagleboard::usr1";
  35. gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
  36. linux,default-trigger = "mmc0";
  37. };
  38. };
  39. pwmleds {
  40. compatible = "pwm-leds";
  41. pmu_stat {
  42. label = "beagleboard::pmu_stat";
  43. pwms = <&twl_pwmled 1 7812500>;
  44. max-brightness = <127>;
  45. };
  46. };
  47. sound {
  48. compatible = "ti,omap-twl4030";
  49. ti,model = "omap3beagle";
  50. ti,mcbsp = <&mcbsp2>;
  51. ti,codec = <&twl_audio>;
  52. };
  53. gpio_keys {
  54. compatible = "gpio-keys";
  55. user {
  56. label = "user";
  57. gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  58. linux,code = <0x114>;
  59. gpio-key,wakeup;
  60. };
  61. };
  62. /* HS USB Port 2 Power */
  63. hsusb2_power: hsusb2_power_reg {
  64. compatible = "regulator-fixed";
  65. regulator-name = "hsusb2_vbus";
  66. regulator-min-microvolt = <3300000>;
  67. regulator-max-microvolt = <3300000>;
  68. gpio = <&twl_gpio 18 0>; /* GPIO LEDA */
  69. startup-delay-us = <70000>;
  70. };
  71. /* HS USB Host PHY on PORT 2 */
  72. hsusb2_phy: hsusb2_phy {
  73. compatible = "usb-nop-xceiv";
  74. reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */
  75. vcc-supply = <&hsusb2_power>;
  76. };
  77. tfp410: encoder@0 {
  78. compatible = "ti,tfp410";
  79. powerdown-gpios = <&twl_gpio 2 GPIO_ACTIVE_LOW>;
  80. /* XXX pinctrl from twl */
  81. ports {
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. port@0 {
  85. reg = <0>;
  86. tfp410_in: endpoint@0 {
  87. remote-endpoint = <&dpi_out>;
  88. };
  89. };
  90. port@1 {
  91. reg = <1>;
  92. tfp410_out: endpoint@0 {
  93. remote-endpoint = <&dvi_connector_in>;
  94. };
  95. };
  96. };
  97. };
  98. dvi0: connector@0 {
  99. compatible = "dvi-connector";
  100. label = "dvi";
  101. digital;
  102. ddc-i2c-bus = <&i2c3>;
  103. port {
  104. dvi_connector_in: endpoint {
  105. remote-endpoint = <&tfp410_out>;
  106. };
  107. };
  108. };
  109. tv0: connector@1 {
  110. compatible = "svideo-connector";
  111. label = "tv";
  112. port {
  113. tv_connector_in: endpoint {
  114. remote-endpoint = <&venc_out>;
  115. };
  116. };
  117. };
  118. };
  119. &omap3_pmx_wkup {
  120. gpio1_pins: pinmux_gpio1_pins {
  121. pinctrl-single,pins = <
  122. 0x0e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot2.gpio_4 */
  123. >;
  124. };
  125. dss_dpi_pins2: pinmux_dss_dpi_pins1 {
  126. pinctrl-single,pins = <
  127. 0x0a (PIN_OUTPUT | MUX_MODE3) /* sys_boot0.dss_data18 */
  128. 0x0c (PIN_OUTPUT | MUX_MODE3) /* sys_boot1.dss_data19 */
  129. 0x10 (PIN_OUTPUT | MUX_MODE3) /* sys_boot3.dss_data20 */
  130. 0x12 (PIN_OUTPUT | MUX_MODE3) /* sys_boot4.dss_data21 */
  131. 0x14 (PIN_OUTPUT | MUX_MODE3) /* sys_boot5.dss_data22 */
  132. 0x16 (PIN_OUTPUT | MUX_MODE3) /* sys_boot6.dss_data23 */
  133. >;
  134. };
  135. };
  136. &omap3_pmx_core {
  137. pinctrl-names = "default";
  138. pinctrl-0 = <
  139. &hsusb2_pins
  140. >;
  141. uart3_pins: pinmux_uart3_pins {
  142. pinctrl-single,pins = <
  143. 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  144. 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx OUTPUT | MODE0 */
  145. >;
  146. };
  147. hsusb2_pins: pinmux_hsusb2_pins {
  148. pinctrl-single,pins = <
  149. OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
  150. OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
  151. OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
  152. OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
  153. OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
  154. OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
  155. >;
  156. };
  157. dss_dpi_pins1: pinmux_dss_dpi_pins2 {
  158. pinctrl-single,pins = <
  159. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
  160. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
  161. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
  162. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
  163. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
  164. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
  165. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
  166. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
  167. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
  168. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
  169. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
  170. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
  171. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
  172. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
  173. OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
  174. OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
  175. OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE3) /* dss_data18.dss_data0 */
  176. OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE3) /* dss_data19.dss_data1 */
  177. OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE3) /* dss_data20.dss_data2 */
  178. OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE3) /* dss_data21.dss_data3 */
  179. OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE3) /* dss_data22.dss_data4 */
  180. OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE3) /* dss_data23.dss_data5 */
  181. >;
  182. };
  183. };
  184. &omap3_pmx_core2 {
  185. pinctrl-names = "default";
  186. pinctrl-0 = <
  187. &hsusb2_2_pins
  188. >;
  189. hsusb2_2_pins: pinmux_hsusb2_2_pins {
  190. pinctrl-single,pins = <
  191. OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
  192. OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
  193. OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
  194. OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
  195. OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
  196. OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
  197. >;
  198. };
  199. };
  200. &i2c1 {
  201. clock-frequency = <2600000>;
  202. twl: twl@48 {
  203. reg = <0x48>;
  204. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  205. interrupt-parent = <&intc>;
  206. twl_audio: audio {
  207. compatible = "ti,twl4030-audio";
  208. codec {
  209. };
  210. };
  211. twl_power: power {
  212. compatible = "ti,twl4030-power-beagleboard-xm", "ti,twl4030-power-idle-osc-off";
  213. ti,use_poweroff;
  214. };
  215. };
  216. };
  217. #include "twl4030.dtsi"
  218. #include "twl4030_omap3.dtsi"
  219. &i2c2 {
  220. clock-frequency = <400000>;
  221. };
  222. &i2c3 {
  223. clock-frequency = <100000>;
  224. };
  225. &mmc1 {
  226. vmmc-supply = <&vmmc1>;
  227. vmmc_aux-supply = <&vsim>;
  228. bus-width = <8>;
  229. };
  230. &mmc2 {
  231. status = "disabled";
  232. };
  233. &mmc3 {
  234. status = "disabled";
  235. };
  236. &twl_gpio {
  237. ti,use-leds;
  238. /* pullups: BIT(1) */
  239. ti,pullups = <0x000002>;
  240. /*
  241. * pulldowns:
  242. * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
  243. * BIT(15), BIT(16), BIT(17)
  244. */
  245. ti,pulldowns = <0x03a1c4>;
  246. };
  247. &usb_otg_hs {
  248. interface-type = <0>;
  249. usb-phy = <&usb2_phy>;
  250. phys = <&usb2_phy>;
  251. phy-names = "usb2-phy";
  252. mode = <3>;
  253. power = <50>;
  254. };
  255. &uart3 {
  256. interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
  257. pinctrl-names = "default";
  258. pinctrl-0 = <&uart3_pins>;
  259. };
  260. &gpio1 {
  261. pinctrl-names = "default";
  262. pinctrl-0 = <&gpio1_pins>;
  263. };
  264. &usbhshost {
  265. port2-mode = "ehci-phy";
  266. };
  267. &usbhsehci {
  268. phys = <0 &hsusb2_phy>;
  269. };
  270. &vaux2 {
  271. regulator-name = "usb_1v8";
  272. regulator-min-microvolt = <1800000>;
  273. regulator-max-microvolt = <1800000>;
  274. regulator-always-on;
  275. };
  276. &mcbsp2 {
  277. status = "okay";
  278. };
  279. &dss {
  280. status = "ok";
  281. pinctrl-names = "default";
  282. pinctrl-0 = <
  283. &dss_dpi_pins1
  284. &dss_dpi_pins2
  285. >;
  286. port {
  287. dpi_out: endpoint {
  288. remote-endpoint = <&tfp410_in>;
  289. data-lines = <24>;
  290. };
  291. };
  292. };
  293. &venc {
  294. status = "ok";
  295. vdda-supply = <&vdac>;
  296. port {
  297. venc_out: endpoint {
  298. remote-endpoint = <&tv_connector_in>;
  299. ti,channels = <2>;
  300. };
  301. };
  302. };