omap4-panda-common.dtsi 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. /*
  2. * Copyright (C) 2011-2013 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. #include "elpida_ecb240abacn.dtsi"
  9. / {
  10. model = "TI OMAP4 PandaBoard";
  11. compatible = "ti,omap4-panda", "ti,omap4430", "ti,omap4";
  12. memory {
  13. device_type = "memory";
  14. reg = <0x80000000 0x40000000>; /* 1 GB */
  15. };
  16. leds: leds {
  17. compatible = "gpio-leds";
  18. pinctrl-names = "default";
  19. pinctrl-0 = <
  20. &led_wkgpio_pins
  21. >;
  22. heartbeat {
  23. label = "pandaboard::status1";
  24. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  25. linux,default-trigger = "heartbeat";
  26. };
  27. mmc {
  28. label = "pandaboard::status2";
  29. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  30. linux,default-trigger = "mmc0";
  31. };
  32. };
  33. sound: sound {
  34. compatible = "ti,abe-twl6040";
  35. ti,model = "PandaBoard";
  36. ti,mclk-freq = <38400000>;
  37. ti,mcpdm = <&mcpdm>;
  38. ti,twl6040 = <&twl6040>;
  39. /* Audio routing */
  40. ti,audio-routing =
  41. "Headset Stereophone", "HSOL",
  42. "Headset Stereophone", "HSOR",
  43. "Ext Spk", "HFL",
  44. "Ext Spk", "HFR",
  45. "Line Out", "AUXL",
  46. "Line Out", "AUXR",
  47. "HSMIC", "Headset Mic",
  48. "Headset Mic", "Headset Mic Bias",
  49. "AFML", "Line In",
  50. "AFMR", "Line In";
  51. };
  52. /*
  53. * Temp hack: Need to be replaced with the proper gpio-controlled
  54. * reset driver as soon it will be merged.
  55. * http://thread.gmane.org/gmane.linux.drivers.devicetree/36830
  56. */
  57. /* HS USB Port 1 RESET */
  58. hsusb1_reset: hsusb1_reset_reg {
  59. compatible = "regulator-fixed";
  60. regulator-name = "hsusb1_reset";
  61. regulator-min-microvolt = <3300000>;
  62. regulator-max-microvolt = <3300000>;
  63. gpio = <&gpio2 30 0>; /* gpio_62 */
  64. startup-delay-us = <70000>;
  65. enable-active-high;
  66. };
  67. /* HS USB Port 1 Power */
  68. hsusb1_power: hsusb1_power_reg {
  69. compatible = "regulator-fixed";
  70. regulator-name = "hsusb1_vbus";
  71. regulator-min-microvolt = <3300000>;
  72. regulator-max-microvolt = <3300000>;
  73. gpio = <&gpio1 1 0>; /* gpio_1 */
  74. startup-delay-us = <70000>;
  75. enable-active-high;
  76. };
  77. /* HS USB Host PHY on PORT 1 */
  78. hsusb1_phy: hsusb1_phy {
  79. compatible = "usb-nop-xceiv";
  80. reset-supply = <&hsusb1_reset>;
  81. vcc-supply = <&hsusb1_power>;
  82. /**
  83. * FIXME:
  84. * put the right clock phandle here when available
  85. * clocks = <&auxclk3>;
  86. * clock-names = "main_clk";
  87. */
  88. clock-frequency = <19200000>;
  89. };
  90. };
  91. &omap4_pmx_wkup {
  92. pinctrl-names = "default";
  93. pinctrl-0 = <
  94. &twl6030_wkup_pins
  95. >;
  96. twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
  97. pinctrl-single,pins = <
  98. 0x14 (PIN_OUTPUT | MUX_MODE2) /* fref_clk0_out.sys_drm_msecure */
  99. >;
  100. };
  101. };
  102. &omap4_pmx_core {
  103. pinctrl-names = "default";
  104. pinctrl-0 = <
  105. &twl6030_pins
  106. &twl6040_pins
  107. &mcpdm_pins
  108. &mcbsp1_pins
  109. &dss_hdmi_pins
  110. &tpd12s015_pins
  111. &hsusbb1_pins
  112. >;
  113. twl6030_pins: pinmux_twl6030_pins {
  114. pinctrl-single,pins = <
  115. 0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1.sys_nirq1 */
  116. >;
  117. };
  118. twl6040_pins: pinmux_twl6040_pins {
  119. pinctrl-single,pins = <
  120. 0xe0 (PIN_OUTPUT | MUX_MODE3) /* hdq_sio.gpio_127 */
  121. 0x160 (PIN_INPUT | MUX_MODE0) /* sys_nirq2.sys_nirq2 */
  122. >;
  123. };
  124. mcpdm_pins: pinmux_mcpdm_pins {
  125. pinctrl-single,pins = <
  126. 0xc6 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_ul_data.abe_pdm_ul_data */
  127. 0xc8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_dl_data.abe_pdm_dl_data */
  128. 0xca (PIN_INPUT_PULLUP | MUX_MODE0) /* abe_pdm_frame.abe_pdm_frame */
  129. 0xcc (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_lb_clk.abe_pdm_lb_clk */
  130. 0xce (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
  131. >;
  132. };
  133. mcbsp1_pins: pinmux_mcbsp1_pins {
  134. pinctrl-single,pins = <
  135. 0xbe (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_clkx.abe_mcbsp1_clkx */
  136. 0xc0 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dr.abe_mcbsp1_dr */
  137. 0xc2 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dx.abe_mcbsp1_dx */
  138. 0xc4 (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_fsx.abe_mcbsp1_fsx */
  139. >;
  140. };
  141. dss_hdmi_pins: pinmux_dss_hdmi_pins {
  142. pinctrl-single,pins = <
  143. 0x5a (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec.hdmi_cec */
  144. 0x5c (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_scl.hdmi_scl */
  145. 0x5e (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_sda.hdmi_sda */
  146. >;
  147. };
  148. tpd12s015_pins: pinmux_tpd12s015_pins {
  149. pinctrl-single,pins = <
  150. 0x22 (PIN_OUTPUT | MUX_MODE3) /* gpmc_a17.gpio_41 */
  151. 0x48 (PIN_OUTPUT | MUX_MODE3) /* gpmc_nbe1.gpio_60 */
  152. 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* hdmi_hpd.gpio_63 */
  153. >;
  154. };
  155. hsusbb1_pins: pinmux_hsusbb1_pins {
  156. pinctrl-single,pins = <
  157. 0x82 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_clk.usbb1_ulpiphy_clk */
  158. 0x84 (PIN_OUTPUT | MUX_MODE4) /* usbb1_ulpitll_stp.usbb1_ulpiphy_stp */
  159. 0x86 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dir.usbb1_ulpiphy_dir */
  160. 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_nxt.usbb1_ulpiphy_nxt */
  161. 0x8a (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat0.usbb1_ulpiphy_dat0 */
  162. 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat1.usbb1_ulpiphy_dat1 */
  163. 0x8e (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat2.usbb1_ulpiphy_dat2 */
  164. 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat3.usbb1_ulpiphy_dat3 */
  165. 0x92 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat4.usbb1_ulpiphy_dat4 */
  166. 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat5.usbb1_ulpiphy_dat5 */
  167. 0x96 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat6.usbb1_ulpiphy_dat6 */
  168. 0x98 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat7.usbb1_ulpiphy_dat7 */
  169. >;
  170. };
  171. i2c1_pins: pinmux_i2c1_pins {
  172. pinctrl-single,pins = <
  173. 0xe2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  174. 0xe4 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  175. >;
  176. };
  177. i2c2_pins: pinmux_i2c2_pins {
  178. pinctrl-single,pins = <
  179. 0xe6 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  180. 0xe8 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  181. >;
  182. };
  183. i2c3_pins: pinmux_i2c3_pins {
  184. pinctrl-single,pins = <
  185. 0xea (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  186. 0xec (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  187. >;
  188. };
  189. i2c4_pins: pinmux_i2c4_pins {
  190. pinctrl-single,pins = <
  191. 0xee (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
  192. 0xf0 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
  193. >;
  194. };
  195. };
  196. &omap4_pmx_wkup {
  197. led_wkgpio_pins: pinmux_leds_wkpins {
  198. pinctrl-single,pins = <
  199. 0x1a (PIN_OUTPUT | MUX_MODE3) /* gpio_wk7 */
  200. 0x1c (PIN_OUTPUT | MUX_MODE3) /* gpio_wk8 */
  201. >;
  202. };
  203. };
  204. &i2c1 {
  205. pinctrl-names = "default";
  206. pinctrl-0 = <&i2c1_pins>;
  207. clock-frequency = <400000>;
  208. twl: twl@48 {
  209. reg = <0x48>;
  210. /* IRQ# = 7 */
  211. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
  212. interrupt-parent = <&gic>;
  213. };
  214. twl6040: twl@4b {
  215. compatible = "ti,twl6040";
  216. reg = <0x4b>;
  217. /* IRQ# = 119 */
  218. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
  219. interrupt-parent = <&gic>;
  220. ti,audpwron-gpio = <&gpio4 31 GPIO_ACTIVE_HIGH>; /* gpio line 127 */
  221. vio-supply = <&v1v8>;
  222. v2v1-supply = <&v2v1>;
  223. enable-active-high;
  224. };
  225. };
  226. #include "twl6030.dtsi"
  227. &i2c2 {
  228. pinctrl-names = "default";
  229. pinctrl-0 = <&i2c2_pins>;
  230. clock-frequency = <400000>;
  231. };
  232. &i2c3 {
  233. pinctrl-names = "default";
  234. pinctrl-0 = <&i2c3_pins>;
  235. clock-frequency = <100000>;
  236. /*
  237. * Display monitor features are burnt in their EEPROM as EDID data.
  238. * The EEPROM is connected as I2C slave device.
  239. */
  240. eeprom@50 {
  241. compatible = "ti,eeprom";
  242. reg = <0x50>;
  243. };
  244. };
  245. &i2c4 {
  246. pinctrl-names = "default";
  247. pinctrl-0 = <&i2c4_pins>;
  248. clock-frequency = <400000>;
  249. };
  250. &mmc1 {
  251. vmmc-supply = <&vmmc>;
  252. bus-width = <8>;
  253. };
  254. &mmc2 {
  255. status = "disabled";
  256. };
  257. &mmc3 {
  258. status = "disabled";
  259. };
  260. &mmc4 {
  261. status = "disabled";
  262. };
  263. &mmc5 {
  264. ti,non-removable;
  265. bus-width = <4>;
  266. };
  267. &emif1 {
  268. cs1-used;
  269. device-handle = <&elpida_ECB240ABACN>;
  270. };
  271. &emif2 {
  272. cs1-used;
  273. device-handle = <&elpida_ECB240ABACN>;
  274. };
  275. &mcbsp2 {
  276. status = "disabled";
  277. };
  278. &mcbsp3 {
  279. status = "disabled";
  280. };
  281. &dmic {
  282. status = "disabled";
  283. };
  284. &twl_usb_comparator {
  285. usb-supply = <&vusb>;
  286. };
  287. &usb_otg_hs {
  288. interface-type = <1>;
  289. mode = <3>;
  290. power = <50>;
  291. };
  292. &usbhshost {
  293. port1-mode = "ehci-phy";
  294. };
  295. &usbhsehci {
  296. phys = <&hsusb1_phy>;
  297. };