omap4-sdp.dts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /*
  2. * Copyright (C) 2011 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. /dts-v1/;
  9. #include "omap443x.dtsi"
  10. #include "elpida_ecb240abacn.dtsi"
  11. / {
  12. model = "TI OMAP4 SDP board";
  13. compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4";
  14. memory {
  15. device_type = "memory";
  16. reg = <0x80000000 0x40000000>; /* 1 GB */
  17. };
  18. vdd_eth: fixedregulator-vdd-eth {
  19. compatible = "regulator-fixed";
  20. regulator-name = "VDD_ETH";
  21. regulator-min-microvolt = <3300000>;
  22. regulator-max-microvolt = <3300000>;
  23. gpio = <&gpio2 16 0>; /* gpio line 48 */
  24. enable-active-high;
  25. regulator-boot-on;
  26. };
  27. vbat: fixedregulator-vbat {
  28. compatible = "regulator-fixed";
  29. regulator-name = "VBAT";
  30. regulator-min-microvolt = <3750000>;
  31. regulator-max-microvolt = <3750000>;
  32. regulator-boot-on;
  33. };
  34. leds {
  35. compatible = "gpio-leds";
  36. debug0 {
  37. label = "omap4:green:debug0";
  38. gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; /* 61 */
  39. };
  40. debug1 {
  41. label = "omap4:green:debug1";
  42. gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; /* 30 */
  43. };
  44. debug2 {
  45. label = "omap4:green:debug2";
  46. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; /* 7 */
  47. };
  48. debug3 {
  49. label = "omap4:green:debug3";
  50. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* 8 */
  51. };
  52. debug4 {
  53. label = "omap4:green:debug4";
  54. gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>; /* 50 */
  55. };
  56. user1 {
  57. label = "omap4:blue:user";
  58. gpios = <&gpio6 9 GPIO_ACTIVE_HIGH>; /* 169 */
  59. };
  60. user2 {
  61. label = "omap4:red:user";
  62. gpios = <&gpio6 10 GPIO_ACTIVE_HIGH>; /* 170 */
  63. };
  64. user3 {
  65. label = "omap4:green:user";
  66. gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>; /* 139 */
  67. };
  68. };
  69. pwmleds {
  70. compatible = "pwm-leds";
  71. kpad {
  72. label = "omap4::keypad";
  73. pwms = <&twl_pwm 0 7812500>;
  74. max-brightness = <127>;
  75. };
  76. charging {
  77. label = "omap4:green:chrg";
  78. pwms = <&twl_pwmled 0 7812500>;
  79. max-brightness = <255>;
  80. };
  81. };
  82. backlight {
  83. compatible = "pwm-backlight";
  84. pwms = <&twl_pwm 1 7812500>;
  85. brightness-levels = <
  86. 0 10 20 30 40
  87. 50 60 70 80 90
  88. 100 110 120 127
  89. >;
  90. default-brightness-level = <13>;
  91. };
  92. sound {
  93. compatible = "ti,abe-twl6040";
  94. ti,model = "SDP4430";
  95. ti,jack-detection = <1>;
  96. ti,mclk-freq = <38400000>;
  97. ti,mcpdm = <&mcpdm>;
  98. ti,dmic = <&dmic>;
  99. ti,twl6040 = <&twl6040>;
  100. /* Audio routing */
  101. ti,audio-routing =
  102. "Headset Stereophone", "HSOL",
  103. "Headset Stereophone", "HSOR",
  104. "Earphone Spk", "EP",
  105. "Ext Spk", "HFL",
  106. "Ext Spk", "HFR",
  107. "Line Out", "AUXL",
  108. "Line Out", "AUXR",
  109. "Vibrator", "VIBRAL",
  110. "Vibrator", "VIBRAR",
  111. "HSMIC", "Headset Mic",
  112. "Headset Mic", "Headset Mic Bias",
  113. "MAINMIC", "Main Handset Mic",
  114. "Main Handset Mic", "Main Mic Bias",
  115. "SUBMIC", "Sub Handset Mic",
  116. "Sub Handset Mic", "Main Mic Bias",
  117. "AFML", "Line In",
  118. "AFMR", "Line In",
  119. "DMic", "Digital Mic",
  120. "Digital Mic", "Digital Mic1 Bias";
  121. };
  122. };
  123. &omap4_pmx_wkup {
  124. pinctrl-names = "default";
  125. pinctrl-0 = <
  126. &twl6030_wkup_pins
  127. >;
  128. twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
  129. pinctrl-single,pins = <
  130. 0x14 (PIN_OUTPUT | MUX_MODE2) /* fref_clk0_out.sys_drm_msecure */
  131. >;
  132. };
  133. };
  134. &omap4_pmx_core {
  135. pinctrl-names = "default";
  136. pinctrl-0 = <
  137. &twl6030_pins
  138. &twl6040_pins
  139. &mcpdm_pins
  140. &dmic_pins
  141. &mcbsp1_pins
  142. &mcbsp2_pins
  143. &dss_hdmi_pins
  144. &tpd12s015_pins
  145. >;
  146. uart2_pins: pinmux_uart2_pins {
  147. pinctrl-single,pins = <
  148. 0xd8 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts.uart2_cts */
  149. 0xda (PIN_OUTPUT | MUX_MODE0) /* uart2_rts.uart2_rts */
  150. 0xdc (PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_rx.uart2_rx */
  151. 0xde (PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
  152. >;
  153. };
  154. uart3_pins: pinmux_uart3_pins {
  155. pinctrl-single,pins = <
  156. 0x100 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_cts_rctx.uart3_cts_rctx */
  157. 0x102 (PIN_OUTPUT | MUX_MODE0) /* uart3_rts_sd.uart3_rts_sd */
  158. 0x104 (PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  159. 0x106 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  160. >;
  161. };
  162. uart4_pins: pinmux_uart4_pins {
  163. pinctrl-single,pins = <
  164. 0x11c (PIN_INPUT | MUX_MODE0) /* uart4_rx.uart4_rx */
  165. 0x11e (PIN_OUTPUT | MUX_MODE0) /* uart4_tx.uart4_tx */
  166. >;
  167. };
  168. twl6030_pins: pinmux_twl6030_pins {
  169. pinctrl-single,pins = <
  170. 0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1.sys_nirq1 */
  171. >;
  172. };
  173. twl6040_pins: pinmux_twl6040_pins {
  174. pinctrl-single,pins = <
  175. 0xe0 (PIN_OUTPUT | MUX_MODE3) /* hdq_sio.gpio_127 */
  176. 0x160 (PIN_INPUT | MUX_MODE0) /* sys_nirq2.sys_nirq2 */
  177. >;
  178. };
  179. mcpdm_pins: pinmux_mcpdm_pins {
  180. pinctrl-single,pins = <
  181. 0xc6 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_ul_data.abe_pdm_ul_data */
  182. 0xc8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_dl_data.abe_pdm_dl_data */
  183. 0xca (PIN_INPUT_PULLUP | MUX_MODE0) /* abe_pdm_frame.abe_pdm_frame */
  184. 0xcc (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_pdm_lb_clk.abe_pdm_lb_clk */
  185. 0xce (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
  186. >;
  187. };
  188. dmic_pins: pinmux_dmic_pins {
  189. pinctrl-single,pins = <
  190. 0xd0 (PIN_OUTPUT | MUX_MODE0) /* abe_dmic_clk1.abe_dmic_clk1 */
  191. 0xd2 (PIN_INPUT | MUX_MODE0) /* abe_dmic_din1.abe_dmic_din1 */
  192. 0xd4 (PIN_INPUT | MUX_MODE0) /* abe_dmic_din2.abe_dmic_din2 */
  193. 0xd6 (PIN_INPUT | MUX_MODE0) /* abe_dmic_din3.abe_dmic_din3 */
  194. >;
  195. };
  196. mcbsp1_pins: pinmux_mcbsp1_pins {
  197. pinctrl-single,pins = <
  198. 0xbe (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_clkx.abe_mcbsp1_clkx */
  199. 0xc0 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dr.abe_mcbsp1_dr */
  200. 0xc2 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp1_dx.abe_mcbsp1_dx */
  201. 0xc4 (PIN_INPUT | MUX_MODE0) /* abe_mcbsp1_fsx.abe_mcbsp1_fsx */
  202. >;
  203. };
  204. mcbsp2_pins: pinmux_mcbsp2_pins {
  205. pinctrl-single,pins = <
  206. 0xb6 (PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_clkx.abe_mcbsp2_clkx */
  207. 0xb8 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp2_dr.abe_mcbsp2_dr */
  208. 0xba (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abe_mcbsp2_dx.abe_mcbsp2_dx */
  209. 0xbc (PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_fsx.abe_mcbsp2_fsx */
  210. >;
  211. };
  212. mcspi1_pins: pinmux_mcspi1_pins {
  213. pinctrl-single,pins = <
  214. 0xf2 (PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */
  215. 0xf4 (PIN_INPUT | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */
  216. 0xf6 (PIN_INPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */
  217. 0xf8 (PIN_INPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */
  218. >;
  219. };
  220. dss_hdmi_pins: pinmux_dss_hdmi_pins {
  221. pinctrl-single,pins = <
  222. 0x5a (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec.hdmi_cec */
  223. 0x5c (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_scl.hdmi_scl */
  224. 0x5e (PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_sda.hdmi_sda */
  225. >;
  226. };
  227. tpd12s015_pins: pinmux_tpd12s015_pins {
  228. pinctrl-single,pins = <
  229. 0x22 (PIN_OUTPUT | MUX_MODE3) /* gpmc_a17.gpio_41 */
  230. 0x48 (PIN_OUTPUT | MUX_MODE3) /* gpmc_nbe1.gpio_60 */
  231. 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE3) /* hdmi_hpd.gpio_63 */
  232. >;
  233. };
  234. i2c1_pins: pinmux_i2c1_pins {
  235. pinctrl-single,pins = <
  236. 0xe2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  237. 0xe4 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  238. >;
  239. };
  240. i2c2_pins: pinmux_i2c2_pins {
  241. pinctrl-single,pins = <
  242. 0xe6 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
  243. 0xe8 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
  244. >;
  245. };
  246. i2c3_pins: pinmux_i2c3_pins {
  247. pinctrl-single,pins = <
  248. 0xea (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
  249. 0xec (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
  250. >;
  251. };
  252. i2c4_pins: pinmux_i2c4_pins {
  253. pinctrl-single,pins = <
  254. 0xee (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
  255. 0xf0 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
  256. >;
  257. };
  258. };
  259. &i2c1 {
  260. pinctrl-names = "default";
  261. pinctrl-0 = <&i2c1_pins>;
  262. clock-frequency = <400000>;
  263. twl: twl@48 {
  264. reg = <0x48>;
  265. /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
  266. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
  267. interrupt-parent = <&gic>;
  268. };
  269. twl6040: twl@4b {
  270. compatible = "ti,twl6040";
  271. reg = <0x4b>;
  272. /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
  273. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
  274. interrupt-parent = <&gic>;
  275. ti,audpwron-gpio = <&gpio4 31 0>; /* gpio line 127 */
  276. vio-supply = <&v1v8>;
  277. v2v1-supply = <&v2v1>;
  278. enable-active-high;
  279. /* regulators for vibra motor */
  280. vddvibl-supply = <&vbat>;
  281. vddvibr-supply = <&vbat>;
  282. vibra {
  283. /* Vibra driver, motor resistance parameters */
  284. ti,vibldrv-res = <8>;
  285. ti,vibrdrv-res = <3>;
  286. ti,viblmotor-res = <10>;
  287. ti,vibrmotor-res = <10>;
  288. };
  289. };
  290. };
  291. #include "twl6030.dtsi"
  292. &i2c2 {
  293. pinctrl-names = "default";
  294. pinctrl-0 = <&i2c2_pins>;
  295. clock-frequency = <400000>;
  296. };
  297. &i2c3 {
  298. pinctrl-names = "default";
  299. pinctrl-0 = <&i2c3_pins>;
  300. clock-frequency = <400000>;
  301. /*
  302. * Temperature Sensor
  303. * http://www.ti.com/lit/ds/symlink/tmp105.pdf
  304. */
  305. tmp105@48 {
  306. compatible = "ti,tmp105";
  307. reg = <0x48>;
  308. };
  309. /*
  310. * Ambient Light Sensor
  311. * http://www.rohm.com/products/databook/sensor/pdf/bh1780gli-e.pdf
  312. */
  313. bh1780@29 {
  314. compatible = "rohm,bh1780";
  315. reg = <0x29>;
  316. };
  317. };
  318. &i2c4 {
  319. pinctrl-names = "default";
  320. pinctrl-0 = <&i2c4_pins>;
  321. clock-frequency = <400000>;
  322. /*
  323. * 3-Axis Digital Compass
  324. * http://www.sparkfun.com/datasheets/Sensors/Magneto/HMC5843.pdf
  325. */
  326. hmc5843@1e {
  327. compatible = "honeywell,hmc5843";
  328. reg = <0x1e>;
  329. };
  330. };
  331. &mcspi1 {
  332. pinctrl-names = "default";
  333. pinctrl-0 = <&mcspi1_pins>;
  334. eth@0 {
  335. compatible = "ks8851";
  336. spi-max-frequency = <24000000>;
  337. reg = <0>;
  338. interrupt-parent = <&gpio2>;
  339. interrupts = <2 IRQ_TYPE_LEVEL_LOW>; /* gpio line 34 */
  340. vdd-supply = <&vdd_eth>;
  341. };
  342. };
  343. &mmc1 {
  344. vmmc-supply = <&vmmc>;
  345. bus-width = <8>;
  346. };
  347. &mmc2 {
  348. vmmc-supply = <&vaux1>;
  349. bus-width = <8>;
  350. ti,non-removable;
  351. };
  352. &mmc3 {
  353. status = "disabled";
  354. };
  355. &mmc4 {
  356. status = "disabled";
  357. };
  358. &mmc5 {
  359. bus-width = <4>;
  360. ti,non-removable;
  361. };
  362. &emif1 {
  363. cs1-used;
  364. device-handle = <&elpida_ECB240ABACN>;
  365. };
  366. &emif2 {
  367. cs1-used;
  368. device-handle = <&elpida_ECB240ABACN>;
  369. };
  370. &keypad {
  371. keypad,num-rows = <8>;
  372. keypad,num-columns = <8>;
  373. linux,keymap = <0x00000012 /* KEY_E */
  374. 0x00010013 /* KEY_R */
  375. 0x00020014 /* KEY_T */
  376. 0x00030066 /* KEY_HOME */
  377. 0x0004003f /* KEY_F5 */
  378. 0x000500f0 /* KEY_UNKNOWN */
  379. 0x00060017 /* KEY_I */
  380. 0x0007002a /* KEY_LEFTSHIFT */
  381. 0x01000020 /* KEY_D*/
  382. 0x01010021 /* KEY_F */
  383. 0x01020022 /* KEY_G */
  384. 0x010300e7 /* KEY_SEND */
  385. 0x01040040 /* KEY_F6 */
  386. 0x010500f0 /* KEY_UNKNOWN */
  387. 0x01060025 /* KEY_K */
  388. 0x0107001c /* KEY_ENTER */
  389. 0x0200002d /* KEY_X */
  390. 0x0201002e /* KEY_C */
  391. 0x0202002f /* KEY_V */
  392. 0x0203006b /* KEY_END */
  393. 0x02040041 /* KEY_F7 */
  394. 0x020500f0 /* KEY_UNKNOWN */
  395. 0x02060034 /* KEY_DOT */
  396. 0x0207003a /* KEY_CAPSLOCK */
  397. 0x0300002c /* KEY_Z */
  398. 0x0301004e /* KEY_KPLUS */
  399. 0x03020030 /* KEY_B */
  400. 0x0303003b /* KEY_F1 */
  401. 0x03040042 /* KEY_F8 */
  402. 0x030500f0 /* KEY_UNKNOWN */
  403. 0x03060018 /* KEY_O */
  404. 0x03070039 /* KEY_SPACE */
  405. 0x04000011 /* KEY_W */
  406. 0x04010015 /* KEY_Y */
  407. 0x04020016 /* KEY_U */
  408. 0x0403003c /* KEY_F2 */
  409. 0x04040073 /* KEY_VOLUMEUP */
  410. 0x040500f0 /* KEY_UNKNOWN */
  411. 0x04060026 /* KEY_L */
  412. 0x04070069 /* KEY_LEFT */
  413. 0x0500001f /* KEY_S */
  414. 0x05010023 /* KEY_H */
  415. 0x05020024 /* KEY_J */
  416. 0x0503003d /* KEY_F3 */
  417. 0x05040043 /* KEY_F9 */
  418. 0x05050072 /* KEY_VOLUMEDOWN */
  419. 0x05060032 /* KEY_M */
  420. 0x0507006a /* KEY_RIGHT */
  421. 0x06000010 /* KEY_Q */
  422. 0x0601001e /* KEY_A */
  423. 0x06020031 /* KEY_N */
  424. 0x0603009e /* KEY_BACK */
  425. 0x0604000e /* KEY_BACKSPACE */
  426. 0x060500f0 /* KEY_UNKNOWN */
  427. 0x06060019 /* KEY_P */
  428. 0x06070067 /* KEY_UP */
  429. 0x07000094 /* KEY_PROG1 */
  430. 0x07010095 /* KEY_PROG2 */
  431. 0x070200ca /* KEY_PROG3 */
  432. 0x070300cb /* KEY_PROG4 */
  433. 0x0704003e /* KEY_F4 */
  434. 0x070500f0 /* KEY_UNKNOWN */
  435. 0x07060160 /* KEY_OK */
  436. 0x0707006c>; /* KEY_DOWN */
  437. linux,input-no-autorepeat;
  438. };
  439. &uart2 {
  440. pinctrl-names = "default";
  441. pinctrl-0 = <&uart2_pins>;
  442. };
  443. &uart3 {
  444. pinctrl-names = "default";
  445. pinctrl-0 = <&uart3_pins>;
  446. };
  447. &uart4 {
  448. pinctrl-names = "default";
  449. pinctrl-0 = <&uart4_pins>;
  450. };
  451. &mcbsp3 {
  452. status = "disabled";
  453. };
  454. &twl_usb_comparator {
  455. usb-supply = <&vusb>;
  456. };
  457. &usb_otg_hs {
  458. interface-type = <1>;
  459. mode = <3>;
  460. power = <50>;
  461. };