omap4-panda-common.dtsi 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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 {
  17. compatible = "gpio-leds";
  18. heartbeat {
  19. label = "pandaboard::status1";
  20. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  21. linux,default-trigger = "heartbeat";
  22. };
  23. mmc {
  24. label = "pandaboard::status2";
  25. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  26. linux,default-trigger = "mmc0";
  27. };
  28. };
  29. sound: sound {
  30. compatible = "ti,abe-twl6040";
  31. ti,model = "PandaBoard";
  32. ti,mclk-freq = <38400000>;
  33. ti,mcpdm = <&mcpdm>;
  34. ti,twl6040 = <&twl6040>;
  35. /* Audio routing */
  36. ti,audio-routing =
  37. "Headset Stereophone", "HSOL",
  38. "Headset Stereophone", "HSOR",
  39. "Ext Spk", "HFL",
  40. "Ext Spk", "HFR",
  41. "Line Out", "AUXL",
  42. "Line Out", "AUXR",
  43. "HSMIC", "Headset Mic",
  44. "Headset Mic", "Headset Mic Bias",
  45. "AFML", "Line In",
  46. "AFMR", "Line In";
  47. };
  48. };
  49. &omap4_pmx_wkup {
  50. pinctrl-names = "default";
  51. pinctrl-0 = <
  52. &twl6030_wkup_pins
  53. >;
  54. twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
  55. pinctrl-single,pins = <
  56. 0x14 (PIN_OUTPUT | MUX_MODE2) /* fref_clk0_out.sys_drm_msecure */
  57. >;
  58. };
  59. };
  60. &omap4_pmx_core {
  61. pinctrl-names = "default";
  62. pinctrl-0 = <
  63. &twl6030_pins
  64. &twl6040_pins
  65. &mcpdm_pins
  66. &mcbsp1_pins
  67. &dss_hdmi_pins
  68. &tpd12s015_pins
  69. >;
  70. twl6030_pins: pinmux_twl6030_pins {
  71. pinctrl-single,pins = <
  72. 0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1.sys_nirq1 */
  73. >;
  74. };
  75. twl6040_pins: pinmux_twl6040_pins {
  76. pinctrl-single,pins = <
  77. 0xe0 (PIN_OUTPUT | MUX_MODE3) /* hdq_sio.gpio_127 */
  78. 0x160 (PIN_INPUT | MUX_MODE0) /* sys_nirq2.sys_nirq2 */
  79. >;
  80. };
  81. mcpdm_pins: pinmux_mcpdm_pins {
  82. pinctrl-single,pins = <
  83. 0xc6 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_ul_data.abe_pdm_ul_data */
  84. 0xc8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_dl_data.abe_pdm_dl_data */
  85. 0xca (PIN_INPUT_PULLUP | MUX_MODE0) /* abe_pdm_frame.abe_pdm_frame */
  86. 0xcc (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_lb_clk.abe_pdm_lb_clk */
  87. 0xce (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
  88. >;
  89. };
  90. mcbsp1_pins: pinmux_mcbsp1_pins {
  91. pinctrl-single,pins = <
  92. 0xbe (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_clkx.abe_mcbsp1_clkx */
  93. 0xc0 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dr.abe_mcbsp1_dr */
  94. 0xc2 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dx.abe_mcbsp1_dx */
  95. 0xc4 (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_fsx.abe_mcbsp1_fsx */
  96. >;
  97. };
  98. dss_hdmi_pins: pinmux_dss_hdmi_pins {
  99. pinctrl-single,pins = <
  100. 0x5a (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec.hdmi_cec */
  101. 0x5c (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_scl.hdmi_scl */
  102. 0x5e (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_sda.hdmi_sda */
  103. >;
  104. };
  105. tpd12s015_pins: pinmux_tpd12s015_pins {
  106. pinctrl-single,pins = <
  107. 0x22 (PIN_OUTPUT | MUX_MODE3) /* gpmc_a17.gpio_41 */
  108. 0x48 (PIN_OUTPUT | MUX_MODE3) /* gpmc_nbe1.gpio_60 */
  109. 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* hdmi_hpd.gpio_63 */
  110. >;
  111. };
  112. i2c1_pins: pinmux_i2c1_pins {
  113. pinctrl-single,pins = <
  114. 0xe2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  115. 0xe4 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  116. >;
  117. };
  118. i2c2_pins: pinmux_i2c2_pins {
  119. pinctrl-single,pins = <
  120. 0xe6 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  121. 0xe8 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  122. >;
  123. };
  124. i2c3_pins: pinmux_i2c3_pins {
  125. pinctrl-single,pins = <
  126. 0xea (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  127. 0xec (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  128. >;
  129. };
  130. i2c4_pins: pinmux_i2c4_pins {
  131. pinctrl-single,pins = <
  132. 0xee (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
  133. 0xf0 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
  134. >;
  135. };
  136. };
  137. &i2c1 {
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&i2c1_pins>;
  140. clock-frequency = <400000>;
  141. twl: twl@48 {
  142. reg = <0x48>;
  143. /* IRQ# = 7 */
  144. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
  145. interrupt-parent = <&gic>;
  146. };
  147. twl6040: twl@4b {
  148. compatible = "ti,twl6040";
  149. reg = <0x4b>;
  150. /* IRQ# = 119 */
  151. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
  152. interrupt-parent = <&gic>;
  153. ti,audpwron-gpio = <&gpio4 31 0>; /* gpio line 127 */
  154. vio-supply = <&v1v8>;
  155. v2v1-supply = <&v2v1>;
  156. enable-active-high;
  157. };
  158. };
  159. #include "twl6030.dtsi"
  160. &i2c2 {
  161. pinctrl-names = "default";
  162. pinctrl-0 = <&i2c2_pins>;
  163. clock-frequency = <400000>;
  164. };
  165. &i2c3 {
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&i2c3_pins>;
  168. clock-frequency = <100000>;
  169. /*
  170. * Display monitor features are burnt in their EEPROM as EDID data.
  171. * The EEPROM is connected as I2C slave device.
  172. */
  173. eeprom@50 {
  174. compatible = "ti,eeprom";
  175. reg = <0x50>;
  176. };
  177. };
  178. &i2c4 {
  179. pinctrl-names = "default";
  180. pinctrl-0 = <&i2c4_pins>;
  181. clock-frequency = <400000>;
  182. };
  183. &mmc1 {
  184. vmmc-supply = <&vmmc>;
  185. bus-width = <8>;
  186. };
  187. &mmc2 {
  188. status = "disabled";
  189. };
  190. &mmc3 {
  191. status = "disabled";
  192. };
  193. &mmc4 {
  194. status = "disabled";
  195. };
  196. &mmc5 {
  197. ti,non-removable;
  198. bus-width = <4>;
  199. };
  200. &emif1 {
  201. cs1-used;
  202. device-handle = <&elpida_ECB240ABACN>;
  203. };
  204. &emif2 {
  205. cs1-used;
  206. device-handle = <&elpida_ECB240ABACN>;
  207. };
  208. &mcbsp2 {
  209. status = "disabled";
  210. };
  211. &mcbsp3 {
  212. status = "disabled";
  213. };
  214. &dmic {
  215. status = "disabled";
  216. };
  217. &twl_usb_comparator {
  218. usb-supply = <&vusb>;
  219. };
  220. &usb_otg_hs {
  221. interface-type = <1>;
  222. mode = <3>;
  223. power = <50>;
  224. };