omap3-beagle.dts 4.2 KB

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