omap5-uevm.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. /*
  2. * Copyright (C) 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. /dts-v1/;
  9. #include "omap5.dtsi"
  10. #include <dt-bindings/interrupt-controller/irq.h>
  11. #include <dt-bindings/interrupt-controller/arm-gic.h>
  12. / {
  13. model = "TI OMAP5 uEVM board";
  14. compatible = "ti,omap5-uevm", "ti,omap5";
  15. memory {
  16. device_type = "memory";
  17. reg = <0x80000000 0x7F000000>; /* 2032 MB */
  18. };
  19. vmmcsd_fixed: fixedregulator-mmcsd {
  20. compatible = "regulator-fixed";
  21. regulator-name = "vmmcsd_fixed";
  22. regulator-min-microvolt = <3000000>;
  23. regulator-max-microvolt = <3000000>;
  24. };
  25. /* HS USB Port 2 RESET */
  26. hsusb2_reset: hsusb2_reset_reg {
  27. compatible = "regulator-fixed";
  28. regulator-name = "hsusb2_reset";
  29. regulator-min-microvolt = <3300000>;
  30. regulator-max-microvolt = <3300000>;
  31. gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>; /* gpio3_80 HUB_NRESET */
  32. startup-delay-us = <70000>;
  33. enable-active-high;
  34. };
  35. /* HS USB Host PHY on PORT 2 */
  36. hsusb2_phy: hsusb2_phy {
  37. compatible = "usb-nop-xceiv";
  38. reset-supply = <&hsusb2_reset>;
  39. };
  40. /* HS USB Port 3 RESET */
  41. hsusb3_reset: hsusb3_reset_reg {
  42. compatible = "regulator-fixed";
  43. regulator-name = "hsusb3_reset";
  44. regulator-min-microvolt = <3300000>;
  45. regulator-max-microvolt = <3300000>;
  46. gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>; /* gpio3_79 ETH_NRESET */
  47. startup-delay-us = <70000>;
  48. enable-active-high;
  49. };
  50. /* HS USB Host PHY on PORT 3 */
  51. hsusb3_phy: hsusb3_phy {
  52. compatible = "usb-nop-xceiv";
  53. reset-supply = <&hsusb3_reset>;
  54. };
  55. leds {
  56. compatible = "gpio-leds";
  57. led@1 {
  58. label = "omap5:blue:usr1";
  59. gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
  60. linux,default-trigger = "heartbeat";
  61. default-state = "off";
  62. };
  63. };
  64. };
  65. &omap5_pmx_core {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <
  68. &twl6040_pins
  69. &mcpdm_pins
  70. &dmic_pins
  71. &mcbsp1_pins
  72. &mcbsp2_pins
  73. &usbhost_pins
  74. &led_gpio_pins
  75. >;
  76. twl6040_pins: pinmux_twl6040_pins {
  77. pinctrl-single,pins = <
  78. 0x18a (PIN_OUTPUT | MUX_MODE6) /* perslimbus2_clock.gpio5_145 */
  79. >;
  80. };
  81. mcpdm_pins: pinmux_mcpdm_pins {
  82. pinctrl-single,pins = <
  83. 0x142 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
  84. 0x15c (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
  85. 0x15e (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
  86. 0x160 (PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
  87. 0x162 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
  88. >;
  89. };
  90. dmic_pins: pinmux_dmic_pins {
  91. pinctrl-single,pins = <
  92. 0x144 (PIN_INPUT | MUX_MODE0) /* abedmic_din1.abedmic_din1 */
  93. 0x146 (PIN_INPUT | MUX_MODE0) /* abedmic_din2.abedmic_din2 */
  94. 0x148 (PIN_INPUT | MUX_MODE0) /* abedmic_din3.abedmic_din3 */
  95. 0x14a (PIN_OUTPUT | MUX_MODE0) /* abedmic_clk1.abedmic_clk1 */
  96. >;
  97. };
  98. mcbsp1_pins: pinmux_mcbsp1_pins {
  99. pinctrl-single,pins = <
  100. 0x14c (PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
  101. 0x14e (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
  102. 0x150 (PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
  103. 0x152 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
  104. >;
  105. };
  106. mcbsp2_pins: pinmux_mcbsp2_pins {
  107. pinctrl-single,pins = <
  108. 0x154 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
  109. 0x156 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
  110. 0x158 (PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
  111. 0x15a (PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
  112. >;
  113. };
  114. i2c1_pins: pinmux_i2c1_pins {
  115. pinctrl-single,pins = <
  116. 0x1b2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  117. 0x1b4 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  118. >;
  119. };
  120. i2c5_pins: pinmux_i2c5_pins {
  121. pinctrl-single,pins = <
  122. 0x184 (PIN_INPUT | MUX_MODE0) /* i2c5_scl */
  123. 0x186 (PIN_INPUT | MUX_MODE0) /* i2c5_sda */
  124. >;
  125. };
  126. mcspi2_pins: pinmux_mcspi2_pins {
  127. pinctrl-single,pins = <
  128. 0xbc (PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
  129. 0xbe (PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
  130. 0xc0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
  131. 0xc2 (PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs */
  132. >;
  133. };
  134. mcspi3_pins: pinmux_mcspi3_pins {
  135. pinctrl-single,pins = <
  136. 0x78 (PIN_INPUT | MUX_MODE1) /* mcspi2_somi */
  137. 0x7a (PIN_INPUT | MUX_MODE1) /* mcspi2_cs */
  138. 0x7c (PIN_INPUT | MUX_MODE1) /* mcspi2_simo */
  139. 0x7e (PIN_INPUT | MUX_MODE1) /* mcspi2_clk */
  140. >;
  141. };
  142. mcspi4_pins: pinmux_mcspi4_pins {
  143. pinctrl-single,pins = <
  144. 0x164 (PIN_INPUT | MUX_MODE1) /* mcspi2_clk */
  145. 0x168 (PIN_INPUT | MUX_MODE1) /* mcspi2_simo */
  146. 0x16a (PIN_INPUT | MUX_MODE1) /* mcspi2_somi */
  147. 0x16c (PIN_INPUT | MUX_MODE1) /* mcspi2_cs */
  148. >;
  149. };
  150. usbhost_pins: pinmux_usbhost_pins {
  151. pinctrl-single,pins = <
  152. 0x84 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
  153. 0x86 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
  154. 0x19e (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
  155. 0x1a0 (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
  156. 0x70 (PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
  157. 0x6e (PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
  158. >;
  159. };
  160. led_gpio_pins: pinmux_led_gpio_pins {
  161. pinctrl-single,pins = <
  162. 0x196 (PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
  163. >;
  164. };
  165. uart1_pins: pinmux_uart1_pins {
  166. pinctrl-single,pins = <
  167. 0x60 (PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
  168. 0x62 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
  169. 0x64 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
  170. 0x66 (PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
  171. >;
  172. };
  173. uart3_pins: pinmux_uart3_pins {
  174. pinctrl-single,pins = <
  175. 0x19a (PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
  176. 0x19c (PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
  177. >;
  178. };
  179. uart5_pins: pinmux_uart5_pins {
  180. pinctrl-single,pins = <
  181. 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
  182. 0x172 (PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
  183. 0x174 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
  184. 0x176 (PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
  185. >;
  186. };
  187. };
  188. &omap5_pmx_wkup {
  189. pinctrl-names = "default";
  190. pinctrl-0 = <
  191. &usbhost_wkup_pins
  192. >;
  193. usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
  194. pinctrl-single,pins = <
  195. 0x1A (PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
  196. >;
  197. };
  198. };
  199. &mmc1 {
  200. vmmc-supply = <&vmmcsd_fixed>;
  201. bus-width = <4>;
  202. };
  203. &mmc2 {
  204. vmmc-supply = <&vmmcsd_fixed>;
  205. bus-width = <8>;
  206. ti,non-removable;
  207. };
  208. &mmc3 {
  209. bus-width = <4>;
  210. ti,non-removable;
  211. };
  212. &mmc4 {
  213. status = "disabled";
  214. };
  215. &mmc5 {
  216. status = "disabled";
  217. };
  218. &i2c1 {
  219. pinctrl-names = "default";
  220. pinctrl-0 = <&i2c1_pins>;
  221. clock-frequency = <400000>;
  222. palmas: palmas@48 {
  223. compatible = "ti,palmas";
  224. interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
  225. interrupt-parent = <&gic>;
  226. reg = <0x48>;
  227. interrupt-controller;
  228. #interrupt-cells = <2>;
  229. palmas_pmic {
  230. compatible = "ti,palmas-pmic";
  231. interrupt-parent = <&palmas>;
  232. interrupts = <14 IRQ_TYPE_NONE>;
  233. interrupt-name = "short-irq";
  234. ti,ldo6-vibrator;
  235. regulators {
  236. smps123_reg: smps123 {
  237. regulator-name = "smps123";
  238. regulator-min-microvolt = < 600000>;
  239. regulator-max-microvolt = <1500000>;
  240. regulator-always-on;
  241. regulator-boot-on;
  242. };
  243. smps45_reg: smps45 {
  244. regulator-name = "smps45";
  245. regulator-min-microvolt = < 600000>;
  246. regulator-max-microvolt = <1310000>;
  247. regulator-always-on;
  248. regulator-boot-on;
  249. };
  250. smps6_reg: smps6 {
  251. regulator-name = "smps6";
  252. regulator-min-microvolt = <1200000>;
  253. regulator-max-microvolt = <1200000>;
  254. regulator-always-on;
  255. regulator-boot-on;
  256. };
  257. smps7_reg: smps7 {
  258. regulator-name = "smps7";
  259. regulator-min-microvolt = <1800000>;
  260. regulator-max-microvolt = <1800000>;
  261. regulator-always-on;
  262. regulator-boot-on;
  263. };
  264. smps8_reg: smps8 {
  265. regulator-name = "smps8";
  266. regulator-min-microvolt = < 600000>;
  267. regulator-max-microvolt = <1310000>;
  268. regulator-always-on;
  269. regulator-boot-on;
  270. };
  271. smps9_reg: smps9 {
  272. regulator-name = "smps9";
  273. regulator-min-microvolt = <2100000>;
  274. regulator-max-microvolt = <2100000>;
  275. regulator-always-on;
  276. regulator-boot-on;
  277. ti,smps-range = <0x80>;
  278. };
  279. smps10_reg: smps10 {
  280. regulator-name = "smps10";
  281. regulator-min-microvolt = <5000000>;
  282. regulator-max-microvolt = <5000000>;
  283. regulator-always-on;
  284. regulator-boot-on;
  285. };
  286. ldo1_reg: ldo1 {
  287. regulator-name = "ldo1";
  288. regulator-min-microvolt = <2800000>;
  289. regulator-max-microvolt = <2800000>;
  290. regulator-always-on;
  291. regulator-boot-on;
  292. };
  293. ldo2_reg: ldo2 {
  294. regulator-name = "ldo2";
  295. regulator-min-microvolt = <2900000>;
  296. regulator-max-microvolt = <2900000>;
  297. regulator-always-on;
  298. regulator-boot-on;
  299. };
  300. ldo3_reg: ldo3 {
  301. regulator-name = "ldo3";
  302. regulator-min-microvolt = <3000000>;
  303. regulator-max-microvolt = <3000000>;
  304. regulator-always-on;
  305. regulator-boot-on;
  306. };
  307. ldo4_reg: ldo4 {
  308. regulator-name = "ldo4";
  309. regulator-min-microvolt = <2200000>;
  310. regulator-max-microvolt = <2200000>;
  311. regulator-always-on;
  312. regulator-boot-on;
  313. };
  314. ldo5_reg: ldo5 {
  315. regulator-name = "ldo5";
  316. regulator-min-microvolt = <1800000>;
  317. regulator-max-microvolt = <1800000>;
  318. regulator-always-on;
  319. regulator-boot-on;
  320. };
  321. ldo6_reg: ldo6 {
  322. regulator-name = "ldo6";
  323. regulator-min-microvolt = <1500000>;
  324. regulator-max-microvolt = <1500000>;
  325. regulator-always-on;
  326. regulator-boot-on;
  327. };
  328. ldo7_reg: ldo7 {
  329. regulator-name = "ldo7";
  330. regulator-min-microvolt = <1500000>;
  331. regulator-max-microvolt = <1500000>;
  332. regulator-always-on;
  333. regulator-boot-on;
  334. };
  335. ldo8_reg: ldo8 {
  336. regulator-name = "ldo8";
  337. regulator-min-microvolt = <1500000>;
  338. regulator-max-microvolt = <1500000>;
  339. regulator-always-on;
  340. regulator-boot-on;
  341. };
  342. ldo9_reg: ldo9 {
  343. regulator-name = "ldo9";
  344. regulator-min-microvolt = <1800000>;
  345. regulator-max-microvolt = <3300000>;
  346. regulator-always-on;
  347. regulator-boot-on;
  348. };
  349. ldoln_reg: ldoln {
  350. regulator-name = "ldoln";
  351. regulator-min-microvolt = <1800000>;
  352. regulator-max-microvolt = <1800000>;
  353. regulator-always-on;
  354. regulator-boot-on;
  355. };
  356. ldousb_reg: ldousb {
  357. regulator-name = "ldousb";
  358. regulator-min-microvolt = <3250000>;
  359. regulator-max-microvolt = <3250000>;
  360. regulator-always-on;
  361. regulator-boot-on;
  362. };
  363. };
  364. };
  365. };
  366. };
  367. &i2c5 {
  368. pinctrl-names = "default";
  369. pinctrl-0 = <&i2c5_pins>;
  370. clock-frequency = <400000>;
  371. };
  372. &mcbsp3 {
  373. status = "disabled";
  374. };
  375. &usbhshost {
  376. port2-mode = "ehci-hsic";
  377. port3-mode = "ehci-hsic";
  378. };
  379. &usbhsehci {
  380. phys = <0 &hsusb2_phy &hsusb3_phy>;
  381. };
  382. &mcspi1 {
  383. };
  384. &mcspi2 {
  385. pinctrl-names = "default";
  386. pinctrl-0 = <&mcspi2_pins>;
  387. };
  388. &mcspi3 {
  389. pinctrl-names = "default";
  390. pinctrl-0 = <&mcspi3_pins>;
  391. };
  392. &mcspi4 {
  393. pinctrl-names = "default";
  394. pinctrl-0 = <&mcspi4_pins>;
  395. };
  396. &uart1 {
  397. pinctrl-names = "default";
  398. pinctrl-0 = <&uart1_pins>;
  399. };
  400. &uart3 {
  401. pinctrl-names = "default";
  402. pinctrl-0 = <&uart3_pins>;
  403. };
  404. &uart5 {
  405. pinctrl-names = "default";
  406. pinctrl-0 = <&uart5_pins>;
  407. };