omap3-beagle.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. gpio_keys {
  55. compatible = "gpio-keys";
  56. user {
  57. label = "user";
  58. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  59. linux,code = <0x114>;
  60. gpio-key,wakeup;
  61. };
  62. };
  63. };
  64. &omap3_pmx_wkup {
  65. gpio1_pins: pinmux_gpio1_pins {
  66. pinctrl-single,pins = <
  67. 0x14 (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */
  68. >;
  69. };
  70. };
  71. &omap3_pmx_core {
  72. pinctrl-names = "default";
  73. pinctrl-0 = <
  74. &hsusbb2_pins
  75. >;
  76. hsusbb2_pins: pinmux_hsusbb2_pins {
  77. pinctrl-single,pins = <
  78. 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
  79. 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
  80. 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
  81. 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
  82. 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
  83. 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
  84. 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
  85. 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
  86. 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
  87. 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
  88. 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
  89. 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
  90. >;
  91. };
  92. uart3_pins: pinmux_uart3_pins {
  93. pinctrl-single,pins = <
  94. 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  95. 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  96. >;
  97. };
  98. };
  99. &i2c1 {
  100. clock-frequency = <2600000>;
  101. twl: twl@48 {
  102. reg = <0x48>;
  103. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  104. interrupt-parent = <&intc>;
  105. };
  106. };
  107. #include "twl4030.dtsi"
  108. #include "twl4030_omap3.dtsi"
  109. &mmc1 {
  110. vmmc-supply = <&vmmc1>;
  111. vmmc_aux-supply = <&vsim>;
  112. bus-width = <8>;
  113. };
  114. &mmc2 {
  115. status = "disabled";
  116. };
  117. &mmc3 {
  118. status = "disabled";
  119. };
  120. &usbhshost {
  121. port2-mode = "ehci-phy";
  122. };
  123. &usbhsehci {
  124. phys = <0 &hsusb2_phy>;
  125. };
  126. &twl_gpio {
  127. ti,use-leds;
  128. /* pullups: BIT(1) */
  129. ti,pullups = <0x000002>;
  130. /*
  131. * pulldowns:
  132. * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
  133. * BIT(15), BIT(16), BIT(17)
  134. */
  135. ti,pulldowns = <0x03a1c4>;
  136. };
  137. &uart3 {
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&uart3_pins>;
  140. };
  141. &gpio1 {
  142. pinctrl-names = "default";
  143. pinctrl-0 = <&gpio1_pins>;
  144. };
  145. &usb_otg_hs {
  146. interface-type = <0>;
  147. usb-phy = <&usb2_phy>;
  148. phys = <&usb2_phy>;
  149. phy-names = "usb2-phy";
  150. mode = <3>;
  151. power = <50>;
  152. };