omap3-pandora-common.dtsi 18 KB

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