omap4-duovero.dtsi 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
  4. */
  5. #include "omap443x.dtsi"
  6. #include "omap4-mcpdm.dtsi"
  7. / {
  8. model = "Gumstix Duovero";
  9. compatible = "gumstix,omap4-duovero", "ti,omap4430", "ti,omap4";
  10. chosen {
  11. stdout-path = &uart3;
  12. };
  13. memory@80000000 {
  14. device_type = "memory";
  15. reg = <0x80000000 0x40000000>; /* 1 GB */
  16. };
  17. sound {
  18. compatible = "ti,abe-twl6040";
  19. ti,model = "DuoVero";
  20. ti,mclk-freq = <38400000>;
  21. ti,mcpdm = <&mcpdm>;
  22. ti,twl6040 = <&twl6040>;
  23. /* Audio routing */
  24. ti,audio-routing =
  25. "Headset Stereophone", "HSOL",
  26. "Headset Stereophone", "HSOR",
  27. "HSMIC", "Headset Mic",
  28. "Headset Mic", "Headset Mic Bias";
  29. };
  30. /* HS USB Host PHY on PORT 1 */
  31. hsusb1_phy: hsusb1_phy {
  32. compatible = "usb-nop-xceiv";
  33. reset-gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; /* gpio_62 */
  34. #phy-cells = <0>;
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&hsusb1phy_pins>;
  37. clocks = <&auxclk3_ck>;
  38. clock-names = "main_clk";
  39. clock-frequency = <19200000>;
  40. };
  41. /* regulator for w2cbw0015 on sdio5 */
  42. w2cbw0015_vmmc: w2cbw0015_vmmc {
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&w2cbw0015_pins>;
  45. compatible = "regulator-fixed";
  46. regulator-name = "w2cbw0015";
  47. regulator-min-microvolt = <3000000>;
  48. regulator-max-microvolt = <3000000>;
  49. gpio = <&gpio2 11 GPIO_ACTIVE_LOW>; /* gpio_43 */
  50. startup-delay-us = <70000>;
  51. enable-active-high;
  52. regulator-boot-on;
  53. };
  54. };
  55. &omap4_pmx_core {
  56. pinctrl-names = "default";
  57. pinctrl-0 = <
  58. &twl6040_pins
  59. &hsusbb1_pins
  60. >;
  61. twl6040_pins: twl6040-pins {
  62. pinctrl-single,pins = <
  63. OMAP4_IOPAD(0x166, PIN_OUTPUT | MUX_MODE3) /* usbb2_ulpitll_nxt.gpio_160 */
  64. OMAP4_IOPAD(0x1a0, PIN_INPUT | MUX_MODE0) /* sys_nirq2.sys_nirq2 */
  65. >;
  66. };
  67. mcbsp1_pins: mcbsp1-pins {
  68. pinctrl-single,pins = <
  69. OMAP4_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_clkx.abe_mcbsp1_clkx */
  70. OMAP4_IOPAD(0x100, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dr.abe_mcbsp1_dr */
  71. OMAP4_IOPAD(0x102, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dx.abe_mcbsp1_dx */
  72. OMAP4_IOPAD(0x104, PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_fsx.abe_mcbsp1_fsx */
  73. >;
  74. };
  75. hsusbb1_pins: hsusbb1-pins {
  76. pinctrl-single,pins = <
  77. OMAP4_IOPAD(0x0c2, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_clk.usbb1_ulpiphy_clk */
  78. OMAP4_IOPAD(0x0c4, PIN_OUTPUT | MUX_MODE4) /* usbb1_ulpitll_stp.usbb1_ulpiphy_stp */
  79. OMAP4_IOPAD(0x0c6, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dir.usbb1_ulpiphy_dir */
  80. OMAP4_IOPAD(0x0c8, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_nxt.usbb1_ulpiphy_nxt */
  81. OMAP4_IOPAD(0x0ca, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat0.usbb1_ulpiphy_dat0 */
  82. OMAP4_IOPAD(0x0cc, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat1.usbb1_ulpiphy_dat1 */
  83. OMAP4_IOPAD(0x0ce, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat2.usbb1_ulpiphy_dat2 */
  84. OMAP4_IOPAD(0x0d0, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat3.usbb1_ulpiphy_dat3 */
  85. OMAP4_IOPAD(0x0d2, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat4.usbb1_ulpiphy_dat4 */
  86. OMAP4_IOPAD(0x0d4, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat5.usbb1_ulpiphy_dat5 */
  87. OMAP4_IOPAD(0x0d6, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat6.usbb1_ulpiphy_dat6 */
  88. OMAP4_IOPAD(0x0d8, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat7.usbb1_ulpiphy_dat7 */
  89. >;
  90. };
  91. hsusb1phy_pins: hsusb1phy-pins {
  92. pinctrl-single,pins = <
  93. OMAP4_IOPAD(0x08c, PIN_OUTPUT | MUX_MODE3) /* gpmc_wait1.gpio_62 */
  94. >;
  95. };
  96. w2cbw0015_pins: w2cbw0015-pins {
  97. pinctrl-single,pins = <
  98. OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 */
  99. OMAP4_IOPAD(0x07a, PIN_INPUT | MUX_MODE3) /* gpmc_ncs3.gpio_53 */
  100. >;
  101. };
  102. i2c1_pins: i2c1-pins {
  103. pinctrl-single,pins = <
  104. OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  105. OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  106. >;
  107. };
  108. i2c4_pins: i2c4-pins {
  109. pinctrl-single,pins = <
  110. OMAP4_IOPAD(0x12e, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
  111. OMAP4_IOPAD(0x130, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
  112. >;
  113. };
  114. mmc1_pins: mmc1-pins {
  115. pinctrl-single,pins = <
  116. OMAP4_IOPAD(0x0e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */
  117. OMAP4_IOPAD(0x0e4, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmcc1_cmd */
  118. OMAP4_IOPAD(0x0e6, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmcc1_dat0 */
  119. OMAP4_IOPAD(0x0e8, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */
  120. OMAP4_IOPAD(0x0ea, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */
  121. OMAP4_IOPAD(0x0ec, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */
  122. >;
  123. };
  124. mmc5_pins: mmc5-pins {
  125. pinctrl-single,pins = <
  126. OMAP4_IOPAD(0x148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_clk */
  127. OMAP4_IOPAD(0x14a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmcc5_cmd */
  128. OMAP4_IOPAD(0x14c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmcc5_dat0 */
  129. OMAP4_IOPAD(0x14e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat1 */
  130. OMAP4_IOPAD(0x150, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat2 */
  131. OMAP4_IOPAD(0x152, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat3 */
  132. >;
  133. };
  134. };
  135. /* PMIC */
  136. &i2c1 {
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&i2c1_pins>;
  139. clock-frequency = <400000>;
  140. twl: twl@48 {
  141. reg = <0x48>;
  142. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
  143. };
  144. twl6040: twl@4b {
  145. compatible = "ti,twl6040";
  146. #clock-cells = <0>;
  147. reg = <0x4b>;
  148. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
  149. ti,audpwron-gpio = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* gpio_160 */
  150. vio-supply = <&v1v8>;
  151. v2v1-supply = <&v2v1>;
  152. enable-active-high;
  153. };
  154. };
  155. #include "twl6030.dtsi"
  156. #include "twl6030_omap4.dtsi"
  157. /* on-board bluetooth / WiFi module */
  158. &i2c4 {
  159. pinctrl-names = "default";
  160. pinctrl-0 = <&i2c4_pins>;
  161. clock-frequency = <400000>;
  162. };
  163. &mcbsp1 {
  164. pinctrl-names = "default";
  165. pinctrl-0 = <&mcbsp1_pins>;
  166. status = "okay";
  167. };
  168. &mmc1 {
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&mmc1_pins>;
  171. vmmc-supply = <&vmmc>;
  172. ti,bus-width = <4>;
  173. ti,non-removable; /* FIXME: use PMIC_MMC detect */
  174. };
  175. &mmc2 {
  176. status = "disabled";
  177. };
  178. /* mmc3 is available to the expansion board */
  179. &mmc4 {
  180. status = "disabled";
  181. };
  182. /* on-board WiFi module */
  183. &mmc5 {
  184. pinctrl-names = "default";
  185. pinctrl-0 = <&mmc5_pins>;
  186. vmmc-supply = <&w2cbw0015_vmmc>;
  187. ti,bus-width = <4>;
  188. ti,non-removable;
  189. cap-power-off-card;
  190. keep-power-in-suspend;
  191. };
  192. &twl_usb_comparator {
  193. usb-supply = <&vusb>;
  194. };
  195. &usb_otg_hs {
  196. interface-type = <1>;
  197. mode = <3>;
  198. power = <50>;
  199. };
  200. &usbhshost {
  201. port1-mode = "ehci-phy";
  202. };
  203. &usbhsehci {
  204. phys = <&hsusb1_phy>;
  205. };