omap3-beagle.dts 7.9 KB

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