omap3-pandora-common.dtsi 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691
  1. /*
  2. * Copyright (C) 2015
  3. * Nikolaus Schaller <hns@goldelico.com>
  4. *
  5. * Common device tree include for OpenPandora devices.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #include <dt-bindings/input/input.h>
  12. / {
  13. cpus {
  14. cpu@0 {
  15. cpu0-supply = <&vcc>;
  16. };
  17. };
  18. memory@80000000 {
  19. device_type = "memory";
  20. reg = <0x80000000 0x20000000>; /* 512 MB */
  21. };
  22. aliases {
  23. display0 = &lcd;
  24. };
  25. tv: connector {
  26. compatible = "connector-analog-tv";
  27. label = "tv";
  28. port {
  29. tv_connector_in: endpoint {
  30. remote-endpoint = <&venc_out>;
  31. };
  32. };
  33. };
  34. gpio-leds {
  35. compatible = "gpio-leds";
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&led_pins>;
  38. led1 {
  39. label = "pandora::sd1";
  40. gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>; /* GPIO_128 */
  41. linux,default-trigger = "mmc0";
  42. default-state = "off";
  43. };
  44. led2 {
  45. label = "pandora::sd2";
  46. gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; /* GPIO_129 */
  47. linux,default-trigger = "mmc1";
  48. default-state = "off";
  49. };
  50. led3 {
  51. label = "pandora::bluetooth";
  52. gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>; /* GPIO_158 */
  53. linux,default-trigger = "heartbeat";
  54. default-state = "off";
  55. };
  56. led4 {
  57. label = "pandora::wifi";
  58. gpios = <&gpio5 31 GPIO_ACTIVE_HIGH>; /* GPIO_159 */
  59. linux,default-trigger = "mmc2";
  60. default-state = "off";
  61. };
  62. };
  63. gpio-keys {
  64. compatible = "gpio-keys";
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&button_pins>;
  67. up-button {
  68. label = "up";
  69. linux,code = <KEY_UP>;
  70. gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* GPIO_110 */
  71. wakeup-source;
  72. };
  73. down-button {
  74. label = "down";
  75. linux,code = <KEY_DOWN>;
  76. gpios = <&gpio4 7 GPIO_ACTIVE_LOW>; /* GPIO_103 */
  77. wakeup-source;
  78. };
  79. left-button {
  80. label = "left";
  81. linux,code = <KEY_LEFT>;
  82. gpios = <&gpio4 0 GPIO_ACTIVE_LOW>; /* GPIO_96 */
  83. wakeup-source;
  84. };
  85. right-button {
  86. label = "right";
  87. linux,code = <KEY_RIGHT>;
  88. gpios = <&gpio4 2 GPIO_ACTIVE_LOW>; /* GPIO_98 */
  89. wakeup-source;
  90. };
  91. pageup-button {
  92. label = "game 1";
  93. linux,code = <KEY_PAGEUP>;
  94. gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* GPIO_109 */
  95. wakeup-source;
  96. };
  97. pagedown-button {
  98. label = "game 3";
  99. linux,code = <KEY_PAGEDOWN>;
  100. gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* GPIO_106 */
  101. wakeup-source;
  102. };
  103. home-button {
  104. label = "game 4";
  105. linux,code = <KEY_HOME>;
  106. gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; /* GPIO_101 */
  107. wakeup-source;
  108. };
  109. end-button {
  110. label = "game 2";
  111. linux,code = <KEY_END>;
  112. gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* GPIO_111 */
  113. wakeup-source;
  114. };
  115. right-shift {
  116. label = "l";
  117. linux,code = <KEY_RIGHTSHIFT>;
  118. gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; /* GPIO_102 */
  119. wakeup-source;
  120. };
  121. kp-plus {
  122. label = "l2";
  123. linux,code = <KEY_KPPLUS>;
  124. gpios = <&gpio4 1 GPIO_ACTIVE_LOW>; /* GPIO_97 */
  125. wakeup-source;
  126. };
  127. right-ctrl {
  128. label = "r";
  129. linux,code = <KEY_RIGHTCTRL>;
  130. gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; /* GPIO_105 */
  131. wakeup-source;
  132. };
  133. kp-minus {
  134. label = "r2";
  135. linux,code = <KEY_KPMINUS>;
  136. gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; /* GPIO_107 */
  137. wakeup-source;
  138. };
  139. left-ctrl {
  140. label = "ctrl";
  141. linux,code = <KEY_LEFTCTRL>;
  142. gpios = <&gpio4 8 GPIO_ACTIVE_LOW>; /* GPIO_104 */
  143. wakeup-source;
  144. };
  145. menu {
  146. label = "menu";
  147. linux,code = <KEY_MENU>;
  148. gpios = <&gpio4 3 GPIO_ACTIVE_LOW>; /* GPIO_99 */
  149. wakeup-source;
  150. };
  151. hold {
  152. label = "hold";
  153. linux,code = <KEY_COFFEE>;
  154. gpios = <&gpio6 16 GPIO_ACTIVE_LOW>; /* GPIO_176 */
  155. wakeup-source;
  156. };
  157. left-alt {
  158. label = "alt";
  159. linux,code = <KEY_LEFTALT>;
  160. gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>; /* GPIO_100 */
  161. wakeup-source;
  162. };
  163. lid {
  164. label = "lid";
  165. linux,code = <0x00>; /* SW_LID lid shut */
  166. linux,input-type = <0x05>; /* EV_SW */
  167. gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; /* GPIO_108 */
  168. };
  169. };
  170. /* HS USB Host PHY on PORT 2 */
  171. hsusb2_phy: hsusb2_phy {
  172. compatible = "usb-nop-xceiv";
  173. reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; /* GPIO_16 */
  174. vcc-supply = <&vaux2>;
  175. };
  176. /* HS USB Host VBUS supply
  177. * disabling this regulator causes current leakage, and LCD flicker
  178. * on earlier (CC) board revisions, so keep it always on */
  179. usb_host_5v: fixed-regulator-usb_host_5v {
  180. compatible = "regulator-fixed";
  181. regulator-name = "usb_host_5v";
  182. regulator-min-microvolt = <5000000>;
  183. regulator-max-microvolt = <5000000>;
  184. regulator-always-on;
  185. regulator-boot-on;
  186. enable-active-high;
  187. gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* GPIO_164 */
  188. };
  189. /* wg7210 (wifi+bt module) 32k clock buffer */
  190. wg7210_32k: fixed-regulator-wg7210_32k {
  191. compatible = "regulator-fixed";
  192. regulator-name = "wg7210_32k";
  193. regulator-min-microvolt = <1800000>;
  194. regulator-max-microvolt = <1800000>;
  195. regulator-always-on;
  196. enable-active-high;
  197. gpio = <&twl_gpio 13 GPIO_ACTIVE_HIGH>;
  198. };
  199. };
  200. &omap3_pmx_core {
  201. mmc1_pins: pinmux_mmc1_pins {
  202. pinctrl-single,pins = <
  203. OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  204. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  205. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  206. OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  207. OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  208. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  209. >;
  210. };
  211. mmc2_pins: pinmux_mmc2_pins {
  212. pinctrl-single,pins = <
  213. OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
  214. OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
  215. OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
  216. OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
  217. OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
  218. OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
  219. OMAP3_CORE1_IOPAD(0x2164, PIN_OUTPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat4.sdmmc2_dirdat0 */
  220. OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat5.sdmmc2_dirdat1 */
  221. OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat6.sdmmc2_dircmd */
  222. OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat7.sdmmc2_clkin */
  223. >;
  224. };
  225. dss_dpi_pins: pinmux_dss_dpi_pins {
  226. pinctrl-single,pins = <
  227. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
  228. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
  229. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
  230. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
  231. OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
  232. OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
  233. OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
  234. OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
  235. OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
  236. OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
  237. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
  238. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
  239. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
  240. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
  241. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
  242. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
  243. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
  244. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
  245. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
  246. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
  247. OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
  248. OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
  249. OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
  250. OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
  251. OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
  252. OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
  253. OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
  254. OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
  255. OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4) /* GPIO_157 = lcd reset */
  256. >;
  257. };
  258. uart3_pins: pinmux_uart3_pins {
  259. pinctrl-single,pins = <
  260. OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  261. OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  262. >;
  263. };
  264. led_pins: pinmux_leds_pins {
  265. pinctrl-single,pins = <
  266. OMAP3_CORE1_IOPAD(0x2154, PIN_OUTPUT | MUX_MODE4) /* GPIO_128 */
  267. OMAP3_CORE1_IOPAD(0x2156, PIN_OUTPUT | MUX_MODE4) /* GPIO_129 */
  268. OMAP3_CORE1_IOPAD(0x2190, PIN_OUTPUT | MUX_MODE4) /* GPIO_158 */
  269. OMAP3_CORE1_IOPAD(0x2192, PIN_OUTPUT | MUX_MODE4) /* GPIO_159 */
  270. >;
  271. };
  272. button_pins: pinmux_button_pins {
  273. pinctrl-single,pins = <
  274. OMAP3_CORE1_IOPAD(0x2110, PIN_INPUT | MUX_MODE4) /* GPIO_96 */
  275. OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT | MUX_MODE4) /* GPIO_97 */
  276. OMAP3_CORE1_IOPAD(0x2114, PIN_INPUT | MUX_MODE4) /* GPIO_98 */
  277. OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE4) /* GPIO_99 */
  278. OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE4) /* GPIO_100 */
  279. OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE4) /* GPIO_101 */
  280. OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE4) /* GPIO_102 */
  281. OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE4) /* GPIO_103 */
  282. OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE4) /* GPIO_104 */
  283. OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT | MUX_MODE4) /* GPIO_105 */
  284. OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT | MUX_MODE4) /* GPIO_106 */
  285. OMAP3_CORE1_IOPAD(0x2126, PIN_INPUT | MUX_MODE4) /* GPIO_107 */
  286. OMAP3_CORE1_IOPAD(0x2128, PIN_INPUT | MUX_MODE4) /* GPIO_108 */
  287. OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT | MUX_MODE4) /* GPIO_109 */
  288. OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT | MUX_MODE4) /* GPIO_110 */
  289. OMAP3_CORE1_IOPAD(0x212e, PIN_INPUT | MUX_MODE4) /* GPIO_111 */
  290. OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT | MUX_MODE4) /* GPIO_176 */
  291. >;
  292. };
  293. penirq_pins: pinmux_penirq_pins {
  294. pinctrl-single,pins = <
  295. /* here we could enable to wakeup the cpu from suspend by a pen touch */
  296. OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT | MUX_MODE4) /* GPIO_94 */
  297. >;
  298. };
  299. };
  300. &omap3_pmx_core2 {
  301. /* define in CPU specific file that includes this one
  302. * use either OMAP3430_CORE2_IOPAD() or OMAP3630_CORE2_IOPAD()
  303. */
  304. };
  305. &i2c1 {
  306. clock-frequency = <2600000>;
  307. twl: twl@48 {
  308. reg = <0x48>;
  309. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  310. interrupt-parent = <&intc>;
  311. twl_power: power {
  312. compatible = "ti,twl4030-power-reset";
  313. ti,use_poweroff;
  314. };
  315. twl_audio: audio {
  316. compatible = "ti,twl4030-audio";
  317. codec {
  318. ti,ramp_delay_value = <3>;
  319. };
  320. };
  321. };
  322. };
  323. #include "twl4030.dtsi"
  324. #include "twl4030_omap3.dtsi"
  325. &twl_keypad {
  326. keypad,num-rows = <8>;
  327. keypad,num-columns = <6>;
  328. linux,keymap = <
  329. MATRIX_KEY(0, 0, KEY_9)
  330. MATRIX_KEY(0, 1, KEY_8)
  331. MATRIX_KEY(0, 2, KEY_I)
  332. MATRIX_KEY(0, 3, KEY_J)
  333. MATRIX_KEY(0, 4, KEY_N)
  334. MATRIX_KEY(0, 5, KEY_M)
  335. MATRIX_KEY(1, 0, KEY_0)
  336. MATRIX_KEY(1, 1, KEY_7)
  337. MATRIX_KEY(1, 2, KEY_U)
  338. MATRIX_KEY(1, 3, KEY_H)
  339. MATRIX_KEY(1, 4, KEY_B)
  340. MATRIX_KEY(1, 5, KEY_SPACE)
  341. MATRIX_KEY(2, 0, KEY_BACKSPACE)
  342. MATRIX_KEY(2, 1, KEY_6)
  343. MATRIX_KEY(2, 2, KEY_Y)
  344. MATRIX_KEY(2, 3, KEY_G)
  345. MATRIX_KEY(2, 4, KEY_V)
  346. MATRIX_KEY(2, 5, KEY_FN)
  347. MATRIX_KEY(3, 0, KEY_O)
  348. MATRIX_KEY(3, 1, KEY_5)
  349. MATRIX_KEY(3, 2, KEY_T)
  350. MATRIX_KEY(3, 3, KEY_F)
  351. MATRIX_KEY(3, 4, KEY_C)
  352. MATRIX_KEY(4, 0, KEY_P)
  353. MATRIX_KEY(4, 1, KEY_4)
  354. MATRIX_KEY(4, 2, KEY_R)
  355. MATRIX_KEY(4, 3, KEY_D)
  356. MATRIX_KEY(4, 4, KEY_X)
  357. MATRIX_KEY(5, 0, KEY_K)
  358. MATRIX_KEY(5, 1, KEY_3)
  359. MATRIX_KEY(5, 2, KEY_E)
  360. MATRIX_KEY(5, 3, KEY_S)
  361. MATRIX_KEY(5, 4, KEY_Z)
  362. MATRIX_KEY(6, 0, KEY_L)
  363. MATRIX_KEY(6, 1, KEY_2)
  364. MATRIX_KEY(6, 2, KEY_W)
  365. MATRIX_KEY(6, 3, KEY_A)
  366. MATRIX_KEY(6, 4, KEY_RIGHTBRACE)
  367. MATRIX_KEY(7, 0, KEY_ENTER)
  368. MATRIX_KEY(7, 1, KEY_1)
  369. MATRIX_KEY(7, 2, KEY_Q)
  370. MATRIX_KEY(7, 3, KEY_LEFTSHIFT)
  371. MATRIX_KEY(7, 4, KEY_LEFTBRACE )
  372. >;
  373. };
  374. /* backup battery charger */
  375. &charger {
  376. ti,bb-uvolt = <3200000>;
  377. ti,bb-uamp = <150>;
  378. };
  379. /* MMC2 */
  380. &vmmc2 {
  381. regulator-min-microvolt = <1850000>;
  382. regulator-max-microvolt = <3150000>;
  383. };
  384. /* LCD */
  385. &vaux1 {
  386. regulator-min-microvolt = <3000000>;
  387. regulator-max-microvolt = <3000000>;
  388. };
  389. /* USB Host PHY */
  390. &vaux2 {
  391. regulator-min-microvolt = <1800000>;
  392. regulator-max-microvolt = <1800000>;
  393. };
  394. /* available on expansion connector */
  395. &vaux3 {
  396. regulator-min-microvolt = <2800000>;
  397. regulator-max-microvolt = <2800000>;
  398. };
  399. /* ADS7846 and nubs */
  400. &vaux4 {
  401. regulator-min-microvolt = <2800000>;
  402. regulator-max-microvolt = <2800000>;
  403. };
  404. /* power audio DAC and LID sensor */
  405. &vsim {
  406. regulator-min-microvolt = <2800000>;
  407. regulator-max-microvolt = <2800000>;
  408. regulator-always-on;
  409. };
  410. &i2c2 {
  411. clock-frequency = <100000>;
  412. /* no clients so we should disable clock */
  413. };
  414. &i2c3 {
  415. clock-frequency = <100000>;
  416. bq27500@55 {
  417. compatible = "ti,bq27500";
  418. reg = <0x55>;
  419. };
  420. };
  421. &usb_otg_hs {
  422. interface-type = <0>;
  423. usb-phy = <&usb2_phy>;
  424. phys = <&usb2_phy>;
  425. phy-names = "usb2-phy";
  426. mode = <3>;
  427. power = <50>;
  428. };
  429. /*
  430. * Many pandora boards have been produced with defective write-protect switches
  431. * on either slot, so it was decided not to use this feature. If you know
  432. * your board has good switches, feel free to uncomment wp-gpios below.
  433. */
  434. &mmc1 {
  435. pinctrl-names = "default";
  436. pinctrl-0 = <&mmc1_pins>;
  437. vmmc-supply = <&vmmc1>;
  438. bus-width = <4>;
  439. cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>;
  440. /*wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;*/ /* GPIO_126 */
  441. };
  442. &mmc2 {
  443. pinctrl-names = "default";
  444. pinctrl-0 = <&mmc2_pins>;
  445. vmmc-supply = <&vmmc2>;
  446. bus-width = <4>;
  447. cd-gpios = <&twl_gpio 1 GPIO_ACTIVE_LOW>;
  448. /*wp-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;*/ /* GPIO_127 */
  449. };
  450. /* mmc3 is probed using pdata-quirks to pass wl1251 card data */
  451. &mmc3 {
  452. status = "disabled";
  453. };
  454. /* bluetooth*/
  455. &uart1 {
  456. };
  457. /* spare (expansion connector) */
  458. &uart2 {
  459. };
  460. /* console (expansion connector) */
  461. &uart3 {
  462. pinctrl-names = "default";
  463. pinctrl-0 = <&uart3_pins>;
  464. interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
  465. };
  466. &usbhshost {
  467. port2-mode = "ehci-phy";
  468. };
  469. &usbhsehci {
  470. phys = <0 &hsusb2_phy>;
  471. };
  472. &gpmc {
  473. ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
  474. nand@0,0 {
  475. compatible = "ti,omap2-nand";
  476. reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
  477. interrupt-parent = <&gpmc>;
  478. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  479. <1 IRQ_TYPE_NONE>; /* termcount */
  480. nand-bus-width = <16>;
  481. ti,nand-ecc-opt = "sw";
  482. gpmc,sync-clk-ps = <0>;
  483. gpmc,cs-on-ns = <0>;
  484. gpmc,cs-rd-off-ns = <44>;
  485. gpmc,cs-wr-off-ns = <44>;
  486. gpmc,adv-on-ns = <6>;
  487. gpmc,adv-rd-off-ns = <34>;
  488. gpmc,adv-wr-off-ns = <44>;
  489. gpmc,we-off-ns = <40>;
  490. gpmc,oe-off-ns = <54>;
  491. gpmc,access-ns = <64>;
  492. gpmc,rd-cycle-ns = <82>;
  493. gpmc,wr-cycle-ns = <82>;
  494. gpmc,wr-access-ns = <40>;
  495. gpmc,wr-data-mux-bus-ns = <0>;
  496. gpmc,device-width = <2>;
  497. #address-cells = <1>;
  498. #size-cells = <1>;
  499. /* u-boot uses mtdparts=nand:512k(xloader),1920k(uboot),128k(uboot-env),10m(boot),-(rootfs) */
  500. x-loader@0 {
  501. label = "xloader";
  502. reg = <0 0x80000>;
  503. };
  504. bootloaders@80000 {
  505. label = "uboot";
  506. reg = <0x80000 0x1e0000>;
  507. };
  508. bootloaders_env@260000 {
  509. label = "uboot-env";
  510. reg = <0x260000 0x20000>;
  511. };
  512. kernel@280000 {
  513. label = "boot";
  514. reg = <0x280000 0xa00000>;
  515. };
  516. filesystem@c80000 {
  517. label = "rootfs";
  518. reg = <0xc80000 0>; /* 0 = MTDPART_SIZ_FULL */
  519. };
  520. };
  521. };
  522. &mcspi1 {
  523. tsc2046@0 {
  524. reg = <0>; /* CS0 */
  525. compatible = "ti,tsc2046";
  526. spi-max-frequency = <1000000>;
  527. pinctrl-names = "default";
  528. pinctrl-0 = <&penirq_pins>;
  529. interrupt-parent = <&gpio3>;
  530. interrupts = <30 0>; /* GPIO_94 */
  531. pendown-gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>;
  532. vcc-supply = <&vaux4>;
  533. ti,x-min = /bits/ 16 <0>;
  534. ti,x-max = /bits/ 16 <8000>;
  535. ti,y-min = /bits/ 16 <0>;
  536. ti,y-max = /bits/ 16 <4800>;
  537. ti,x-plate-ohms = /bits/ 16 <40>;
  538. ti,pressure-max = /bits/ 16 <255>;
  539. wakeup-source;
  540. };
  541. lcd: lcd@1 {
  542. reg = <1>; /* CS1 */
  543. compatible = "omapdss,tpo,td043mtea1";
  544. spi-max-frequency = <100000>;
  545. spi-cpol;
  546. spi-cpha;
  547. label = "lcd";
  548. reset-gpios = <&gpio5 29 GPIO_ACTIVE_LOW>; /* GPIO_157 */
  549. vcc-supply = <&vaux1>;
  550. port {
  551. lcd_in: endpoint {
  552. remote-endpoint = <&dpi_out>;
  553. };
  554. };
  555. };
  556. };
  557. /* n/a - used as GPIOs */
  558. &mcbsp1 {
  559. };
  560. /* audio DAC */
  561. &mcbsp2 {
  562. };
  563. /* bluetooth */
  564. &mcbsp3 {
  565. };
  566. /* to twl4030*/
  567. &mcbsp4 {
  568. };
  569. &venc {
  570. status = "ok";
  571. vdda-supply = <&vdac>;
  572. port {
  573. venc_out: endpoint {
  574. remote-endpoint = <&tv_connector_in>;
  575. ti,channels = <2>;
  576. };
  577. };
  578. };
  579. &dss {
  580. pinctrl-names = "default";
  581. pinctrl-0 = < &dss_dpi_pins >;
  582. status = "ok";
  583. vdds_dsi-supply = <&vpll2>;
  584. port {
  585. dpi_out: endpoint {
  586. remote-endpoint = <&lcd_in>;
  587. data-lines = <24>;
  588. };
  589. };
  590. };