omap3-beagle-xm.dts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. leds {
  23. compatible = "gpio-leds";
  24. heartbeat {
  25. label = "beagleboard::usr0";
  26. gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
  27. linux,default-trigger = "heartbeat";
  28. };
  29. mmc {
  30. label = "beagleboard::usr1";
  31. gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
  32. linux,default-trigger = "mmc0";
  33. };
  34. };
  35. pwmleds {
  36. compatible = "pwm-leds";
  37. pmu_stat {
  38. label = "beagleboard::pmu_stat";
  39. pwms = <&twl_pwmled 1 7812500>;
  40. max-brightness = <127>;
  41. };
  42. };
  43. sound {
  44. compatible = "ti,omap-twl4030";
  45. ti,model = "omap3beagle";
  46. ti,mcbsp = <&mcbsp2>;
  47. ti,codec = <&twl_audio>;
  48. };
  49. gpio_keys {
  50. compatible = "gpio-keys";
  51. user {
  52. label = "user";
  53. gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  54. linux,code = <0x114>;
  55. gpio-key,wakeup;
  56. };
  57. };
  58. /* HS USB Port 2 Power */
  59. hsusb2_power: hsusb2_power_reg {
  60. compatible = "regulator-fixed";
  61. regulator-name = "hsusb2_vbus";
  62. regulator-min-microvolt = <3300000>;
  63. regulator-max-microvolt = <3300000>;
  64. gpio = <&twl_gpio 18 0>; /* GPIO LEDA */
  65. startup-delay-us = <70000>;
  66. };
  67. /* HS USB Host PHY on PORT 2 */
  68. hsusb2_phy: hsusb2_phy {
  69. compatible = "usb-nop-xceiv";
  70. reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */
  71. vcc-supply = <&hsusb2_power>;
  72. };
  73. };
  74. &omap3_pmx_wkup {
  75. gpio1_pins: pinmux_gpio1_pins {
  76. pinctrl-single,pins = <
  77. 0x0e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot2.gpio_4 */
  78. >;
  79. };
  80. };
  81. &omap3_pmx_core {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <
  84. &hsusbb2_pins
  85. >;
  86. uart3_pins: pinmux_uart3_pins {
  87. pinctrl-single,pins = <
  88. 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  89. 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx OUTPUT | MODE0 */
  90. >;
  91. };
  92. hsusbb2_pins: pinmux_hsusbb2_pins {
  93. pinctrl-single,pins = <
  94. 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
  95. 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
  96. 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
  97. 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
  98. 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
  99. 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
  100. 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
  101. 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
  102. 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
  103. 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
  104. 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
  105. 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
  106. >;
  107. };
  108. };
  109. &i2c1 {
  110. clock-frequency = <2600000>;
  111. twl: twl@48 {
  112. reg = <0x48>;
  113. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  114. interrupt-parent = <&intc>;
  115. twl_audio: audio {
  116. compatible = "ti,twl4030-audio";
  117. codec {
  118. };
  119. };
  120. };
  121. };
  122. #include "twl4030.dtsi"
  123. #include "twl4030_omap3.dtsi"
  124. &i2c2 {
  125. clock-frequency = <400000>;
  126. };
  127. &i2c3 {
  128. clock-frequency = <100000>;
  129. /*
  130. * Display monitor features are burnt in the EEPROM
  131. * as EDID data.
  132. */
  133. eeprom@50 {
  134. compatible = "ti,eeprom";
  135. reg = <0x50>;
  136. };
  137. };
  138. &mmc1 {
  139. vmmc-supply = <&vmmc1>;
  140. vmmc_aux-supply = <&vsim>;
  141. bus-width = <8>;
  142. };
  143. &mmc2 {
  144. status = "disabled";
  145. };
  146. &mmc3 {
  147. status = "disabled";
  148. };
  149. &twl_gpio {
  150. ti,use-leds;
  151. /* pullups: BIT(1) */
  152. ti,pullups = <0x000002>;
  153. /*
  154. * pulldowns:
  155. * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
  156. * BIT(15), BIT(16), BIT(17)
  157. */
  158. ti,pulldowns = <0x03a1c4>;
  159. };
  160. &usb_otg_hs {
  161. interface-type = <0>;
  162. usb-phy = <&usb2_phy>;
  163. phys = <&usb2_phy>;
  164. phy-names = "usb2-phy";
  165. mode = <3>;
  166. power = <50>;
  167. };
  168. &uart3 {
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&uart3_pins>;
  171. };
  172. &gpio1 {
  173. pinctrl-names = "default";
  174. pinctrl-0 = <&gpio1_pins>;
  175. };
  176. &usbhshost {
  177. port2-mode = "ehci-phy";
  178. };
  179. &usbhsehci {
  180. phys = <0 &hsusb2_phy>;
  181. };