omap5-board-common.dtsi 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. #include "omap5.dtsi"
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. / {
  9. aliases {
  10. display0 = &hdmi0;
  11. };
  12. chosen {
  13. stdout-path = &uart3;
  14. };
  15. vmain: fixedregulator-vmain {
  16. compatible = "regulator-fixed";
  17. regulator-name = "vmain";
  18. regulator-min-microvolt = <5000000>;
  19. regulator-max-microvolt = <5000000>;
  20. };
  21. vsys_cobra: fixedregulator-vsys_cobra {
  22. compatible = "regulator-fixed";
  23. regulator-name = "vsys_cobra";
  24. vin-supply = <&vmain>;
  25. regulator-min-microvolt = <5000000>;
  26. regulator-max-microvolt = <5000000>;
  27. };
  28. vmmcsd_fixed: fixedregulator-mmcsd {
  29. compatible = "regulator-fixed";
  30. regulator-name = "vmmcsd_fixed";
  31. regulator-min-microvolt = <3000000>;
  32. regulator-max-microvolt = <3000000>;
  33. };
  34. mmc3_pwrseq: sdhci0_pwrseq {
  35. compatible = "mmc-pwrseq-simple";
  36. clocks = <&clk32kgaudio>;
  37. clock-names = "ext_clock";
  38. };
  39. vmmcsdio_fixed: fixedregulator-mmcsdio {
  40. compatible = "regulator-fixed";
  41. regulator-name = "vmmcsdio_fixed";
  42. regulator-min-microvolt = <1800000>;
  43. regulator-max-microvolt = <1800000>;
  44. gpio = <&gpio5 12 GPIO_ACTIVE_HIGH>; /* gpio140 WLAN_EN */
  45. enable-active-high;
  46. startup-delay-us = <70000>;
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&wlan_pins>;
  49. };
  50. /* HS USB Host PHY on PORT 2 */
  51. hsusb2_phy: hsusb2_phy {
  52. compatible = "usb-nop-xceiv";
  53. reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
  54. clocks = <&auxclk1_ck>;
  55. clock-names = "main_clk";
  56. clock-frequency = <19200000>;
  57. #phy-cells = <0>;
  58. };
  59. /* HS USB Host PHY on PORT 3 */
  60. hsusb3_phy: hsusb3_phy {
  61. compatible = "usb-nop-xceiv";
  62. reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
  63. #phy-cells = <0>;
  64. };
  65. tpd12s015: encoder {
  66. compatible = "ti,tpd12s015";
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&tpd12s015_pins>;
  69. /* gpios defined in the board specific dts */
  70. ports {
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. port@0 {
  74. reg = <0>;
  75. tpd12s015_in: endpoint {
  76. remote-endpoint = <&hdmi_out>;
  77. };
  78. };
  79. port@1 {
  80. reg = <1>;
  81. tpd12s015_out: endpoint {
  82. remote-endpoint = <&hdmi_connector_in>;
  83. };
  84. };
  85. };
  86. };
  87. hdmi0: connector {
  88. compatible = "hdmi-connector";
  89. label = "hdmi";
  90. type = "b";
  91. port {
  92. hdmi_connector_in: endpoint {
  93. remote-endpoint = <&tpd12s015_out>;
  94. };
  95. };
  96. };
  97. sound: sound {
  98. compatible = "ti,abe-twl6040";
  99. ti,model = "omap5-uevm";
  100. ti,jack-detection;
  101. ti,mclk-freq = <19200000>;
  102. ti,mcpdm = <&mcpdm>;
  103. ti,twl6040 = <&twl6040>;
  104. /* Audio routing */
  105. ti,audio-routing =
  106. "Headset Stereophone", "HSOL",
  107. "Headset Stereophone", "HSOR",
  108. "Line Out", "AUXL",
  109. "Line Out", "AUXR",
  110. "HSMIC", "Headset Mic",
  111. "Headset Mic", "Headset Mic Bias",
  112. "AFML", "Line In",
  113. "AFMR", "Line In";
  114. };
  115. };
  116. &gpio8 {
  117. /* TI trees use GPIO instead of msecure, see also muxing */
  118. msecure-hog {
  119. gpio-hog;
  120. gpios = <10 GPIO_ACTIVE_HIGH>;
  121. output-high;
  122. line-name = "gpio8_234/msecure";
  123. };
  124. };
  125. &omap5_pmx_core {
  126. pinctrl-names = "default";
  127. pinctrl-0 = <
  128. &usbhost_pins
  129. &led_gpio_pins
  130. >;
  131. twl6040_pins: pinmux_twl6040_pins {
  132. pinctrl-single,pins = <
  133. OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
  134. >;
  135. };
  136. mcpdm_pins: pinmux_mcpdm_pins {
  137. pinctrl-single,pins = <
  138. OMAP5_IOPAD(0x182, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
  139. OMAP5_IOPAD(0x19c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
  140. OMAP5_IOPAD(0x19e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
  141. OMAP5_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
  142. OMAP5_IOPAD(0x1a2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
  143. >;
  144. };
  145. mcbsp1_pins: pinmux_mcbsp1_pins {
  146. pinctrl-single,pins = <
  147. OMAP5_IOPAD(0x18c, PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
  148. OMAP5_IOPAD(0x18e, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
  149. OMAP5_IOPAD(0x190, PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
  150. OMAP5_IOPAD(0x192, PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
  151. >;
  152. };
  153. mcbsp2_pins: pinmux_mcbsp2_pins {
  154. pinctrl-single,pins = <
  155. OMAP5_IOPAD(0x194, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
  156. OMAP5_IOPAD(0x196, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
  157. OMAP5_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
  158. OMAP5_IOPAD(0x19a, PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
  159. >;
  160. };
  161. i2c1_pins: pinmux_i2c1_pins {
  162. pinctrl-single,pins = <
  163. OMAP5_IOPAD(0x1f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
  164. OMAP5_IOPAD(0x1f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
  165. >;
  166. };
  167. mcspi2_pins: pinmux_mcspi2_pins {
  168. pinctrl-single,pins = <
  169. OMAP5_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
  170. OMAP5_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
  171. OMAP5_IOPAD(0x100, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
  172. OMAP5_IOPAD(0x102, PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0 */
  173. >;
  174. };
  175. mcspi3_pins: pinmux_mcspi3_pins {
  176. pinctrl-single,pins = <
  177. OMAP5_IOPAD(0x0b8, PIN_INPUT | MUX_MODE1) /* mcspi3_somi */
  178. OMAP5_IOPAD(0x0ba, PIN_INPUT | MUX_MODE1) /* mcspi3_cs0 */
  179. OMAP5_IOPAD(0x0bc, PIN_INPUT | MUX_MODE1) /* mcspi3_simo */
  180. OMAP5_IOPAD(0x0be, PIN_INPUT | MUX_MODE1) /* mcspi3_clk */
  181. >;
  182. };
  183. mmc3_pins: pinmux_mmc3_pins {
  184. pinctrl-single,pins = <
  185. OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
  186. OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
  187. OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
  188. OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
  189. OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
  190. OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
  191. >;
  192. };
  193. wlan_pins: pinmux_wlan_pins {
  194. pinctrl-single,pins = <
  195. OMAP5_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE6) /* mcspi1_clk.gpio5_140 */
  196. >;
  197. };
  198. /* TI trees use GPIO mode; msecure mode does not work reliably? */
  199. palmas_msecure_pins: palmas_msecure_pins {
  200. pinctrl-single,pins = <
  201. OMAP5_IOPAD(0x180, PIN_OUTPUT | MUX_MODE6) /* gpio8_234 */
  202. >;
  203. };
  204. usbhost_pins: pinmux_usbhost_pins {
  205. pinctrl-single,pins = <
  206. OMAP5_IOPAD(0x0c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
  207. OMAP5_IOPAD(0x0c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
  208. OMAP5_IOPAD(0x1de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
  209. OMAP5_IOPAD(0x1e0, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
  210. OMAP5_IOPAD(0x0b0, PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
  211. OMAP5_IOPAD(0x0ae, PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
  212. >;
  213. };
  214. led_gpio_pins: pinmux_led_gpio_pins {
  215. pinctrl-single,pins = <
  216. OMAP5_IOPAD(0x1d6, PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
  217. >;
  218. };
  219. uart1_pins: pinmux_uart1_pins {
  220. pinctrl-single,pins = <
  221. OMAP5_IOPAD(0x0a0, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
  222. OMAP5_IOPAD(0x0a2, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
  223. OMAP5_IOPAD(0x0a4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
  224. OMAP5_IOPAD(0x0a6, PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
  225. >;
  226. };
  227. uart3_pins: pinmux_uart3_pins {
  228. pinctrl-single,pins = <
  229. OMAP5_IOPAD(0x1da, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
  230. OMAP5_IOPAD(0x1dc, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
  231. >;
  232. };
  233. uart5_pins: pinmux_uart5_pins {
  234. pinctrl-single,pins = <
  235. OMAP5_IOPAD(0x1b0, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
  236. OMAP5_IOPAD(0x1b2, PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
  237. OMAP5_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
  238. OMAP5_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
  239. >;
  240. };
  241. dss_hdmi_pins: pinmux_dss_hdmi_pins {
  242. pinctrl-single,pins = <
  243. OMAP5_IOPAD(0x13c, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
  244. OMAP5_IOPAD(0x140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */
  245. OMAP5_IOPAD(0x142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */
  246. >;
  247. };
  248. tpd12s015_pins: pinmux_tpd12s015_pins {
  249. pinctrl-single,pins = <
  250. OMAP5_IOPAD(0x13e, PIN_INPUT_PULLDOWN | MUX_MODE6) /* hdmi_hpd.gpio7_193 */
  251. >;
  252. };
  253. };
  254. &omap5_pmx_wkup {
  255. pinctrl-names = "default";
  256. pinctrl-0 = <
  257. &usbhost_wkup_pins
  258. >;
  259. palmas_sys_nirq_pins: pinmux_palmas_sys_nirq_pins {
  260. pinctrl-single,pins = <
  261. /* sys_nirq1 is pulled down as the SoC is inverting it for GIC */
  262. OMAP5_IOPAD(0x068, PIN_INPUT_PULLUP | MUX_MODE0)
  263. >;
  264. };
  265. usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
  266. pinctrl-single,pins = <
  267. OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
  268. >;
  269. };
  270. wlcore_irq_pin: pinmux_wlcore_irq_pin {
  271. pinctrl-single,pins = <
  272. OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6) /* llia_wakereqin.gpio1_wk14 */
  273. >;
  274. };
  275. };
  276. &mmc1 {
  277. vmmc-supply = <&ldo9_reg>;
  278. bus-width = <4>;
  279. };
  280. &mmc2 {
  281. vmmc-supply = <&vmmcsd_fixed>;
  282. bus-width = <8>;
  283. ti,non-removable;
  284. };
  285. &mmc3 {
  286. vmmc-supply = <&vmmcsdio_fixed>;
  287. mmc-pwrseq = <&mmc3_pwrseq>;
  288. bus-width = <4>;
  289. non-removable;
  290. cap-power-off-card;
  291. pinctrl-names = "default";
  292. pinctrl-0 = <&mmc3_pins>;
  293. interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
  294. &omap5_pmx_core 0x16a>;
  295. #address-cells = <1>;
  296. #size-cells = <0>;
  297. wlcore: wlcore@2 {
  298. compatible = "ti,wl1271";
  299. reg = <2>;
  300. pinctrl-names = "default";
  301. pinctrl-0 = <&wlcore_irq_pin>;
  302. interrupt-parent = <&gpio1>;
  303. interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; /* gpio 14 */
  304. ref-clock-frequency = <26000000>;
  305. };
  306. };
  307. &mmc4 {
  308. status = "disabled";
  309. };
  310. &mmc5 {
  311. status = "disabled";
  312. };
  313. &i2c1 {
  314. pinctrl-names = "default";
  315. pinctrl-0 = <&i2c1_pins>;
  316. clock-frequency = <400000>;
  317. palmas: palmas@48 {
  318. compatible = "ti,palmas";
  319. /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
  320. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>;
  321. reg = <0x48>;
  322. interrupt-controller;
  323. #interrupt-cells = <2>;
  324. ti,system-power-controller;
  325. ti,mux-pad1 = <0xa1>;
  326. ti,mux-pad2 = <0x1b>;
  327. pinctrl-names = "default";
  328. pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>;
  329. palmas_gpio: gpio {
  330. compatible = "ti,palmas-gpio";
  331. gpio-controller;
  332. #gpio-cells = <2>;
  333. };
  334. extcon_usb3: palmas_usb {
  335. compatible = "ti,palmas-usb-vid";
  336. ti,enable-vbus-detection;
  337. ti,enable-id-detection;
  338. ti,wakeup;
  339. id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
  340. };
  341. clk32kgaudio: palmas_clk32k@1 {
  342. compatible = "ti,palmas-clk32kgaudio";
  343. #clock-cells = <0>;
  344. };
  345. rtc {
  346. compatible = "ti,palmas-rtc";
  347. interrupt-parent = <&palmas>;
  348. interrupts = <8 IRQ_TYPE_NONE>;
  349. ti,backup-battery-chargeable;
  350. ti,backup-battery-charge-high-current;
  351. };
  352. gpadc: gpadc {
  353. compatible = "ti,palmas-gpadc";
  354. interrupts = <18 0
  355. 16 0
  356. 17 0>;
  357. #io-channel-cells = <1>;
  358. ti,channel0-current-microamp = <5>;
  359. ti,channel3-current-microamp = <10>;
  360. };
  361. palmas_pmic {
  362. compatible = "ti,palmas-pmic";
  363. interrupt-parent = <&palmas>;
  364. interrupts = <14 IRQ_TYPE_NONE>;
  365. interrupt-names = "short-irq";
  366. ti,ldo6-vibrator;
  367. smps123-in-supply = <&vsys_cobra>;
  368. smps45-in-supply = <&vsys_cobra>;
  369. smps6-in-supply = <&vsys_cobra>;
  370. smps7-in-supply = <&vsys_cobra>;
  371. smps8-in-supply = <&vsys_cobra>;
  372. smps9-in-supply = <&vsys_cobra>;
  373. smps10_out2-in-supply = <&vsys_cobra>;
  374. smps10_out1-in-supply = <&vsys_cobra>;
  375. ldo1-in-supply = <&vsys_cobra>;
  376. ldo2-in-supply = <&vsys_cobra>;
  377. ldo3-in-supply = <&vdds_1v8_main>;
  378. ldo4-in-supply = <&vdds_1v8_main>;
  379. ldo5-in-supply = <&vsys_cobra>;
  380. ldo6-in-supply = <&vdds_1v8_main>;
  381. ldo7-in-supply = <&vsys_cobra>;
  382. ldo8-in-supply = <&vsys_cobra>;
  383. ldo9-in-supply = <&vmmcsd_fixed>;
  384. ldoln-in-supply = <&vsys_cobra>;
  385. ldousb-in-supply = <&vsys_cobra>;
  386. regulators {
  387. smps123_reg: smps123 {
  388. /* VDD_OPP_MPU */
  389. regulator-name = "smps123";
  390. regulator-min-microvolt = < 600000>;
  391. regulator-max-microvolt = <1500000>;
  392. regulator-always-on;
  393. regulator-boot-on;
  394. };
  395. smps45_reg: smps45 {
  396. /* VDD_OPP_MM */
  397. regulator-name = "smps45";
  398. regulator-min-microvolt = < 600000>;
  399. regulator-max-microvolt = <1310000>;
  400. regulator-always-on;
  401. regulator-boot-on;
  402. };
  403. smps6_reg: smps6 {
  404. /* VDD_DDR3 - over VDD_SMPS6 */
  405. regulator-name = "smps6";
  406. regulator-min-microvolt = <1350000>;
  407. regulator-max-microvolt = <1350000>;
  408. regulator-always-on;
  409. regulator-boot-on;
  410. };
  411. vdds_1v8_main:
  412. smps7_reg: smps7 {
  413. /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
  414. regulator-name = "smps7";
  415. regulator-min-microvolt = <1800000>;
  416. regulator-max-microvolt = <1800000>;
  417. regulator-always-on;
  418. regulator-boot-on;
  419. };
  420. smps8_reg: smps8 {
  421. /* VDD_OPP_CORE */
  422. regulator-name = "smps8";
  423. regulator-min-microvolt = < 600000>;
  424. regulator-max-microvolt = <1310000>;
  425. regulator-always-on;
  426. regulator-boot-on;
  427. };
  428. smps9_reg: smps9 {
  429. /* VDDA_2v1_AUD over VDD_2v1 */
  430. regulator-name = "smps9";
  431. regulator-min-microvolt = <2100000>;
  432. regulator-max-microvolt = <2100000>;
  433. ti,smps-range = <0x80>;
  434. };
  435. smps10_out2_reg: smps10_out2 {
  436. /* VBUS_5V_OTG */
  437. regulator-name = "smps10_out2";
  438. regulator-min-microvolt = <5000000>;
  439. regulator-max-microvolt = <5000000>;
  440. regulator-always-on;
  441. regulator-boot-on;
  442. };
  443. smps10_out1_reg: smps10_out1 {
  444. /* VBUS_5V_OTG */
  445. regulator-name = "smps10_out1";
  446. regulator-min-microvolt = <5000000>;
  447. regulator-max-microvolt = <5000000>;
  448. };
  449. ldo1_reg: ldo1 {
  450. /* VDDAPHY_CAM: vdda_csiport */
  451. regulator-name = "ldo1";
  452. regulator-min-microvolt = <1800000>;
  453. regulator-max-microvolt = <1800000>;
  454. };
  455. ldo2_reg: ldo2 {
  456. /* VCC_2V8_DISP: Does not go anywhere */
  457. regulator-name = "ldo2";
  458. regulator-min-microvolt = <2800000>;
  459. regulator-max-microvolt = <2800000>;
  460. /* Unused */
  461. status = "disabled";
  462. };
  463. ldo3_reg: ldo3 {
  464. /* VDDAPHY_MDM: vdda_lli */
  465. regulator-name = "ldo3";
  466. regulator-min-microvolt = <1500000>;
  467. regulator-max-microvolt = <1500000>;
  468. regulator-boot-on;
  469. /* Only if Modem is used */
  470. status = "disabled";
  471. };
  472. ldo4_reg: ldo4 {
  473. /* VDDAPHY_DISP: vdda_dsiport/hdmi */
  474. regulator-name = "ldo4";
  475. regulator-min-microvolt = <1800000>;
  476. regulator-max-microvolt = <1800000>;
  477. };
  478. ldo5_reg: ldo5 {
  479. /* VDDA_1V8_PHY: usb/sata/hdmi.. */
  480. regulator-name = "ldo5";
  481. regulator-min-microvolt = <1800000>;
  482. regulator-max-microvolt = <1800000>;
  483. regulator-always-on;
  484. regulator-boot-on;
  485. };
  486. ldo6_reg: ldo6 {
  487. /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
  488. regulator-name = "ldo6";
  489. regulator-min-microvolt = <1200000>;
  490. regulator-max-microvolt = <1200000>;
  491. regulator-always-on;
  492. regulator-boot-on;
  493. };
  494. ldo7_reg: ldo7 {
  495. /* VDD_VPP: vpp1 */
  496. regulator-name = "ldo7";
  497. regulator-min-microvolt = <2000000>;
  498. regulator-max-microvolt = <2000000>;
  499. /* Only for efuse reprograming! */
  500. status = "disabled";
  501. };
  502. ldo8_reg: ldo8 {
  503. /* VDD_3v0: Does not go anywhere */
  504. regulator-name = "ldo8";
  505. regulator-min-microvolt = <3000000>;
  506. regulator-max-microvolt = <3000000>;
  507. regulator-boot-on;
  508. /* Unused */
  509. status = "disabled";
  510. };
  511. ldo9_reg: ldo9 {
  512. /* VCC_DV_SDIO: vdds_sdcard */
  513. regulator-name = "ldo9";
  514. regulator-min-microvolt = <1800000>;
  515. regulator-max-microvolt = <3000000>;
  516. regulator-boot-on;
  517. };
  518. ldoln_reg: ldoln {
  519. /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
  520. regulator-name = "ldoln";
  521. regulator-min-microvolt = <1800000>;
  522. regulator-max-microvolt = <1800000>;
  523. regulator-always-on;
  524. regulator-boot-on;
  525. };
  526. ldousb_reg: ldousb {
  527. /* VDDA_3V_USB: VDDA_USBHS33 */
  528. regulator-name = "ldousb";
  529. regulator-min-microvolt = <3250000>;
  530. regulator-max-microvolt = <3250000>;
  531. regulator-always-on;
  532. regulator-boot-on;
  533. };
  534. regen3_reg: regen3 {
  535. /* REGEN3 controls LDO9 supply to card */
  536. regulator-name = "regen3";
  537. regulator-always-on;
  538. regulator-boot-on;
  539. };
  540. };
  541. };
  542. palmas_power_button: palmas_power_button {
  543. compatible = "ti,palmas-pwrbutton";
  544. interrupt-parent = <&palmas>;
  545. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  546. wakeup-source;
  547. };
  548. };
  549. twl6040: twl@4b {
  550. compatible = "ti,twl6040";
  551. #clock-cells = <0>;
  552. reg = <0x4b>;
  553. pinctrl-names = "default";
  554. pinctrl-0 = <&twl6040_pins>;
  555. /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
  556. interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_LOW>;
  557. /* audpwron gpio defined in the board specific dts */
  558. vio-supply = <&smps7_reg>;
  559. v2v1-supply = <&smps9_reg>;
  560. enable-active-high;
  561. clocks = <&clk32kgaudio>, <&fref_xtal_ck>;
  562. clock-names = "clk32k", "mclk";
  563. };
  564. };
  565. &mcpdm_module {
  566. /* Module on the SoC needs external clock from the PMIC */
  567. pinctrl-names = "default";
  568. pinctrl-0 = <&mcpdm_pins>;
  569. status = "okay";
  570. };
  571. &mcpdm {
  572. clocks = <&twl6040>;
  573. clock-names = "pdmclk";
  574. };
  575. &mcbsp1 {
  576. pinctrl-names = "default";
  577. pinctrl-0 = <&mcbsp1_pins>;
  578. status = "okay";
  579. };
  580. &mcbsp2 {
  581. pinctrl-names = "default";
  582. pinctrl-0 = <&mcbsp2_pins>;
  583. status = "okay";
  584. };
  585. &usbhshost {
  586. port2-mode = "ehci-hsic";
  587. port3-mode = "ehci-hsic";
  588. };
  589. &usbhsehci {
  590. phys = <0 &hsusb2_phy &hsusb3_phy>;
  591. };
  592. &usb3 {
  593. extcon = <&extcon_usb3>;
  594. vbus-supply = <&smps10_out1_reg>;
  595. };
  596. &dwc3 {
  597. extcon = <&extcon_usb3>;
  598. dr_mode = "otg";
  599. };
  600. &mcspi1 {
  601. };
  602. &mcspi2 {
  603. pinctrl-names = "default";
  604. pinctrl-0 = <&mcspi2_pins>;
  605. };
  606. &mcspi3 {
  607. pinctrl-names = "default";
  608. pinctrl-0 = <&mcspi3_pins>;
  609. };
  610. &uart1 {
  611. pinctrl-names = "default";
  612. pinctrl-0 = <&uart1_pins>;
  613. };
  614. &uart3 {
  615. pinctrl-names = "default";
  616. pinctrl-0 = <&uart3_pins>;
  617. interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
  618. <&omap5_pmx_core 0x19c>;
  619. };
  620. &uart5 {
  621. pinctrl-names = "default";
  622. pinctrl-0 = <&uart5_pins>;
  623. };
  624. &cpu0 {
  625. cpu0-supply = <&smps123_reg>;
  626. };
  627. &dss {
  628. status = "okay";
  629. };
  630. &hdmi {
  631. status = "okay";
  632. /* vdda-supply populated in board specific dts file */
  633. pinctrl-names = "default";
  634. pinctrl-0 = <&dss_hdmi_pins>;
  635. port {
  636. hdmi_out: endpoint {
  637. remote-endpoint = <&tpd12s015_in>;
  638. };
  639. };
  640. };