omap3-beagle.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 RESET */
  40. hsusb2_reset: hsusb2_reset_reg {
  41. compatible = "regulator-fixed";
  42. regulator-name = "hsusb2_reset";
  43. regulator-min-microvolt = <3300000>;
  44. regulator-max-microvolt = <3300000>;
  45. gpio = <&gpio5 19 0>; /* gpio_147 */
  46. startup-delay-us = <70000>;
  47. enable-active-high;
  48. };
  49. /* HS USB Port 2 Power */
  50. hsusb2_power: hsusb2_power_reg {
  51. compatible = "regulator-fixed";
  52. regulator-name = "hsusb2_vbus";
  53. regulator-min-microvolt = <3300000>;
  54. regulator-max-microvolt = <3300000>;
  55. gpio = <&twl_gpio 18 0>; /* GPIO LEDA */
  56. startup-delay-us = <70000>;
  57. };
  58. /* HS USB Host PHY on PORT 2 */
  59. hsusb2_phy: hsusb2_phy {
  60. compatible = "usb-nop-xceiv";
  61. reset-supply = <&hsusb2_reset>;
  62. vcc-supply = <&hsusb2_power>;
  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. };
  74. &omap3_pmx_wkup {
  75. gpio1_pins: pinmux_gpio1_pins {
  76. pinctrl-single,pins = <
  77. 0x14 (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */
  78. >;
  79. };
  80. };
  81. &omap3_pmx_core {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <
  84. &hsusbb2_pins
  85. >;
  86. hsusbb2_pins: pinmux_hsusbb2_pins {
  87. pinctrl-single,pins = <
  88. 0x5c0 (PIN_OUTPUT | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_clk */
  89. 0x5c2 (PIN_OUTPUT | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_stp */
  90. 0x5c4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dir */
  91. 0x5c6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_nxt */
  92. 0x5c8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat0 */
  93. 0x5cA (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat1 */
  94. 0x1a4 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat2 */
  95. 0x1a6 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat3 */
  96. 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat4 */
  97. 0x1aa (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat5 */
  98. 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat6 */
  99. 0x1ae (PIN_INPUT_PULLDOWN | MUX_MODE3) /* usbb2_ulpitll_clk.usbb1_ulpiphy_dat7 */
  100. >;
  101. };
  102. uart3_pins: pinmux_uart3_pins {
  103. pinctrl-single,pins = <
  104. 0x16e (PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  105. 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  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. };
  116. };
  117. #include "twl4030.dtsi"
  118. #include "twl4030_omap3.dtsi"
  119. &mmc1 {
  120. vmmc-supply = <&vmmc1>;
  121. vmmc_aux-supply = <&vsim>;
  122. bus-width = <8>;
  123. };
  124. &mmc2 {
  125. status = "disabled";
  126. };
  127. &mmc3 {
  128. status = "disabled";
  129. };
  130. &usbhshost {
  131. port2-mode = "ehci-phy";
  132. };
  133. &usbhsehci {
  134. phys = <0 &hsusb2_phy>;
  135. };
  136. &twl_gpio {
  137. ti,use-leds;
  138. /* pullups: BIT(1) */
  139. ti,pullups = <0x000002>;
  140. /*
  141. * pulldowns:
  142. * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
  143. * BIT(15), BIT(16), BIT(17)
  144. */
  145. ti,pulldowns = <0x03a1c4>;
  146. };
  147. &uart3 {
  148. pinctrl-names = "default";
  149. pinctrl-0 = <&uart3_pins>;
  150. };
  151. &gpio1 {
  152. pinctrl-names = "default";
  153. pinctrl-0 = <&gpio1_pins>;
  154. };