omap5-board-common.dtsi 18 KB

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