omap4-var-som-om44.dtsi 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. /*
  2. * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com>
  3. * Copyright (C) 2012 Variscite Ltd. - http://www.variscite.com
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #include "omap4460.dtsi"
  10. / {
  11. model = "Variscite VAR-SOM-OM44";
  12. compatible = "variscite,var-som-om44", "ti,omap4460", "ti,omap4";
  13. memory@80000000 {
  14. device_type = "memory";
  15. reg = <0x80000000 0x40000000>; /* 1 GB */
  16. };
  17. sound: sound {
  18. compatible = "ti,abe-twl6040";
  19. ti,model = "VAR-SOM-OM44";
  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. "AFML", "Line In",
  28. "AFMR", "Line In";
  29. };
  30. /* HS USB Host PHY on PORT 1 */
  31. hsusb1_phy: hsusb1_phy {
  32. compatible = "usb-nop-xceiv";
  33. pinctrl-names = "default";
  34. pinctrl-0 = <
  35. &hsusbb1_phy_clk_pins
  36. &hsusbb1_phy_rst_pins
  37. >;
  38. reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>; /* gpio 177 */
  39. vcc-supply = <&vbat>;
  40. clocks = <&auxclk3_ck>;
  41. clock-names = "main_clk";
  42. clock-frequency = <19200000>;
  43. };
  44. vbat: fixedregulator-vbat {
  45. compatible = "regulator-fixed";
  46. regulator-name = "VBAT";
  47. regulator-min-microvolt = <3300000>;
  48. regulator-max-microvolt = <3300000>;
  49. regulator-always-on;
  50. regulator-boot-on;
  51. };
  52. };
  53. &omap4_pmx_core {
  54. pinctrl-names = "default";
  55. pinctrl-0 = <
  56. &hsusbb1_pins
  57. >;
  58. twl6040_pins: pinmux_twl6040_pins {
  59. pinctrl-single,pins = <
  60. OMAP4_IOPAD(0x19c, PIN_OUTPUT | MUX_MODE3) /* fref_clk2_out.gpio_182 */
  61. OMAP4_IOPAD(0x1a0, PIN_INPUT | MUX_MODE0) /* sys_nirq2.sys_nirq2 */
  62. >;
  63. };
  64. mcpdm_pins: pinmux_mcpdm_pins {
  65. pinctrl-single,pins = <
  66. OMAP4_IOPAD(0x106, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_ul_data.abe_pdm_ul_data */
  67. OMAP4_IOPAD(0x108, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_dl_data.abe_pdm_dl_data */
  68. OMAP4_IOPAD(0x10a, PIN_INPUT_PULLUP | MUX_MODE0) /* abe_pdm_frame.abe_pdm_frame */
  69. OMAP4_IOPAD(0x10c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_lb_clk.abe_pdm_lb_clk */
  70. OMAP4_IOPAD(0x10e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
  71. >;
  72. };
  73. tsc2004_pins: pinmux_tsc2004_pins {
  74. pinctrl-single,pins = <
  75. OMAP4_IOPAD(0x090, PIN_INPUT | MUX_MODE3) /* gpmc_ncs4.gpio_101 (irq) */
  76. OMAP4_IOPAD(0x092, PIN_OUTPUT | MUX_MODE3) /* gpmc_ncs5.gpio_102 (rst) */
  77. >;
  78. };
  79. uart3_pins: pinmux_uart3_pins {
  80. pinctrl-single,pins = <
  81. OMAP4_IOPAD(0x140, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_cts_rctx.uart3_cts_rctx */
  82. OMAP4_IOPAD(0x142, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_sd.uart3_rts_sd */
  83. OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  84. OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  85. >;
  86. };
  87. hsusbb1_pins: pinmux_hsusbb1_pins {
  88. pinctrl-single,pins = <
  89. OMAP4_IOPAD(0x0c2, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_clk.usbb1_ulpiphy_clk */
  90. OMAP4_IOPAD(0x0c4, PIN_OUTPUT | MUX_MODE4) /* usbb1_ulpitll_stp.usbb1_ulpiphy_stp */
  91. OMAP4_IOPAD(0x0c6, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dir.usbb1_ulpiphy_dir */
  92. OMAP4_IOPAD(0x0c8, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_nxt.usbb1_ulpiphy_nxt */
  93. OMAP4_IOPAD(0x0ca, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat0.usbb1_ulpiphy_dat0 */
  94. OMAP4_IOPAD(0x0cc, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat1.usbb1_ulpiphy_dat1 */
  95. OMAP4_IOPAD(0x0ce, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat2.usbb1_ulpiphy_dat2 */
  96. OMAP4_IOPAD(0x0d0, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat3.usbb1_ulpiphy_dat3 */
  97. OMAP4_IOPAD(0x0d2, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat4.usbb1_ulpiphy_dat4 */
  98. OMAP4_IOPAD(0x0d4, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat5.usbb1_ulpiphy_dat5 */
  99. OMAP4_IOPAD(0x0d6, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat6.usbb1_ulpiphy_dat6 */
  100. OMAP4_IOPAD(0x0d8, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat7.usbb1_ulpiphy_dat7 */
  101. >;
  102. };
  103. hsusbb1_phy_rst_pins: pinmux_hsusbb1_phy_rst_pins {
  104. pinctrl-single,pins = <
  105. OMAP4_IOPAD(0x18c, PIN_OUTPUT | MUX_MODE3) /* kpd_row2.gpio_177 */
  106. >;
  107. };
  108. i2c1_pins: pinmux_i2c1_pins {
  109. pinctrl-single,pins = <
  110. OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  111. OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  112. >;
  113. };
  114. i2c3_pins: pinmux_i2c3_pins {
  115. pinctrl-single,pins = <
  116. OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  117. OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  118. >;
  119. };
  120. mmc1_pins: pinmux_mmc1_pins {
  121. pinctrl-single,pins = <
  122. OMAP4_IOPAD(0x0e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  123. OMAP4_IOPAD(0x0e4, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  124. OMAP4_IOPAD(0x0e6, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  125. OMAP4_IOPAD(0x0e8, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  126. OMAP4_IOPAD(0x0ea, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  127. OMAP4_IOPAD(0x0ec, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  128. >;
  129. };
  130. };
  131. &omap4_pmx_wkup {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <
  134. &hsusbb1_hub_rst_pins
  135. &lan7500_rst_pins
  136. >;
  137. hsusbb1_phy_clk_pins: pinmux_hsusbb1_phy_clk_pins {
  138. pinctrl-single,pins = <
  139. OMAP4_IOPAD(0x058, PIN_OUTPUT | MUX_MODE0) /* fref_clk3_out */
  140. >;
  141. };
  142. hsusbb1_hub_rst_pins: pinmux_hsusbb1_hub_rst_pins {
  143. pinctrl-single,pins = <
  144. OMAP4_IOPAD(0x042, PIN_OUTPUT | MUX_MODE3) /* gpio_wk1 */
  145. >;
  146. };
  147. lan7500_rst_pins: pinmux_lan7500_rst_pins {
  148. pinctrl-single,pins = <
  149. OMAP4_IOPAD(0x040, PIN_OUTPUT | MUX_MODE3) /* gpio_wk0 */
  150. >;
  151. };
  152. };
  153. &i2c1 {
  154. pinctrl-names = "default";
  155. pinctrl-0 = <&i2c1_pins>;
  156. status = "okay";
  157. clock-frequency = <400000>;
  158. twl: twl@48 {
  159. reg = <0x48>;
  160. /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
  161. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
  162. };
  163. twl6040: twl@4b {
  164. compatible = "ti,twl6040";
  165. #clock-cells = <0>;
  166. reg = <0x4b>;
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&twl6040_pins>;
  169. /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
  170. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
  171. ti,audpwron-gpio = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio 182 */
  172. vio-supply = <&v1v8>;
  173. v2v1-supply = <&v2v1>;
  174. enable-active-high;
  175. };
  176. };
  177. #include "twl6030.dtsi"
  178. #include "twl6030_omap4.dtsi"
  179. &vusim {
  180. regulator-min-microvolt = <3000000>;
  181. regulator-max-microvolt = <3000000>;
  182. regulator-always-on;
  183. };
  184. &i2c2 {
  185. status = "disabled";
  186. };
  187. &i2c3 {
  188. pinctrl-names = "default";
  189. pinctrl-0 = <&i2c3_pins>;
  190. status = "okay";
  191. clock-frequency = <400000>;
  192. touchscreen: tsc2004@48 {
  193. compatible = "ti,tsc2004";
  194. reg = <0x48>;
  195. pinctrl-names = "default";
  196. pinctrl-0 = <&tsc2004_pins>;
  197. interrupt-parent = <&gpio4>;
  198. interrupts = <5 IRQ_TYPE_LEVEL_LOW>; /* gpio 101 */
  199. status = "disabled";
  200. };
  201. tmp105@49 {
  202. compatible = "ti,tmp105";
  203. reg = <0x49>;
  204. };
  205. eeprom@50 {
  206. compatible = "microchip,24c32";
  207. reg = <0x50>;
  208. };
  209. };
  210. &i2c4 {
  211. status = "disabled";
  212. };
  213. &mcpdm {
  214. pinctrl-names = "default";
  215. pinctrl-0 = <&mcpdm_pins>;
  216. clocks = <&twl6040>;
  217. clock-names = "pdmclk";
  218. status = "okay";
  219. };
  220. &gpmc {
  221. status = "disabled";
  222. };
  223. &mcspi1 {
  224. status = "disabled";
  225. };
  226. &mcspi2 {
  227. status = "disabled";
  228. };
  229. &mcspi3 {
  230. status = "disabled";
  231. };
  232. &mcspi4 {
  233. status = "disabled";
  234. };
  235. &mmc1 {
  236. pinctrl-names = "default";
  237. pinctrl-0 = <&mmc1_pins>;
  238. vmmc-supply = <&vmmc>;
  239. bus-width = <4>;
  240. ti,non-removable;
  241. status = "okay";
  242. };
  243. &mmc2 {
  244. status = "disabled";
  245. };
  246. &mmc3 {
  247. status = "disabled";
  248. };
  249. &mmc4 {
  250. status = "disabled";
  251. };
  252. &mmc5 {
  253. status = "disabled";
  254. };
  255. &uart1 {
  256. status = "disabled";
  257. };
  258. &uart2 {
  259. status = "disabled";
  260. };
  261. &uart3 {
  262. pinctrl-names = "default";
  263. pinctrl-0 = <&uart3_pins>;
  264. status = "okay";
  265. };
  266. &uart4 {
  267. status = "disabled";
  268. };
  269. &keypad {
  270. status = "disabled";
  271. };
  272. &twl_usb_comparator {
  273. usb-supply = <&vusb>;
  274. };
  275. &usb_otg_hs {
  276. interface-type = <1>;
  277. mode = <3>;
  278. power = <50>;
  279. };
  280. &usbhshost {
  281. port1-mode = "ehci-phy";
  282. };
  283. &usbhsehci {
  284. phys = <&hsusb1_phy>;
  285. };