omap4-panda-common.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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. /* HS USB Port 1 Power */
  53. hsusb1_power: hsusb1_power_reg {
  54. compatible = "regulator-fixed";
  55. regulator-name = "hsusb1_vbus";
  56. regulator-min-microvolt = <3300000>;
  57. regulator-max-microvolt = <3300000>;
  58. gpio = <&gpio1 1 0>; /* gpio_1 */
  59. startup-delay-us = <70000>;
  60. enable-active-high;
  61. /*
  62. * boot-on is required along with always-on as the
  63. * regulator framework doesn't enable the regulator
  64. * if boot-on is not there.
  65. */
  66. regulator-always-on;
  67. regulator-boot-on;
  68. };
  69. /* HS USB Host PHY on PORT 1 */
  70. hsusb1_phy: hsusb1_phy {
  71. compatible = "usb-nop-xceiv";
  72. reset-gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; /* gpio_62 */
  73. vcc-supply = <&hsusb1_power>;
  74. /**
  75. * FIXME:
  76. * put the right clock phandle here when available
  77. * clocks = <&auxclk3>;
  78. * clock-names = "main_clk";
  79. */
  80. clock-frequency = <19200000>;
  81. };
  82. /* regulator for wl12xx on sdio5 */
  83. wl12xx_vmmc: wl12xx_vmmc {
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&wl12xx_gpio>;
  86. compatible = "regulator-fixed";
  87. regulator-name = "vwl1271";
  88. regulator-min-microvolt = <1800000>;
  89. regulator-max-microvolt = <1800000>;
  90. gpio = <&gpio2 11 0>;
  91. startup-delay-us = <70000>;
  92. enable-active-high;
  93. };
  94. };
  95. &omap4_pmx_core {
  96. pinctrl-names = "default";
  97. pinctrl-0 = <
  98. &twl6040_pins
  99. &mcpdm_pins
  100. &mcbsp1_pins
  101. &dss_dpi_pins
  102. &tfp410_pins
  103. &dss_hdmi_pins
  104. &tpd12s015_pins
  105. &hsusbb1_pins
  106. >;
  107. twl6040_pins: pinmux_twl6040_pins {
  108. pinctrl-single,pins = <
  109. 0xe0 (PIN_OUTPUT | MUX_MODE3) /* hdq_sio.gpio_127 */
  110. 0x160 (PIN_INPUT | MUX_MODE0) /* sys_nirq2.sys_nirq2 */
  111. >;
  112. };
  113. mcpdm_pins: pinmux_mcpdm_pins {
  114. pinctrl-single,pins = <
  115. 0xc6 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_ul_data.abe_pdm_ul_data */
  116. 0xc8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_dl_data.abe_pdm_dl_data */
  117. 0xca (PIN_INPUT_PULLUP | MUX_MODE0) /* abe_pdm_frame.abe_pdm_frame */
  118. 0xcc (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_lb_clk.abe_pdm_lb_clk */
  119. 0xce (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
  120. >;
  121. };
  122. mcbsp1_pins: pinmux_mcbsp1_pins {
  123. pinctrl-single,pins = <
  124. 0xbe (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_clkx.abe_mcbsp1_clkx */
  125. 0xc0 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dr.abe_mcbsp1_dr */
  126. 0xc2 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dx.abe_mcbsp1_dx */
  127. 0xc4 (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_fsx.abe_mcbsp1_fsx */
  128. >;
  129. };
  130. dss_dpi_pins: pinmux_dss_dpi_pins {
  131. pinctrl-single,pins = <
  132. 0x122 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data23 */
  133. 0x124 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data22 */
  134. 0x126 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data21 */
  135. 0x128 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data20 */
  136. 0x12a (PIN_OUTPUT | MUX_MODE5) /* dispc2_data19 */
  137. 0x12c (PIN_OUTPUT | MUX_MODE5) /* dispc2_data18 */
  138. 0x12e (PIN_OUTPUT | MUX_MODE5) /* dispc2_data15 */
  139. 0x130 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data14 */
  140. 0x132 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data13 */
  141. 0x134 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data12 */
  142. 0x136 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data11 */
  143. 0x174 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data10 */
  144. 0x176 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data9 */
  145. 0x178 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data16 */
  146. 0x17a (PIN_OUTPUT | MUX_MODE5) /* dispc2_data17 */
  147. 0x17c (PIN_OUTPUT | MUX_MODE5) /* dispc2_hsync */
  148. 0x17e (PIN_OUTPUT | MUX_MODE5) /* dispc2_pclk */
  149. 0x180 (PIN_OUTPUT | MUX_MODE5) /* dispc2_vsync */
  150. 0x182 (PIN_OUTPUT | MUX_MODE5) /* dispc2_de */
  151. 0x184 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data8 */
  152. 0x186 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data7 */
  153. 0x188 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data6 */
  154. 0x18a (PIN_OUTPUT | MUX_MODE5) /* dispc2_data5 */
  155. 0x18c (PIN_OUTPUT | MUX_MODE5) /* dispc2_data4 */
  156. 0x18e (PIN_OUTPUT | MUX_MODE5) /* dispc2_data3 */
  157. 0x190 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data2 */
  158. 0x192 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data1 */
  159. 0x194 (PIN_OUTPUT | MUX_MODE5) /* dispc2_data0 */
  160. >;
  161. };
  162. tfp410_pins: pinmux_tfp410_pins {
  163. pinctrl-single,pins = <
  164. 0x144 (PIN_OUTPUT | MUX_MODE3) /* gpio_0 */
  165. >;
  166. };
  167. dss_hdmi_pins: pinmux_dss_hdmi_pins {
  168. pinctrl-single,pins = <
  169. 0x5a (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec.hdmi_cec */
  170. 0x5c (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_scl.hdmi_scl */
  171. 0x5e (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_sda.hdmi_sda */
  172. >;
  173. };
  174. tpd12s015_pins: pinmux_tpd12s015_pins {
  175. pinctrl-single,pins = <
  176. 0x22 (PIN_OUTPUT | MUX_MODE3) /* gpmc_a17.gpio_41 */
  177. 0x48 (PIN_OUTPUT | MUX_MODE3) /* gpmc_nbe1.gpio_60 */
  178. 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* hdmi_hpd.gpio_63 */
  179. >;
  180. };
  181. hsusbb1_pins: pinmux_hsusbb1_pins {
  182. pinctrl-single,pins = <
  183. 0x82 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_clk.usbb1_ulpiphy_clk */
  184. 0x84 (PIN_OUTPUT | MUX_MODE4) /* usbb1_ulpitll_stp.usbb1_ulpiphy_stp */
  185. 0x86 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dir.usbb1_ulpiphy_dir */
  186. 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_nxt.usbb1_ulpiphy_nxt */
  187. 0x8a (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat0.usbb1_ulpiphy_dat0 */
  188. 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat1.usbb1_ulpiphy_dat1 */
  189. 0x8e (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat2.usbb1_ulpiphy_dat2 */
  190. 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat3.usbb1_ulpiphy_dat3 */
  191. 0x92 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat4.usbb1_ulpiphy_dat4 */
  192. 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat5.usbb1_ulpiphy_dat5 */
  193. 0x96 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat6.usbb1_ulpiphy_dat6 */
  194. 0x98 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat7.usbb1_ulpiphy_dat7 */
  195. >;
  196. };
  197. i2c1_pins: pinmux_i2c1_pins {
  198. pinctrl-single,pins = <
  199. 0xe2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  200. 0xe4 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  201. >;
  202. };
  203. i2c2_pins: pinmux_i2c2_pins {
  204. pinctrl-single,pins = <
  205. 0xe6 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  206. 0xe8 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  207. >;
  208. };
  209. i2c3_pins: pinmux_i2c3_pins {
  210. pinctrl-single,pins = <
  211. 0xea (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  212. 0xec (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  213. >;
  214. };
  215. i2c4_pins: pinmux_i2c4_pins {
  216. pinctrl-single,pins = <
  217. 0xee (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
  218. 0xf0 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
  219. >;
  220. };
  221. };
  222. &omap4_pmx_wkup {
  223. led_wkgpio_pins: pinmux_leds_wkpins {
  224. pinctrl-single,pins = <
  225. 0x1a (PIN_OUTPUT | MUX_MODE3) /* gpio_wk7 */
  226. 0x1c (PIN_OUTPUT | MUX_MODE3) /* gpio_wk8 */
  227. >;
  228. };
  229. /*
  230. * wl12xx GPIO outputs for WLAN_EN, BT_EN, FM_EN, BT_WAKEUP
  231. * REVISIT: Are the pull-ups needed for GPIO 48 and 49?
  232. */
  233. wl12xx_gpio: pinmux_wl12xx_gpio {
  234. pinctrl-single,pins = <
  235. 0x26 (PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 */
  236. 0x2c (PIN_OUTPUT | MUX_MODE3) /* gpmc_a22.gpio_46 */
  237. 0x30 (PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a24.gpio_48 */
  238. 0x32 (PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a25.gpio_49 */
  239. >;
  240. };
  241. /* wl12xx GPIO inputs and SDIO pins */
  242. wl12xx_pins: pinmux_wl12xx_pins {
  243. pinctrl-single,pins = <
  244. 0x38 (PIN_INPUT | MUX_MODE3) /* gpmc_ncs2.gpio_52 */
  245. 0x3a (PIN_INPUT | MUX_MODE3) /* gpmc_ncs3.gpio_53 */
  246. 0x108 (PIN_OUTPUT | MUX_MODE0) /* sdmmc5_clk.sdmmc5_clk */
  247. 0x10a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_cmd.sdmmc5_cmd */
  248. 0x10c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat0.sdmmc5_dat0 */
  249. 0x10e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat1.sdmmc5_dat1 */
  250. 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat2.sdmmc5_dat2 */
  251. 0x112 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat3.sdmmc5_dat3 */
  252. >;
  253. };
  254. };
  255. &i2c1 {
  256. pinctrl-names = "default";
  257. pinctrl-0 = <&i2c1_pins>;
  258. clock-frequency = <400000>;
  259. twl: twl@48 {
  260. reg = <0x48>;
  261. /* IRQ# = 7 */
  262. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
  263. interrupt-parent = <&gic>;
  264. };
  265. twl6040: twl@4b {
  266. compatible = "ti,twl6040";
  267. reg = <0x4b>;
  268. /* IRQ# = 119 */
  269. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
  270. interrupt-parent = <&gic>;
  271. ti,audpwron-gpio = <&gpio4 31 GPIO_ACTIVE_HIGH>; /* gpio line 127 */
  272. vio-supply = <&v1v8>;
  273. v2v1-supply = <&v2v1>;
  274. enable-active-high;
  275. };
  276. };
  277. #include "twl6030.dtsi"
  278. #include "twl6030_omap4.dtsi"
  279. &i2c2 {
  280. pinctrl-names = "default";
  281. pinctrl-0 = <&i2c2_pins>;
  282. clock-frequency = <400000>;
  283. };
  284. &i2c3 {
  285. pinctrl-names = "default";
  286. pinctrl-0 = <&i2c3_pins>;
  287. clock-frequency = <100000>;
  288. /*
  289. * Display monitor features are burnt in their EEPROM as EDID data.
  290. * The EEPROM is connected as I2C slave device.
  291. */
  292. eeprom@50 {
  293. compatible = "ti,eeprom";
  294. reg = <0x50>;
  295. };
  296. };
  297. &i2c4 {
  298. pinctrl-names = "default";
  299. pinctrl-0 = <&i2c4_pins>;
  300. clock-frequency = <400000>;
  301. };
  302. &mmc1 {
  303. vmmc-supply = <&vmmc>;
  304. bus-width = <8>;
  305. };
  306. &mmc2 {
  307. status = "disabled";
  308. };
  309. &mmc3 {
  310. status = "disabled";
  311. };
  312. &mmc4 {
  313. status = "disabled";
  314. };
  315. &mmc5 {
  316. pinctrl-names = "default";
  317. pinctrl-0 = <&wl12xx_pins>;
  318. vmmc-supply = <&wl12xx_vmmc>;
  319. non-removable;
  320. bus-width = <4>;
  321. cap-power-off-card;
  322. };
  323. &emif1 {
  324. cs1-used;
  325. device-handle = <&elpida_ECB240ABACN>;
  326. };
  327. &emif2 {
  328. cs1-used;
  329. device-handle = <&elpida_ECB240ABACN>;
  330. };
  331. &mcbsp2 {
  332. status = "disabled";
  333. };
  334. &mcbsp3 {
  335. status = "disabled";
  336. };
  337. &dmic {
  338. status = "disabled";
  339. };
  340. &twl_usb_comparator {
  341. usb-supply = <&vusb>;
  342. };
  343. &usb_otg_hs {
  344. interface-type = <1>;
  345. mode = <3>;
  346. power = <50>;
  347. };
  348. &usbhshost {
  349. port1-mode = "ehci-phy";
  350. };
  351. &usbhsehci {
  352. phys = <&hsusb1_phy>;
  353. };