omap3-igep.dtsi 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. /*
  2. * Common device tree for IGEP boards based on AM/DM37x
  3. *
  4. * Copyright (C) 2012 Javier Martinez Canillas <javier@collabora.co.uk>
  5. * Copyright (C) 2012 Enric Balletbo i Serra <eballetbo@gmail.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. /dts-v1/;
  12. #include "omap36xx.dtsi"
  13. / {
  14. memory {
  15. device_type = "memory";
  16. reg = <0x80000000 0x20000000>; /* 512 MB */
  17. };
  18. sound {
  19. compatible = "ti,omap-twl4030";
  20. ti,model = "igep2";
  21. ti,mcbsp = <&mcbsp2>;
  22. ti,codec = <&twl_audio>;
  23. };
  24. vdd33: regulator-vdd33 {
  25. compatible = "regulator-fixed";
  26. regulator-name = "vdd33";
  27. regulator-always-on;
  28. };
  29. lbee1usjyc_vmmc: lbee1usjyc_vmmc {
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&lbee1usjyc_pins>;
  32. compatible = "regulator-fixed";
  33. regulator-name = "regulator-lbee1usjyc";
  34. regulator-min-microvolt = <3300000>;
  35. regulator-max-microvolt = <3300000>;
  36. gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>; /* gpio_138 WIFI_PDN */
  37. startup-delay-us = <10000>;
  38. enable-active-high;
  39. vin-supply = <&vdd33>;
  40. };
  41. };
  42. &omap3_pmx_core {
  43. uart1_pins: pinmux_uart1_pins {
  44. pinctrl-single,pins = <
  45. 0x152 (PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
  46. 0x14c (PIN_OUTPUT |MUX_MODE0) /* uart1_tx.uart1_tx */
  47. >;
  48. };
  49. uart2_pins: pinmux_uart2_pins {
  50. pinctrl-single,pins = <
  51. 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
  52. 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
  53. >;
  54. };
  55. uart3_pins: pinmux_uart3_pins {
  56. pinctrl-single,pins = <
  57. 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */
  58. 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */
  59. >;
  60. };
  61. /* WiFi/BT combo */
  62. lbee1usjyc_pins: pinmux_lbee1usjyc_pins {
  63. pinctrl-single,pins = <
  64. 0x136 (PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat5.gpio_137 */
  65. 0x138 (PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat6.gpio_138 */
  66. 0x13a (PIN_OUTPUT | MUX_MODE4) /* sdmmc2_dat7.gpio_139 */
  67. >;
  68. };
  69. mcbsp2_pins: pinmux_mcbsp2_pins {
  70. pinctrl-single,pins = <
  71. 0x10c (PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx.mcbsp2_fsx */
  72. 0x10e (PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx.mcbsp2_clkx */
  73. 0x110 (PIN_INPUT | MUX_MODE0) /* mcbsp2_dr.mcbsp2.dr */
  74. 0x112 (PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx.mcbsp2_dx */
  75. >;
  76. };
  77. mmc1_pins: pinmux_mmc1_pins {
  78. pinctrl-single,pins = <
  79. 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  80. 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  81. 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  82. 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  83. 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  84. 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  85. >;
  86. };
  87. mmc2_pins: pinmux_mmc2_pins {
  88. pinctrl-single,pins = <
  89. 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
  90. 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
  91. 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
  92. 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
  93. 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
  94. 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
  95. >;
  96. };
  97. smsc911x_pins: pinmux_smsc911x_pins {
  98. pinctrl-single,pins = <
  99. 0x1a2 (PIN_INPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */
  100. >;
  101. };
  102. i2c1_pins: pinmux_i2c1_pins {
  103. pinctrl-single,pins = <
  104. 0x18a (PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
  105. 0x18c (PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
  106. >;
  107. };
  108. i2c2_pins: pinmux_i2c2_pins {
  109. pinctrl-single,pins = <
  110. 0x18e (PIN_INPUT | MUX_MODE0) /* i2c2_scl.i2c2_scl */
  111. 0x190 (PIN_INPUT | MUX_MODE0) /* i2c2_sda.i2c2_sda */
  112. >;
  113. };
  114. i2c3_pins: pinmux_i2c3_pins {
  115. pinctrl-single,pins = <
  116. 0x192 (PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */
  117. 0x194 (PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */
  118. >;
  119. };
  120. leds_pins: pinmux_leds_pins { };
  121. };
  122. &i2c1 {
  123. pinctrl-names = "default";
  124. pinctrl-0 = <&i2c1_pins>;
  125. clock-frequency = <2600000>;
  126. twl: twl@48 {
  127. reg = <0x48>;
  128. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  129. interrupt-parent = <&intc>;
  130. twl_audio: audio {
  131. compatible = "ti,twl4030-audio";
  132. codec {
  133. };
  134. };
  135. };
  136. };
  137. #include "twl4030.dtsi"
  138. #include "twl4030_omap3.dtsi"
  139. &i2c2 {
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&i2c2_pins>;
  142. clock-frequency = <400000>;
  143. };
  144. &i2c3 {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&i2c3_pins>;
  147. };
  148. &mcbsp2 {
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&mcbsp2_pins>;
  151. };
  152. &mmc1 {
  153. pinctrl-names = "default";
  154. pinctrl-0 = <&mmc1_pins>;
  155. vmmc-supply = <&vmmc1>;
  156. vmmc_aux-supply = <&vsim>;
  157. bus-width = <4>;
  158. };
  159. &mmc2 {
  160. pinctrl-names = "default";
  161. pinctrl-0 = <&mmc2_pins>;
  162. vmmc-supply = <&lbee1usjyc_vmmc>;
  163. bus-width = <4>;
  164. non-removable;
  165. };
  166. &mmc3 {
  167. status = "disabled";
  168. };
  169. &uart1 {
  170. pinctrl-names = "default";
  171. pinctrl-0 = <&uart1_pins>;
  172. };
  173. &uart2 {
  174. pinctrl-names = "default";
  175. pinctrl-0 = <&uart2_pins>;
  176. };
  177. &uart3 {
  178. pinctrl-names = "default";
  179. pinctrl-0 = <&uart3_pins>;
  180. };
  181. &twl_gpio {
  182. ti,use-leds;
  183. };
  184. &usb_otg_hs {
  185. interface-type = <0>;
  186. usb-phy = <&usb2_phy>;
  187. phys = <&usb2_phy>;
  188. phy-names = "usb2-phy";
  189. mode = <3>;
  190. power = <50>;
  191. };